/* Automatically generated by
	MLVMCCodeGenerator Melchor-tonel.1 uuid: 01539da7-8ff1-0d00-b22c-e67109ca3285
   from
	StackToRegisterMappingCogit VMMaker-tonel.1 uuid: d203f1a7-8ff1-0d00-b231-40c509ca3285
 */
static char __buildInfo[] = "StackToRegisterMappingCogit VMMaker-tonel.1 uuid: d203f1a7-8ff1-0d00-b231-40c509ca3285 " __DATE__ ;
char *__cogitBuildInfo = __buildInfo;



#include <stddef.h>
#include <stdint.h>
#include <pthread.h>
#include "sq.h"
#include "jit/jit.h"
#include "debug.h"
#include "sqCogStackAlignment.h"
#include "dispdbg.h"
#include "cogmethod.h"
#include "vmMemoryMap.h"
#include "vmRememberedSet.h"
#include "cointerp.h"
#include "cogit.h"



/*** Constants ***/
#define AddCqR 102
#define AddCwR 110
#define AddOpcode 4
#define AddRdRd 121
#define AddRR 96
#define AL 14
#define AlignmentNops 3
#define AndCqR 104
#define AndCqRR 119
#define AndCwR 112
#define AndOpcode 0
#define AndRR 98
#define AnnotationShift 5
#define Arg0Reg 3
#define Arg1Reg 4
#define ArithmeticShiftRightCqR 87
#define ArithmeticShiftRightRR 88
#define BadRegisterSet 1
#define BicOpcode 14
#define BytecodeSetHasDirectedSuperSend 1
#define CArg0Reg 0
#define CArg1Reg 1
#define CArg2Reg 2
#define CArg3Reg 3
#define Call 6
#define CallerSavedRegisterMask 0x120F
#define CallFull 7
#define CC 3
#define CheckAllocationFillerAfterPrimCall 32
#if !defined(CheckRememberedInTrampoline) /* Allow this to be overridden on the compiler command line */
# define CheckRememberedInTrampoline 0
#endif /* !defined(CheckRememberedInTrampoline) */
#define ClassArray 7
#define ClassArrayCompactIndex 51
#define ClassFloatCompactIndex 34
#define ClassFullBlockClosureCompactIndex 38
#define ClassLargePositiveIntegerCompactIndex 33
#define ClassMethodContextCompactIndex 36
#define ClassReg 8
#define ClosureIndex 4
#define CMFree 1
#define CMMaxUsageCount 7
#define CMMegamorphicIC 4
#define CMMethod 2
#define CMPolymorphicIC 3
#define CMPSMULL 159
#define CmpC32R 109
#define CmpCqR 101
#define CmpCwR 108
#define CmpNotOpcode 11
#define CmpOpcode 10
#define CmpRdRd 120
#define CmpRR 95
#define CompletePrimitive 4
#define ConcreteIPReg 12
#define ConcreteVarBaseReg 10
#define ConstZero 1
#define ConvertRRd 134
#define CS 2
#define Debug DEBUGVM
#define DisplacementMask 0x1F
#define DisplacementX2N 0
#define DivRdRd 124
#define DPFPReg0 0
#define DPFPReg1 1
#define DPFPReg2 2
#define EncounteredUnknownBytecode -6
#define EQ 0
#define Extra0Reg 7
#define Extra1Reg 0
#define Extra2Reg 9
#define FaddSRvRvRv 150
#define Fill32 4
#define FirstAnnotation 64
#define FirstJump 12
#define FirstSpecialSelector 96
#define FoxCallerSavedIP 4
#define FoxMethod -4
#define FoxMFReceiver -12
#define FoxSavedFP 0
#define FoxThisContext -8
#define FPReg 11
#define FsubSRvRvRv 151
#define FullClosureCompiledBlockIndex 1
#define FullClosureFirstCopiedValueIndex 4
#define FullClosureNumArgsIndex 2
#define FullClosureOuterContextIndex 0
#define FullClosureReceiverIndex 3
#define GCModeBecome 8
#define GCModeFull 1
#define GCModeNewSpace 2
#define GE 10
#define GT 12
#define HasBytecodePC 5
#define HashMultiplyConstant 1664525
#define HashMultiplyMask 0xFFFFFFF
#define HeaderIndex 0
#define HI 8
#if !defined(IMMUTABILITY) /* Allow this to be overridden on the compiler command line */
# define IMMUTABILITY 1
#endif /* !defined(IMMUTABILITY) */
#define InFullBlock 2
#define InstanceSpecificationIndex 2
#define InstructionPointerIndex 1
#define InsufficientCodeSpace -2
#define IsAbsPCReference 3
#define IsAnnotationExtension 1
#define IsDirectedSuperBindingSend 10
#define IsDirectedSuperSend 9
#define IsDisplacementX2N 0
#define IsObjectReference 2
#define IsRelativeCall 4
#define IsSendCall 7
#define IsSuperSend 8
#define Jump 16
#define JumpAbove 31
#define JumpAboveOrEqual 30
#define JumpBelow 29
#define JumpBelowOrEqual 32
#define JumpCarry 23
#define JumpFPEqual 33
#define JumpFPGreater 37
#define JumpFPGreaterOrEqual 38
#define JumpFPLess 35
#define JumpFPLessOrEqual 36
#define JumpFPNotEqual 34
#define JumpFPOrdered 39
#define JumpFPUnordered 40
#define JumpFull 12
#define JumpGreater 27
#define JumpGreaterOrEqual 26
#define JumpLess 25
#define JumpLessOrEqual 28
#define JumpLong 13
#define JumpLongNonZero 15
#define JumpLongZero 14
#define JumpNegative 19
#define JumpNoCarry 24
#define JumpNonNegative 20
#define JumpNonZero 18
#define JumpNoOverflow 22
#define JumpOverflow 21
#define JumpR 10
#define JumpZero 17
#define Label 1
#define LargeContextSlots 62
#define LastJump 40
#define Ld1VrRMw 149
#define LE 13
#define LinkReg 14
#define Literal 2
#define LiteralStart 1
#define LoadEffectiveAddressMwrR 84
#define LogicalShiftLeftCqR 91
#define LogicalShiftLeftRR 92
#define LogicalShiftRightCqR 89
#define LogicalShiftRightRR 90
#define LR 14
#define LS 9
#define LT 11
#define MapEnd 0
#define MaxCompiledPrimitiveIndex 222
#define MaxCPICCases 6
#define MaxMethodSize 65535
#define MaxNegativeErrorCode -8
#define MaxNumArgs 15
#define MaxNumberOfAbstractOpcodes 0x8000
#define MaxStackCheckOffset 0xFFF
#define MaxX2NDisplacement 992
#define MethodCacheClass 2
#define MethodCacheMask 0xFFC
#define MethodCacheMethod 3
#define MethodCacheSelector 1
#define MethodIndex 3
#define MethodTooBig -4
#define MFMethodFlagHasContextFlag 1
#define MFMethodFlagIsBlockFlag 2
#define MI 4
#define MoveAbR 46
#define MoveAwR 42
#define MoveCqR 67
#define MoveCwR 68
#define MoveM16rR 55
#define MoveM64rRd 73
#define MoveMbrR 63
#define MoveMwrR 48
#define MoveNotOpcode 15
#define MoveOpcode 13
#define MovePatcheableC32R 83
#define MoveRAb 47
#define MoveRAw 44
#define MoveRdM64r 74
#define MoveRdRd 72
#define MoveRM16r 56
#define MoveRMbr 64
#define MoveRMwr 49
#define MoveRR 41
#define MoveRXbrR 66
#define MoveRXwrR 51
#define MoveXbrRR 65
#define MoveXwrRR 50
#define MSR 153
#define MulRdRd 123
#define NE 1
#define NeedsMergeFixupFlag 2
#define NeedsNonMergeFixupFlag 1
#define NegateR 85
#define Nop 5
#define NoReg -1
#define NumObjRefsInRuntime 0
#define NumSendTrampolines 4
#define NumSpecialSelectors 32
#define NumStoreTrampolines 5
#define NumTrampolines 74
#define OrCqR 105
#define OrCwR 113
#define OrOpcode 12
#define OrRR 99
#define PC 15
#define PCReg 15
#define PL 5
#define PopLDM 155
#define PopR 78
#define PrefetchAw 82
#define PrimCallCollectsProfileSamples 16
#define PrimCallDoNotJIT 64
#define PrimCallMayCallBack 4
#define PrimCallNeedsNewMethod 1
#define PrimCallNeedsPrimitiveFunction 2
#define PrimCallOnSmalltalkStack 8
#define PrimErrNoMemory 9
#define PrimErrWritePastObject 17
#define PrimNumberHashMultiply 159
#define PushCq 80
#define PushCw 81
#define PushR 79
#define PushSTM 156
#define R0 0
#define ReceiverIndex 5
#define ReceiverResultReg 5
#define RetN 9
#define RISCTempReg 12
#define RsbOpcode 3
#define SelectorCannotInterpret 34
#define SelectorDoesNotUnderstand 20
#define SenderIndex 0
#define SendNumArgsReg 6
#define ShouldNotJIT -8
#define SignExtend16RR 141
#define SignExtend8RR 140
#define SistaVM 0
#define SMULL 152
#define SmallContextSlots 22
#define SP 13
#define SPReg 13
#define SqrtRd 125
#define SSBaseOffset 1
#define SSConstant 2
#define SSRegister 3
#define SSSpill 4
#define SSVectorRegister 18
#define St1VrRMw 147
#define StackPointerIndex 2
#define Stop 11
#define SubCqR 103
#define SubCwR 111
#define SubOpcode 2
#define SubRdRd 122
#define SubRR 97
#define TempReg 2
#define TempVectReadBarrier 0
#define TstCqR 106
#define TstOpcode 8
#define UnfailingPrimitive 3
#define UnimplementedPrimitive -7
#define ValueIndex 1
#define VarBaseReg 10
#define VC 7
#define VReg0 -1
#define VReg1 -1
#define VReg2 -1
#define VReg3 -1
#define VReg4 -1
#define VReg5 -1
#define VReg6 -1
#define VReg7 -1
#define VS 6
#define XorCqR 107
#define XorCwR 114
#define XorOpcode 1
#define XorRR 100
#define YoungSelectorInPIC -5

typedef struct _AbstractInstruction {
	unsigned char	opcode;
	unsigned char	machineCodeSize;
	unsigned char	maxSize;
	unsigned char	annotation;
	unsigned char	conditionOrNil;
	unsigned int		machineCode [5];
	usqInt		operands [4];
	usqInt	address;
	struct _AbstractInstruction *dependent;
 } AbstractInstruction;

#define CogOutOfLineLiteralsARMCompiler AbstractInstruction
#define CogARMCompiler AbstractInstruction
#define CogAbstractInstruction AbstractInstruction


typedef struct _BytecodeDescriptor {
	sqInt (*generator )(void);
	sqInt NoDbgRegParms (*spanFunction )(struct _BytecodeDescriptor *,sqInt,sqInt,sqInt);
	sqInt NoDbgRegParms (*needsFrameFunction )(sqInt);
	signed char	stackDelta;
	unsigned char	opcode;
	unsigned char	numBytes;
	unsigned		isBranchTrue : 1;
	unsigned		isBranchFalse : 1;
	unsigned		isReturn : 1;
	unsigned		isMapped : 1;
	unsigned		isMappedInBlock : 1;
	unsigned		isExtension : 1;
	unsigned		isInstVarRef : 1;
	unsigned		is1ByteInstVarStore : 1;
	unsigned		hasUnsafeJump : 1;
 } BytecodeDescriptor;

#define CogBytecodeDescriptor BytecodeDescriptor


typedef struct {
	sqInt (*primitiveGenerator )(void);
	sqInt	primNumArgs;
	sqInt	primMayCallBack;
 } PrimitiveDescriptor;

#define CogPrimitiveDescriptor PrimitiveDescriptor


typedef struct {
	AbstractInstruction *jmpToFallbackCode;
	AbstractInstruction *jmpSamplePrim;
	AbstractInstruction *continuePostSamplePrim;
	AbstractInstruction *jmpSampleNonPrim;
	AbstractInstruction *continuePostSampleNonPrim;
 } CogPrimitiveCallState;


typedef struct {
	char	type;
	char	spilled;
	signed char	liveRegister;
	signed char	registerr;
	sqInt	offset;
	sqInt	constant;
	sqInt	bcptr;
 } SimStackEntry;

#define CogSimStackEntry SimStackEntry


typedef struct {
	AbstractInstruction *targetInstruction;
	unsigned char	simStackPtr;
	char	isTargetOfBackwardBranch;
	unsigned short	instructionIndex;
	short	simNativeStackPtr;
	unsigned short	simNativeStackSize;
 } BytecodeFixup;

#define CogSSBytecodeFixup BytecodeFixup
#define CogBytecodeFixup BytecodeFixup


typedef struct {
	sqInt	isReceiverResultRegLive;
	CogSimStackEntry *ssEntry;
 } CogSSOptStatus;



/*** Function Prototypes ***/


#if !PRODUCTION && defined(PlatformNoDbgRegParms)
# define NoDbgRegParms PlatformNoDbgRegParms
#endif

#if !defined(NoDbgRegParms)
# define NoDbgRegParms /*empty*/
#endif



#if !defined(NeverInline)
# define NeverInline /*empty*/
#endif

static AbstractInstruction * NoDbgRegParms addDependent(AbstractInstruction * self_in_addDependent, AbstractInstruction *_anInstruction);
static sqInt NoDbgRegParms availableVectorRegisterOrNoneFor(AbstractInstruction * self_in_availableVectorRegisterOrNoneFor, sqInt _liveRegsMask);
static AbstractInstruction * NoDbgRegParms cloneLiteralFrom(AbstractInstruction * self_in_cloneLiteralFrom, AbstractInstruction *_existingLiteral);
static AbstractInstruction * NoDbgRegParms genCaptureCStackPointers(AbstractInstruction * self_in_genCaptureCStackPointers, sqInt _captureFramePointer);
static AbstractInstruction * NoDbgRegParms genWriteCResultIntoReg(AbstractInstruction * self_in_genWriteCResultIntoReg, sqInt _abstractRegister);
static AbstractInstruction * NoDbgRegParms initializeSharableLiteral(AbstractInstruction * self_in_initializeSharableLiteral, sqInt _literal);
static AbstractInstruction * NoDbgRegParms initializeUniqueLiteral(AbstractInstruction * self_in_initializeUniqueLiteral, sqInt _literal);
static sqInt NoDbgRegParms isAnInstruction(AbstractInstruction * self_in_isAnInstruction, AbstractInstruction *_addressOrInstruction);
static sqInt NoDbgRegParms isJump(AbstractInstruction * self_in_isJump);
static sqInt NoDbgRegParms isWithinMwOffsetRange(AbstractInstruction * self_in_isWithinMwOffsetRange, sqInt anAddress);
static AbstractInstruction * NoDbgRegParms jmpTarget(AbstractInstruction * self_in_jmpTarget, AbstractInstruction *_anAbstractInstruction);
static sqInt NoDbgRegParms literal32BeforeFollowingAddress(AbstractInstruction * self_in_literal32BeforeFollowingAddress, sqInt _followingAddress);
static AbstractInstruction * NoDbgRegParms relocateJumpLongBeforeFollowingAddressby(AbstractInstruction * self_in_relocateJumpLongBeforeFollowingAddressby, sqInt _pc, sqInt _delta);
static AbstractInstruction * NoDbgRegParms relocateJumpLongConditionalBeforeFollowingAddressby(AbstractInstruction * self_in_relocateJumpLongConditionalBeforeFollowingAddressby, sqInt _pc, sqInt _delta);
static AbstractInstruction * NoDbgRegParms resolveJumpTarget(AbstractInstruction * self_in_resolveJumpTarget);
static sqInt NoDbgRegParms addsrnimmror(AbstractInstruction * self_in_addsrnimmror, sqInt _destReg, sqInt _srcReg, sqInt _immediate, sqInt _rot);
static sqInt NoDbgRegParms addrnimmror(AbstractInstruction * self_in_addrnimmror, sqInt _destReg, sqInt _srcReg, sqInt _immediate, sqInt _rot);
static sqInt NoDbgRegParms addrnrm(AbstractInstruction * self_in_addrnrm, sqInt _destReg, sqInt _srcReg, sqInt _addReg);
static usqInt NoDbgRegParms aeabiDivModFunctionAddr(AbstractInstruction * self_in_aeabiDivModFunctionAddr);
static sqInt NoDbgRegParms andsrnimmror(AbstractInstruction * self_in_andsrnimmror, sqInt _destReg, sqInt _srcReg, sqInt _immediate, sqInt _rot);
static sqInt NoDbgRegParms availableRegisterOrNoneFor(AbstractInstruction * self_in_availableRegisterOrNoneFor, sqInt _liveRegsMask);
static sqInt NoDbgRegParms bicsrnimmror(AbstractInstruction * self_in_bicsrnimmror, sqInt _destReg, sqInt _srcReg, sqInt _immediate, sqInt _rot);
static sqInt NoDbgRegParms bl(AbstractInstruction * self_in_bl, sqInt _offset);
static sqInt NoDbgRegParms callInstructionByteSize(AbstractInstruction * self_in_callInstructionByteSize);
static sqInt NoDbgRegParms callTargetFromReturnAddress(AbstractInstruction * self_in_callTargetFromReturnAddress, sqInt _callSiteReturnAddress);
static sqInt NoDbgRegParms computeMaximumSize(AbstractInstruction * self_in_computeMaximumSize);
static sqInt NoDbgRegParms concretizeAt(AbstractInstruction * self_in_concretizeAt, sqInt _actualAddress);
static usqInt NoDbgRegParms concretizeCMPSMULL(AbstractInstruction * self_in_concretizeCMPSMULL);
static void NoDbgRegParms concretizeConditionalInstruction(AbstractInstruction * self_in_concretizeConditionalInstruction);
static usqInt NoDbgRegParms concretizeFill32(AbstractInstruction * self_in_concretizeFill32);
static usqInt NoDbgRegParms concretizeMSR(AbstractInstruction * self_in_concretizeMSR);
static usqInt NoDbgRegParms concretizePushOrPopMultipleRegisters(AbstractInstruction * self_in_concretizePushOrPopMultipleRegisters, sqInt _doPush);
static usqInt NoDbgRegParms concretizeSMULL(AbstractInstruction * self_in_concretizeSMULL);
static sqInt NoDbgRegParms conditionIsNotNever(AbstractInstruction * self_in_conditionIsNotNever, sqInt _instr);
static sqInt NoDbgRegParms cStackPointer(AbstractInstruction * self_in_cStackPointer);
static sqInt NoDbgRegParms dataOpTyperdrnrmlsr(AbstractInstruction * self_in_dataOpTyperdrnrmlsr, sqInt _armOpcode, sqInt _destReg, sqInt _srcReg, sqInt _addReg, sqInt _shft);
static void NoDbgRegParms dispatchConcretize(AbstractInstruction * self_in_dispatchConcretize);
static usqInt NoDbgRegParms fmsrFromto(AbstractInstruction * self_in_fmsrFromto, sqInt _regA, sqInt _regB);
static usqInt NoDbgRegParms fsitodFromto(AbstractInstruction * self_in_fsitodFromto, sqInt _regA, sqInt _regB);
static AbstractInstruction * NoDbgRegParms genDivRRQuoRem(AbstractInstruction * self_in_genDivRRQuoRem, sqInt _abstractRegDivisor, sqInt _abstractRegDividend, sqInt _abstractRegQuotient, sqInt _abstractRegRemainder);
static sqInt NoDbgRegParms genLoadCStackPointer(AbstractInstruction * self_in_genLoadCStackPointer);
static sqInt NoDbgRegParms genLoadCStackPointers(AbstractInstruction * self_in_genLoadCStackPointers);
static sqInt NoDbgRegParms genLoadStackPointers(AbstractInstruction * self_in_genLoadStackPointers);
static AbstractInstruction * NoDbgRegParms genMulRR(AbstractInstruction * self_in_genMulRR, sqInt _regSource, sqInt _regDest);
static AbstractInstruction * NoDbgRegParms genPushRegisterArgsForAbortMissNumArgs(AbstractInstruction * self_in_genPushRegisterArgsForAbortMissNumArgs, sqInt _numArgs);
static AbstractInstruction * NoDbgRegParms genPushRegisterArgsForNumArgsscratchReg(AbstractInstruction * self_in_genPushRegisterArgsForNumArgsscratchReg, sqInt _numArgs, sqInt ignored);
static sqInt NoDbgRegParms genSaveStackPointers(AbstractInstruction * self_in_genSaveStackPointers);
static sqInt NoDbgRegParms instructionBeforeAddress(AbstractInstruction * self_in_instructionBeforeAddress, sqInt _followingAddress);
static sqInt NoDbgRegParms instructionIsBLX(AbstractInstruction * self_in_instructionIsBLX, sqInt _instr);
static sqInt NoDbgRegParms instructionIsBL(AbstractInstruction * self_in_instructionIsBL, sqInt _instr);
static sqInt NoDbgRegParms instructionIsB(AbstractInstruction * self_in_instructionIsB, sqInt _instr);
static sqInt NoDbgRegParms instructionIsLDR(AbstractInstruction * self_in_instructionIsLDR, sqInt _instr);
static sqInt NoDbgRegParms instructionIsPush(AbstractInstruction * self_in_instructionIsPush, sqInt _instr);
static sqInt NoDbgRegParms inverseOpcodeFor(AbstractInstruction * self_in_inverseOpcodeFor, sqInt _armOpcode);
static sqInt NoDbgRegParms isCallPrecedingReturnPC(AbstractInstruction * self_in_isCallPrecedingReturnPC, sqInt _mcpc);
static sqInt NoDbgRegParms isInImmediateJumpRange(AbstractInstruction * self_in_isInImmediateJumpRange, usqIntptr_t _operand);
static sqInt NoDbgRegParms isPCRelativeValueLoad(AbstractInstruction * self_in_isPCRelativeValueLoad, unsigned int _instr);
static sqInt NoDbgRegParms jumpLongByteSize(AbstractInstruction * self_in_jumpLongByteSize);
static sqInt NoDbgRegParms jumpLongConditionalByteSize(AbstractInstruction * self_in_jumpLongConditionalByteSize);
static sqInt NoDbgRegParms jumpLongTargetBeforeFollowingAddress(AbstractInstruction * self_in_jumpLongTargetBeforeFollowingAddress, sqInt _mcpc);
static sqInt NoDbgRegParms ldrbrnplusimm(AbstractInstruction * self_in_ldrbrnplusimm, sqInt _destReg, sqInt _baseReg, sqInt _u, sqInt _immediate12bitValue);
static sqInt NoDbgRegParms ldrbrnrm(AbstractInstruction * self_in_ldrbrnrm, sqInt _destReg, sqInt _baseReg, sqInt _offsetReg);
static sqInt NoDbgRegParms ldrhrnplusimm(AbstractInstruction * self_in_ldrhrnplusimm, sqInt _destReg, sqInt _baseReg, sqInt _u, sqInt _immediate8bitValue);
static sqInt NoDbgRegParms ldrrnplusImm(AbstractInstruction * self_in_ldrrnplusImm, sqInt _destReg, sqInt _baseReg, sqInt _immediate12bitValue);
static sqInt NoDbgRegParms ldrrnplusimm(AbstractInstruction * self_in_ldrrnplusimm, sqInt _destReg, sqInt _baseReg, sqInt _u, sqInt _immediate12bitValue);
static sqInt NoDbgRegParms ldrrnrm(AbstractInstruction * self_in_ldrrnrm, sqInt _destReg, sqInt _baseReg, sqInt _offsetReg);
static sqInt NoDbgRegParms literalBeforeInlineCacheTagAt(AbstractInstruction * self_in_literalBeforeInlineCacheTagAt, sqInt callSiteReturnAddress);
static usqInt NoDbgRegParms loadCwInto(AbstractInstruction * self_in_loadCwInto, sqInt _destReg);
static sqInt NoDbgRegParms loadPICLiteralByteSize(AbstractInstruction * self_in_loadPICLiteralByteSize);
static sqInt NoDbgRegParms memM16xrregbasepuwloffset(AbstractInstruction * self_in_memM16xrregbasepuwloffset, sqInt _cond, sqInt _destReg, sqInt _baseReg, sqInt _postpreoffset, sqInt _updown, sqInt _weirdstuff, sqInt _loadstore, sqInt _offset8);
static sqInt NoDbgRegParms memM16xrregbasepuwlrm(AbstractInstruction * self_in_memM16xrregbasepuwlrm, sqInt _cond, sqInt _destReg, sqInt _baseReg, sqInt _postpreoffset, sqInt _updown, sqInt _weirdstuff, sqInt _loadstore, sqInt _offsetReg);
static sqInt NoDbgRegParms memMxrregbasepubwlimm(AbstractInstruction * self_in_memMxrregbasepubwlimm, sqInt _cond, sqInt _destReg, sqInt _baseReg, sqInt _postpreoffset, sqInt _updown, sqInt _byteword, sqInt _weirdstuff, sqInt _loadstore, sqInt _offset);
static sqInt NoDbgRegParms memMxrregbasepubwlrmLsl2(AbstractInstruction * self_in_memMxrregbasepubwlrmLsl2, sqInt _cond, sqInt _destReg, sqInt _baseReg, sqInt _postpreoffset, sqInt _updown, sqInt _byteword, sqInt _weirdstuff, sqInt _loadstore, sqInt _offsetReg);
static sqInt NoDbgRegParms memMxrregbasepubwlrm(AbstractInstruction * self_in_memMxrregbasepubwlrm, sqInt _cond, sqInt _destReg, sqInt _baseReg, sqInt _postpreoffset, sqInt _updown, sqInt _byteword, sqInt _weirdstuff, sqInt _loadstore, sqInt _offsetReg);
static sqInt NoDbgRegParms memMxrregbaseublimm(AbstractInstruction * self_in_memMxrregbaseublimm, sqInt _cond, sqInt _destReg, sqInt _baseReg, sqInt _updown, sqInt _byteword, sqInt _loadstore, sqInt _immediate12bitValue);
static sqInt NoDbgRegParms movimmror(AbstractInstruction * self_in_movimmror, sqInt _destReg, sqInt _immediate8bitValue, sqInt _rot);
static sqInt NoDbgRegParms movrn(AbstractInstruction * self_in_movrn, sqInt _destReg, sqInt _srcReg);
static sqInt NoDbgRegParms msr(AbstractInstruction * self_in_msr, sqInt _flags);
static sqInt NoDbgRegParms mvnimmror(AbstractInstruction * self_in_mvnimmror, sqInt _destReg, sqInt _immediate8bitValue, sqInt _rot);
static sqInt NoDbgRegParms numIntRegArgs(AbstractInstruction * self_in_numIntRegArgs);
static AbstractInstruction * NoDbgRegParms padIfPossibleWithStopsFromto(AbstractInstruction * self_in_padIfPossibleWithStopsFromto, sqInt _startAddr, sqInt _endAddr);
static sqInt NoDbgRegParms popR(AbstractInstruction * self_in_popR, sqInt _dstReg);
static AbstractInstruction * NoDbgRegParms prepareStackToCallCFunctionInSmalltalkStack(AbstractInstruction * self_in_prepareStackToCallCFunctionInSmalltalkStack, sqInt anObject);
static sqInt NoDbgRegParms pushLinkRegisterByteSize(AbstractInstruction * self_in_pushLinkRegisterByteSize);
static sqInt NoDbgRegParms pushR(AbstractInstruction * self_in_pushR, sqInt _srcReg);
static AbstractInstruction * NoDbgRegParms relocateCallBeforeReturnPCby(AbstractInstruction * self_in_relocateCallBeforeReturnPCby, sqInt _retpc, sqInt _delta);
static AbstractInstruction * NoDbgRegParms returnFromCallCFunctionInSmalltalkStack(AbstractInstruction * self_in_returnFromCallCFunctionInSmalltalkStack, sqInt anObject);
static sqInt NoDbgRegParms rewriteCallAttarget(AbstractInstruction * self_in_rewriteCallAttarget, usqInt _callSiteReturnAddress, usqInt _callTargetAddress);
static sqInt NoDbgRegParms rewriteJumpLongAttarget(AbstractInstruction * self_in_rewriteJumpLongAttarget, usqInt _callSiteReturnAddress, usqInt _callTargetAddress);
static sqInt NoDbgRegParms rewriteTransferAttarget(AbstractInstruction * self_in_rewriteTransferAttarget, usqInt _callSiteReturnAddress, usqInt _callTargetAddress);
static sqInt NoDbgRegParms setsConditionCodesFor(AbstractInstruction * self_in_setsConditionCodesFor, sqInt _aConditionalJumpOpcode);
static sqInt NoDbgRegParms shiftSetsConditionCodesFor(AbstractInstruction * self_in_shiftSetsConditionCodesFor, sqInt _aConditionalJumpOpcode);
static AbstractInstruction * NoDbgRegParms stopsFromto(AbstractInstruction * self_in_stopsFromto, sqInt _startAddr, sqInt _endAddr);
static sqInt NoDbgRegParms strbrnplusimm(AbstractInstruction * self_in_strbrnplusimm, sqInt _destReg, sqInt _baseReg, sqInt _u, sqInt _immediate12bitValue);
static sqInt NoDbgRegParms strbrnrm(AbstractInstruction * self_in_strbrnrm, sqInt _srcReg, sqInt _baseReg, sqInt _offsetReg);
static sqInt NoDbgRegParms strhrnplusimm(AbstractInstruction * self_in_strhrnplusimm, sqInt _destReg, sqInt _baseReg, sqInt _u, sqInt _immediate8bitValue);
static sqInt NoDbgRegParms strhrnrm(AbstractInstruction * self_in_strhrnrm, sqInt _srcReg, sqInt _baseReg, sqInt _offsetReg);
static sqInt NoDbgRegParms strrnplusImm(AbstractInstruction * self_in_strrnplusImm, sqInt _srcReg, sqInt _baseReg, sqInt _immediate12bitValue);
static sqInt NoDbgRegParms strrnplusimm(AbstractInstruction * self_in_strrnplusimm, sqInt _destReg, sqInt _baseReg, sqInt _u, sqInt _immediate12bitValue);
static sqInt NoDbgRegParms strrnrm(AbstractInstruction * self_in_strrnrm, sqInt _srcReg, sqInt _baseReg, sqInt _offsetReg);
static sqInt NoDbgRegParms subsrnimmror(AbstractInstruction * self_in_subsrnimmror, sqInt _destReg, sqInt _srcReg, sqInt _immediate, sqInt _rot);
static sqInt NoDbgRegParms subrnimmror(AbstractInstruction * self_in_subrnimmror, sqInt _destReg, sqInt _srcReg, sqInt _immediate, sqInt _rot);
static sqInt NoDbgRegParms tstrnimmror(AbstractInstruction * self_in_tstrnimmror, sqInt ignored, sqInt _srcReg, sqInt _immediate, sqInt _rot);
static sqInt NoDbgRegParms isBranch(BytecodeDescriptor * self_in_isBranch);
static AbstractInstruction * NoDbgRegParms gAddCqR(sqInt _quickConstant, sqInt _reg);
static AbstractInstruction * NoDbgRegParms gAndCqR(sqInt _quickConstant, sqInt _reg);
static AbstractInstruction * NoDbgRegParms gAndCqRR(sqInt _quickConstant, sqInt _srcReg, sqInt _destReg);
extern sqInt abortOffset(void);
extern void addCogMethodsToHeapMap(void);
static sqInt NoDbgRegParms addressIsInCurrentCompilation(sqInt _address);
static sqInt NoDbgRegParms addressIsInFixups(BytecodeFixup *_address);
static sqInt NoDbgRegParms addressIsInInstructions(AbstractInstruction *_address);
static sqInt NoDbgRegParms addressOfEndOfCaseinCPIC(sqInt _n, CogMethod *_cPIC);
static sqInt NoDbgRegParms alignUptoRoutineBoundary(sqInt _anAddress);
static sqInt allMachineCodeObjectReferencesValid(void);
static sqInt allMethodsHaveCorrectHeader(void);
static AbstractInstruction * NoDbgRegParms annotateAbsolutePCRef(AbstractInstruction *_abstractInstruction);
static AbstractInstruction * NoDbgRegParms annotateBytecode(AbstractInstruction *_abstractInstruction);
static AbstractInstruction * NoDbgRegParms annotateobjRef(AbstractInstruction *_abstractInstruction, sqInt _anOop);
static void NoDbgRegParms assertSaneJumpTarget(AbstractInstruction *_jumpTarget);
extern sqInt bytecodePCForstartBcpcin(sqInt _mcpc, sqInt _startbcpc, CogMethod *_cogMethod);
static AbstractInstruction * NoDbgRegParms CallFullRTregistersToBeSavedMask(sqInt _callTarget, sqInt _registersToBeSaved);
static AbstractInstruction * NoDbgRegParms CallRTregistersToBeSavedMask(sqInt _callTarget, sqInt _registersToBeSaved);
static AbstractInstruction * NoDbgRegParms gCall(sqInt _callTarget);
static AbstractInstruction * NoDbgRegParms gCmpCqR(sqInt _quickConstant, sqInt _reg);
static sqInt NoDbgRegParms cacheTagIsSelectorForAnnotationandEntryPoint(sqInt _annotation, sqInt _entryPoint);
extern void callCogCodePopReceiver(void);
extern void callCogCodePopReceiverAndClassRegs(void);
extern sqInt ceCPICMissreceiver(CogMethod *_cPIC, sqInt _receiver);
extern void ceFree(void *_pointer);
extern void* ceMalloc(size_t _size);
extern sqInt ceSICMiss(sqInt _receiver);
extern void checkAssertsEnabledInCogit(void);
static sqInt checkCFramePointerInUse(void);
static sqInt NoDbgRegParms checkIfValidOopRefAndTargetpccogMethod(sqInt _annotation, char *_mcpc, sqInt _cogMethod);
static sqInt NoDbgRegParms checkIfValidOopRefpccogMethod(sqInt _annotation, char *_mcpc, sqInt _cogMethod);
extern sqInt checkIntegrityOfObjectReferencesInCode(sqInt gcModes);
static sqInt NoDbgRegParms checkMaybeObjRefInClosedPIC(sqInt _maybeObject);
static sqInt NoDbgRegParms checkValidObjectReferencesInClosedPIC(CogMethod *_cPIC);
static sqInt NoDbgRegParms NeverInline cleanUpFailingCogCodeConstituents(CogMethod *_cogMethodArg);
static sqInt NoDbgRegParms closedPICRefersToUnmarkedObject(CogMethod *_cPIC);
extern char * codeEntryFor(char *_address);
extern char * codeEntryNameFor(char *_address);
extern sqInt cogCodeBase(void);
extern sqInt cogCodeConstituents(sqInt _withDetails);
static sqInt NoDbgRegParms cogExtendPICCaseNMethodtagisMNUCase(CogMethod *_cPIC, sqInt _caseNMethod, sqInt _caseNTag, sqInt _isMNUCase);
extern CogMethod * cogFullBlockMethodnumCopied(sqInt _aMethodObj, sqInt _numCopied);
extern void cogitPostGCAction(sqInt _gcMode);
extern sqInt cogMethodDoesntLookKosher(CogMethod *_cogMethod);
extern void cogMethodIfPossibleselector(sqInt _methodOrSelectorIndex, sqInt _selector);
extern CogMethod * cogMNUPICSelectorreceivermethodOperandnumArgs(sqInt _selector, sqInt _rcvr, sqInt _methodOperand, sqInt _numArgs);
static CogMethod * NoDbgRegParms cogOpenPICSelectornumArgs(sqInt _selector, sqInt _numArgs);
static CogMethod * NoDbgRegParms cogPICSelectornumArgsCase0MethodCase1MethodtagisMNUCase(sqInt _selector, sqInt _numArgs, CogMethod *_case0CogMethod, sqInt _case1MethodOrNil, sqInt _case1Tag, sqInt _isMNUCase);
extern CogMethod * cogselector(sqInt _aMethodObj, sqInt _aSelectorOop);
static sqInt NoDbgRegParms collectCogConstituentForAnnotationMcpcBcpcMethod(BytecodeDescriptor *_descriptor, sqInt _isBackwardBranchAndAnnotation, char *_mcpc, sqInt _bcpc, void *cogMethodArg);
static sqInt NoDbgRegParms collectCogMethodConstituent(CogMethod *_cogMethod);
extern void compactCogCompiledCode(void);
static void compactPICsWithFreedTargets(void);
static AbstractInstruction * compileAbort(void);
static void NoDbgRegParms compileCallFornumArgsargargargargresultRegregsToSave(void *_aRoutine, sqInt _numArgs, sqInt _regOrConst0, sqInt _regOrConst1, sqInt _regOrConst2, sqInt _regOrConst3, sqInt _resultRegOrNone, sqInt _regMask);
static AbstractInstruction * compileCPICEntry(void);
static sqInt NoDbgRegParms compileEntireFullBlockMethod(sqInt _numCopied);
static void compileEntry(void);
static sqInt compileFullBlockEntry(void);
static sqInt compileMethodBody(void);
static sqInt NoDbgRegParms compilePICAbort(sqInt _numArgs);
static void NoDbgRegParms compileTrampolineFornumArgsargargargargregsToSavepushLinkRegresultReg(void *_aRoutine, sqInt _numArgs, sqInt _regOrConst0, sqInt _regOrConst1, sqInt _regOrConst2, sqInt _regOrConst3, sqInt _regMask, sqInt _pushLinkReg, sqInt _resultRegOrNone);
static void computeEntryOffsets(void);
static void computeFullBlockEntryOffsets(void);
static void computeMaximumSizes(void);
static sqInt NoDbgRegParms configureCPICCase0Case1MethodtagisMNUCase(CogMethod *_aPIC, CogMethod *_case0CogMethod, sqInt _case1Method, sqInt _case1Tag, sqInt _isMNUCase);
static sqInt NoDbgRegParms configureMNUCPICmethodOperand(CogMethod *_aPIC, sqInt _methodOop);
static sqInt NoDbgRegParms cPICCompactAndIsNowEmpty(CogMethod *_cPIC);
static sqInt NoDbgRegParms cPICHasForwardedClass(CogMethod *_cPIC);
static sqInt NoDbgRegParms cPICHasFreedTargets(CogMethod *_cPIC);
static sqInt cPICPrototypeCaseOffset(void);
static sqInt NoDbgRegParms cPICHasTarget(CogMethod *_cPIC, CogMethod *_targetMethod);
static sqInt NoDbgRegParms createCPICData(CogMethod *_cPIC);
static AbstractInstruction * NoDbgRegParms gDivRRQuoRem(sqInt _rDivisor, sqInt _rDividend, sqInt _rQuotient, sqInt _rRemainder);
extern sqInt defaultCogCodeSize(void);
static sqInt NoDbgRegParms deltaToSkipPrimAndErrorStoreInheader(sqInt _aMethodObj, sqInt _aMethodHeader);
static sqInt NoDbgRegParms endPCOf(sqInt _aMethod);
static void NoDbgRegParms ensureAndClearAbstractOpcodes(sqInt _numberOfAbstractOpcodes);
extern void enterCogCodePopReceiver(void);
static sqInt NoDbgRegParms expectedClosedPICPrototype(CogMethod *_cPIC);
static sqInt extABytecode(void);
static sqInt extBBytecode(void);
static AbstractInstruction * NoDbgRegParms gFaddSRvRvRv(sqInt _aSize, sqInt _vectorRegister1, sqInt _vectorRegister2, sqInt _vectorRegisterSum);
static AbstractInstruction * NoDbgRegParms gFsubSRvRvRv(sqInt _aSize, sqInt _minuendVectorRegister, sqInt _subtrahendVectorRegister, sqInt _vectorRegisterSum);
static CogMethod * NoDbgRegParms fillInMethodHeadersizeselector(CogMethod *method, sqInt _size, sqInt _selector);
static sqInt NoDbgRegParms findBackwardBranchIsBackwardBranchMcpcBcpcMatchingBcpc(BytecodeDescriptor *descriptor, sqInt _isBackwardBranchAndAnnotation, char *_mcpc, sqInt _bcpc, void *_targetBcpc);
static sqInt NoDbgRegParms findIsBackwardBranchMcpcBcpcMatchingMcpc(BytecodeDescriptor *_descriptor, sqInt _isBackwardBranchAndAnnotation, char *_mcpc, sqInt _bcpc, void *_targetMcpc);
static sqInt firstPrototypeMethodOop(void);
static BytecodeFixup * NoDbgRegParms fixupAt(sqInt _fixupPC);
extern void followForwardedLiteralsIn(CogMethod *_cogMethod);
extern void followForwardedMethods(void);
static sqInt NoDbgRegParms followMaybeObjRefInClosedPICAt(sqInt _mcpc);
static sqInt NoDbgRegParms followMethodReferencesInClosedPIC(CogMethod *_cPIC);
extern void freeUnmarkedMachineCode(void);
static AbstractInstruction * NoDbgRegParms genCallMustBeBooleanFor(sqInt _boolean);
static sqInt genCheckForInterruptsTrampoline(void);
static AbstractInstruction * NoDbgRegParms genConditionalBranchoperand(sqInt _opcode, sqInt _operandOne);
static void (*genEnilopmartForandandforCallcalled(sqInt _regArg1, sqInt _regArg2OrNone, sqInt _regArg3OrNone, sqInt _forCall, char *_trampolineName))(void) ;
static void NoDbgRegParms genEnilopmartReturn(sqInt _forCall);
static void NoDbgRegParms generateCaptureCStackPointers(sqInt _captureFramePointer);
static void generateClosedPICPrototype(void);
static CogMethod * generateCogFullBlock(void);
static CogMethod * NoDbgRegParms generateCogMethod(sqInt _selector);
static sqInt NoDbgRegParms generateMapAtstart(usqInt _addressOrNull, usqInt _startAddress);
static void generateOpenPICPrototype(void);
static void generateReturnToInterpreterPCTrampoline(void);
static void generateRunTimeTrampolines(void);
static void generateStackPointerCapture(void);
static void generateTrampolines(void);
static BytecodeDescriptor * NoDbgRegParms generatorForPC(sqInt _pc);
static void genGetLeafCallStackPointer(void);
static sqInt NoDbgRegParms genInnerPICAbortTrampoline(char *_name);
static sqInt genLoadCStackPointersForPrimCall(void);
static void NoDbgRegParms genLoadInlineCacheWithSelector(sqInt _selectorIndex);
static sqInt genNonLocalReturnTrampoline(void);
static sqInt NoDbgRegParms genReturnTrampolineForcalledarg(void *_aRoutine, char *_aString, sqInt _regOrConst0);
static sqInt NoDbgRegParms genSmalltalkToCStackSwitch(sqInt _pushLinkReg);
static sqInt NoDbgRegParms genTrampolineForcalled(void *_aRoutine, char *_aString);
static sqInt NoDbgRegParms genTrampolineForcalledarg(void *_aRoutine, char *_aString, sqInt _regOrConst0);
static sqInt NoDbgRegParms genTrampolineForcalledargargargresult(void *_aRoutine, char *_aString, sqInt _regOrConst0, sqInt _regOrConst1, sqInt _regOrConst2, sqInt _resultReg);
static sqInt NoDbgRegParms genTrampolineForcalledargargregsToSave(void *_aRoutine, char *_aString, sqInt _regOrConst0, sqInt _regOrConst1, sqInt _regMask);
static sqInt NoDbgRegParms genTrampolineForcalledargargresult(void *_aRoutine, char *_aString, sqInt _regOrConst0, sqInt _regOrConst1, sqInt _resultReg);
static sqInt NoDbgRegParms genTrampolineForcalledargregsToSave(void *_aRoutine, char *_aString, sqInt _regOrConst0, sqInt _regMask);
static sqInt NoDbgRegParms genTrampolineForcalledargresult(void *_aRoutine, char *_aString, sqInt _regOrConst0, sqInt _resultReg);
static sqInt NoDbgRegParms genTrampolineForcallednumArgsargargargargregsToSavepushLinkRegresultRegappendOpcodes(void *_aRoutine, char *_trampolineName, sqInt _numArgs, sqInt _regOrConst0, sqInt _regOrConst1, sqInt _regOrConst2, sqInt _regOrConst3, sqInt _regMask, sqInt _pushLinkReg, sqInt _resultRegOrNone, sqInt _appendBoolean);
static sqInt NoDbgRegParms genTrampolineForcalledregsToSave(void *_aRoutine, char *_aString, sqInt _regMask);
static AbstractInstruction * NoDbgRegParms gen(sqInt _opcode);
static AbstractInstruction * NoDbgRegParms genoperand(sqInt _opcode, sqInt _operand);
static AbstractInstruction * NoDbgRegParms genoperandoperand(sqInt _opcode, sqInt _operandOne, sqInt _operandTwo);
static AbstractInstruction * NoDbgRegParms genoperandoperandoperand(sqInt _opcode, sqInt _operandOne, sqInt _operandTwo, sqInt _operandThree);
static AbstractInstruction * NoDbgRegParms genoperandoperandoperandoperand(sqInt _opcode, sqInt _operandOne, sqInt _operandTwo, sqInt _operandThree, sqInt _operandFour);
extern sqInt getBlockCompilationCount(void);
extern sqInt getBlockCompilationMSecs(void);
static sqInt NoDbgRegParms getLiteral(sqInt _litIndex);
extern sqInt getMethodCompilationCount(void);
extern sqInt getMethodCompilationMSecs(void);
static sqInt getOpcodeIndex(void);
static sqInt NoDbgRegParms incrementUsageOfTargetIfLinkedSendmcpcignored(sqInt _annotation, char *_mcpc, sqInt superfluity);
static sqInt NoDbgRegParms indexForSelectorinat(sqInt _selector, CogMethod *_cogMethod, sqInt _mcpc);
static sqInt initialClosedPICUsageCount(void);
static void initializeBackend(void);
extern void initializeCodeZoneFromupTo(sqInt _startAddress, sqInt _endAddress);
static void NoDbgRegParms initializePICatDeltanumArgs(CogMethod *_aPIC, sqInt _addrDelta, sqInt _numArgs);
static sqInt initialMethodUsageCount(void);
static sqInt initialOpenPICUsageCount(void);
static sqInt NoDbgRegParms inlineCacheValueForSelectorinat(sqInt _selector, CogMethod *_aCogMethod, sqInt _mcpc);
static sqInt NoDbgRegParms inverseBranchFor(sqInt _opcode);
static sqInt isMNUPicAbortDiscriminatorValue(void);
static sqInt NoDbgRegParms isPCMappedAnnotation(sqInt _annotation);
extern sqInt isPCWithinMethodZone(void *_address);
extern sqInt isSendReturnPC(sqInt _retpc);
static AbstractInstruction * NoDbgRegParms gJumpFPEqual(void *_jumpTarget);
static AbstractInstruction * NoDbgRegParms gJumpFPGreaterOrEqual(void *_jumpTarget);
static AbstractInstruction * NoDbgRegParms gJumpFPGreater(void *_jumpTarget);
static AbstractInstruction * NoDbgRegParms gJumpFPNotEqual(void *_jumpTarget);
static AbstractInstruction * NoDbgRegParms gLd1SVrRMw(sqInt _aSize, sqInt _aVectorRegister, sqInt _aMemoryRegister, sqInt _anOffset);
static AbstractInstruction * NoDbgRegParms gLogicalShiftLeftCqR(sqInt _quickConstant, sqInt _reg);
static AbstractInstruction * lastOpcode(void);
extern void linkSendAtintooffsetreceiver(sqInt _callSiteReturnAddress, CogMethod *sendingMethod, CogMethod *_targetMethod, sqInt _theEntryOffset, sqInt _receiver);
static BytecodeDescriptor * loadBytesAndGetDescriptor(void);
static void NoDbgRegParms loadSubsequentBytesForDescriptorat(BytecodeDescriptor *_descriptor, sqInt _pc);
static AbstractInstruction * NoDbgRegParms gMoveAwR(sqInt _address, sqInt _reg);
static AbstractInstruction * NoDbgRegParms gMoveCwR(sqInt _wordConstant, sqInt _reg);
static sqInt NoDbgRegParms mapForperformUntilarg(CogMethod *_cogMethod, sqInt (*_functionSymbol)(sqInt annotation, char *mcpc, sqInt arg), sqInt _arg);
static sqInt NoDbgRegParms mapObjectReferencesInClosedPIC(CogMethod *_cPIC);
static void mapObjectReferencesInGeneratedRuntime(void);
static void mapObjectReferencesInMachineCodeForBecome(void);
static void mapObjectReferencesInMachineCodeForFullGC(void);
static void mapObjectReferencesInMachineCodeForYoungGC(void);
extern void mapObjectReferencesInMachineCode(sqInt _gcMode);
extern void markAndTraceMachineCodeOfMarkedMethods(void);
static void markAndTraceObjectReferencesInGeneratedRuntime(void);
static sqInt NoDbgRegParms markAndTraceOrFreeCogMethodfirstVisit(CogMethod *_cogMethod, sqInt _firstVisit);
static sqInt NoDbgRegParms markAndTraceOrFreePICTargetin(sqInt _entryPoint, CogMethod *_cPIC);
static sqInt NoDbgRegParms markLiteralsAndUnlinkIfUnmarkedSendpcmethod(sqInt _annotation, char *_mcpc, sqInt _cogMethod);
static sqInt NoDbgRegParms markLiteralspcmethod(sqInt _annotation, char *_mcpc, sqInt _cogMethod);
extern void markMethodAndReferents(CogMethod *_aCogMethod);
extern usqInt maxCogMethodAddress(void);
static sqInt NoDbgRegParms maybeFreeCogMethodDoesntLookKosher(CogMethod *_cogMethod);
static void NoDbgRegParms maybeMarkCountersIn(CogMethod *cogMethod);
static sqInt mclassIsSmallInteger(void);
extern usqInt mcPCForBackwardBranchstartBcpcin(sqInt _bcpc, sqInt _startbcpc, CogMethod *_cogMethod);
static sqInt NoDbgRegParms methodhasSameCodeAscheckPenultimate(sqInt _methodA, sqInt _methodB, sqInt _comparePenultimateLiteral);
extern sqInt minCogMethodAddress(void);
extern sqInt mnuOffset(void);
static sqInt NoDbgRegParms needsFrameIfImmutability(sqInt stackDelta);
static sqInt NoDbgRegParms needsFrameIfInBlock(sqInt stackDelta);
static sqInt NoDbgRegParms needsFrameNever(sqInt stackDelta);
static sqInt NoDbgRegParms noAssertMethodClassAssociationOf(sqInt _methodPointer);
static sqInt noCogMethodsMaximallyMarked(void);
static sqInt NoDbgRegParms noTargetsFreeInClosedPIC(CogMethod *_cPIC);
static sqInt NoDbgRegParms outputInstructionsAt(sqInt _startAddress);
static sqInt NoDbgRegParms outputInstructionsForGeneratedRuntimeAt(sqInt _startAddress);
static AbstractInstruction * NoDbgRegParms gPushCw(sqInt _wordConstant);
extern sqInt patchToMegamorphicICFornumArgsreceiver(sqInt _selector, sqInt _numArgs, sqInt _receiver);
static usqIntptr_t NoDbgRegParms picAbortAddress(CogMethod *_cPIC);
static sqInt picInterpretAbortOffset(void);
extern void printCogMethodFor(void *_address);
extern void printTrampolineTable(void);
extern void printWhereIs(void *_address);
static sqInt processorHasDivQuoRemAndMClassIsSmallInteger(void);
static sqInt processorHasDoublePrecisionFloatingPointSupport(void);
static sqInt processorHasMultiplyAndMClassIsSmallInteger(void);
static void NoDbgRegParms recordGeneratedRunTimeaddress(char *_aString, sqInt _address);
extern sqInt recordPrimTraceFunc(void);
static void recordRunTimeObjectReferences(void);
static sqInt NoDbgRegParms registerMaskFor(sqInt _reg);
static void NoDbgRegParms relocateCallsAndSelfReferencesInMethod(CogMethod *_cogMethod);
static void NoDbgRegParms relocateCallsInClosedPIC(CogMethod *_cPIC);
static sqInt NoDbgRegParms relocateIfCallOrMethodReferencemcpcdelta(sqInt _annotation, char *_mcpc, sqInt _refDelta);
static sqInt NoDbgRegParms remapIfObjectRefpchasYoung(sqInt _annotation, char *_mcpc, sqInt _hasYoungPtr);
static sqInt NoDbgRegParms remapMaybeObjRefInClosedPICAt(sqInt _mcpc);
static void NoDbgRegParms rewritePICCaseAttagobjReftarget(sqInt _followingAddress, sqInt _newTag, sqInt _newObjRef, sqInt _newTarget);
static AbstractInstruction * NoDbgRegParms gSt1SVrRMw(sqInt _aSize, sqInt _aVectorRegister, sqInt _aMemoryRegister, sqInt _anOffset);
static AbstractInstruction * NoDbgRegParms gSubCwR(sqInt _wordConstant, sqInt _reg);
extern void safeFreeMethod(sqInt _cogMethod);
extern void setHeaderOopOfto(CogMethod *_cogMethod, sqInt _aMethodHeaderOop);
extern void setPostCompileHook(void (*_aFunction)(CogMethod *));
extern void setSelectorOfto(CogMethod *_cogMethod, sqInt _aSelectorOop);
extern int sizeOfTrampoline(char *_address);
static sqInt subsequentPrototypeMethodOop(void);
extern sqInt traceLinkedSendOffset(void);
static sqInt NoDbgRegParms trampolineArgConstant(sqInt _booleanOrInteger);
static char * NoDbgRegParms trampolineNamenumArgs(char *_routinePrefix, sqInt _numArgs);
static char * NoDbgRegParms trampolineNamenumArgslimit(char *_routinePrefix, int _numArgs, sqInt _argsLimit);
static char * NoDbgRegParms trampolineNamenumRegArgs(char *_routinePrefix, sqInt _numArgs);
static sqInt unknownBytecode(void);
extern void unlinkAllSends(void);
static sqInt NoDbgRegParms unlinkIfFreeOrLinkedSendpcof(sqInt _annotation, char *_mcpc, sqInt _theSelector);
static sqInt NoDbgRegParms unlinkIfInvalidClassSendpcignored(sqInt _annotation, char *_mcpc, sqInt superfluity);
static sqInt NoDbgRegParms unlinkIfLinkedSendToFreepcignored(sqInt _annotation, char *_mcpc, sqInt superfluity);
static sqInt NoDbgRegParms unlinkIfLinkedSendpcignored(sqInt _annotation, char *_mcpc, sqInt superfluity);
static sqInt NoDbgRegParms unlinkIfLinkedSendpcto(sqInt _annotation, char *_mcpc, sqInt _theCogMethod);
extern void unlinkSendsLinkedForInvalidClasses(void);
extern void unlinkSendsOfisMNUSelector(sqInt _selector, sqInt _isMNUSelector);
extern void unlinkSendsToFree(void);
extern void unlinkSendsToandFreeIf(sqInt _targetMethodObject, sqInt _freeIfTrue);
static AbstractInstruction * NoDbgRegParms gXorCwR(sqInt _wordConstant, sqInt _reg);
static void zeroOpcodeIndex(void);
static void zeroOpcodeIndexForNewOpcodes(void);
static sqInt NoDbgRegParms counters(CogMethod * self_in_counters);
extern void addAllToYoungReferrers(void);
static void NoDbgRegParms addToMegamorphicICList(CogMethod *_anOpenPIC);
static void NoDbgRegParms addToYoungReferrers(CogMethod *_cogMethod);
static usqInt NoDbgRegParms allocate(sqInt _numBytes);
static void clearCogCompiledCode(void);
static void compactCompiledCode(void);
static void NoDbgRegParms ensureInYoungReferrers(CogMethod *_cogMethod);
static void followForwardedLiteralsInOpenPICList(void);
extern void freeMethod(CogMethod *_cogMethod);
static void freeOlderMethodsForCompaction(void);
static sqInt kosherYoungReferrers(void);
static void NoDbgRegParms manageFromto(sqInt _theStartAddress, sqInt _theLimitAddress);
extern CogMethod * methodFor(void *_address);
extern sqInt methodsCompiledToMachineCodeInto(sqInt _arrayObj);
extern sqInt numMethods(void);
extern sqInt numMethodsOfType(sqInt _cogMethodType);
static sqInt NoDbgRegParms occurrencesInYoungReferrers(CogMethod *_cogMethod);
static CogMethod * NoDbgRegParms openPICWithSelector(sqInt _aSelector);
static void planCompaction(void);
extern void printCogMethods(void);
extern void printCogMethodsOfType(sqInt _cmType);
extern void printCogMethodsWithMethod(sqInt _methodOop);
extern void printCogMethodsWithPrimitive(sqInt _primIdx);
extern void printCogMethodsWithSelector(sqInt _selectorOop);
extern void printCogYoungReferrers(void);
extern sqInt printOpenPICList(void);
static sqInt pruneYoungReferrers(void);
static sqInt relocateAndPruneYoungReferrers(void);
static sqInt relocateMethodsPreCompaction(void);
static sqInt NoDbgRegParms removeFromOpenPICList(CogMethod *_anOpenPIC);
static void voidOpenPICList(void);
static void voidYoungReferrersPostTenureAll(void);
extern char * whereIsMaybeCodeThing(sqInt _anOop);
static sqInt NoDbgRegParms checkValidObjectReference(sqInt _anOop);
static AbstractInstruction * NoDbgRegParms genCmpClassFloatCompactIndexR(sqInt _reg);
static sqInt NoDbgRegParms genDoubleArithmeticpreOpCheck(sqInt _arithmeticOperator, AbstractInstruction *(*_preOpCheckOrNil)(int rcvrReg, int argReg));
static sqInt NoDbgRegParms genDoubleComparisoninvert(AbstractInstruction * NoDbgRegParms (*_jumpOpcodeGenerator)(void *), sqInt _invertComparison);
static sqInt NoDbgRegParms genGetMethodHeaderOfintoscratch(sqInt _methodReg, sqInt _headerReg, sqInt _scratchReg);
static sqInt NoDbgRegParms genLoadSlotsourceRegdestReg(sqInt _index, sqInt _sourceReg, sqInt _destReg);
static sqInt genNonImplementedPrimitive(void);
static sqInt genPrimitiveAdd(void);
static sqInt genPrimitiveAsFloat(void);
static sqInt genPrimitiveBitAnd(void);
static sqInt genPrimitiveBitOr(void);
static sqInt genPrimitiveBitShift(void);
static sqInt genPrimitiveBitXor(void);
static sqInt genPrimitiveClass(void);
static sqInt genPrimitiveDiv(void);
static sqInt genPrimitiveDivide(void);
static sqInt genPrimitiveEqual(void);
static sqInt genPrimitiveFloatAdd(void);
static sqInt genPrimitiveFloatDivide(void);
static sqInt genPrimitiveFloatEqual(void);
static sqInt genPrimitiveFloatGreaterOrEqual(void);
static sqInt genPrimitiveFloatGreaterThan(void);
static sqInt genPrimitiveFloatLessOrEqual(void);
static sqInt genPrimitiveFloatLessThan(void);
static sqInt genPrimitiveFloatMultiply(void);
static sqInt genPrimitiveFloatNotEqual(void);
static sqInt genPrimitiveFloatSquareRoot(void);
static sqInt genPrimitiveFloatSubtract(void);
static sqInt genPrimitiveGreaterOrEqual(void);
static sqInt genPrimitiveGreaterThan(void);
static sqInt genPrimitiveIdentical(void);
static sqInt genPrimitiveLessOrEqual(void);
static sqInt genPrimitiveLessThan(void);
static sqInt genPrimitiveMod(void);
static sqInt genPrimitiveMultiply(void);
static sqInt genPrimitiveNewMethod(void);
static sqInt genPrimitiveNotEqual(void);
static sqInt genPrimitiveNotIdentical(void);
static sqInt genPrimitiveQuo(void);
static sqInt genPrimitiveSubtract(void);
static sqInt NoDbgRegParms genSmallIntegerComparison(sqInt _jumpOpcode);
static sqInt NoDbgRegParms genSmallIntegerComparisonorDoubleComparisoninvert(sqInt _jumpOpcode, AbstractInstruction * NoDbgRegParms (*_jumpFPOpcodeGenerator)(void *), sqInt _invertComparison);
static sqInt NoDbgRegParms isUnannotatableConstant(CogSimStackEntry *_simStackEntry);
static sqInt NoDbgRegParms maybeGenConvertIfSmallFloatInscratchRegintoandJumpTo(sqInt oopReg, sqInt scratch, sqInt dpReg, AbstractInstruction *targetInst);
static sqInt NoDbgRegParms classForInlineCacheTag(sqInt _inlineCacheTag);
static sqInt NoDbgRegParms genAddSmallIntegerTagsTo(sqInt _aRegister);
static sqInt NoDbgRegParms genClearAndSetSmallIntegerTagsIn(sqInt _scratchReg);
static void NoDbgRegParms genConvertCharacterToSmallIntegerInReg(sqInt _reg);
static sqInt NoDbgRegParms genConvertIntegerToSmallIntegerInReg(sqInt _reg);
static void NoDbgRegParms genConvertSmallIntegerToCharacterInReg(sqInt _reg);
static sqInt NoDbgRegParms genConvertSmallIntegerToIntegerInReg(sqInt _reg);
static sqInt NoDbgRegParms genGetHashFieldNonImmOfasSmallIntegerInto(sqInt _instReg, sqInt _destReg);
static sqInt NoDbgRegParms genGetHashFieldNonImmOfinto(sqInt _instReg, sqInt _destReg);
static AbstractInstruction * NoDbgRegParms genGetInlineCacheClassTagFrominto(sqInt _sourceReg, sqInt _destReg);
static sqInt NoDbgRegParms genGetNumBytesOfinto(sqInt _srcReg, sqInt _destReg);
static sqInt NoDbgRegParms genGetOverflowSlotsOfinto(sqInt _srcReg, sqInt _destReg);
static AbstractInstruction * NoDbgRegParms genJumpIsSmallIntegerValuescratch(sqInt _aRegister, sqInt _scratchReg);
static AbstractInstruction * NoDbgRegParms genJumpNotSmallIntegerInScratchReg(sqInt _aRegister);
static AbstractInstruction * NoDbgRegParms genJumpNotSmallIntegerValuescratch(sqInt _aRegister, sqInt _scratchReg);
static AbstractInstruction * NoDbgRegParms genJumpNotSmallInteger(sqInt _aRegister);
static AbstractInstruction * NoDbgRegParms genJumpSmallInteger(sqInt _aRegister);
static sqInt genPrimitiveAtPut(void);
static sqInt NoDbgRegParms genPrimitiveAtPutSigned(sqInt _signedVersion);
static sqInt NoDbgRegParms genPrimitiveAtSigned(sqInt _signedVersion);
static sqInt genPrimitiveIdentityHash(void);
static sqInt genPrimitiveImmediateAsInteger(void);
static sqInt genPrimitiveNew(void);
static sqInt genPrimitiveNewWithArg(void);
static sqInt genPrimitiveShallowCopy(void);
static sqInt genPrimitiveStringAt(void);
static sqInt genPrimitiveStringAtPut(void);
static sqInt NoDbgRegParms genRemoveSmallIntegerTagsInScratchReg(sqInt _scratchReg);
static sqInt NoDbgRegParms getLiteralCountOfplusOneinBytesintoscratch(sqInt _methodReg, sqInt _plusOne, sqInt _inBytes, sqInt _litCountReg, sqInt _scratchReg);
static sqInt NoDbgRegParms inlineCacheTagForInstance(sqInt _oop);
static AbstractInstruction * NoDbgRegParms jumpNotSmallIntegerUnsignedValueInRegister(sqInt _reg);
static sqInt NoDbgRegParms markAndTraceCacheTagLiteralinatpc(sqInt _literal, CogMethod *_cogMethodOrNil, usqInt _address);
static sqInt numSmallIntegerBits(void);
static sqInt NoDbgRegParms validInlineCacheTag(usqInt _classIndexOrTagPattern);
static sqInt NoDbgRegParms cacheTagIsMarked(sqInt cacheTag);
static void callStoreCheckTrampoline(void);
static sqInt NoDbgRegParms checkValidDerivedObjectReference(sqInt _bodyAddress);
static sqInt NoDbgRegParms checkValidOopReference(sqInt _anOop);
static sqInt NoDbgRegParms couldBeDerivedObject(sqInt _bodyAddress);
static sqInt NoDbgRegParms couldBeObject(sqInt _literal);
static sqInt NoDbgRegParms genActiveContextTrampolineLargeinBlockcalled(sqInt _isLarge, sqInt _isInBlock, char *_aString);
static AbstractInstruction * NoDbgRegParms genAllocFloatValueintoscratchRegscratchReg(sqInt _dpreg, sqInt _resultReg, sqInt _scratch1, sqInt scratch2);
static AbstractInstruction * NoDbgRegParms genCheckRememberedBitOfscratch(sqInt _objReg, sqInt _scratchReg);
static sqInt NoDbgRegParms genConvertCharacterToCodeInReg(sqInt _reg);
static sqInt NoDbgRegParms genConvertIntegerToCharacterInReg(sqInt _reg);
static sqInt NoDbgRegParms genCreateFullClosurenumArgsnumCopiedignoreContextcontextNumArgslargeinBlock(sqInt _compiledBlock, sqInt _numArgs, sqInt _numCopied, sqInt _ignoreContext, sqInt _contextNumArgs, sqInt _contextIsLarge, sqInt _contextIsBlock);
static sqInt NoDbgRegParms genEnsureObjInRegNotForwardedscratchReg(sqInt _reg, sqInt _scratch);
static sqInt NoDbgRegParms genEnsureOopInRegNotForwardedscratchReg(sqInt _reg, sqInt _scratch);
static sqInt NoDbgRegParms genEnsureOopInRegNotForwardedscratchRegifForwarderifNotForwarder(sqInt _reg, sqInt _scratch, sqInt _fwdJumpTarget, sqInt _nonFwdJumpTargetOrZero);
static sqInt NoDbgRegParms genEnsureOopInRegNotForwardedscratchRegupdatingSlotin(sqInt _reg, sqInt _scratch, sqInt _index, sqInt _objReg);
static void generateObjectRepresentationTrampolines(void);
static sqInt NoDbgRegParms genGetActiveContextLargeinBlock(sqInt _isLarge, sqInt _isInBlock);
static sqInt NoDbgRegParms genGetActiveContextNumArgslargeinBlock(sqInt _numArgs, sqInt _isLargeContext, sqInt _isInBlock);
static sqInt NoDbgRegParms genGetBitsofFormatByteOfinto(sqInt _mask, sqInt _sourceReg, sqInt _destReg);
static sqInt NoDbgRegParms genGetClassIndexOfNonImminto(sqInt _sourceReg, sqInt _destReg);
static sqInt NoDbgRegParms genGetClassObjectOfClassIndexintoscratchReg(sqInt _classIndexRegister, sqInt _destReg, sqInt _scratchReg);
static sqInt NoDbgRegParms genGetClassObjectOfintoscratchReginstRegIsReceiver(sqInt _instReg, sqInt _destReg, sqInt _scratchReg, sqInt _instRegIsReceiver);
static AbstractInstruction * NoDbgRegParms genGetClassTagOfintoscratchReg(sqInt _instReg, sqInt _destReg, sqInt scratchReg);
static sqInt NoDbgRegParms genGetCompactClassIndexNonImmOfinto(sqInt _instReg, sqInt _destReg);
static sqInt NoDbgRegParms genGetDoubleValueOfinto(sqInt _srcReg, sqInt _destFPReg);
static sqInt NoDbgRegParms genGetFormatOfinto(sqInt _srcReg, sqInt _destReg);
static sqInt NoDbgRegParms genGetFormatOfintoleastSignificantHalfOfBaseHeaderIntoScratch(sqInt _sourceReg, sqInt _destReg, sqInt _scratchRegOrNone);
static sqInt NoDbgRegParms genGetNumSlotsOfinto(sqInt _srcReg, sqInt _destReg);
static sqInt NoDbgRegParms genGetRawSlotSizeOfNonImminto(sqInt _sourceReg, sqInt _destReg);
static AbstractInstruction * NoDbgRegParms genJumpImmediate(sqInt _aRegister);
#if IMMUTABILITY
static AbstractInstruction * NoDbgRegParms genJumpImmutablescratchReg(sqInt _sourceReg, sqInt _scratchReg);
#endif /* IMMUTABILITY */
#if IMMUTABILITY
static AbstractInstruction * NoDbgRegParms genJumpMutablescratchReg(sqInt _sourceReg, sqInt _scratchReg);
#endif /* IMMUTABILITY */
static AbstractInstruction * NoDbgRegParms genJumpNotCharacterInScratchReg(sqInt _reg);
static sqInt NoDbgRegParms genNewArrayOfSizeinitialized(sqInt _size, sqInt _initialized);
static sqInt genPrimitiveAsCharacter(void);
static sqInt genPrimitiveAt(void);
static sqInt NoDbgRegParms genPrimitiveIdenticalOrNotIf(sqInt _orNot);
static sqInt genPrimitiveIntegerAt(void);
static sqInt genPrimitiveIntegerAtPut(void);
static sqInt genPrimitiveObjectAt(void);
static sqInt genPrimitiveSize(void);
static sqInt genPrimitiveStringCompareWith(void);
static sqInt genPrimitiveStringReplace(void);
static sqInt NoDbgRegParms genSetSmallIntegerTagsIn(sqInt _scratchReg);
static sqInt genStoreCheckContextReceiverTrampoline(void);
static sqInt NoDbgRegParms genStoreCheckReceiverRegvalueRegscratchReginFrame(sqInt _destReg, sqInt _valueReg, sqInt _scratchReg, sqInt _inFrame);
static sqInt NoDbgRegParms genStoreSourceRegslotIndexdestRegscratchReginFrameneedsStoreCheck(sqInt _sourceReg, sqInt _index, sqInt _destReg, sqInt _scratchReg, sqInt _inFrame, sqInt _needsStoreCheck);
static sqInt NoDbgRegParms genStoreSourceRegslotIndexintoNewObjectInDestReg(sqInt _sourceReg, sqInt _index, sqInt _destReg);
#if IMMUTABILITY
static sqInt NoDbgRegParms genStoreTrampolineCalledinstVarIndex(char *_trampolineName, sqInt _instVarIndex);
#endif /* IMMUTABILITY */
#if IMMUTABILITY
static sqInt NoDbgRegParms genStoreWithImmutabilityAndStoreCheckSourceRegslotIndexdestRegscratchRegneedRestoreRcvr(sqInt _sourceReg, sqInt _index, sqInt _destReg, sqInt _scratchReg, sqInt _needRestoreRcvr);
#endif /* IMMUTABILITY */
#if IMMUTABILITY
static sqInt NoDbgRegParms genStoreWithImmutabilityButNoStoreCheckSourceRegslotIndexdestRegscratchRegneedRestoreRcvr(sqInt _sourceReg, sqInt _index, sqInt _destReg, sqInt _scratchReg, sqInt _needRestoreRcvr);
#endif /* IMMUTABILITY */
#if IMMUTABILITY
static sqInt NoDbgRegParms genStoreWithImmutabilityCheckSourceRegslotIndexdestRegscratchRegneedsStoreCheckneedRestoreRcvr(sqInt _sourceReg, sqInt _index, sqInt _destReg, sqInt _scratchReg, sqInt _needsStoreCheck, sqInt _needRestoreRcvr);
#endif /* IMMUTABILITY */
static AbstractInstruction * NoDbgRegParms jumpNotCharacterUnsignedValueInRegister(sqInt _reg);
static sqInt NoDbgRegParms markAndTraceLiteralinatpc(sqInt _literal, CogMethod *_cogMethodOrNil, usqInt _address);
static void NoDbgRegParms markAndTraceLiteralinat(sqInt _literal, CogMethod *_cogMethod, sqInt *_address);
static void NoDbgRegParms markAndTraceUpdatedLiteralin(sqInt _objOop, CogMethod *_cogMethodOrNil);
static sqInt NoDbgRegParms maybeCompileRetryOnPrimitiveFail(sqInt _primIndex);
static sqInt NoDbgRegParms maybeShiftClassTagRegisterForMethodCacheProbe(sqInt _classTagReg);
static sqInt numCharacterBits(void);
extern sqInt numRegArgs(void);
static sqInt NoDbgRegParms remapObject(sqInt _objOop);
static sqInt NoDbgRegParms remapOop(sqInt _objOop);
static sqInt NoDbgRegParms shouldAnnotateObjectReference(sqInt _anOop);
static sqInt NoDbgRegParms slotOffsetOfInstVarIndex(sqInt _index);
static sqInt NoDbgRegParms valueOfAssociation(sqInt _associationOop);
static sqInt NoDbgRegParms cmpC32RTempByteSize(AbstractInstruction * self_in_cmpC32RTempByteSize);
static AbstractInstruction * NoDbgRegParms concretizeLiteral(AbstractInstruction * self_in_concretizeLiteral);
static usqInt NoDbgRegParms concretizeMovePatcheableC32R(AbstractInstruction * self_in_concretizeMovePatcheableC32R);
static usqInt NoDbgRegParms inlineCacheTagAt(AbstractInstruction * self_in_inlineCacheTagAt, sqInt _callSiteReturnAddress);
static sqInt NoDbgRegParms isPCDependent(AbstractInstruction * self_in_isPCDependent);
static sqInt NoDbgRegParms literalBeforeFollowingAddress(AbstractInstruction * self_in_literalBeforeFollowingAddress, sqInt _followingAddress);
static sqInt NoDbgRegParms literalLoadInstructionBytes(AbstractInstruction * self_in_literalLoadInstructionBytes);
static sqInt NoDbgRegParms loadLiteralByteSize(AbstractInstruction * self_in_loadLiteralByteSize);
static sqInt NoDbgRegParms outOfLineLiteralOpcodeLimit(AbstractInstruction * self_in_outOfLineLiteralOpcodeLimit);
static sqInt NoDbgRegParms pcRelativeAddressAt(AbstractInstruction * self_in_pcRelativeAddressAt, sqInt _instrAddress);
static AbstractInstruction * NoDbgRegParms relocateMethodReferenceBeforeAddressby(AbstractInstruction * self_in_relocateMethodReferenceBeforeAddressby, sqInt _pc, sqInt _delta);
static sqInt NoDbgRegParms rewriteFullTransferAttargetexpectedInstruction(AbstractInstruction * self_in_rewriteFullTransferAttargetexpectedInstruction, usqInt _callSiteReturnAddress, usqInt _callTargetAddress, sqInt _expectedInstruction);
static sqInt NoDbgRegParms rewriteInlineCacheAttagtarget(AbstractInstruction * self_in_rewriteInlineCacheAttagtarget, usqInt _callSiteReturnAddress, sqInt _cacheTag, usqInt _callTargetAddress);
static usqInt NoDbgRegParms sizePCDependentInstructionAt(AbstractInstruction * self_in_sizePCDependentInstructionAt, sqInt _eventualAbsoluteAddress);
static AbstractInstruction * NoDbgRegParms storeLiteralbeforeFollowingAddress(AbstractInstruction * self_in_storeLiteralbeforeFollowingAddress, sqInt _literal, sqInt _followingAddress);
static sqInt NoDbgRegParms usesOutOfLineLiteral(AbstractInstruction * self_in_usesOutOfLineLiteral);
static SimStackEntry * NoDbgRegParms copyToReg(SimStackEntry * self_in_copyToReg, sqInt _reg);
static SimStackEntry * NoDbgRegParms ensureSpilledAtfrom(SimStackEntry * self_in_ensureSpilledAtfrom, sqInt _baseOffset, sqInt _baseRegister);
static sqInt NoDbgRegParms isSameEntryAs(SimStackEntry * self_in_isSameEntryAs, CogSimStackEntry *_ssEntry);
static SimStackEntry * NoDbgRegParms moveToVectorReg(SimStackEntry * self_in_moveToVectorReg, sqInt _reg);
static sqInt NoDbgRegParms registerMask(SimStackEntry * self_in_registerMask);
static sqInt NoDbgRegParms registerMaskOrNone(SimStackEntry * self_in_registerMaskOrNone);
static signed char NoDbgRegParms registerOrNone(SimStackEntry * self_in_registerOrNone);
static sqInt NoDbgRegParms isMergeFixup(BytecodeFixup * self_in_isMergeFixup);
static AbstractInstruction * NoDbgRegParms allocateLiteral(sqInt _aLiteral);
static AbstractInstruction * NoDbgRegParms checkLiteralforInstruction(sqInt _literal, AbstractInstruction *_anInstruction);
static AbstractInstruction * NoDbgRegParms checkQuickConstantforInstruction(sqInt _literal, AbstractInstruction *_anInstruction);
static sqInt NoDbgRegParms dumpLiterals(sqInt _generateBranchAround);
static sqInt endSizeOffset(void);
static sqInt NoDbgRegParms literalInstructionInRange(AbstractInstruction *_litInst);
static AbstractInstruction * NoDbgRegParms locateLiteral(sqInt _aLiteral);
static sqInt NoDbgRegParms mustDumpLiterals(sqInt _currentOpcodeIndex);
static void compileGetErrorCode(void);
static sqInt compileInterpreterPrimitive(void);
static sqInt NoDbgRegParms compileInterpreterPrimitiveMayCallBackflags(void (*_primitiveRoutine)(void), sqInt _flags);
static sqInt NoDbgRegParms compileInterpreterPrimitiveflags(void (*_primitiveRoutine)(void), sqInt _flags);
static sqInt NoDbgRegParms compileMachineCodeInterpreterPrimitive(void (*_primitiveRoutine)(void));
static AbstractInstruction * NoDbgRegParms compileOpenPICMethodCacheProbeForwithShiftbaseRegOrNone(sqInt _selector, sqInt _shift, sqInt _baseRegOrNone);
static void NoDbgRegParms compileOpenPICnumArgs(sqInt _selector, sqInt _numArgs);
static AbstractInstruction * NoDbgRegParms compilePerformMethodCacheProbeForwithShiftbaseRegOrNone(sqInt _selectorReg, sqInt _shift, sqInt _baseRegOrNone);
static sqInt compilePrimitive(void);
static sqInt NoDbgRegParms frameOffsetOfTemporary(sqInt _index);
static AbstractInstruction * NoDbgRegParms genDoubleFailIfZeroArgRcvrarg(int rcvrReg, int _argReg);
static sqInt genExtJumpIfFalse(void);
static sqInt genExtJumpIfTrue(void);
static sqInt genExtNopBytecode(void);
static sqInt genExtPushCharacterBytecode(void);
static sqInt genExtPushIntegerBytecode(void);
static sqInt genExtPushLiteralBytecode(void);
static sqInt genExtPushLiteralVariableBytecode(void);
static sqInt genExtPushPseudoVariable(void);
static sqInt genExtPushReceiverVariableBytecode(void);
static sqInt genExtSendBytecode(void);
static sqInt genExtSendSuperBytecode(void);
static sqInt genExtStoreAndPopLiteralVariableBytecode(void);
static sqInt genExtStoreAndPopReceiverVariableBytecode(void);
static sqInt genExtStoreLiteralVariableBytecode(void);
static sqInt genExtStoreReceiverVariableBytecode(void);
static sqInt genExtUnconditionalJump(void);
static sqInt genFastPrimFail(void);
static void NoDbgRegParms genFastPrimTraceUsingand(sqInt _r1, sqInt _r2);
static sqInt genLongPushTemporaryVariableBytecode(void);
static sqInt genLongStoreAndPopTemporaryVariableBytecode(void);
static sqInt genLongStoreTemporaryVariableBytecode(void);
static sqInt NoDbgRegParms genLookupForPerformNumArgs(sqInt _numArgs);
static AbstractInstruction * NoDbgRegParms genMoveConstantR(sqInt _constant, sqInt _reg);
static sqInt NoDbgRegParms genMustBeBooleanTrampolineForcalled(sqInt _boolean, char *_trampolineName);
static sqInt genPrimitiveHashMultiply(void);
static void NoDbgRegParms genPrimReturnEnterCogCodeEnilopmart(sqInt _profiling);
static sqInt genPushConstantFalseBytecode(void);
static sqInt genPushConstantNilBytecode(void);
static sqInt genPushConstantOneBytecode(void);
static sqInt genPushConstantTrueBytecode(void);
static sqInt genPushConstantZeroBytecode(void);
static sqInt genPushLiteralConstantBytecode(void);
static sqInt genPushLiteralVariable16CasesBytecode(void);
static sqInt genPushQuickIntegerConstantBytecode(void);
static sqInt genPushReceiverVariableBytecode(void);
static sqInt genPushTemporaryVariableBytecode(void);
extern sqInt genQuickReturnConst(void);
extern sqInt genQuickReturnInstVar(void);
extern sqInt genQuickReturnSelf(void);
static sqInt genReturnFalse(void);
static sqInt genReturnNil(void);
static sqInt genReturnNilFromBlock(void);
static sqInt genReturnTrue(void);
static sqInt genSendLiteralSelector0ArgsBytecode(void);
static sqInt genSendLiteralSelector1ArgBytecode(void);
static sqInt genSendLiteralSelector2ArgsBytecode(void);
static sqInt genShortJumpIfFalse(void);
static sqInt genShortJumpIfTrue(void);
static sqInt genShortUnconditionalJump(void);
static sqInt genSpecialSelectorEqualsEquals(void);
static sqInt genSpecialSelectorNotEqualsEquals(void);
static sqInt genSpecialSelectorSend(void);
static sqInt genStoreAndPopReceiverVariableBytecode(void);
static sqInt genStoreAndPopRemoteTempLongBytecode(void);
static sqInt genStoreAndPopTemporaryVariableBytecode(void);
static sqInt genStoreRemoteTempLongBytecode(void);
static sqInt genUnconditionalTrapBytecode(void);
extern sqInt mapPCDataForinto(CogMethod *_cogMethod, sqInt _arrayObj);
static void maybeCompileAllocFillerCheck(void);
static sqInt numSpecialSelectors(void);
static sqInt NoDbgRegParms pcDataForAnnotationMcpcBcpcMethod(BytecodeDescriptor *_descriptor, sqInt _isBackwardBranchAndAnnotation, char *_mcpc, sqInt _bcpc, void *_cogMethodArg);
static PrimitiveDescriptor * primitiveDescriptor(void);
static sqInt NoDbgRegParms primitivePropertyFlagsprimitiveDescriptor(sqInt _primIndex, CogPrimitiveDescriptor *_aPrimitiveDescriptor);
extern void recordCallOffsetIn(CogMethod *_cogMethod);
extern void rewritePrimInvocationInto(CogMethod *_cogMethod, void (*_primFunctionPointer)(void));
static sqInt NoDbgRegParms seemsToBeInstantiating(sqInt _format);
static sqInt NoDbgRegParms v3ShortForwardBranchDistance(BytecodeDescriptor *descriptor, sqInt _pc, sqInt _nExts, sqInt _aMethodObj);
static sqInt NoDbgRegParms v4LongForwardBranchDistance(BytecodeDescriptor *descriptor, sqInt _pc, sqInt _nExts, sqInt _aMethodObj);
static sqInt NoDbgRegParms v4LongBranchDistance(BytecodeDescriptor *descriptor, sqInt _pc, sqInt _nExts, sqInt _aMethodObj);
extern void voidCogCompiledCode(void);
static void NoDbgRegParms adjustArgumentsForPerform(sqInt _numArgs);
static signed char NoDbgRegParms allocateRegForStackEntryAtnotConflictingWith(sqInt _index, sqInt _regMask);
static sqInt NoDbgRegParms allocateRegNotConflictingWith(sqInt _regMask);
static signed char NoDbgRegParms allocateVectorRegForStackEntryAtnotConflictingWith(sqInt _index, sqInt _regMask);
static sqInt NoDbgRegParms allocateVectorRegNotConflictingWith(sqInt _regMask);
static sqInt NoDbgRegParms anyReferencesToRegisterinTopNItems(sqInt _reg, sqInt _n);
extern void callCogCodePopReceiverArg0Regs(void);
extern void callCogCodePopReceiverArg1Arg0Regs(void);
static sqInt NoDbgRegParms compileAbstractInstructionsFromthrough(sqInt _start, sqInt _end);
static CogMethod * NoDbgRegParms compileCogFullBlockMethod(sqInt _numCopied);
static CogMethod * NoDbgRegParms compileCogMethod(sqInt _selector);
static sqInt compileEntireMethod(void);
static void compileFrameBuild(void);
static void NoDbgRegParms compileFullBlockFramelessEntry(sqInt numCopied);
static void NoDbgRegParms compileFullBlockMethodFrameBuild(sqInt _numCopied);
#if IMMUTABILITY
static void compileTwoPathFrameBuild(void);
#endif /* IMMUTABILITY */
static void compileTwoPathFramelessInit(void);
static sqInt NoDbgRegParms cPICMissTrampolineFor(sqInt _numArgs);
static sqInt duplicateTopBytecode(void);
static BytecodeFixup * NoDbgRegParms ensureFixupAt(sqInt _targetPC);
static BytecodeFixup * NoDbgRegParms ensureFixupAtwithStackPointer(sqInt _targetPC, sqInt _aStackPointer);
static BytecodeFixup * NoDbgRegParms ensureNonMergeFixupAt(sqInt _targetPC);
static void ensureReceiverResultRegContainsSelf(void);
static void NoDbgRegParms evaluateat(BytecodeDescriptor *_descriptor, sqInt _pc);
static sqInt NoDbgRegParms eventualTargetOf(sqInt _targetBytecodePC);
static sqInt NoDbgRegParms freeAnyRegNotConflictingWith(sqInt _regMask);
static sqInt genAddFloat32Vector(void);
static sqInt genAddFloat64Vector(void);
static sqInt genBlockReturn(void);
static sqInt genCallMappedInlinedPrimitive(void);
static void (*genCallPICEnilopmartNumArgs(sqInt _numArgs))(void) ;
static sqInt genCallPrimitiveBytecode(void);
static sqInt genExternalizePointersForPrimitiveCall(void);
static sqInt genExtPushFullClosureBytecode(void);
static void generateEnilopmarts(void);
static sqInt NoDbgRegParms generateInstructionsAt(sqInt _eventualAbsoluteAddress);
static void generateMissAbortTrampolines(void);
static void generateSendTrampolines(void);
static sqInt NoDbgRegParms generateSuperSendTrampolineTonamednumArgsin(sqInt _function, sqInt _name, sqInt _numArgs, sqInt *_table);
static void generateTracingTrampolines(void);
static sqInt NoDbgRegParms genForwardersInlinedIdenticalOrNotIf(sqInt _orNot);
static sqInt NoDbgRegParms genIdenticalNoBranchArgIsConstantrcvrIsConstantargRegrcvrRegorNotIf(sqInt _argIsConstant, sqInt _rcvrIsConstant, sqInt _argReg, sqInt _rcvrRegOrNone, sqInt _orNot);
static sqInt NoDbgRegParms genInlinedIdenticalOrNotIf(sqInt _orNot);
static sqInt NoDbgRegParms genJumpBackTo(sqInt _targetBytecodePC);
static sqInt NoDbgRegParms genJumpIfto(sqInt _boolean, sqInt _targetBytecodePC);
static sqInt NoDbgRegParms genJumpTo(sqInt _targetBytecodePC);
static sqInt NoDbgRegParms genMappedInlinePrimitive(sqInt _primIndex);
static sqInt NoDbgRegParms genMarshalledSendnumArgssendTable(sqInt _selectorIndex, sqInt _numArgs, sqInt *_sendTable);
static sqInt NoDbgRegParms genMethodAbortTrampolineFor(sqInt _numArgs);
static sqInt NoDbgRegParms genPICAbortTrampolineFor(sqInt _numArgs);
static sqInt NoDbgRegParms genPICMissTrampolineFor(sqInt _numArgs);
static sqInt genPopStackBytecode(void);
static sqInt genPrimitiveFullClosureValue(void);
static sqInt genPrimitivePerform(void);
static sqInt genPushActiveContextBytecode(void);
static sqInt genPushFloat32ArrayToRegister(void);
static sqInt genPushFloat64ArrayToRegister(void);
static sqInt NoDbgRegParms genPushLiteralIndex(sqInt _literalIndex);
static sqInt NoDbgRegParms genPushLiteralVariable(sqInt _literalIndex);
static sqInt NoDbgRegParms genPushLiteral(sqInt _literal);
static sqInt NoDbgRegParms genPushMaybeContextReceiverVariable(sqInt _slotIndex);
static sqInt genPushNewArrayBytecode(void);
static sqInt genPushReceiverBytecode(void);
static sqInt NoDbgRegParms genPushReceiverVariable(sqInt _index);
static void genPushRegisterArgs(void);
static sqInt genPushRemoteTempLongBytecode(void);
static sqInt NoDbgRegParms genPushTemporaryVariable(sqInt _index);
static sqInt genReturnReceiver(void);
static sqInt genReturnTopFromBlock(void);
static sqInt genReturnTopFromMethod(void);
static sqInt NoDbgRegParms genSendDirectedSupernumArgs(sqInt _selectorIndex, sqInt _numArgs);
static sqInt NoDbgRegParms genSendSupernumArgs(sqInt _selectorIndex, sqInt _numArgs);
static sqInt NoDbgRegParms genSendTrampolineFornumArgscalledargargargarg(void *_aRoutine, sqInt _numArgs, char *_aString, sqInt _regOrConst0, sqInt _regOrConst1, sqInt _regOrConst2, sqInt _regOrConst3);
static sqInt NoDbgRegParms genSendnumArgs(sqInt _selectorIndex, sqInt _numArgs);
static sqInt genSpecialSelectorArithmetic(void);
static sqInt genSpecialSelectorClass(void);
static sqInt genSpecialSelectorComparison(void);
static sqInt genStaticallyResolvedSpecialSelectorComparison(void);
static sqInt genStoreFloat32RegisterIntoArray(void);
static sqInt genStoreFloat64RegisterIntoArray(void);
static sqInt NoDbgRegParms genStorePopLiteralVariableneedsStoreCheckneedsImmutabilityCheck(sqInt _popBoolean, sqInt _litVarIndex, sqInt _needsStoreCheck, sqInt _needsImmCheck);
static sqInt NoDbgRegParms genStorePopMaybeContextReceiverVariableneedsStoreCheckneedsImmutabilityCheck(sqInt _popBoolean, sqInt _slotIndex, sqInt _needsStoreCheck, sqInt _needsImmCheck);
static sqInt NoDbgRegParms genStorePopReceiverVariableneedsStoreCheckneedsImmutabilityCheck(sqInt _popBoolean, sqInt _slotIndex, sqInt _needsStoreCheck, sqInt _needsImmCheck);
static sqInt NoDbgRegParms genStorePopRemoteTempAtneedsStoreCheck(sqInt _popBoolean, sqInt _slotIndex, sqInt _remoteTempIndex, sqInt _needsStoreCheck);
static sqInt NoDbgRegParms genStorePopTemporaryVariable(sqInt _popBoolean, sqInt _tempIndex);
static sqInt genSubFloat64Vector(void);
static sqInt genUpArrowReturn(void);
static void NoDbgRegParms initSimStackForFramefulMethod(sqInt _startpc);
static void NoDbgRegParms initSimStackForFramelessBlock(sqInt _startpc);
static void NoDbgRegParms initSimStackForFramelessMethod(sqInt _startpc);
static sqInt liveRegisters(void);
static sqInt liveVectorRegisters(void);
static sqInt NoDbgRegParms mapDeadDescriptorIfNeeded(BytecodeDescriptor *_descriptor);
static void NoDbgRegParms marshallSendArguments(sqInt _numArgs);
static sqInt NoDbgRegParms mergeWithFixupIfRequired(BytecodeFixup *_fixup);
static sqInt NoDbgRegParms methodAbortTrampolineFor(sqInt _numArgs);
static sqInt methodFoundInvalidPostScan(void);
static sqInt NoDbgRegParms needsFrameIfMod16GENumArgs(sqInt stackDelta);
static sqInt NoDbgRegParms needsFrameIfStackGreaterThanOne(sqInt _stackDelta);
static sqInt NoDbgRegParms numberOfSpillsInTopNItems(sqInt _n);
static sqInt NoDbgRegParms picAbortTrampolineFor(sqInt _numArgs);
static void NoDbgRegParms populatewithPICInfoForfirstCacheTag(sqInt _tuple, CogMethod *_cPIC, sqInt _firstCacheTag);
static sqInt prevInstIsPCAnnotated(void);
static sqInt NoDbgRegParms profilingDataForCounterat(sqInt counter, sqInt bcpc);
static sqInt NoDbgRegParms profilingDataForSendTomethodClassIfSuperatbcpc(CogMethod *_cogCodeSendTarget, sqInt _methodClassOrNil, char *_sendMcpc, sqInt _sendBcpc);
static sqInt NoDbgRegParms profilingDataForAnnotationMcpcBcpcMethod(BytecodeDescriptor *_descriptor, sqInt _isBackwardBranchAndAnnotation, char *_mcpc, sqInt _bcpc, void *_cogMethodArg);
extern sqInt profilingDataForinto(CogMethod *_cogMethod, sqInt _arrayObj);
static sqInt receiverIsInReceiverResultReg(void);
static sqInt scanMethod(void);
static sqInt NoDbgRegParms sistaV1PushNilSizenumInitialNils(sqInt aMethodObj, sqInt _numInitialNils);
static sqInt NoDbgRegParms sistaV1NumPushNils(BytecodeDescriptor *_descriptor, sqInt pc, sqInt nExts, sqInt aMethodObj);
static void NoDbgRegParms ssAllocateRequiredRegMaskupThrough(sqInt _requiredRegsMask, sqInt _stackPtr);
static void ssFlushStack(void);
static void NoDbgRegParms ssFlushStackExceptTop(sqInt _n);
static void NoDbgRegParms ssFlushUpThroughReceiverVariable(sqInt _slotIndex);
static void NoDbgRegParms ssFlushUpThroughTemporaryVariable(sqInt _tempIndex);
static void NoDbgRegParms ssPopTopToReg(sqInt _aRegister);
static void NoDbgRegParms ssPopTopToVectorReg(sqInt _aVectorRegister);
static void NoDbgRegParms ssPop(sqInt _n);
static void NoDbgRegParms ssPopandCopyReg(sqInt _popBoolean, sqInt _reg);
static void NoDbgRegParms ssPoppopSpilled(sqInt _n, sqInt _popSpilled);
static sqInt NoDbgRegParms ssPushAnnotatedConstant(sqInt _literal);
static sqInt NoDbgRegParms ssPushBaseoffset(sqInt _reg, sqInt _offset);
static sqInt NoDbgRegParms ssPushConstant(sqInt _literal);
static sqInt NoDbgRegParms ssPushDesc(SimStackEntry _simStackEntry);
static sqInt NoDbgRegParms ssPushRegister(sqInt _reg);
static sqInt NoDbgRegParms ssPushVectorRegister(sqInt _reg);
static void NoDbgRegParms ssPush(sqInt _n);
static SimStackEntry ssSelfDescriptor(void);
static void NoDbgRegParms ssStoreAndReplacePoptoReg(sqInt _popBoolean, sqInt _reg);
static sqInt NoDbgRegParms ssStorePoptoPreferredReg(sqInt _popBoolean, sqInt _preferredReg);
static CogSimStackEntry * ssTop(void);
static CogSimStackEntry * NoDbgRegParms ssValue(sqInt _n);
static sqInt NoDbgRegParms stackEntryIsBoolean(CogSimStackEntry *_simStackEntry);
static sqInt tempsValidAndVolatileEntriesSpilled(void);
static sqInt NoDbgRegParms tryCollapseTempVectorInitializationOfSize(sqInt _slots);
static sqInt violatesEnsureSpilledSpillAssert(void);
static void voidReceiverResultRegContainsSelf(void);


/*** Variables ***/
static AbstractInstruction * abstractOpcodes;
static AbstractInstruction aMethodLabel;
static AbstractInstruction * const backEnd = &aMethodLabel;
static usqInt baseAddress;
static sqInt byte0;
static sqInt byte1;
static sqInt byte2;
static sqInt byte3;
static sqInt bytecodePC;
void * CFramePointer;
void * CStackPointer;
sqInt cbEntryOffset;
sqInt cbNoSwitchEntryOffset;
sqInt ceBaseFrameReturnTrampoline;
void (*ceCall0ArgsPIC)(void);
void (*ceCall1ArgsPIC)(void);
void (*ceCall2ArgsPIC)(void);
void (*ceCallCogCodePopReceiverAndClassRegs)(void);
void (*ceCallCogCodePopReceiverArg0Regs)(void);
void (*ceCallCogCodePopReceiverArg1Arg0Regs)(void);
void (*ceCallCogCodePopReceiverReg)(void);
sqInt ceCannotResumeTrampoline;
void (*ceCaptureCStackPointers)(void);
sqInt ceCheckForInterruptTrampoline;
void (*ceEnterCogCodePopReceiverReg)(void);
static sqInt ceFetchContextInstVarTrampoline;
usqIntptr_t (*ceGetFP)(void);
usqIntptr_t (*ceGetSP)(void);
static sqInt ceLargeActiveContextInFullBlockTrampoline;
static sqInt ceLargeActiveContextInMethodTrampoline;
static sqInt ceNewHashTrampoline;
static sqInt ceNonLocalReturnTrampoline;
static sqInt cePrimReturnEnterCogCode;
static sqInt cePrimReturnEnterCogCodeProfiling;
static sqInt ceReapAndResetErrorCodeTrampoline;
sqInt ceReturnToInterpreterTrampoline;
static sqInt ceScheduleScavengeTrampoline;
static sqInt ceSendMustBeBooleanAddFalseTrampoline;
static sqInt ceSendMustBeBooleanAddTrueTrampoline;
static sqInt ceSmallActiveContextInFullBlockTrampoline;
static sqInt ceSmallActiveContextInMethodTrampoline;
static sqInt ceStoreCheckContextReceiverTrampoline;
static sqInt ceStoreCheckTrampoline;
static sqInt ceStoreContextInstVarTrampoline;
#if IMMUTABILITY
sqInt ceStoreTrampolines[5];
#endif
static sqInt ceTraceLinkedSendTrampoline;
static sqInt ceTraceStoreTrampoline;
usqIntptr_t (*ceTryLockVMOwner)(void);
void (*ceUnlockVMOwner)(void);
sqInt cFramePointerInUse;
static sqInt closedPICSize;
sqInt cmEntryOffset;
sqInt cmNoCheckEntryOffset;
static sqInt codeBase;
static sqInt codeModified;
static sqInt cogConstituentIndex;
static sqInt compactionInProgress;
static sqInt compilationTrace;
static sqInt counterIndex;
static sqInt cPICCaseSize;
static sqInt cPICEndOfCodeOffset;
static sqInt cPICEndSize;
static sqInt cPICPrototype;
static sqInt deadCode;
usqIntptr_t debugPrimCallStackOffset;
static sqInt directedSendUsesBinding;
static sqInt directedSuperBindingSendTrampolines[NumSendTrampolines];
static sqInt directedSuperSendTrampolines[NumSendTrampolines];
static AbstractInstruction * endCPICCase0;
static sqInt endPC;
static AbstractInstruction * entry;
static CogMethod * enumeratingCogMethod;
static sqInt extA;
static sqInt extB;
static sqInt externalPrimCallOffsets[MaxNumArgs + 1];
static sqInt externalPrimJumpOffsets[MaxNumArgs + 1];
static sqInt externalSetPrimOffsets[MaxNumArgs + 1];
static sqInt firstCPICCaseOffset;
static sqInt firstOpcodeIndex;
static sqInt firstSend;
static BytecodeFixup * fixups;
static AbstractInstruction * fullBlockEntry;
static AbstractInstruction * fullBlockNoContextSwitchEntry;
static BytecodeDescriptor generatorTable[256] = {
	{ genPushReceiverVariableBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0 },
	{ genPushReceiverVariableBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0 },
	{ genPushReceiverVariableBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0 },
	{ genPushReceiverVariableBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0 },
	{ genPushReceiverVariableBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0 },
	{ genPushReceiverVariableBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0 },
	{ genPushReceiverVariableBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0 },
	{ genPushReceiverVariableBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0 },
	{ genPushReceiverVariableBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0 },
	{ genPushReceiverVariableBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0 },
	{ genPushReceiverVariableBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0 },
	{ genPushReceiverVariableBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0 },
	{ genPushReceiverVariableBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0 },
	{ genPushReceiverVariableBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0 },
	{ genPushReceiverVariableBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0 },
	{ genPushReceiverVariableBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0 },
	{ genPushLiteralVariable16CasesBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralVariable16CasesBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralVariable16CasesBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralVariable16CasesBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralVariable16CasesBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralVariable16CasesBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralVariable16CasesBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralVariable16CasesBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralVariable16CasesBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralVariable16CasesBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralVariable16CasesBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralVariable16CasesBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralVariable16CasesBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralVariable16CasesBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralVariable16CasesBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralVariable16CasesBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushLiteralConstantBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushTemporaryVariableBytecode, 0, needsFrameIfMod16GENumArgs, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushTemporaryVariableBytecode, 0, needsFrameIfMod16GENumArgs, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushTemporaryVariableBytecode, 0, needsFrameIfMod16GENumArgs, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushTemporaryVariableBytecode, 0, needsFrameIfMod16GENumArgs, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushTemporaryVariableBytecode, 0, needsFrameIfMod16GENumArgs, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushTemporaryVariableBytecode, 0, needsFrameIfMod16GENumArgs, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushTemporaryVariableBytecode, 0, needsFrameIfMod16GENumArgs, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushTemporaryVariableBytecode, 0, needsFrameIfMod16GENumArgs, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushTemporaryVariableBytecode, 0, needsFrameIfMod16GENumArgs, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushTemporaryVariableBytecode, 0, needsFrameIfMod16GENumArgs, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushTemporaryVariableBytecode, 0, needsFrameIfMod16GENumArgs, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushTemporaryVariableBytecode, 0, needsFrameIfMod16GENumArgs, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushReceiverBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushConstantTrueBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushConstantFalseBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushConstantNilBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushConstantZeroBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPushConstantOneBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genExtPushPseudoVariable, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ duplicateTopBytecode, 0, needsFrameNever, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ unknownBytecode, 0, 0, 0, Nop, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0 },
	{ unknownBytecode, 0, 0, 0, Nop, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0 },
	{ unknownBytecode, 0, 0, 0, Nop, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0 },
	{ unknownBytecode, 0, 0, 0, Nop, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0 },
	{ genReturnReceiver, 0, needsFrameIfInBlock, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0 },
	{ genReturnTrue, 0, needsFrameIfInBlock, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0 },
	{ genReturnFalse, 0, needsFrameIfInBlock, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0 },
	{ genReturnNil, 0, needsFrameIfInBlock, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0 },
	{ genReturnTopFromMethod, 0, needsFrameIfInBlock, -1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0 },
	{ genReturnNilFromBlock, 0, needsFrameNever, -1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0 },
	{ genReturnTopFromBlock, 0, needsFrameNever, -1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0 },
	{ genExtNopBytecode, 0, needsFrameNever, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorArithmetic, 0, 0, 0, AddRR, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorArithmetic, 0, 0, 0, SubRR, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorComparison, 0, 0, 0, JumpLess, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorComparison, 0, 0, 0, JumpGreater, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorComparison, 0, 0, 0, JumpLessOrEqual, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorComparison, 0, 0, 0, JumpGreaterOrEqual, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorComparison, 0, 0, 0, JumpZero, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorComparison, 0, 0, 0, JumpNonZero, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorSend, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorSend, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorSend, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorSend, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorSend, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorSend, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorArithmetic, 0, 0, 0, AndRR, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorArithmetic, 0, 0, 0, OrRR, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorSend, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorSend, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorSend, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorSend, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorSend, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorSend, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorEqualsEquals, 0, needsFrameNever, -1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorClass, 0, needsFrameIfStackGreaterThanOne, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorNotEqualsEquals, 0, needsFrameNever, -1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorSend, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorSend, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorSend, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorSend, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorSend, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorSend, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSpecialSelectorSend, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector0ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector0ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector0ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector0ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector0ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector0ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector0ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector0ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector0ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector0ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector0ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector0ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector0ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector0ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector0ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector0ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector1ArgBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector1ArgBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector1ArgBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector1ArgBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector1ArgBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector1ArgBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector1ArgBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector1ArgBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector1ArgBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector1ArgBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector1ArgBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector1ArgBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector1ArgBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector1ArgBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector1ArgBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector1ArgBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector2ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector2ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector2ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector2ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector2ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector2ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector2ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector2ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector2ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector2ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector2ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector2ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector2ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector2ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector2ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genSendLiteralSelector2ArgsBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genShortUnconditionalJump, v3ShortForwardBranchDistance, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genShortUnconditionalJump, v3ShortForwardBranchDistance, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genShortUnconditionalJump, v3ShortForwardBranchDistance, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genShortUnconditionalJump, v3ShortForwardBranchDistance, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genShortUnconditionalJump, v3ShortForwardBranchDistance, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genShortUnconditionalJump, v3ShortForwardBranchDistance, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genShortUnconditionalJump, v3ShortForwardBranchDistance, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genShortUnconditionalJump, v3ShortForwardBranchDistance, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genShortJumpIfTrue, v3ShortForwardBranchDistance, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genShortJumpIfTrue, v3ShortForwardBranchDistance, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genShortJumpIfTrue, v3ShortForwardBranchDistance, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genShortJumpIfTrue, v3ShortForwardBranchDistance, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genShortJumpIfTrue, v3ShortForwardBranchDistance, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genShortJumpIfTrue, v3ShortForwardBranchDistance, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genShortJumpIfTrue, v3ShortForwardBranchDistance, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genShortJumpIfTrue, v3ShortForwardBranchDistance, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genShortJumpIfFalse, v3ShortForwardBranchDistance, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0 },
	{ genShortJumpIfFalse, v3ShortForwardBranchDistance, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0 },
	{ genShortJumpIfFalse, v3ShortForwardBranchDistance, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0 },
	{ genShortJumpIfFalse, v3ShortForwardBranchDistance, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0 },
	{ genShortJumpIfFalse, v3ShortForwardBranchDistance, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0 },
	{ genShortJumpIfFalse, v3ShortForwardBranchDistance, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0 },
	{ genShortJumpIfFalse, v3ShortForwardBranchDistance, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0 },
	{ genShortJumpIfFalse, v3ShortForwardBranchDistance, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0 },
	{ genStoreAndPopReceiverVariableBytecode, 0, needsFrameIfImmutability, -1, 0, 1, 0, 0, 0, IMMUTABILITY, 0, 0, 1, 1, 0 },
	{ genStoreAndPopReceiverVariableBytecode, 0, needsFrameIfImmutability, -1, 0, 1, 0, 0, 0, IMMUTABILITY, 0, 0, 1, 1, 0 },
	{ genStoreAndPopReceiverVariableBytecode, 0, needsFrameIfImmutability, -1, 0, 1, 0, 0, 0, IMMUTABILITY, 0, 0, 1, 1, 0 },
	{ genStoreAndPopReceiverVariableBytecode, 0, needsFrameIfImmutability, -1, 0, 1, 0, 0, 0, IMMUTABILITY, 0, 0, 1, 1, 0 },
	{ genStoreAndPopReceiverVariableBytecode, 0, needsFrameIfImmutability, -1, 0, 1, 0, 0, 0, IMMUTABILITY, 0, 0, 1, 1, 0 },
	{ genStoreAndPopReceiverVariableBytecode, 0, needsFrameIfImmutability, -1, 0, 1, 0, 0, 0, IMMUTABILITY, 0, 0, 1, 1, 0 },
	{ genStoreAndPopReceiverVariableBytecode, 0, needsFrameIfImmutability, -1, 0, 1, 0, 0, 0, IMMUTABILITY, 0, 0, 1, 1, 0 },
	{ genStoreAndPopReceiverVariableBytecode, 0, needsFrameIfImmutability, -1, 0, 1, 0, 0, 0, IMMUTABILITY, 0, 0, 1, 1, 0 },
	{ genStoreAndPopTemporaryVariableBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genStoreAndPopTemporaryVariableBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genStoreAndPopTemporaryVariableBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genStoreAndPopTemporaryVariableBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genStoreAndPopTemporaryVariableBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genStoreAndPopTemporaryVariableBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genStoreAndPopTemporaryVariableBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genStoreAndPopTemporaryVariableBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genPopStackBytecode, 0, needsFrameNever, -1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genUnconditionalTrapBytecode, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ unknownBytecode, 0, 0, 0, Nop, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0 },
	{ unknownBytecode, 0, 0, 0, Nop, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0 },
	{ unknownBytecode, 0, 0, 0, Nop, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0 },
	{ unknownBytecode, 0, 0, 0, Nop, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0 },
	{ unknownBytecode, 0, 0, 0, Nop, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0 },
	{ unknownBytecode, 0, 0, 0, Nop, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0 },
	{ extABytecode, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0 },
	{ extBBytecode, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0 },
	{ genExtPushReceiverVariableBytecode, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 1, 0, 0 },
	{ genExtPushLiteralVariableBytecode, 0, needsFrameNever, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genExtPushLiteralBytecode, 0, needsFrameNever, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genLongPushTemporaryVariableBytecode, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ unknownBytecode, 0, 0, 0, Nop, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0 },
	{ genPushNewArrayBytecode, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genExtPushIntegerBytecode, 0, needsFrameNever, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genExtPushCharacterBytecode, 0, needsFrameNever, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genExtSendBytecode, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genExtSendSuperBytecode, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genCallMappedInlinedPrimitive, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genExtUnconditionalJump, v4LongBranchDistance, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genExtJumpIfTrue, v4LongBranchDistance, 0, 0, 0, 2, 1, 0, 0, 1, 0, 0, 0, 0, 0 },
	{ genExtJumpIfFalse, v4LongBranchDistance, 0, 0, 0, 2, 0, 1, 0, 1, 0, 0, 0, 0, 0 },
	{ genExtStoreAndPopReceiverVariableBytecode, 0, 0, 0, 0, 2, 0, 0, 0, IMMUTABILITY, 0, 0, 1, 0, 0 },
	{ genExtStoreAndPopLiteralVariableBytecode, 0, 0, 0, 0, 2, 0, 0, 0, IMMUTABILITY, 0, 0, 0, 0, 0 },
	{ genLongStoreAndPopTemporaryVariableBytecode, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genExtStoreReceiverVariableBytecode, 0, 0, 0, 0, 2, 0, 0, 0, IMMUTABILITY, 0, 0, 1, 0, 0 },
	{ genExtStoreLiteralVariableBytecode, 0, 0, 0, 0, 2, 0, 0, 0, IMMUTABILITY, 0, 0, 0, 0, 0 },
	{ genLongStoreTemporaryVariableBytecode, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ unknownBytecode, 0, 0, 0, Nop, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0 },
	{ unknownBytecode, 0, 0, 0, Nop, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0 },
	{ genCallPrimitiveBytecode, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 1 },
	{ genExtPushFullClosureBytecode, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ unknownBytecode, 0, 0, 0, Nop, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0 },
	{ genPushRemoteTempLongBytecode, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genStoreRemoteTempLongBytecode, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ genStoreAndPopRemoteTempLongBytecode, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
	{ unknownBytecode, 0, 0, 0, Nop, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0 },
	{ unknownBytecode, 0, 0, 0, Nop, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0 }
};
static sqInt hasYoungReferent;
static sqInt inBlock;
static sqInt initialPC;
static sqInt introspectionData;
static sqInt introspectionDataIndex;
static int jitCodeZoneWriteEnabled = 0;
static int labelCounter;
static sqInt lastDumpedLiteralIndex;
static sqInt lastSend;
static usqInt limitAddress;
static AbstractInstruction * literals;
static sqInt literalsSize;
static sqInt maxLitIndex;
static sqInt methodAbortTrampolines[4];
static sqInt methodBytesFreedSinceLastCompaction;
static sqInt methodCount;
static sqInt methodHeader;
static AbstractInstruction * const methodLabel = &aMethodLabel;
static sqInt methodObj;
static sqInt methodOrBlockNumArgs;
static sqInt methodOrBlockNumTemps;
static sqInt methodZoneBase;
static usqIntptr_t minValidCallAddress;
sqInt missOffset;
static usqInt mzFreeStart;
static sqInt needsFrame;
static sqInt nextLiteralIndex;
static AbstractInstruction * noCheckEntry;
static sqInt numAbstractOpcodes;
static sqInt numExtB;
static usqInt objectReferencesInRuntime[NumObjRefsInRuntime+1];
static sqInt opcodeIndex;
static CogMethod *openPICList = 0;
static sqInt openPICSize;
static sqInt ordinarySendTrampolines[NumSendTrampolines];
static sqInt picAbortTrampolines[4];
static AbstractInstruction * picInterpretAbort;
static sqInt picMissTrampolines[4];
static void (*postCompileHook)(CogMethod *);
static AbstractInstruction * primInvokeInstruction;
static sqInt primitiveIndex;
static AbstractInstruction * primSetFunctionLabel;
void (*realCECallCogCodePopReceiverAndClassRegs)(void);
void (*realCECallCogCodePopReceiverArg0Regs)(void);
void (*realCECallCogCodePopReceiverArg1Arg0Regs)(void);
void (*realCECallCogCodePopReceiverReg)(void);
void (*realCEEnterCogCodePopReceiverReg)(void);
static sqInt receiverTags;
static sqInt regArgsHaveBeenPushed;
static sqInt runtimeObjectRefIndex;
static AbstractInstruction * sendMiss;
static sqInt simSpillBase;
static SimStackEntry simStack[70];
static sqInt simStackPtr;
static AbstractInstruction * stackCheckLabel;
static AbstractInstruction * stackOverflowCall;
static sqInt statCompileFullBlockCount;
static sqInt statCompileFullBlockUsecs;
static sqInt statCompileMethodCount;
static sqInt statCompileMethodUsecs;
static sqInt superSendTrampolines[NumSendTrampolines];
static sqInt tempOop;
int traceFlags = 8 /* prim trace log on by default */;
sqInt traceStores;
static char *trampolineAddresses[NumTrampolines*2];
static sqInt trampolineTableIndex;
static sqInt useTwoPaths;
static usqInt youngReferrers;


/*** Macros ***/
#define seeAlso(self, msg) 
#define unalignedLongAtput(byteAddress,aWord) memcpy((void*)byteAddress, &aWord, sizeof(sqInt))
#define abstractInstructionAt(index) (&abstractOpcodes[index])
#define backEnd() backEnd
#define blockAlignment() 8
#define breakOnImplicitReceiver() (traceFlags & 64)
#define ceBaseFrameReturnPC() ceBaseFrameReturnTrampoline
#define ceCannotResumePC() ((usqInt)ceCannotResumeTrampoline)
#define ceCheckFeatures() ceCheckFeaturesFunction()
#define ceReturnToInterpreterPC() ((usqInt)ceReturnToInterpreterTrampoline)
#define cFramePointerAddress() ((usqIntptr_t)&CFramePointer)
#define cogitTryLockVMOwner() (ceTryLockVMOwner() != 0)
#define cogitUnlockVMOwner() ceUnlockVMOwner()
#define compileSendTrace() ((traceFlags & 258) == 258)
#define cr() putchar('\n')
#define cStackPointerAddress() ((usqIntptr_t)&CStackPointer)
#define entryOffset() cmEntryOffset
#define generatorAt(index) (&generatorTable[index])
#define getCFramePointer() CFramePointer
#define getCStackPointer() CStackPointer
#define getIsObjectReference() 2
#define halt() warning("halt")
#define haltmsg(msg) warning("halt: " msg)
#define interpretOffset() missOffset
#define maxCogCodeSize() (16*1024*1024)
#define methodLabel() methodLabel
#define methodZoneBase() methodZoneBase
#define minCallAddress() minValidCallAddress
#define noCheckEntryOffset() cmNoCheckEntryOffset
#define printNum(n) vm_printf("%" PRIdSQINT, (sqInt) (n))
#define printOnTrace() (traceFlags & 1)
#define print(aString) vm_printf("%s", aString)
#define recordBlockTrace() (traceFlags & 4)
#define recordEventTrace() (traceFlags & 16)
#define recordOverflowTrace() (traceFlags & 32)
#define recordPrimTrace() (traceFlags & 8)
#define recordSendTrace() (traceFlags & 2)
#define reportError(n) warning("compilation error")
#define setCFramePointer(theFP) (CFramePointer = (void *)(theFP))
#define setCStackPointer(theSP) (CStackPointer = (void *)(theSP))
#define cPICNumCases stackCheckOffset
#define cPICNumCasesHack hack hack hack i.e. the getter macro does all the work
#define nextOpenPIC methodObject
#define nextOpenPICHack hack hack hack i.e. the getter macro does all the work
#define freeStart() mzFreeStart
#define limitZony() ((CogMethod *)mzFreeStart)
#define methodBytesFreedSinceLastCompaction() methodBytesFreedSinceLastCompaction
#define roundUpLength(numBytes) ((numBytes) + 7 & -8)
#define youngReferrers() youngReferrers
#define maybeConstant(sse) ((sse)->constant)
#define literalInstructionAt(index) (&literals[index])
#define fullBlockEntryOffset() cbEntryOffset
#define fullBlockNoContextSwitchEntryOffset() cbNoSwitchEntryOffset
#define fixupAtIndex(index) (&fixups[index])
#define simSelf() simStack
#define simStackAt(index) (simStack + (index))
#define traceDescriptor(ign) 0
#define traceSpill(ign) 0
#define allocatype(numElements, elementType) alloca((numElements)*sizeof(elementType))
#define contentsOf(value) value
#define oopisGreaterThanOrEqualTo(anOop,otherOop) ((usqInt)(anOop) >= (usqInt)(otherOop))
#define oopisGreaterThanOrEqualToandLessThanOrEqualTo(anOop,baseOop,limitOop) ((usqInt)(anOop) >= (usqInt)(baseOop) && (usqInt)(anOop) <= (usqInt)(limitOop))
#define oopisGreaterThanOrEqualToandLessThan(anOop,baseOop,limitOop) ((usqInt)(anOop) >= (usqInt)(baseOop) && (usqInt)(anOop) < (usqInt)(limitOop))
#define oopisGreaterThan(anOop,otherOop) ((usqInt)(anOop) > (usqInt)(otherOop))
#define oopisGreaterThanandLessThan(anOop,baseOop,limitOop) ((usqInt)(anOop) > (usqInt)(baseOop) && (usqInt)(anOop) < (usqInt)(limitOop))
#define oopisLessThanOrEqualTo(anOop,otherOop) ((usqInt)(anOop) <= (usqInt)(otherOop))
#define oopisLessThan(anOop,otherOop) ((usqInt)(anOop) < (usqInt)(otherOop))

/* CogAbstractInstruction>>#addDependent: */
static AbstractInstruction * NoDbgRegParms
addDependent(AbstractInstruction * self_in_addDependent, AbstractInstruction *_anInstruction)
{
	if ((self_in_addDependent->dependent)) {
		(_anInstruction->dependent = (self_in_addDependent->dependent));
	}
	return ((self_in_addDependent->dependent) = _anInstruction);
}
/*	Answer an unused abstract vector register in the liveRegMask. 
	Subclasses with more registers can override to answer them. */
/* CogAbstractInstruction>>#availableVectorRegisterOrNoneFor: */
static sqInt NoDbgRegParms
availableVectorRegisterOrNoneFor(AbstractInstruction * self_in_availableVectorRegisterOrNoneFor, sqInt _liveRegsMask)
{
	if (!(_liveRegsMask & (1U << VReg0))) {
		return VReg0;
	}
	if (!(_liveRegsMask & (1U << VReg1))) {
		return VReg1;
	}
	if (!(_liveRegsMask & (1U << VReg2))) {
		return VReg2;
	}
	if (!(_liveRegsMask & (1U << VReg3))) {
		return VReg3;
	}
	if (!(_liveRegsMask & (1U << VReg4))) {
		return VReg4;
	}
	if (!(_liveRegsMask & (1U << VReg5))) {
		return VReg5;
	}
	if (!(_liveRegsMask & (1U << VReg6))) {
		return VReg6;
	}
	if (!(_liveRegsMask & (1U << VReg7))) {
		return VReg7;
	}
	return NoReg;
}
/*	For out-of-line literal support, clone a literal from a literal. */
/* CogAbstractInstruction>>#cloneLiteralFrom: */
static AbstractInstruction * NoDbgRegParms
cloneLiteralFrom(AbstractInstruction * self_in_cloneLiteralFrom, AbstractInstruction *_existingLiteral)
{
	assert((((_existingLiteral->opcode)) == Literal) && ((((self_in_cloneLiteralFrom->dependent)) == null) && (((self_in_cloneLiteralFrom->address)) == null)));
	(self_in_cloneLiteralFrom->opcode) = Literal;
	(self_in_cloneLiteralFrom->annotation) = (_existingLiteral->annotation);
	{
		(self_in_cloneLiteralFrom->operands)[0] = (_existingLiteral->operands)[0];
		(self_in_cloneLiteralFrom->operands)[1] = (_existingLiteral->operands)[1];
		(self_in_cloneLiteralFrom->operands)[2] = (_existingLiteral->operands)[2];
	}
	return self_in_cloneLiteralFrom;
}
/* CogAbstractInstruction>>#genCaptureCStackPointers: */
static AbstractInstruction * NoDbgRegParms
genCaptureCStackPointers(AbstractInstruction * self_in_genCaptureCStackPointers, sqInt _captureFramePointer)
{
	sqInt _address;
	sqInt _address2;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	sqInt _quickConstant;
	sqInt _quickConstant2;
	sqInt _reg1;

	{
		{
			/* begin PushR: */
			genoperand(PushR, VarBaseReg);
			/* end PushR: */
			/* begin MoveCq:R: */
			_quickConstant = varBaseAddress();
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction = genoperandoperand(MoveCqR, _quickConstant, VarBaseReg);
			if (usesOutOfLineLiteral(_anInstruction)) {
				(_anInstruction->dependent = locateLiteral(_quickConstant));
			}
			/* end checkQuickConstant:forInstruction: */
			/* end MoveCq:R: */
		}
	}
	if (_captureFramePointer) {
		/* begin MoveR:Aw: */
		_address = cFramePointerAddress();
		/* begin gen:operand:literal: */
		checkLiteralforInstruction(_address, genoperandoperand(MoveRAw, FPReg, _address));
		/* end gen:operand:literal: */
		/* end MoveR:Aw: */
	}
	{
		/* begin MoveR:R: */
		_reg1 = cStackPointer(self_in_genCaptureCStackPointers);
		genoperandoperand(MoveRR, _reg1, TempReg);
		/* end MoveR:R: */
		/* begin AddCq:R: */
		_quickConstant2 = 0 + BytesPerWord;
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction2 = genoperandoperand(AddCqR, _quickConstant2, TempReg);
		if (usesOutOfLineLiteral(_anInstruction2)) {
			(_anInstruction2->dependent = locateLiteral(_quickConstant2));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end AddCq:R: */
		/* begin MoveR:Aw: */
		_address2 = cStackPointerAddress();
		/* begin gen:operand:literal: */
		checkLiteralforInstruction(_address2, genoperandoperand(MoveRAw, TempReg, _address2));
		/* end gen:operand:literal: */
		/* end MoveR:Aw: */
	}
	{
		/* begin PopR: */
		genoperand(PopR, VarBaseReg);
		/* end PopR: */
	}
	genoperand(RetN, 0);
	return self_in_genCaptureCStackPointers;
}
/* CogAbstractInstruction>>#genWriteCResultIntoReg: */
static AbstractInstruction * NoDbgRegParms
genWriteCResultIntoReg(AbstractInstruction * self_in_genWriteCResultIntoReg, sqInt _abstractRegister)
{
	sqInt _cResultReg;

	_cResultReg = R0;
	if (_abstractRegister != _cResultReg) {
		genoperandoperand(MoveRR, _cResultReg, _abstractRegister);
	}
	return self_in_genWriteCResultIntoReg;
}
/*	For out-of-line literal support, initialize a sharable literal. */
/* CogAbstractInstruction>>#initializeSharableLiteral: */
static AbstractInstruction * NoDbgRegParms
initializeSharableLiteral(AbstractInstruction * self_in_initializeSharableLiteral, sqInt _literal)
{
	(self_in_initializeSharableLiteral->opcode) = Literal;
	(self_in_initializeSharableLiteral->annotation) = null;
	(self_in_initializeSharableLiteral->address) = null;
	(self_in_initializeSharableLiteral->dependent) = null;
	{
		(self_in_initializeSharableLiteral->operands)[0] = _literal;
		(self_in_initializeSharableLiteral->operands)[1] = 1;
		(self_in_initializeSharableLiteral->operands)[2] = -1;
	}
	return self_in_initializeSharableLiteral;
}
/*	For out-of-line literal support, initialize an unsharable literal. */
/* CogAbstractInstruction>>#initializeUniqueLiteral: */
static AbstractInstruction * NoDbgRegParms
initializeUniqueLiteral(AbstractInstruction * self_in_initializeUniqueLiteral, sqInt _literal)
{
	(self_in_initializeUniqueLiteral->opcode) = Literal;
	(self_in_initializeUniqueLiteral->annotation) = null;
	(self_in_initializeUniqueLiteral->address) = null;
	(self_in_initializeUniqueLiteral->dependent) = null;
	{
		(self_in_initializeUniqueLiteral->operands)[0] = _literal;
		(self_in_initializeUniqueLiteral->operands)[1] = 0;
		(self_in_initializeUniqueLiteral->operands)[2] = -1;
	}
	return self_in_initializeUniqueLiteral;
}
/* CogAbstractInstruction>>#isAnInstruction: */
static sqInt NoDbgRegParms
isAnInstruction(AbstractInstruction * self_in_isAnInstruction, AbstractInstruction *_addressOrInstruction)
{
	return (addressIsInInstructions(_addressOrInstruction)) || (_addressOrInstruction == (methodLabel()));
}
/* CogAbstractInstruction>>#isJump */
static sqInt NoDbgRegParms
isJump(AbstractInstruction * self_in_isJump)
{
	return (((self_in_isJump->opcode)) >= FirstJump) && (((self_in_isJump->opcode)) <= LastJump);
}
/*	Answer if an address can be accessed using the offset in a MoveMw:r:R: or 
	similar instruction. 
	We assume this is true for 32-bit processors and expect 64-bit processors 
	to answer false 
	for values in the interpreter or the object memory. */
/* CogAbstractInstruction>>#isWithinMwOffsetRange: */
static sqInt NoDbgRegParms
isWithinMwOffsetRange(AbstractInstruction * self_in_isWithinMwOffsetRange, sqInt anAddress)
{
	return 1;
}
/*	Set the target of a jump instruction. These all have the target in the 
	first operand. */
/* CogAbstractInstruction>>#jmpTarget: */
static AbstractInstruction * NoDbgRegParms
jmpTarget(AbstractInstruction * self_in_jmpTarget, AbstractInstruction *_anAbstractInstruction)
{
	(self_in_jmpTarget->operands)[0] = ((usqInt) _anAbstractInstruction );
	return _anAbstractInstruction;
}
/*	Answer the constant loaded by the instruction sequence just before this 
	address:  */
/* CogAbstractInstruction>>#literal32BeforeFollowingAddress: */
static sqInt NoDbgRegParms
literal32BeforeFollowingAddress(AbstractInstruction * self_in_literal32BeforeFollowingAddress, sqInt _followingAddress)
{
	return literalBeforeFollowingAddress(self_in_literal32BeforeFollowingAddress, _followingAddress);
}
/*	We assume here that calls and jumps look the same as regards their 
	displacement. This works on at least x86, ARM and x86_64. Processors on 
	which that isn't the 
	case can override as necessary. */
/* CogAbstractInstruction>>#relocateJumpLongBeforeFollowingAddress:by: */
static AbstractInstruction * NoDbgRegParms
relocateJumpLongBeforeFollowingAddressby(AbstractInstruction * self_in_relocateJumpLongBeforeFollowingAddressby, sqInt _pc, sqInt _delta)
{
	relocateCallBeforeReturnPCby(self_in_relocateJumpLongBeforeFollowingAddressby, _pc, _delta);
	return self_in_relocateJumpLongBeforeFollowingAddressby;
}
/*	Relocate a long conditional jump before pc. Default to relocating a 
	non-conditional jump. 
	Processors that have different formats for conditional and unconditional 
	jumps override. */
/* CogAbstractInstruction>>#relocateJumpLongConditionalBeforeFollowingAddress:by: */
static AbstractInstruction * NoDbgRegParms
relocateJumpLongConditionalBeforeFollowingAddressby(AbstractInstruction * self_in_relocateJumpLongConditionalBeforeFollowingAddressby, sqInt _pc, sqInt _delta)
{
	relocateJumpLongBeforeFollowingAddressby(self_in_relocateJumpLongConditionalBeforeFollowingAddressby, _pc, _delta);
	return self_in_relocateJumpLongConditionalBeforeFollowingAddressby;
}
/* CogAbstractInstruction>>#resolveJumpTarget */
static AbstractInstruction * NoDbgRegParms
resolveJumpTarget(AbstractInstruction * self_in_resolveJumpTarget)
{
	BytecodeFixup *_fixup;

	assert(isJump(self_in_resolveJumpTarget));
	_fixup = ((BytecodeFixup *) ((self_in_resolveJumpTarget->operands)[0]) );
	if (addressIsInFixups(_fixup)) {
		assert(addressIsInInstructions((_fixup->targetInstruction)));
		jmpTarget(self_in_resolveJumpTarget, (_fixup->targetInstruction));
	}
	return self_in_resolveJumpTarget;
}
/*	Remember the ROR is doubled by the cpu so use 30>>1 etc 
	ADDS destReg, srcReg, #immediate ROR #rot - ARM_ARM v7 DDI10406 p. A8-23 */
/* CogARMCompiler>>#adds:rn:imm:ror: */
static sqInt NoDbgRegParms
addsrnimmror(AbstractInstruction * self_in_addsrnimmror, sqInt _destReg, sqInt _srcReg, sqInt _immediate, sqInt _rot)
{
	return ((((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((int) (((usqInt) AddOpcode ) << 21) ) | (1U << 20)))) | (((sqInt) (((usqInt) _srcReg ) << 16) ) | ((sqInt) (((usqInt) _destReg ) << 12) ))) | ((((sqInt) (((usqInt) (((usqInt) _rot ) >> 1) ) << 8) ) | _immediate) & 0xFFF);
}
/*	Remember the ROR is doubled by the cpu so use 30>>1 etc. 
	ADD destReg, srcReg, #immediate ROR #rot - ARM_ARM v7 DDI10406 p. A8-23 */
/* CogARMCompiler>>#add:rn:imm:ror: */
static sqInt NoDbgRegParms
addrnimmror(AbstractInstruction * self_in_addrnimmror, sqInt _destReg, sqInt _srcReg, sqInt _immediate, sqInt _rot)
{
	return ((((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((int) (((usqInt) AddOpcode ) << 21) ) | (0U << 20)))) | (((sqInt) (((usqInt) _srcReg ) << 16) ) | ((sqInt) (((usqInt) _destReg ) << 12) ))) | ((((sqInt) (((usqInt) (((usqInt) _rot ) >> 1) ) << 8) ) | _immediate) & 0xFFF);
}
/*	return an ADD destReg, srcReg, addReg instruction 
	ADD destReg, srcReg, addReg - ARM_ARM v7 DDI10406 p. A8-24 */
/* CogARMCompiler>>#add:rn:rm: */
static sqInt NoDbgRegParms
addrnrm(AbstractInstruction * self_in_addrnrm, sqInt _destReg, sqInt _srcReg, sqInt _addReg)
{
	return ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) AddOpcode ) << 21) ) | (0U << 20)))) | (((sqInt) (((usqInt) _srcReg ) << 16) ) | ((sqInt) (((usqInt) _destReg ) << 12) ))) | (_addReg & 0xFFF);
}
/*	Answer the address of the __aeabi_idivmod() call provided by the ARM low 
	level libs to do an integer divide that returns the quo in R0 and rem in 
	R1. A word on the somewhat strange usage of idivmod herein; we need a 
	declaration for the _aeabi_idivmod helper function, despite the fact that 
	in a simple C program test, you don't. 
	To get that declaration we need a variable to hang it off; thus the 
	non-existent var idivmod, and in simulation we need to simulate it, which 
	is what aeabiDiv:Mod: does.This variable should be in here to be able to be translated */
/* CogARMCompiler>>#aeabiDivModFunctionAddr */
static usqInt NoDbgRegParms
aeabiDivModFunctionAddr(AbstractInstruction * self_in_aeabiDivModFunctionAddr)
{
	return (usqInt)__aeabi_idivmod;
}
/*	Remember the ROR is doubled by the cpu so use 30>>1 etc 
	ANDS destReg, srcReg, #immediate ROR #rot - ARM_ARM v7 DDI10406 p. A8-34 */
/* CogARMCompiler>>#ands:rn:imm:ror: */
static sqInt NoDbgRegParms
andsrnimmror(AbstractInstruction * self_in_andsrnimmror, sqInt _destReg, sqInt _srcReg, sqInt _immediate, sqInt _rot)
{
	return ((((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((int) (((usqInt) AndOpcode ) << 21) ) | (1U << 20)))) | (((sqInt) (((usqInt) _srcReg ) << 16) ) | ((sqInt) (((usqInt) _destReg ) << 12) ))) | ((((sqInt) (((usqInt) (((usqInt) _rot ) >> 1) ) << 8) ) | _immediate) & 0xFFF);
}
/*	Answer an unused abstract register in the liveRegMask. 
	Subclasses with more registers can override to answer them. 
	N.B. Do /not/ allocate TempReg.Answer an unused abstract register in the liveRegMask. 
	Subclasses with more registers can override to answer them. 
	N.B. Do /not/ allocate TempReg. */
/* CogARMCompiler>>#availableRegisterOrNoneFor: */
static sqInt NoDbgRegParms
availableRegisterOrNoneFor(AbstractInstruction * self_in_availableRegisterOrNoneFor, sqInt _liveRegsMask)
{
	if (!(_liveRegsMask & (1U << Extra0Reg))) {
		return Extra0Reg;
	}
	if (!(_liveRegsMask & (1U << Extra1Reg))) {
		return Extra1Reg;
	}
	if (!(_liveRegsMask & (1U << Extra2Reg))) {
		return Extra2Reg;
	}
	{
		if (!(_liveRegsMask & (1U << Arg1Reg))) {
			return Arg1Reg;
		}
		if (!(_liveRegsMask & (1U << Arg0Reg))) {
			return Arg0Reg;
		}
		if (!(_liveRegsMask & (1U << SendNumArgsReg))) {
			return SendNumArgsReg;
		}
		if (!(_liveRegsMask & (1U << ClassReg))) {
			return ClassReg;
		}
		if (!(_liveRegsMask & (1U << ReceiverResultReg))) {
			return ReceiverResultReg;
		}
		return NoReg;
	}
	return 0;
}
/*	Remember the ROR is doubled by the cpu so use 30>>1 etc 
	BICS destReg, srcReg, #immediate ROR #rot - ARM_ARM v7 DDI10406 pp. 
	A8-50-1  */
/* CogARMCompiler>>#bics:rn:imm:ror: */
static sqInt NoDbgRegParms
bicsrnimmror(AbstractInstruction * self_in_bicsrnimmror, sqInt _destReg, sqInt _srcReg, sqInt _immediate, sqInt _rot)
{
	return ((((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((int) (((usqInt) BicOpcode ) << 21) ) | (1U << 20)))) | (((sqInt) (((usqInt) _srcReg ) << 16) ) | ((sqInt) (((usqInt) _destReg ) << 12) ))) | ((((sqInt) (((usqInt) (((usqInt) _rot ) >> 1) ) << 8) ) | _immediate) & 0xFFF);
}
/*	return a BL offset instruction; offset is signed 24bits of WORD offset, so 
	+_32Mbyte range. Return address is in LR 
	BL offset - ARM_ARM v7 DDI10406 pp. A8-58-9 */
/* CogARMCompiler>>#bl: */
static sqInt NoDbgRegParms
bl(AbstractInstruction * self_in_bl, sqInt _offset)
{
	return ((int) (((usqInt) AL ) << 28) ) | (((int) (((usqInt) (10 | (1 & 1)) ) << 24) ) | ((((usqInt) _offset ) >> 2) & 0xFFFFFF));
}
/*	ARM calls and jumps span +/- 32 mb, more than enough for intra-zone calls 
	and jumps. */
/* CogARMCompiler>>#callInstructionByteSize */
static sqInt NoDbgRegParms
callInstructionByteSize(AbstractInstruction * self_in_callInstructionByteSize)
{
	return 4;
}
/*	Answer the address that the call immediately preceding 
	callSiteReturnAddress will jump to.this is also used by #jumpLongTargetBeforeFollowingAddress:. */
/* CogARMCompiler>>#callTargetFromReturnAddress: */
static sqInt NoDbgRegParms
callTargetFromReturnAddress(AbstractInstruction * self_in_callTargetFromReturnAddress, sqInt _callSiteReturnAddress)
{
	sqInt _call;
	sqInt _callDistance;
	sqInt _relativeJump;

	_call = uint32AtPointer(_callSiteReturnAddress - 4);
	assert((instructionIsB(self_in_callTargetFromReturnAddress, _call)) || (instructionIsBL(self_in_callTargetFromReturnAddress, _call)));
	/* begin extractOffsetFromBL: */
	_relativeJump = _call & 0xFFFFFF;
	_relativeJump = ((_relativeJump & (1U << 23))
		 ? ((int) ((sqInt) (((usqInt) (_relativeJump | 0x3F000000) ) << 2) ) )
		 : ((sqInt) (((usqInt) _relativeJump ) << 2) ));
	_callDistance = _relativeJump;
	/* end extractOffsetFromBL: */
	return (_callSiteReturnAddress + 4) + ((int) _callDistance );
}
/*	Because we don't use Thumb, each ARM instruction has 4 bytes. Many 
	abstract opcodes need more than one instruction. Instructions that refer 
	to constants and/or literals depend on literals being stored in-line or 
	out-of-line.  
	N.B. The ^N forms are to get around the bytecode compiler's long branch 
	limits which are exceeded when each case jumps around the otherwise. */
/* CogARMCompiler>>#computeMaximumSize */
static sqInt NoDbgRegParms
computeMaximumSize(AbstractInstruction * self_in_computeMaximumSize)
{
	sqInt i;
	sqInt _constant;
	sqInt _constant2;
	sqInt _constant3;
	sqInt _constant5;
	sqInt _constant6;
	sqInt _i;
	sqInt _i2;
	sqInt _i3;
	sqInt _value;
	unsigned int _value2;

	switch ((self_in_computeMaximumSize->opcode)) {
		case Label:
		{
			return 0;
		}
		case Literal:
		case Fill32:
		case Nop:
		case Call:
		case JumpR:
		case Jump:
		case JumpLong:
		case JumpZero:
		case JumpNonZero:
		case JumpNegative:
		case JumpNonNegative:
		case JumpOverflow:
		case JumpNoOverflow:
		case JumpCarry:
		case JumpNoCarry:
		case JumpLess:
		case JumpGreaterOrEqual:
		case JumpGreater:
		case JumpLessOrEqual:
		case JumpBelow:
		case JumpAboveOrEqual:
		case JumpAbove:
		case JumpBelowOrEqual:
		case JumpLongZero:
		case JumpLongNonZero:
		case Stop:
		case AddRR:
		case AndRR:
		case CmpRR:
		case OrRR:
		case XorRR:
		case SubRR:
		case NegateR:
		case LogicalShiftLeftCqR:
		case LogicalShiftRightCqR:
		case ArithmeticShiftRightCqR:
		case LogicalShiftLeftRR:
		case LogicalShiftRightRR:
		case ArithmeticShiftRightRR:
		case AddRdRd:
		case CmpRdRd:
		case SubRdRd:
		case MulRdRd:
		case DivRdRd:
		case SqrtRd:
		case SMULL:
		case MSR:
		case CMPSMULL:
		case PopLDM:
		case PushSTM:
		case MoveRR:
		case MoveRdRd:
		case MoveRdM64r:
		case MoveXbrRR:
		case MoveRXbrR:
		case MoveXwrRR:
		case MoveRXwrR:
		case PopR:
		case PushR:
		case MovePatcheableC32R:
		{
			return 4;
		}
		case AlignmentNops:
		{
			return ((self_in_computeMaximumSize->operands)[0]) - 4;
		}
		case CallFull:
		case JumpFull:
		case AddCwR:
		case AndCwR:
		case CmpCwR:
		case OrCwR:
		case SubCwR:
		case XorCwR:
		case MoveM64rRd:
		{
			return 4 + 4;
		}
		case JumpFPEqual:
		case JumpFPNotEqual:
		case JumpFPLess:
		case JumpFPGreaterOrEqual:
		case JumpFPGreater:
		case JumpFPLessOrEqual:
		case JumpFPOrdered:
		case JumpFPUnordered:
		case ConvertRRd:
		{
			return 8;
		}
		case RetN:
		{
			return ((((self_in_computeMaximumSize->operands)[0]) == 0)
				 ? 4
				 : 8);
		}
		case AddCqR:
		case CmpCqR:
		case SubCqR:
		{
			/* begin rotateable8bitSignedImmediate:ifTrue:ifFalse: */
			_constant = (self_in_computeMaximumSize->operands)[0];
			_value = _constant;
			while (1) {
				if ((_value & 0xFF) == _value) {
					{
						return 4;
					}
					goto l2;
				}
				for (_i = 2; _i <= 30; _i += 2) {
					if ((_value & (((0xFFU << _i) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i)))) == _value) {
						{
							i = (((usqInt) _value ) >> _i) | (((sqInt) (((usqInt) _value ) << (32 - _i)) ) & 0xFFFFFFFFU);
							return 4;
						}
						goto l2;
					}
				}
				if (!((_value == _constant) && (_constant != 0))) 
					break;
				_value = -_constant;
			}
			{
				return 4 + 4;
			}
			l2:
			;
			/* end rotateable8bitSignedImmediate:ifTrue:ifFalse: */
		}
		break;
		case AndCqR:
		case AndCqRR:
		case XorCqR:
		{
			/* begin rotateable8bitBitwiseImmediate:ifTrue:ifFalse: */
			_constant2 = (self_in_computeMaximumSize->operands)[0];
			_value2 = _constant2;
			while (1) {
				if ((_value2 & 0xFF) == _value2) {
					{
						return 4;
					}
					goto l3;
				}
				for (_i2 = 2; _i2 <= 30; _i2 += 2) {
					if ((_value2 & (((0xFFU << _i2) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i2)))) == _value2) {
						{
							i = (((usqInt) _value2 ) >> _i2) | ((_value2 << (32 - _i2)) & 0xFFFFFFFFU);
							return 4;
						}
						goto l3;
					}
				}
				if (!(_value2 == _constant2)) 
					break;
				_value2 = ((_constant2 < 0)
					 ? -1 - _constant2
					 : ((unsigned int) (~_constant2) ));
			}
			{
				{
					return 8;
				}
			}
			l3:
			;
			/* end rotateable8bitBitwiseImmediate:ifTrue:ifFalse: */
		}
		break;
		case OrCqR:
		case TstCqR:
		case LoadEffectiveAddressMwrR:
		case MoveM16rR:
		{
			/* begin rotateable8bitImmediate:ifTrue:ifFalse: */
			_constant3 = (self_in_computeMaximumSize->operands)[0];
			if ((_constant3 & 0xFF) == _constant3) {
				{
					return 4;
				}
				goto l4;
			}
			for (_i3 = 2; _i3 <= 30; _i3 += 2) {
				if ((_constant3 & (((0xFFU << _i3) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i3)))) == _constant3) {
					{
						i = (((usqInt) _constant3 ) >> _i3) | (((sqInt) (((usqInt) _constant3 ) << (32 - _i3)) ) & 0xFFFFFFFFU);
						return 4;
					}
					goto l4;
				}
			}
			{
				return 4 + 4;
			}
			l4:
			;
			/* end rotateable8bitImmediate:ifTrue:ifFalse: */
		}
		break;
		case MoveCqR:
		{
			{
				return 4;
			}
		}
		break;
		case MoveCwR:
		{
			{
				return 4;
			}
		}
		case MoveAwR:
		case MoveAbR:
		case PrefetchAw:
		{
			if ((((self_in_computeMaximumSize->operands)[0]) != null) && ((((self_in_computeMaximumSize->operands)[0]) >= (varBaseAddress())) && ((((self_in_computeMaximumSize->operands)[0]) - (varBaseAddress())) < (1U << 12)))) {
				return 4;
			}
 else {
				return 4 + 4;
			}
		}
		case MoveRAw:
		case MoveRAb:
		{
			if ((((self_in_computeMaximumSize->operands)[1]) != null) && ((((self_in_computeMaximumSize->operands)[1]) >= (varBaseAddress())) && ((((self_in_computeMaximumSize->operands)[1]) - (varBaseAddress())) < (1U << 12)))) {
				return 4;
			}
 else {
				return 4 + 4;
			}
		}
		case MoveRMwr:
		case MoveRMbr:
		case MoveRM16r:
		{
			/* begin is12BitValue:ifTrue:ifFalse: */
			_constant5 = (self_in_computeMaximumSize->operands)[1];
			if ((SQABS(_constant5)) <= 0xFFF) {
				if (_constant5 >= 0) {
					{
						return 4;
					}
					goto l6;
				} else {
					{
						i = SQABS(_constant5);
						return 4;
					}
					goto l6;
				}
			} else {
				{
					return 4 + 4;
				}
				goto l6;
			}
			l6:
			;
			/* end is12BitValue:ifTrue:ifFalse: */
		}
		break;
		case MoveMbrR:
		case MoveMwrR:
		{
			/* begin is12BitValue:ifTrue:ifFalse: */
			_constant6 = (self_in_computeMaximumSize->operands)[0];
			if ((SQABS(_constant6)) <= 0xFFF) {
				if (_constant6 >= 0) {
					{
						return 4;
					}
					goto l7;
				} else {
					{
						i = SQABS(_constant6);
						return 4;
					}
					goto l7;
				}
			} else {
				{
					return 4 + 4;
				}
				goto l7;
			}
			l7:
			;
			/* end is12BitValue:ifTrue:ifFalse: */
		}
		break;
		case PushCw:
		{
			{
				return 4 + 4;
			}
		}
		break;
		case PushCq:
		{
			{
				return 4 + 4;
			}
		}
		break;
		default:
		error("Case not found and no otherwise clause");
	}
	return 0;
}
/*	Generate concrete machine code for the instruction at actualAddress, 
	setting machineCodeSize, and answer the following address.Generate concrete machine code for the instruction at actualAddress, 
	setting machineCodeSize, and answer the following address. */
/* CogARMCompiler>>#concretizeAt: */
static sqInt NoDbgRegParms
concretizeAt(AbstractInstruction * self_in_concretizeAt, sqInt _actualAddress)
{
	assert((_actualAddress % 4) == 0);
	{
		(self_in_concretizeAt->address) = _actualAddress;
		dispatchConcretize(self_in_concretizeAt);
		assert((((self_in_concretizeAt->maxSize)) == null) || (((self_in_concretizeAt->maxSize)) >= ((self_in_concretizeAt->machineCodeSize))));
		return _actualAddress + ((self_in_concretizeAt->machineCodeSize));
	}
	return 0;
}
/*	Generate a CMP a, b, ASR #31 instruction, specifically for comparing the 
	resutls of SMULLs in genMulR:R: */
/* CogARMCompiler>>#concretizeCMPSMULL */
static usqInt NoDbgRegParms
concretizeCMPSMULL(AbstractInstruction * self_in_concretizeCMPSMULL)
{
	sqInt _aWord;
	usqInt _hiReg;
	usqInt _loReg;

	_hiReg = (self_in_concretizeCMPSMULL->operands)[0];
	_loReg = (self_in_concretizeCMPSMULL->operands)[1];
	/* begin machineCodeAt:put: */
	_aWord = ((((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) CmpOpcode ) << 21) ) | (1U << 20)))) | ((_hiReg << 16) | (0U << 12))) + (0x1FU << 7)) + (2U << 5)) + _loReg;
	(self_in_concretizeCMPSMULL->machineCode)[0 / 4] = _aWord;
	/* end machineCodeAt:put: */
	return ((self_in_concretizeCMPSMULL->machineCodeSize) = 4);
}
/*	Concretize the current instruction, but with a condition. */
/* CogARMCompiler>>#concretizeConditionalInstruction */
static void NoDbgRegParms
concretizeConditionalInstruction(AbstractInstruction * self_in_concretizeConditionalInstruction)
{
	sqInt _aWord;
	sqInt _i;
	usqInt _instr;
	unsigned char _savedCond;

	assert(((self_in_concretizeConditionalInstruction->conditionOrNil)) != null);
	_savedCond = (self_in_concretizeConditionalInstruction->conditionOrNil);
	(self_in_concretizeConditionalInstruction->conditionOrNil) = null;
	dispatchConcretize(self_in_concretizeConditionalInstruction);
	(self_in_concretizeConditionalInstruction->conditionOrNil) = _savedCond;
	for (_i = 0; _i < ((self_in_concretizeConditionalInstruction->machineCodeSize)); _i += 4) {
		_instr = (((self_in_concretizeConditionalInstruction->machineCode)[_i / 4]) | (15U << 28)) - (15U << 28);
		/* begin machineCodeAt:put: */
		_aWord = _instr | ((int) (((usqInt) (((self_in_concretizeConditionalInstruction->conditionOrNil)) & 15) ) << 28) );
		(self_in_concretizeConditionalInstruction->machineCode)[_i / 4] = _aWord;
		/* end machineCodeAt:put: */
	}
	{
		return;
	}
}
/*	fill with operand 0 according to the processor's endianness */
/* CogARMCompiler>>#concretizeFill32 */
static usqInt NoDbgRegParms
concretizeFill32(AbstractInstruction * self_in_concretizeFill32)
{
	sqInt _aWord;

	/* begin machineCodeAt:put: */
	_aWord = (self_in_concretizeFill32->operands)[0];
	(self_in_concretizeFill32->machineCode)[0 / 4] = _aWord;
	/* end machineCodeAt:put: */
	return ((self_in_concretizeFill32->machineCodeSize) = 4);
}
/*	Generate an MSR CPSR_f, #flags instruction. 
	Note that we only have business with the NZCV flags so we use 
	N -> 8 
	Z -> 4 
	C -> 2 
	V -> 1. 
	You don't want to mess with this too much. */
/* CogARMCompiler>>#concretizeMSR */
static usqInt NoDbgRegParms
concretizeMSR(AbstractInstruction * self_in_concretizeMSR)
{
	sqInt _aWord;
	usqInt _flags;

	_flags = (self_in_concretizeMSR->operands)[0];
	/* begin machineCodeAt:put: */
	_aWord = msr(self_in_concretizeMSR, _flags);
	(self_in_concretizeMSR->machineCode)[0 / 4] = _aWord;
	/* end machineCodeAt:put: */
	return ((self_in_concretizeMSR->machineCodeSize) = 4);
}
/* CogARMCompiler>>#concretizePushOrPopMultipleRegisters: */
static usqInt NoDbgRegParms
concretizePushOrPopMultipleRegisters(AbstractInstruction * self_in_concretizePushOrPopMultipleRegisters, sqInt _doPush)
{
	assert(((self_in_concretizePushOrPopMultipleRegisters->operands)[0]) != 0);
	(self_in_concretizePushOrPopMultipleRegisters->machineCode)[0] = ((((int) (((usqInt) AL ) << 28) ) + (((_doPush)
		 ? 146U << 20
		 : 139U << 20))) + ((int) (((usqInt) SP ) << 16) )) + ((self_in_concretizePushOrPopMultipleRegisters->operands)[0]);
	return ((self_in_concretizePushOrPopMultipleRegisters->machineCodeSize) = 4);
}
/*	Generate an SMULL loResultReg, hiResultReg, srcA, srcB instruction */
/* CogARMCompiler>>#concretizeSMULL */
static usqInt NoDbgRegParms
concretizeSMULL(AbstractInstruction * self_in_concretizeSMULL)
{
	sqInt _aWord;
	sqInt _hiResultReg;
	sqInt _loResultReg;
	usqInt _srcA;
	usqInt _srcB;

	_srcA = (self_in_concretizeSMULL->operands)[0];
	_loResultReg = (_srcB = (self_in_concretizeSMULL->operands)[1]);
	_hiResultReg = RISCTempReg;
	/* begin machineCodeAt:put: */
	_aWord = ((((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | ((6U << 21) | (0U << 20)))) | (((sqInt) (((usqInt) _hiResultReg ) << 16) ) | ((sqInt) (((usqInt) _loResultReg ) << 12) ))) + (_srcA << 8)) + (9U << 4)) + _srcB;
	(self_in_concretizeSMULL->machineCode)[0 / 4] = _aWord;
	/* end machineCodeAt:put: */
	return ((self_in_concretizeSMULL->machineCodeSize) = 4);
}
/*	test for the NV condition code; this isn't allowed as an actual condition 
	and is used to encdoe many of the newer instructions */
/* CogARMCompiler>>#conditionIsNotNever: */
static sqInt NoDbgRegParms
conditionIsNotNever(AbstractInstruction * self_in_conditionIsNotNever, sqInt _instr)
{
	return (((usqInt) _instr ) >> 28) < 15;
}
/* CogARMCompiler>>#cStackPointer */
static sqInt NoDbgRegParms
cStackPointer(AbstractInstruction * self_in_cStackPointer)
{
	return SP;
}
/*	return an {opcode} destReg, srcReg, addReg lsl #shftimportant detail - a 0 shft requires setting the shift-type code to 0 to 
	avoid potential instruction confusion */
/* CogARMCompiler>>#dataOpType:rd:rn:rm:lsr: */
static sqInt NoDbgRegParms
dataOpTyperdrnrmlsr(AbstractInstruction * self_in_dataOpTyperdrnrmlsr, sqInt _armOpcode, sqInt _destReg, sqInt _srcReg, sqInt _addReg, sqInt _shft)
{
	if (_shft == 0) {
		return ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((sqInt) (((usqInt) _armOpcode ) << 21) ) | (1U << 20)))) | (((sqInt) (((usqInt) _srcReg ) << 16) ) | ((sqInt) (((usqInt) _destReg ) << 12) ))) | (_addReg & 0xFFF);
	}
 else {
		return ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((sqInt) (((usqInt) _armOpcode ) << 21) ) | (1U << 20)))) | (((sqInt) (((usqInt) _srcReg ) << 16) ) | ((sqInt) (((usqInt) _destReg ) << 12) ))) | (((((sqInt) (((usqInt) _shft ) << 7) ) | 32) | _addReg) & 0xFFF);
	}
}
/*	Attempt to generate concrete machine code for the instruction at address. 
	This is the inner dispatch of concretizeAt: actualAddress which exists 
	only to get around the branch size limits in the SqueakV3 (blue book 
	derived) bytecode set. */
/* CogARMCompiler>>#dispatchConcretize */
static void NoDbgRegParms
dispatchConcretize(AbstractInstruction * self_in_dispatchConcretize)
{
	usqInt _addressOperand;
	sqInt _aWord;
	sqInt _aWord10;
	sqInt _aWord11;
	sqInt _aWord12;
	sqInt _aWord13;
	sqInt _aWord14;
	sqInt _aWord15;
	sqInt _aWord16;
	sqInt _aWord17;
	sqInt _aWord18;
	sqInt _aWord19;
	sqInt _aWord2;
	sqInt _aWord20;
	sqInt _aWord21;
	sqInt _aWord210;
	sqInt _aWord211;
	sqInt _aWord212;
	sqInt _aWord213;
	sqInt _aWord214;
	sqInt _aWord215;
	sqInt _aWord216;
	sqInt _aWord217;
	sqInt _aWord218;
	sqInt _aWord219;
	sqInt _aWord22;
	sqInt _aWord220;
	sqInt _aWord221;
	sqInt _aWord2210;
	sqInt _aWord2211;
	sqInt _aWord2212;
	sqInt _aWord2213;
	sqInt _aWord222;
	sqInt _aWord223;
	sqInt _aWord224;
	sqInt _aWord226;
	sqInt _aWord227;
	sqInt _aWord228;
	sqInt _aWord229;
	sqInt _aWord23;
	sqInt _aWord230;
	sqInt _aWord231;
	sqInt _aWord232;
	sqInt _aWord233;
	sqInt _aWord234;
	sqInt _aWord235;
	sqInt _aWord236;
	sqInt _aWord24;
	sqInt _aWord25;
	sqInt _aWord26;
	sqInt _aWord27;
	sqInt _aWord28;
	sqInt _aWord29;
	sqInt _aWord3;
	sqInt _aWord30;
	sqInt _aWord31;
	sqInt _aWord310;
	sqInt _aWord311;
	sqInt _aWord312;
	sqInt _aWord313;
	sqInt _aWord314;
	sqInt _aWord315;
	sqInt _aWord316;
	sqInt _aWord318;
	sqInt _aWord319;
	sqInt _aWord32;
	sqInt _aWord320;
	sqInt _aWord321;
	sqInt _aWord322;
	sqInt _aWord323;
	sqInt _aWord324;
	sqInt _aWord325;
	sqInt _aWord326;
	sqInt _aWord327;
	sqInt _aWord33;
	sqInt _aWord34;
	sqInt _aWord35;
	sqInt _aWord36;
	sqInt _aWord37;
	sqInt _aWord38;
	sqInt _aWord39;
	sqInt _aWord4;
	sqInt _aWord40;
	sqInt _aWord41;
	sqInt _aWord410;
	sqInt _aWord411;
	sqInt _aWord412;
	sqInt _aWord413;
	sqInt _aWord414;
	sqInt _aWord415;
	sqInt _aWord416;
	sqInt _aWord42;
	sqInt _aWord43;
	sqInt _aWord44;
	sqInt _aWord45;
	sqInt _aWord46;
	sqInt _aWord47;
	sqInt _aWord48;
	sqInt _aWord49;
	sqInt _aWord5;
	sqInt _aWord50;
	sqInt _aWord51;
	sqInt _aWord510;
	sqInt _aWord511;
	sqInt _aWord52;
	sqInt _aWord53;
	sqInt _aWord54;
	sqInt _aWord55;
	sqInt _aWord56;
	sqInt _aWord57;
	sqInt _aWord58;
	sqInt _aWord59;
	sqInt _aWord6;
	sqInt _aWord60;
	sqInt _aWord61;
	sqInt _aWord62;
	sqInt _aWord63;
	sqInt _aWord64;
	sqInt _aWord65;
	sqInt _aWord66;
	sqInt _aWord67;
	sqInt _aWord68;
	sqInt _aWord69;
	sqInt _aWord7;
	sqInt _aWord70;
	sqInt _aWord8;
	sqInt _aWord9;
	usqInt _base;
	usqInt _base2;
	usqInt _base3;
	usqInt _base4;
	usqInt _baseReg;
	usqInt _baseReg2;
	usqInt _baseReg3;
	usqInt _constant;
	usqInt _constant10;
	usqInt _constant11;
	usqInt _constant12;
	usqInt _constant13;
	usqInt _constant14;
	usqInt _constant2;
	sqInt _constant22;
	usqInt _constant3;
	usqInt _constant4;
	usqInt _constant5;
	usqInt _constant6;
	usqInt _constant7;
	usqInt _constant8;
	usqInt _constant9;
	AbstractInstruction *_dependentChain;
	usqInt _dest;
	usqInt _dest2;
	usqInt _destAddr;
	usqInt _destAddr2;
	usqInt _destReg;
	usqInt _destReg10;
	usqInt _destReg11;
	usqInt _destReg12;
	usqInt _destReg13;
	usqInt _destReg2;
	usqInt _destReg3;
	usqInt _destReg4;
	usqInt _destReg5;
	usqInt _destReg6;
	usqInt _destReg7;
	usqInt _destReg8;
	usqInt _destReg9;
	sqInt _distance;
	sqInt _distance2;
	sqInt _distance3;
	usqInt _distReg;
	usqInt _distReg2;
	usqInt _distReg3;
	usqInt _dstReg;
	usqInt _dstReg2;
	sqInt _flagsOrOpcode;
	sqInt _flagsOrOpcode2;
	sqInt _flagsOrOpcode22;
	sqInt _flagsOrOpcode23;
	sqInt _flagsOrOpcode3;
	sqInt _flagsOrOpcode4;
	sqInt _flagsOrOpcode5;
	sqInt _flagsOrOpcode6;
	usqInt _fpReg;
	sqInt _hb;
	sqInt _hb2;
	sqInt _hb22;
	sqInt _hb23;
	sqInt _hb3;
	sqInt _hb4;
	sqInt _hb5;
	sqInt _hb6;
	sqInt _i;
	sqInt _i10;
	sqInt _i11;
	sqInt _i12;
	sqInt _i2;
	sqInt _i22;
	sqInt _i23;
	sqInt _i24;
	sqInt _i25;
	sqInt _i3;
	sqInt _i4;
	sqInt _i5;
	sqInt _i6;
	sqInt _i7;
	sqInt _i8;
	sqInt _i9;
	sqInt _immediate;
	sqInt _immediate10;
	sqInt _immediate11;
	sqInt _immediate12;
	sqInt _immediate13;
	sqInt _immediate14;
	sqInt _immediate15;
	sqInt _immediate16;
	sqInt _immediate17;
	sqInt _immediate18;
	sqInt _immediate19;
	sqInt _immediate2;
	sqInt _immediate22;
	sqInt _immediate23;
	sqInt _immediate3;
	sqInt _immediate4;
	sqInt _immediate5;
	sqInt _immediate6;
	sqInt _immediate7;
	sqInt _immediate8;
	sqInt _immediate9;
	usqInt _index;
	usqInt _index2;
	usqInt _index3;
	usqInt _index4;
	usqInt _instrOffset;
	usqInt _instrOffset10;
	usqInt _instrOffset11;
	usqInt _instrOffset12;
	usqInt _instrOffset13;
	usqInt _instrOffset14;
	usqInt _instrOffset15;
	usqInt _instrOffset16;
	usqInt _instrOffset17;
	usqInt _instrOffset18;
	usqInt _instrOffset19;
	usqInt _instrOffset2;
	usqInt _instrOffset20;
	usqInt _instrOffset22;
	usqInt _instrOffset23;
	usqInt _instrOffset24;
	usqInt _instrOffset25;
	usqInt _instrOffset26;
	usqInt _instrOffset27;
	usqInt _instrOffset28;
	usqInt _instrOffset29;
	usqInt _instrOffset3;
	usqInt _instrOffset30;
	usqInt _instrOffset4;
	usqInt _instrOffset5;
	usqInt _instrOffset6;
	usqInt _instrOffset7;
	usqInt _instrOffset8;
	usqInt _instrOffset9;
	sqInt _invert;
	sqInt _invert2;
	sqInt _invert3;
	sqInt _invert4;
	sqInt _invert5;
	unsigned int _invVal;
	sqInt _jumpTarget10;
	sqInt _jumpTarget11;
	sqInt _jumpTarget12;
	sqInt _jumpTarget13;
	sqInt _jumpTarget14;
	sqInt _jumpTarget15;
	sqInt _jumpTarget16;
	sqInt _jumpTarget17;
	sqInt _jumpTarget18;
	sqInt _jumpTarget19;
	AbstractInstruction *_jumpTarget2;
	sqInt _jumpTarget20;
	sqInt _jumpTarget21;
	AbstractInstruction *_jumpTarget210;
	AbstractInstruction *_jumpTarget211;
	AbstractInstruction *_jumpTarget212;
	AbstractInstruction *_jumpTarget213;
	AbstractInstruction *_jumpTarget214;
	AbstractInstruction *_jumpTarget215;
	AbstractInstruction *_jumpTarget216;
	AbstractInstruction *_jumpTarget217;
	AbstractInstruction *_jumpTarget218;
	AbstractInstruction *_jumpTarget219;
	AbstractInstruction *_jumpTarget22;
	AbstractInstruction *_jumpTarget220;
	AbstractInstruction *_jumpTarget221;
	AbstractInstruction *_jumpTarget222;
	AbstractInstruction *_jumpTarget223;
	AbstractInstruction *_jumpTarget224;
	AbstractInstruction *_jumpTarget225;
	AbstractInstruction *_jumpTarget23;
	AbstractInstruction *_jumpTarget24;
	AbstractInstruction *_jumpTarget25;
	AbstractInstruction *_jumpTarget26;
	AbstractInstruction *_jumpTarget27;
	AbstractInstruction *_jumpTarget28;
	AbstractInstruction *_jumpTarget29;
	sqInt _jumpTarget30;
	sqInt _jumpTarget31;
	sqInt _jumpTarget32;
	sqInt _jumpTarget33;
	sqInt _jumpTarget34;
	sqInt _jumpTarget4;
	sqInt _jumpTarget5;
	sqInt _jumpTarget6;
	sqInt _jumpTarget7;
	sqInt _jumpTarget8;
	sqInt _jumpTarget9;
	sqInt _negate;
	sqInt _negate2;
	sqInt _offset;
	sqInt _offset10;
	sqInt _offset11;
	sqInt _offset12;
	sqInt _offset13;
	sqInt _offset14;
	sqInt _offset15;
	sqInt _offset16;
	sqInt _offset17;
	sqInt _offset18;
	sqInt _offset19;
	sqInt _offset2;
	sqInt _offset20;
	sqInt _offset21;
	sqInt _offset22;
	sqInt _offset23;
	sqInt _offset24;
	sqInt _offset25;
	sqInt _offset26;
	sqInt _offset27;
	usqInt _offset28;
	sqInt _offset29;
	sqInt _offset3;
	sqInt _offset30;
	sqInt _offset31;
	sqInt _offset32;
	sqInt _offset33;
	sqInt _offset34;
	sqInt _offset4;
	sqInt _offset5;
	sqInt _offset6;
	sqInt _offset7;
	sqInt _offset8;
	sqInt _offset9;
	sqInt _p;
	int _rd;
	int _rd10;
	int _rd11;
	int _rd12;
	int _rd13;
	int _rd14;
	int _rd15;
	int _rd16;
	int _rd17;
	int _rd18;
	int _rd19;
	int _rd2;
	int _rd20;
	int _rd21;
	int _rd22;
	int _rd23;
	int _rd24;
	int _rd25;
	int _rd3;
	int _rd4;
	int _rd5;
	int _rd6;
	int _rd7;
	int _rd8;
	int _rd9;
	usqInt _reg;
	usqInt _reg2;
	usqInt _reg3;
	usqInt _reg4;
	usqInt _reg5;
	usqInt _reg6;
	usqInt _reg7;
	usqInt _reg8;
	usqInt _regA;
	usqInt _regB;
	usqInt _regLHS;
	usqInt _regLHS2;
	usqInt _regLHS3;
	usqInt _regLHS4;
	usqInt _regLHS5;
	usqInt _regRHS;
	usqInt _regRHS2;
	usqInt _regRHS3;
	usqInt _regRHS4;
	usqInt _rn;
	usqInt _rn10;
	usqInt _rn11;
	usqInt _rn12;
	usqInt _rn13;
	usqInt _rn14;
	usqInt _rn15;
	usqInt _rn16;
	usqInt _rn17;
	usqInt _rn18;
	usqInt _rn19;
	usqInt _rn2;
	usqInt _rn20;
	usqInt _rn21;
	usqInt _rn22;
	usqInt _rn23;
	usqInt _rn24;
	usqInt _rn25;
	usqInt _rn3;
	usqInt _rn32;
	usqInt _rn33;
	usqInt _rn4;
	usqInt _rn5;
	usqInt _rn6;
	usqInt _rn7;
	usqInt _rn8;
	usqInt _rn9;
	sqInt _rot;
	sqInt _rot10;
	sqInt _rot11;
	sqInt _rot12;
	sqInt _rot2;
	sqInt _rot22;
	sqInt _rot23;
	sqInt _rot3;
	sqInt _rot4;
	sqInt _rot5;
	sqInt _rot6;
	sqInt _rot7;
	sqInt _rot8;
	sqInt _rot9;
	usqInt _src;
	usqInt _src2;
	usqInt _srcAddr;
	usqInt _srcAddr2;
	usqInt _srcReg;
	usqInt _srcReg10;
	usqInt _srcReg11;
	usqInt _srcReg12;
	usqInt _srcReg13;
	usqInt _srcReg14;
	usqInt _srcReg15;
	usqInt _srcReg16;
	usqInt _srcReg17;
	usqInt _srcReg18;
	usqInt _srcReg19;
	usqInt _srcReg2;
	usqInt _srcReg20;
	usqInt _srcReg3;
	usqInt _srcReg4;
	usqInt _srcReg5;
	usqInt _srcReg6;
	usqInt _srcReg7;
	usqInt _srcReg8;
	usqInt _srcReg9;
	int _u;
	int _u2;
	sqInt _val;
	sqInt _val2;
	sqInt _val22;
	sqInt _val23;
	sqInt _val3;
	usqInt _val4;
	sqInt _val5;
	sqInt _val6;
	sqInt _value;
	sqInt _value2;
	unsigned int _value3;
	unsigned int _value4;
	unsigned int _value5;
	unsigned int _value6;
	unsigned int _value7;
	sqInt _word;
	sqInt _word2;
	usqInt _word3;
	usqInt _word4;

	if ((self_in_dispatchConcretize->conditionOrNil)) {
		concretizeConditionalInstruction(self_in_dispatchConcretize);
		{
			return;
		}
	}
	switch ((self_in_dispatchConcretize->opcode)) {
		case Label:
		{
			{
				/* begin concretizeLabel */
				_dependentChain = (self_in_dispatchConcretize->dependent);
				while (!(_dependentChain == null)) {
					/* begin updateLabel: */
					if (((_dependentChain->opcode)) != Literal) {
						assert((((_dependentChain->opcode)) == MoveCwR) || (((_dependentChain->opcode)) == PushCw));
						(_dependentChain->operands)[0] = ((self_in_dispatchConcretize->address)) + ((self_in_dispatchConcretize->operands)[1]);
					}
					/* end updateLabel: */
					_dependentChain = (_dependentChain->dependent);
				}
				(self_in_dispatchConcretize->machineCodeSize) = 0;
				/* end concretizeLabel */
				return;
			}
		}
		break;
		case Literal:
		{
			{
				concretizeLiteral(self_in_dispatchConcretize);
				return;
			}
		}
		break;
		case AlignmentNops:
		{
			{
				/* begin concretizeAlignmentNops */
				assert((((self_in_dispatchConcretize->machineCodeSize)) % 4) == 0);
				for (_p = 0; _p < ((self_in_dispatchConcretize->machineCodeSize)); _p += 4) {
					/* begin machineCodeAt:put: */
					(self_in_dispatchConcretize->machineCode)[_p / 4] = 3785359360U;
					/* end machineCodeAt:put: */
				}
				/* end concretizeAlignmentNops */
				return;
			}
		}
		break;
		case Fill32:
		{
			{
				concretizeFill32(self_in_dispatchConcretize);
				return;
			}
		}
		break;
		case Nop:
		{
			{
				/* begin concretizeNop */
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = 3785359360U;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeNop */
				return;
			}
		}
		break;
		case Call:
		{
			{
				/* begin concretizeCall */
				assert(((self_in_dispatchConcretize->operands)[0]) != 0);
				assert((((self_in_dispatchConcretize->operands)[0]) % 4) == 0);
				_offset3 = ((int) ((self_in_dispatchConcretize->operands)[0]) ) - ((int) (((self_in_dispatchConcretize->address)) + 8) );
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset3));
				/* begin machineCodeAt:put: */
				_aWord = bl(self_in_dispatchConcretize, _offset3);
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeCall */
				return;
			}
		}
		break;
		case CallFull:
		{
			{
				/* begin concretizeCallFull */
				/* begin longJumpTargetAddress */
				_jumpTarget2 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				if ((addressIsInInstructions(_jumpTarget2)) || (_jumpTarget2 == (methodLabel()))) {
					_jumpTarget2 = ((AbstractInstruction *) ((_jumpTarget2->address)) );
				}
				assert(_jumpTarget2 != 0);
				/* end longJumpTargetAddress */
				/* begin moveCw:intoR: */
				assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
				assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
				/* begin machineCodeAt:put: */
				_aWord2 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
					 ? 1
					 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord2;
				/* end machineCodeAt:put: */
				_instrOffset = ((self_in_dispatchConcretize->machineCodeSize) = 4);
				/* end moveCw:intoR: */
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[_instrOffset / 4] = ((int) (((usqInt) AL ) << 28) ) | ((19922704 | ((int) (((usqInt) (1 & 1) ) << 5) )) | ConcreteIPReg);
				/* end machineCodeAt:put: */
				assert(_instrOffset == (literalLoadInstructionBytes(self_in_dispatchConcretize)));
				(self_in_dispatchConcretize->machineCodeSize) = _instrOffset + 4;
				/* end concretizeCallFull */
				return;
			}
		}
		break;
		case JumpR:
		{
			{
				/* begin concretizeJumpR */
				_reg = (self_in_dispatchConcretize->operands)[0];
				/* begin machineCodeAt:put: */
				_aWord3 = ((int) (((usqInt) AL ) << 28) ) | ((19922704 | ((int) (((usqInt) (0 & 1) ) << 5) )) | _reg);
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord3;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeJumpR */
				return;
			}
		}
		break;
		case JumpFull:
		{
			{
				/* begin concretizeJumpFull */
				/* begin longJumpTargetAddress */
				_jumpTarget22 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				if ((addressIsInInstructions(_jumpTarget22)) || (_jumpTarget22 == (methodLabel()))) {
					_jumpTarget22 = ((AbstractInstruction *) ((_jumpTarget22->address)) );
				}
				assert(_jumpTarget22 != 0);
				/* end longJumpTargetAddress */
				/* begin moveCw:intoR: */
				assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
				assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
				/* begin machineCodeAt:put: */
				_aWord4 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
					 ? 1
					 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord4;
				/* end machineCodeAt:put: */
				_instrOffset2 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
				/* end moveCw:intoR: */
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[_instrOffset2 / 4] = ((int) (((usqInt) AL ) << 28) ) | ((19922704 | ((int) (((usqInt) (0 & 1) ) << 5) )) | ConcreteIPReg);
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = _instrOffset2 + 4;
				/* end concretizeJumpFull */
				return;
			}
		}
		break;
		case JumpLong:
		case Jump:
		{
			{
				/* begin concretizeConditionalJump: */
				/* begin computeJumpTargetOffsetPlus: */
				/* begin jumpTargetAddress */
				_jumpTarget23 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				assertSaneJumpTarget(_jumpTarget23);
				if ((addressIsInInstructions(_jumpTarget23)) || (_jumpTarget23 == (methodLabel()))) {
					_jumpTarget23 = ((AbstractInstruction *) ((_jumpTarget23->address)) );
				}
				assert(_jumpTarget23 != 0);
				_jumpTarget4 = ((sqInt) _jumpTarget23 );
				/* end jumpTargetAddress */
				_offset4 = _jumpTarget4 - ((sqInt) (((self_in_dispatchConcretize->address)) + 8) );
				/* end computeJumpTargetOffsetPlus: */
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset4));
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = ((int) (((usqInt) AL ) << 28) ) | (((int) (((usqInt) (10 | (0 & 1)) ) << 24) ) | ((((usqInt) _offset4 ) >> 2) & 0xFFFFFF));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeConditionalJump: */
				return;
			}
		}
		break;
		case JumpLongZero:
		case JumpZero:
		{
			{
				/* begin concretizeConditionalJump: */
				/* begin computeJumpTargetOffsetPlus: */
				/* begin jumpTargetAddress */
				_jumpTarget24 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				assertSaneJumpTarget(_jumpTarget24);
				if ((addressIsInInstructions(_jumpTarget24)) || (_jumpTarget24 == (methodLabel()))) {
					_jumpTarget24 = ((AbstractInstruction *) ((_jumpTarget24->address)) );
				}
				assert(_jumpTarget24 != 0);
				_jumpTarget5 = ((sqInt) _jumpTarget24 );
				/* end jumpTargetAddress */
				_offset5 = _jumpTarget5 - ((sqInt) (((self_in_dispatchConcretize->address)) + 8) );
				/* end computeJumpTargetOffsetPlus: */
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset5));
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = ((int) (((usqInt) EQ ) << 28) ) | (((int) (((usqInt) (10 | (0 & 1)) ) << 24) ) | ((((usqInt) _offset5 ) >> 2) & 0xFFFFFF));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeConditionalJump: */
				return;
			}
		}
		break;
		case JumpLongNonZero:
		case JumpNonZero:
		{
			{
				/* begin concretizeConditionalJump: */
				/* begin computeJumpTargetOffsetPlus: */
				/* begin jumpTargetAddress */
				_jumpTarget25 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				assertSaneJumpTarget(_jumpTarget25);
				if ((addressIsInInstructions(_jumpTarget25)) || (_jumpTarget25 == (methodLabel()))) {
					_jumpTarget25 = ((AbstractInstruction *) ((_jumpTarget25->address)) );
				}
				assert(_jumpTarget25 != 0);
				_jumpTarget6 = ((sqInt) _jumpTarget25 );
				/* end jumpTargetAddress */
				_offset6 = _jumpTarget6 - ((sqInt) (((self_in_dispatchConcretize->address)) + 8) );
				/* end computeJumpTargetOffsetPlus: */
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset6));
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = ((int) (((usqInt) NE ) << 28) ) | (((int) (((usqInt) (10 | (0 & 1)) ) << 24) ) | ((((usqInt) _offset6 ) >> 2) & 0xFFFFFF));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeConditionalJump: */
				return;
			}
		}
		break;
		case JumpNegative:
		{
			{
				/* begin concretizeConditionalJump: */
				/* begin computeJumpTargetOffsetPlus: */
				/* begin jumpTargetAddress */
				_jumpTarget26 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				assertSaneJumpTarget(_jumpTarget26);
				if ((addressIsInInstructions(_jumpTarget26)) || (_jumpTarget26 == (methodLabel()))) {
					_jumpTarget26 = ((AbstractInstruction *) ((_jumpTarget26->address)) );
				}
				assert(_jumpTarget26 != 0);
				_jumpTarget7 = ((sqInt) _jumpTarget26 );
				/* end jumpTargetAddress */
				_offset7 = _jumpTarget7 - ((sqInt) (((self_in_dispatchConcretize->address)) + 8) );
				/* end computeJumpTargetOffsetPlus: */
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset7));
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = ((int) (((usqInt) MI ) << 28) ) | (((int) (((usqInt) (10 | (0 & 1)) ) << 24) ) | ((((usqInt) _offset7 ) >> 2) & 0xFFFFFF));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeConditionalJump: */
				return;
			}
		}
		break;
		case JumpNonNegative:
		{
			{
				/* begin concretizeConditionalJump: */
				/* begin computeJumpTargetOffsetPlus: */
				/* begin jumpTargetAddress */
				_jumpTarget27 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				assertSaneJumpTarget(_jumpTarget27);
				if ((addressIsInInstructions(_jumpTarget27)) || (_jumpTarget27 == (methodLabel()))) {
					_jumpTarget27 = ((AbstractInstruction *) ((_jumpTarget27->address)) );
				}
				assert(_jumpTarget27 != 0);
				_jumpTarget8 = ((sqInt) _jumpTarget27 );
				/* end jumpTargetAddress */
				_offset8 = _jumpTarget8 - ((sqInt) (((self_in_dispatchConcretize->address)) + 8) );
				/* end computeJumpTargetOffsetPlus: */
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset8));
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = ((int) (((usqInt) PL ) << 28) ) | (((int) (((usqInt) (10 | (0 & 1)) ) << 24) ) | ((((usqInt) _offset8 ) >> 2) & 0xFFFFFF));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeConditionalJump: */
				return;
			}
		}
		break;
		case JumpOverflow:
		{
			{
				/* begin concretizeConditionalJump: */
				/* begin computeJumpTargetOffsetPlus: */
				/* begin jumpTargetAddress */
				_jumpTarget28 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				assertSaneJumpTarget(_jumpTarget28);
				if ((addressIsInInstructions(_jumpTarget28)) || (_jumpTarget28 == (methodLabel()))) {
					_jumpTarget28 = ((AbstractInstruction *) ((_jumpTarget28->address)) );
				}
				assert(_jumpTarget28 != 0);
				_jumpTarget9 = ((sqInt) _jumpTarget28 );
				/* end jumpTargetAddress */
				_offset9 = _jumpTarget9 - ((sqInt) (((self_in_dispatchConcretize->address)) + 8) );
				/* end computeJumpTargetOffsetPlus: */
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset9));
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = ((int) (((usqInt) VS ) << 28) ) | (((int) (((usqInt) (10 | (0 & 1)) ) << 24) ) | ((((usqInt) _offset9 ) >> 2) & 0xFFFFFF));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeConditionalJump: */
				return;
			}
		}
		break;
		case JumpNoOverflow:
		{
			{
				/* begin concretizeConditionalJump: */
				/* begin computeJumpTargetOffsetPlus: */
				/* begin jumpTargetAddress */
				_jumpTarget29 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				assertSaneJumpTarget(_jumpTarget29);
				if ((addressIsInInstructions(_jumpTarget29)) || (_jumpTarget29 == (methodLabel()))) {
					_jumpTarget29 = ((AbstractInstruction *) ((_jumpTarget29->address)) );
				}
				assert(_jumpTarget29 != 0);
				_jumpTarget10 = ((sqInt) _jumpTarget29 );
				/* end jumpTargetAddress */
				_offset10 = _jumpTarget10 - ((sqInt) (((self_in_dispatchConcretize->address)) + 8) );
				/* end computeJumpTargetOffsetPlus: */
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset10));
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = ((int) (((usqInt) VC ) << 28) ) | (((int) (((usqInt) (10 | (0 & 1)) ) << 24) ) | ((((usqInt) _offset10 ) >> 2) & 0xFFFFFF));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeConditionalJump: */
				return;
			}
		}
		break;
		case JumpCarry:
		case JumpAboveOrEqual:
		{
			{
				/* begin concretizeConditionalJump: */
				/* begin computeJumpTargetOffsetPlus: */
				/* begin jumpTargetAddress */
				_jumpTarget210 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				assertSaneJumpTarget(_jumpTarget210);
				if ((addressIsInInstructions(_jumpTarget210)) || (_jumpTarget210 == (methodLabel()))) {
					_jumpTarget210 = ((AbstractInstruction *) ((_jumpTarget210->address)) );
				}
				assert(_jumpTarget210 != 0);
				_jumpTarget11 = ((sqInt) _jumpTarget210 );
				/* end jumpTargetAddress */
				_offset11 = _jumpTarget11 - ((sqInt) (((self_in_dispatchConcretize->address)) + 8) );
				/* end computeJumpTargetOffsetPlus: */
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset11));
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = ((int) (((usqInt) CS ) << 28) ) | (((int) (((usqInt) (10 | (0 & 1)) ) << 24) ) | ((((usqInt) _offset11 ) >> 2) & 0xFFFFFF));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeConditionalJump: */
				return;
			}
		}
		break;
		case JumpNoCarry:
		case JumpBelow:
		{
			{
				/* begin concretizeConditionalJump: */
				/* begin computeJumpTargetOffsetPlus: */
				/* begin jumpTargetAddress */
				_jumpTarget211 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				assertSaneJumpTarget(_jumpTarget211);
				if ((addressIsInInstructions(_jumpTarget211)) || (_jumpTarget211 == (methodLabel()))) {
					_jumpTarget211 = ((AbstractInstruction *) ((_jumpTarget211->address)) );
				}
				assert(_jumpTarget211 != 0);
				_jumpTarget12 = ((sqInt) _jumpTarget211 );
				/* end jumpTargetAddress */
				_offset12 = _jumpTarget12 - ((sqInt) (((self_in_dispatchConcretize->address)) + 8) );
				/* end computeJumpTargetOffsetPlus: */
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset12));
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = ((int) (((usqInt) CC ) << 28) ) | (((int) (((usqInt) (10 | (0 & 1)) ) << 24) ) | ((((usqInt) _offset12 ) >> 2) & 0xFFFFFF));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeConditionalJump: */
				return;
			}
		}
		break;
		case JumpLess:
		{
			{
				/* begin concretizeConditionalJump: */
				/* begin computeJumpTargetOffsetPlus: */
				/* begin jumpTargetAddress */
				_jumpTarget212 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				assertSaneJumpTarget(_jumpTarget212);
				if ((addressIsInInstructions(_jumpTarget212)) || (_jumpTarget212 == (methodLabel()))) {
					_jumpTarget212 = ((AbstractInstruction *) ((_jumpTarget212->address)) );
				}
				assert(_jumpTarget212 != 0);
				_jumpTarget13 = ((sqInt) _jumpTarget212 );
				/* end jumpTargetAddress */
				_offset13 = _jumpTarget13 - ((sqInt) (((self_in_dispatchConcretize->address)) + 8) );
				/* end computeJumpTargetOffsetPlus: */
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset13));
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = ((int) (((usqInt) LT ) << 28) ) | (((int) (((usqInt) (10 | (0 & 1)) ) << 24) ) | ((((usqInt) _offset13 ) >> 2) & 0xFFFFFF));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeConditionalJump: */
				return;
			}
		}
		break;
		case JumpGreaterOrEqual:
		{
			{
				/* begin concretizeConditionalJump: */
				/* begin computeJumpTargetOffsetPlus: */
				/* begin jumpTargetAddress */
				_jumpTarget213 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				assertSaneJumpTarget(_jumpTarget213);
				if ((addressIsInInstructions(_jumpTarget213)) || (_jumpTarget213 == (methodLabel()))) {
					_jumpTarget213 = ((AbstractInstruction *) ((_jumpTarget213->address)) );
				}
				assert(_jumpTarget213 != 0);
				_jumpTarget14 = ((sqInt) _jumpTarget213 );
				/* end jumpTargetAddress */
				_offset14 = _jumpTarget14 - ((sqInt) (((self_in_dispatchConcretize->address)) + 8) );
				/* end computeJumpTargetOffsetPlus: */
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset14));
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = ((int) (((usqInt) GE ) << 28) ) | (((int) (((usqInt) (10 | (0 & 1)) ) << 24) ) | ((((usqInt) _offset14 ) >> 2) & 0xFFFFFF));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeConditionalJump: */
				return;
			}
		}
		break;
		case JumpGreater:
		{
			{
				/* begin concretizeConditionalJump: */
				/* begin computeJumpTargetOffsetPlus: */
				/* begin jumpTargetAddress */
				_jumpTarget214 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				assertSaneJumpTarget(_jumpTarget214);
				if ((addressIsInInstructions(_jumpTarget214)) || (_jumpTarget214 == (methodLabel()))) {
					_jumpTarget214 = ((AbstractInstruction *) ((_jumpTarget214->address)) );
				}
				assert(_jumpTarget214 != 0);
				_jumpTarget15 = ((sqInt) _jumpTarget214 );
				/* end jumpTargetAddress */
				_offset15 = _jumpTarget15 - ((sqInt) (((self_in_dispatchConcretize->address)) + 8) );
				/* end computeJumpTargetOffsetPlus: */
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset15));
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = ((int) (((usqInt) GT ) << 28) ) | (((int) (((usqInt) (10 | (0 & 1)) ) << 24) ) | ((((usqInt) _offset15 ) >> 2) & 0xFFFFFF));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeConditionalJump: */
				return;
			}
		}
		break;
		case JumpLessOrEqual:
		{
			{
				/* begin concretizeConditionalJump: */
				/* begin computeJumpTargetOffsetPlus: */
				/* begin jumpTargetAddress */
				_jumpTarget215 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				assertSaneJumpTarget(_jumpTarget215);
				if ((addressIsInInstructions(_jumpTarget215)) || (_jumpTarget215 == (methodLabel()))) {
					_jumpTarget215 = ((AbstractInstruction *) ((_jumpTarget215->address)) );
				}
				assert(_jumpTarget215 != 0);
				_jumpTarget16 = ((sqInt) _jumpTarget215 );
				/* end jumpTargetAddress */
				_offset16 = _jumpTarget16 - ((sqInt) (((self_in_dispatchConcretize->address)) + 8) );
				/* end computeJumpTargetOffsetPlus: */
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset16));
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = ((int) (((usqInt) LE ) << 28) ) | (((int) (((usqInt) (10 | (0 & 1)) ) << 24) ) | ((((usqInt) _offset16 ) >> 2) & 0xFFFFFF));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeConditionalJump: */
				return;
			}
		}
		break;
		case JumpAbove:
		{
			{
				/* begin concretizeConditionalJump: */
				/* begin computeJumpTargetOffsetPlus: */
				/* begin jumpTargetAddress */
				_jumpTarget216 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				assertSaneJumpTarget(_jumpTarget216);
				if ((addressIsInInstructions(_jumpTarget216)) || (_jumpTarget216 == (methodLabel()))) {
					_jumpTarget216 = ((AbstractInstruction *) ((_jumpTarget216->address)) );
				}
				assert(_jumpTarget216 != 0);
				_jumpTarget17 = ((sqInt) _jumpTarget216 );
				/* end jumpTargetAddress */
				_offset17 = _jumpTarget17 - ((sqInt) (((self_in_dispatchConcretize->address)) + 8) );
				/* end computeJumpTargetOffsetPlus: */
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset17));
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = ((int) (((usqInt) HI ) << 28) ) | (((int) (((usqInt) (10 | (0 & 1)) ) << 24) ) | ((((usqInt) _offset17 ) >> 2) & 0xFFFFFF));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeConditionalJump: */
				return;
			}
		}
		break;
		case JumpBelowOrEqual:
		{
			{
				/* begin concretizeConditionalJump: */
				/* begin computeJumpTargetOffsetPlus: */
				/* begin jumpTargetAddress */
				_jumpTarget217 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				assertSaneJumpTarget(_jumpTarget217);
				if ((addressIsInInstructions(_jumpTarget217)) || (_jumpTarget217 == (methodLabel()))) {
					_jumpTarget217 = ((AbstractInstruction *) ((_jumpTarget217->address)) );
				}
				assert(_jumpTarget217 != 0);
				_jumpTarget18 = ((sqInt) _jumpTarget217 );
				/* end jumpTargetAddress */
				_offset18 = _jumpTarget18 - ((sqInt) (((self_in_dispatchConcretize->address)) + 8) );
				/* end computeJumpTargetOffsetPlus: */
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset18));
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = ((int) (((usqInt) LS ) << 28) ) | (((int) (((usqInt) (10 | (0 & 1)) ) << 24) ) | ((((usqInt) _offset18 ) >> 2) & 0xFFFFFF));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeConditionalJump: */
				return;
			}
		}
		break;
		case JumpFPEqual:
		{
			{
				/* begin concretizeFPConditionalJump: */
				/* begin computeJumpTargetOffsetPlus: */
				/* begin jumpTargetAddress */
				_jumpTarget218 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				assertSaneJumpTarget(_jumpTarget218);
				if ((addressIsInInstructions(_jumpTarget218)) || (_jumpTarget218 == (methodLabel()))) {
					_jumpTarget218 = ((AbstractInstruction *) ((_jumpTarget218->address)) );
				}
				assert(_jumpTarget218 != 0);
				_jumpTarget19 = ((sqInt) _jumpTarget218 );
				/* end jumpTargetAddress */
				_offset19 = _jumpTarget19 - ((sqInt) (((self_in_dispatchConcretize->address)) + (8 + 4)) );
				/* end computeJumpTargetOffsetPlus: */
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset19));
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = 4008835600U;
				/* end machineCodeAt:put: */
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[4 / 4] = ((int) (((usqInt) EQ ) << 28) ) | (((int) (((usqInt) (10 | (0 & 1)) ) << 24) ) | ((((usqInt) _offset19 ) >> 2) & 0xFFFFFF));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 8;
				/* end concretizeFPConditionalJump: */
				return;
			}
		}
		break;
		case JumpFPNotEqual:
		{
			{
				/* begin concretizeFPConditionalJump: */
				/* begin computeJumpTargetOffsetPlus: */
				/* begin jumpTargetAddress */
				_jumpTarget219 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				assertSaneJumpTarget(_jumpTarget219);
				if ((addressIsInInstructions(_jumpTarget219)) || (_jumpTarget219 == (methodLabel()))) {
					_jumpTarget219 = ((AbstractInstruction *) ((_jumpTarget219->address)) );
				}
				assert(_jumpTarget219 != 0);
				_jumpTarget20 = ((sqInt) _jumpTarget219 );
				/* end jumpTargetAddress */
				_offset20 = _jumpTarget20 - ((sqInt) (((self_in_dispatchConcretize->address)) + (8 + 4)) );
				/* end computeJumpTargetOffsetPlus: */
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset20));
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = 4008835600U;
				/* end machineCodeAt:put: */
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[4 / 4] = ((int) (((usqInt) NE ) << 28) ) | (((int) (((usqInt) (10 | (0 & 1)) ) << 24) ) | ((((usqInt) _offset20 ) >> 2) & 0xFFFFFF));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 8;
				/* end concretizeFPConditionalJump: */
				return;
			}
		}
		break;
		case JumpFPLess:
		{
			{
				/* begin concretizeFPConditionalJump: */
				/* begin computeJumpTargetOffsetPlus: */
				/* begin jumpTargetAddress */
				_jumpTarget220 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				assertSaneJumpTarget(_jumpTarget220);
				if ((addressIsInInstructions(_jumpTarget220)) || (_jumpTarget220 == (methodLabel()))) {
					_jumpTarget220 = ((AbstractInstruction *) ((_jumpTarget220->address)) );
				}
				assert(_jumpTarget220 != 0);
				_jumpTarget21 = ((sqInt) _jumpTarget220 );
				/* end jumpTargetAddress */
				_offset21 = _jumpTarget21 - ((sqInt) (((self_in_dispatchConcretize->address)) + (8 + 4)) );
				/* end computeJumpTargetOffsetPlus: */
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset21));
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = 4008835600U;
				/* end machineCodeAt:put: */
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[4 / 4] = ((int) (((usqInt) LT ) << 28) ) | (((int) (((usqInt) (10 | (0 & 1)) ) << 24) ) | ((((usqInt) _offset21 ) >> 2) & 0xFFFFFF));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 8;
				/* end concretizeFPConditionalJump: */
				return;
			}
		}
		break;
		case JumpFPGreaterOrEqual:
		{
			{
				/* begin concretizeFPConditionalJump: */
				/* begin computeJumpTargetOffsetPlus: */
				/* begin jumpTargetAddress */
				_jumpTarget221 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				assertSaneJumpTarget(_jumpTarget221);
				if ((addressIsInInstructions(_jumpTarget221)) || (_jumpTarget221 == (methodLabel()))) {
					_jumpTarget221 = ((AbstractInstruction *) ((_jumpTarget221->address)) );
				}
				assert(_jumpTarget221 != 0);
				_jumpTarget30 = ((sqInt) _jumpTarget221 );
				/* end jumpTargetAddress */
				_offset22 = _jumpTarget30 - ((sqInt) (((self_in_dispatchConcretize->address)) + (8 + 4)) );
				/* end computeJumpTargetOffsetPlus: */
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset22));
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = 4008835600U;
				/* end machineCodeAt:put: */
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[4 / 4] = ((int) (((usqInt) GE ) << 28) ) | (((int) (((usqInt) (10 | (0 & 1)) ) << 24) ) | ((((usqInt) _offset22 ) >> 2) & 0xFFFFFF));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 8;
				/* end concretizeFPConditionalJump: */
				return;
			}
		}
		break;
		case JumpFPGreater:
		{
			{
				/* begin concretizeFPConditionalJump: */
				/* begin computeJumpTargetOffsetPlus: */
				/* begin jumpTargetAddress */
				_jumpTarget222 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				assertSaneJumpTarget(_jumpTarget222);
				if ((addressIsInInstructions(_jumpTarget222)) || (_jumpTarget222 == (methodLabel()))) {
					_jumpTarget222 = ((AbstractInstruction *) ((_jumpTarget222->address)) );
				}
				assert(_jumpTarget222 != 0);
				_jumpTarget31 = ((sqInt) _jumpTarget222 );
				/* end jumpTargetAddress */
				_offset23 = _jumpTarget31 - ((sqInt) (((self_in_dispatchConcretize->address)) + (8 + 4)) );
				/* end computeJumpTargetOffsetPlus: */
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset23));
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = 4008835600U;
				/* end machineCodeAt:put: */
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[4 / 4] = ((int) (((usqInt) GT ) << 28) ) | (((int) (((usqInt) (10 | (0 & 1)) ) << 24) ) | ((((usqInt) _offset23 ) >> 2) & 0xFFFFFF));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 8;
				/* end concretizeFPConditionalJump: */
				return;
			}
		}
		break;
		case JumpFPLessOrEqual:
		{
			{
				/* begin concretizeFPConditionalJump: */
				/* begin computeJumpTargetOffsetPlus: */
				/* begin jumpTargetAddress */
				_jumpTarget223 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				assertSaneJumpTarget(_jumpTarget223);
				if ((addressIsInInstructions(_jumpTarget223)) || (_jumpTarget223 == (methodLabel()))) {
					_jumpTarget223 = ((AbstractInstruction *) ((_jumpTarget223->address)) );
				}
				assert(_jumpTarget223 != 0);
				_jumpTarget32 = ((sqInt) _jumpTarget223 );
				/* end jumpTargetAddress */
				_offset24 = _jumpTarget32 - ((sqInt) (((self_in_dispatchConcretize->address)) + (8 + 4)) );
				/* end computeJumpTargetOffsetPlus: */
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset24));
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = 4008835600U;
				/* end machineCodeAt:put: */
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[4 / 4] = ((int) (((usqInt) LE ) << 28) ) | (((int) (((usqInt) (10 | (0 & 1)) ) << 24) ) | ((((usqInt) _offset24 ) >> 2) & 0xFFFFFF));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 8;
				/* end concretizeFPConditionalJump: */
				return;
			}
		}
		break;
		case JumpFPOrdered:
		{
			{
				/* begin concretizeFPConditionalJump: */
				/* begin computeJumpTargetOffsetPlus: */
				/* begin jumpTargetAddress */
				_jumpTarget224 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				assertSaneJumpTarget(_jumpTarget224);
				if ((addressIsInInstructions(_jumpTarget224)) || (_jumpTarget224 == (methodLabel()))) {
					_jumpTarget224 = ((AbstractInstruction *) ((_jumpTarget224->address)) );
				}
				assert(_jumpTarget224 != 0);
				_jumpTarget33 = ((sqInt) _jumpTarget224 );
				/* end jumpTargetAddress */
				_offset25 = _jumpTarget33 - ((sqInt) (((self_in_dispatchConcretize->address)) + (8 + 4)) );
				/* end computeJumpTargetOffsetPlus: */
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset25));
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = 4008835600U;
				/* end machineCodeAt:put: */
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[4 / 4] = ((int) (((usqInt) VC ) << 28) ) | (((int) (((usqInt) (10 | (0 & 1)) ) << 24) ) | ((((usqInt) _offset25 ) >> 2) & 0xFFFFFF));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 8;
				/* end concretizeFPConditionalJump: */
				return;
			}
		}
		break;
		case JumpFPUnordered:
		{
			{
				/* begin concretizeFPConditionalJump: */
				/* begin computeJumpTargetOffsetPlus: */
				/* begin jumpTargetAddress */
				_jumpTarget225 = ((AbstractInstruction *) ((self_in_dispatchConcretize->operands)[0]) );
				assertSaneJumpTarget(_jumpTarget225);
				if ((addressIsInInstructions(_jumpTarget225)) || (_jumpTarget225 == (methodLabel()))) {
					_jumpTarget225 = ((AbstractInstruction *) ((_jumpTarget225->address)) );
				}
				assert(_jumpTarget225 != 0);
				_jumpTarget34 = ((sqInt) _jumpTarget225 );
				/* end jumpTargetAddress */
				_offset26 = _jumpTarget34 - ((sqInt) (((self_in_dispatchConcretize->address)) + (8 + 4)) );
				/* end computeJumpTargetOffsetPlus: */
				assert(isInImmediateJumpRange(self_in_dispatchConcretize, _offset26));
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = 4008835600U;
				/* end machineCodeAt:put: */
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[4 / 4] = ((int) (((usqInt) VS ) << 28) ) | (((int) (((usqInt) (10 | (0 & 1)) ) << 24) ) | ((((usqInt) _offset26 ) >> 2) & 0xFFFFFF));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 8;
				/* end concretizeFPConditionalJump: */
				return;
			}
		}
		break;
		case RetN:
		{
			{
				/* begin concretizeRetN */
				_offset27 = (self_in_dispatchConcretize->operands)[0];
				if (_offset27 == 0) {
					/* begin machineCodeAt:put: */
					_aWord5 = movrn(self_in_dispatchConcretize, PC, LR);
					(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord5;
					/* end machineCodeAt:put: */
					(self_in_dispatchConcretize->machineCodeSize) = 4;
					goto l134;
				}
				assert(_offset27 < 0xFF);
				/* begin machineCodeAt:put: */
				_aWord22 = addrnimmror(self_in_dispatchConcretize, SP, SP, _offset27, 0);
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord22;
				/* end machineCodeAt:put: */
				/* begin machineCodeAt:put: */
				_aWord32 = movrn(self_in_dispatchConcretize, PC, LR);
				(self_in_dispatchConcretize->machineCode)[4 / 4] = _aWord32;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 8;
				l134:
				;
				/* end concretizeRetN */
				return;
			}
		}
		break;
		case Stop:
		{
			{
				/* begin concretizeStop */
				/* begin machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCode)[0 / 4] = ((int) (((usqInt) AL ) << 28) ) | ((18U << 20) | (7U << 4));
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeStop */
				return;
			}
		}
		break;
		case AddCqR:
		{
			{
				/* begin concretizeNegateableDataOperationCqR: */
				_val = (self_in_dispatchConcretize->operands)[0];
				_rn = (self_in_dispatchConcretize->operands)[1];
				_rd = _rn;
				/* begin rotateable8bitSignedImmediate:ifTrue:ifFalse: */
				_value = _val;
				while (1) {
					if ((_value & 0xFF) == _value) {
						{
							_negate = _val != _value;
							/* begin machineCodeAt:put: */
							/* begin type:op:set:rn:rd:shifterOperand: */
							_flagsOrOpcode = ((_negate)
								 ? inverseOpcodeFor(self_in_dispatchConcretize, AddOpcode)
								 : AddOpcode);
							_aWord6 = ((((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((sqInt) (((usqInt) _flagsOrOpcode ) << 21) ) | (1U << 20)))) | ((_rn << 16) | ((int) (((usqInt) _rd ) << 12) ))) | ((((int) (((usqInt) (((usqInt) 0 ) >> 1) ) << 8) ) | _value) & 0xFFF);
							/* end type:op:set:rn:rd:shifterOperand: */
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord6;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l144;
						}
						goto l142;
					}
					for (_i = 2; _i <= 30; _i += 2) {
						if ((_value & (((0xFFU << _i) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i)))) == _value) {
							{
								_negate = _val != _value;
								_immediate = (((usqInt) _value ) >> _i) | (((sqInt) (((usqInt) _value ) << (32 - _i)) ) & 0xFFFFFFFFU);
								_rot = 32 - _i;
								/* begin machineCodeAt:put: */
								/* begin type:op:set:rn:rd:shifterOperand: */
								_flagsOrOpcode2 = ((_negate)
									 ? inverseOpcodeFor(self_in_dispatchConcretize, AddOpcode)
									 : AddOpcode);
								_aWord6 = ((((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((sqInt) (((usqInt) _flagsOrOpcode2 ) << 21) ) | (1U << 20)))) | ((_rn << 16) | ((int) (((usqInt) _rd ) << 12) ))) | ((((sqInt) (((usqInt) (((usqInt) _rot ) >> 1) ) << 8) ) | _immediate) & 0xFFF);
								/* end type:op:set:rn:rd:shifterOperand: */
								(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord6;
								/* end machineCodeAt:put: */
								(self_in_dispatchConcretize->machineCodeSize) = 4;
								goto l144;
							}
							goto l142;
						}
					}
					if (!((_value == _val) && (_val != 0))) 
						break;
					_value = -_val;
				}
				{
					if (_val > 0) {
						_hb = highBit(_val);
						if ((1U << _hb) == (_val + 1)) {
							/* begin machineCodeAt:put: */
							_aWord23 = mvnimmror(self_in_dispatchConcretize, ConcreteIPReg, 0, 0);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord23;
							/* end machineCodeAt:put: */
							/* begin machineCodeAt:put: */
							_aWord33 = dataOpTyperdrnrmlsr(self_in_dispatchConcretize, AddOpcode, _rd, _rn, ConcreteIPReg, 32 - _hb);
							(self_in_dispatchConcretize->machineCode)[4 / 4] = _aWord33;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 8;
							goto l144;
						}
					}
					/* begin concretizeDataOperationCwR: */
					_constant = (self_in_dispatchConcretize->operands)[0];
					_rn2 = (self_in_dispatchConcretize->operands)[1];
					_rd2 = _rn2;
					/* begin moveCw:intoR: */
					assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
					assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
					/* begin machineCodeAt:put: */
					_aWord42 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
						 ? 1
						 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
					(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord42;
					/* end machineCodeAt:put: */
					_instrOffset3 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
					/* end moveCw:intoR: */
					/* begin machineCodeAt:put: */
					_aWord222 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) AddOpcode ) << 21) ) | (1U << 20)))) | ((_rn2 << 16) | ((int) (((usqInt) _rd2 ) << 12) ))) | (ConcreteIPReg & 0xFFF);
					(self_in_dispatchConcretize->machineCode)[_instrOffset3 / 4] = _aWord222;
					/* end machineCodeAt:put: */
					(self_in_dispatchConcretize->machineCodeSize) = _instrOffset3 + 4;
					goto l144;
					/* end concretizeDataOperationCwR: */
				}
				l142:
				;
				/* end rotateable8bitSignedImmediate:ifTrue:ifFalse: */
				l144:
				;
				/* end concretizeNegateableDataOperationCqR: */
				return;
			}
		}
		break;
		case AndCqR:
		{
			{
				/* begin concretizeInvertibleDataOperationCqR: */
				_val3 = (self_in_dispatchConcretize->operands)[0];
				_rn18 = (self_in_dispatchConcretize->operands)[1];
				assert(!(((self_in_dispatchConcretize->opcode)) == CmpOpcode));
				/* begin rotateable8bitBitwiseImmediate:ifTrue:ifFalse: */
				_value5 = _val3;
				while (1) {
					if ((_value5 & 0xFF) == _value5) {
						{
							_invert3 = _val3 != _value5;
							/* begin machineCodeAt:put: */
							/* begin type:op:set:rn:rd:shifterOperand: */
							_flagsOrOpcode3 = ((_invert3)
								 ? inverseOpcodeFor(self_in_dispatchConcretize, AndOpcode)
								 : AndOpcode);
							_aWord67 = ((((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((sqInt) (((usqInt) _flagsOrOpcode3 ) << 21) ) | (1U << 20)))) | ((_rn18 << 16) | (_rn18 << 12))) | ((((int) (((usqInt) (((usqInt) 0 ) >> 1) ) << 8) ) | _value5) & 0xFFF);
							/* end type:op:set:rn:rd:shifterOperand: */
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord67;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l332;
						}
						goto l324;
					}
					for (_i9 = 2; _i9 <= 30; _i9 += 2) {
						if ((_value5 & (((0xFFU << _i9) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i9)))) == _value5) {
							{
								_invert3 = _val3 != _value5;
								_immediate15 = (((usqInt) _value5 ) >> _i9) | ((_value5 << (32 - _i9)) & 0xFFFFFFFFU);
								_rot9 = 32 - _i9;
								/* begin machineCodeAt:put: */
								/* begin type:op:set:rn:rd:shifterOperand: */
								_flagsOrOpcode22 = ((_invert3)
									 ? inverseOpcodeFor(self_in_dispatchConcretize, AndOpcode)
									 : AndOpcode);
								_aWord67 = ((((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((sqInt) (((usqInt) _flagsOrOpcode22 ) << 21) ) | (1U << 20)))) | ((_rn18 << 16) | (_rn18 << 12))) | ((((sqInt) (((usqInt) (((usqInt) _rot9 ) >> 1) ) << 8) ) | _immediate15) & 0xFFF);
								/* end type:op:set:rn:rd:shifterOperand: */
								(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord67;
								/* end machineCodeAt:put: */
								(self_in_dispatchConcretize->machineCodeSize) = 4;
								goto l332;
							}
							goto l324;
						}
					}
					if (!(_value5 == _val3)) 
						break;
					_value5 = ((_val3 < 0)
						 ? -1 - _val3
						 : ((unsigned int) (~_val3) ));
				}
				{
					if (_val3 > 0) {
						_hb3 = highBit(_val3);
						if ((1U << _hb3) == (_val3 + 1)) {
							/* begin machineCodeAt:put: */
							_aWord231 = mvnimmror(self_in_dispatchConcretize, ConcreteIPReg, 0, 0);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord231;
							/* end machineCodeAt:put: */
							/* begin machineCodeAt:put: */
							_aWord323 = dataOpTyperdrnrmlsr(self_in_dispatchConcretize, AndOpcode, _rn18, _rn18, ConcreteIPReg, 32 - _hb3);
							(self_in_dispatchConcretize->machineCode)[4 / 4] = _aWord323;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 8;
							goto l332;
						}
					}
					/* begin concretizeDataOperationCqR: */
					_val22 = (self_in_dispatchConcretize->operands)[0];
					_rn32 = (self_in_dispatchConcretize->operands)[1];
					_rd18 = ((((self_in_dispatchConcretize->opcode)) == CmpOpcode)
						 ? 0
						 : _rn32);
					/* begin rotateable8bitImmediate:ifTrue:ifFalse: */
					if ((_val22 & 0xFF) == _val22) {
						{
							/* begin machineCodeAt:put: */
							_aWord510 = ((((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((int) (((usqInt) AndOpcode ) << 21) ) | (1U << 20)))) | ((_rn32 << 16) | ((int) (((usqInt) _rd18 ) << 12) ))) | ((((int) (((usqInt) (((usqInt) 0 ) >> 1) ) << 8) ) | _val22) & 0xFFF);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord510;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l332;
						}
						goto l366;
					}
					for (_i24 = 2; _i24 <= 30; _i24 += 2) {
						if ((_val22 & (((0xFFU << _i24) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i24)))) == _val22) {
							{
								_immediate22 = (((usqInt) _val22 ) >> _i24) | (((sqInt) (((usqInt) _val22 ) << (32 - _i24)) ) & 0xFFFFFFFFU);
								_rot22 = 32 - _i24;
								/* begin machineCodeAt:put: */
								_aWord510 = ((((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((int) (((usqInt) AndOpcode ) << 21) ) | (1U << 20)))) | ((_rn32 << 16) | ((int) (((usqInt) _rd18 ) << 12) ))) | ((((sqInt) (((usqInt) (((usqInt) _rot22 ) >> 1) ) << 8) ) | _immediate22) & 0xFFF);
								(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord510;
								/* end machineCodeAt:put: */
								(self_in_dispatchConcretize->machineCodeSize) = 4;
								goto l332;
							}
							goto l366;
						}
					}
					{
						if (_val22 > 0) {
							_hb22 = highBit(_val22);
							if ((1U << _hb22) == (_val22 + 1)) {
								/* begin machineCodeAt:put: */
								_aWord232 = mvnimmror(self_in_dispatchConcretize, ConcreteIPReg, 0, 0);
								(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord232;
								/* end machineCodeAt:put: */
								/* begin machineCodeAt:put: */
								_aWord322 = dataOpTyperdrnrmlsr(self_in_dispatchConcretize, AndOpcode, _rd18, _rn32, ConcreteIPReg, 32 - _hb22);
								(self_in_dispatchConcretize->machineCode)[4 / 4] = _aWord322;
								/* end machineCodeAt:put: */
								(self_in_dispatchConcretize->machineCodeSize) = 8;
								goto l332;
							}
						}
						/* begin concretizeDataOperationCwR: */
						_constant11 = (self_in_dispatchConcretize->operands)[0];
						_rn23 = (self_in_dispatchConcretize->operands)[1];
						_rd23 = _rn23;
						/* begin moveCw:intoR: */
						assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
						assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
						/* begin machineCodeAt:put: */
						_aWord413 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
							 ? 1
							 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
						(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord413;
						/* end machineCodeAt:put: */
						_instrOffset27 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
						/* end moveCw:intoR: */
						/* begin machineCodeAt:put: */
						_aWord2210 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) AndOpcode ) << 21) ) | (1U << 20)))) | ((_rn23 << 16) | ((int) (((usqInt) _rd23 ) << 12) ))) | (ConcreteIPReg & 0xFFF);
						(self_in_dispatchConcretize->machineCode)[_instrOffset27 / 4] = _aWord2210;
						/* end machineCodeAt:put: */
						(self_in_dispatchConcretize->machineCodeSize) = _instrOffset27 + 4;
						goto l332;
						/* end concretizeDataOperationCwR: */
					}
					l366:
					;
					/* end rotateable8bitImmediate:ifTrue:ifFalse: */
					goto l332;
					/* end concretizeDataOperationCqR: */
				}
				l324:
				;
				/* end rotateable8bitBitwiseImmediate:ifTrue:ifFalse: */
				l332:
				;
				/* end concretizeInvertibleDataOperationCqR: */
				return;
			}
		}
		break;
		case AndCqRR:
		{
			{
				/* begin concretizeAndCqRR */
				_val4 = (self_in_dispatchConcretize->operands)[0];
				_srcReg20 = (self_in_dispatchConcretize->operands)[1];
				_dstReg2 = (self_in_dispatchConcretize->operands)[2];
				/* begin rotateable8bitBitwiseImmediate:ifTrue:ifFalse: */
				_value6 = _val4;
				while (1) {
					if ((_value6 & 0xFF) == _value6) {
						{
							_invert4 = _val4 != _value6;
							/* begin machineCodeAt:put: */
							_aWord68 = ((_invert4)
								 ? bicsrnimmror(self_in_dispatchConcretize, _dstReg2, _srcReg20, _value6, 0)
								 : andsrnimmror(self_in_dispatchConcretize, _dstReg2, _srcReg20, _value6, 0));
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord68;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l340;
						}
						goto l336;
					}
					for (_i10 = 2; _i10 <= 30; _i10 += 2) {
						if ((_value6 & (((0xFFU << _i10) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i10)))) == _value6) {
							{
								_invert4 = _val4 != _value6;
								_immediate16 = (((usqInt) _value6 ) >> _i10) | ((_value6 << (32 - _i10)) & 0xFFFFFFFFU);
								_rot10 = 32 - _i10;
								/* begin machineCodeAt:put: */
								_aWord68 = ((_invert4)
									 ? bicsrnimmror(self_in_dispatchConcretize, _dstReg2, _srcReg20, _immediate16, _rot10)
									 : andsrnimmror(self_in_dispatchConcretize, _dstReg2, _srcReg20, _immediate16, _rot10));
								(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord68;
								/* end machineCodeAt:put: */
								(self_in_dispatchConcretize->machineCodeSize) = 4;
								goto l340;
							}
							goto l336;
						}
					}
					if (!(_value6 == _val4)) 
						break;
					_value6 = ((_val4 < 0)
						 ? -1 - _val4
						 : ((unsigned int) (~_val4) ));
				}
				{
					_hb4 = highBit((self_in_dispatchConcretize->operands)[0]);
					if ((1U << _hb4) == (_val4 + 1)) {
						/* begin machineCodeAt:put: */
						_aWord233 = mvnimmror(self_in_dispatchConcretize, ConcreteIPReg, 0, 0);
						(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord233;
						/* end machineCodeAt:put: */
						/* begin machineCodeAt:put: */
						_aWord324 = dataOpTyperdrnrmlsr(self_in_dispatchConcretize, AndOpcode, _dstReg2, _srcReg20, ConcreteIPReg, 32 - _hb4);
						(self_in_dispatchConcretize->machineCode)[4 / 4] = _aWord324;
						/* end machineCodeAt:put: */
						(self_in_dispatchConcretize->machineCodeSize) = 8;
						goto l340;
					} else {
						/* begin concretizeDataOperationCwR: */
						_constant12 = (self_in_dispatchConcretize->operands)[0];
						_rn19 = (self_in_dispatchConcretize->operands)[1];
						_rd19 = _rn19;
						/* begin moveCw:intoR: */
						assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
						assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
						/* begin machineCodeAt:put: */
						_aWord414 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
							 ? 1
							 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
						(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord414;
						/* end machineCodeAt:put: */
						_instrOffset28 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
						/* end moveCw:intoR: */
						/* begin machineCodeAt:put: */
						_aWord2211 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) AndOpcode ) << 21) ) | (1U << 20)))) | ((_rn19 << 16) | ((int) (((usqInt) _rd19 ) << 12) ))) | (ConcreteIPReg & 0xFFF);
						(self_in_dispatchConcretize->machineCode)[_instrOffset28 / 4] = _aWord2211;
						/* end machineCodeAt:put: */
						(self_in_dispatchConcretize->machineCodeSize) = _instrOffset28 + 4;
						goto l340;
						/* end concretizeDataOperationCwR: */
					}
				}
				l336:
				;
				/* end rotateable8bitBitwiseImmediate:ifTrue:ifFalse: */
				l340:
				;
				/* end concretizeAndCqRR */
				return;
			}
		}
		break;
		case CmpCqR:
		{
			{
				/* begin concretizeNegateableDataOperationCqR: */
				_val2 = (self_in_dispatchConcretize->operands)[0];
				_rn3 = (self_in_dispatchConcretize->operands)[1];
				_rd3 = 0;
				/* begin rotateable8bitSignedImmediate:ifTrue:ifFalse: */
				_value2 = _val2;
				while (1) {
					if ((_value2 & 0xFF) == _value2) {
						{
							_negate2 = _val2 != _value2;
							/* begin machineCodeAt:put: */
							/* begin type:op:set:rn:rd:shifterOperand: */
							_flagsOrOpcode4 = ((_negate2)
								 ? inverseOpcodeFor(self_in_dispatchConcretize, CmpOpcode)
								 : CmpOpcode);
							_aWord7 = ((((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((sqInt) (((usqInt) _flagsOrOpcode4 ) << 21) ) | (1U << 20)))) | ((_rn3 << 16) | ((int) (((usqInt) _rd3 ) << 12) ))) | ((((int) (((usqInt) (((usqInt) 0 ) >> 1) ) << 8) ) | _value2) & 0xFFF);
							/* end type:op:set:rn:rd:shifterOperand: */
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord7;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l152;
						}
						goto l150;
					}
					for (_i2 = 2; _i2 <= 30; _i2 += 2) {
						if ((_value2 & (((0xFFU << _i2) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i2)))) == _value2) {
							{
								_negate2 = _val2 != _value2;
								_immediate2 = (((usqInt) _value2 ) >> _i2) | (((sqInt) (((usqInt) _value2 ) << (32 - _i2)) ) & 0xFFFFFFFFU);
								_rot2 = 32 - _i2;
								/* begin machineCodeAt:put: */
								/* begin type:op:set:rn:rd:shifterOperand: */
								_flagsOrOpcode5 = ((_negate2)
									 ? inverseOpcodeFor(self_in_dispatchConcretize, CmpOpcode)
									 : CmpOpcode);
								_aWord7 = ((((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((sqInt) (((usqInt) _flagsOrOpcode5 ) << 21) ) | (1U << 20)))) | ((_rn3 << 16) | ((int) (((usqInt) _rd3 ) << 12) ))) | ((((sqInt) (((usqInt) (((usqInt) _rot2 ) >> 1) ) << 8) ) | _immediate2) & 0xFFF);
								/* end type:op:set:rn:rd:shifterOperand: */
								(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord7;
								/* end machineCodeAt:put: */
								(self_in_dispatchConcretize->machineCodeSize) = 4;
								goto l152;
							}
							goto l150;
						}
					}
					if (!((_value2 == _val2) && (_val2 != 0))) 
						break;
					_value2 = -_val2;
				}
				{
					if (_val2 > 0) {
						_hb2 = highBit(_val2);
						if ((1U << _hb2) == (_val2 + 1)) {
							/* begin machineCodeAt:put: */
							_aWord24 = mvnimmror(self_in_dispatchConcretize, ConcreteIPReg, 0, 0);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord24;
							/* end machineCodeAt:put: */
							/* begin machineCodeAt:put: */
							_aWord34 = dataOpTyperdrnrmlsr(self_in_dispatchConcretize, CmpOpcode, _rd3, _rn3, ConcreteIPReg, 32 - _hb2);
							(self_in_dispatchConcretize->machineCode)[4 / 4] = _aWord34;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 8;
							goto l152;
						}
					}
					/* begin concretizeDataOperationCwR: */
					_constant2 = (self_in_dispatchConcretize->operands)[0];
					_rn22 = (self_in_dispatchConcretize->operands)[1];
					_rd22 = 0;
					/* begin moveCw:intoR: */
					assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
					assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
					/* begin machineCodeAt:put: */
					_aWord43 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
						 ? 1
						 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
					(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord43;
					/* end machineCodeAt:put: */
					_instrOffset4 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
					/* end moveCw:intoR: */
					/* begin machineCodeAt:put: */
					_aWord223 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) CmpOpcode ) << 21) ) | (1U << 20)))) | ((_rn22 << 16) | ((int) (((usqInt) _rd22 ) << 12) ))) | (ConcreteIPReg & 0xFFF);
					(self_in_dispatchConcretize->machineCode)[_instrOffset4 / 4] = _aWord223;
					/* end machineCodeAt:put: */
					(self_in_dispatchConcretize->machineCodeSize) = _instrOffset4 + 4;
					goto l152;
					/* end concretizeDataOperationCwR: */
				}
				l150:
				;
				/* end rotateable8bitSignedImmediate:ifTrue:ifFalse: */
				l152:
				;
				/* end concretizeNegateableDataOperationCqR: */
				return;
			}
		}
		break;
		case OrCqR:
		{
			{
				/* begin concretizeDataOperationCqR: */
				_val5 = (self_in_dispatchConcretize->operands)[0];
				_rn20 = (self_in_dispatchConcretize->operands)[1];
				_rd20 = ((((self_in_dispatchConcretize->opcode)) == CmpOpcode)
					 ? 0
					 : _rn20);
				/* begin rotateable8bitImmediate:ifTrue:ifFalse: */
				if ((_val5 & 0xFF) == _val5) {
					{
						/* begin machineCodeAt:put: */
						_aWord69 = ((((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((int) (((usqInt) OrOpcode ) << 21) ) | (1U << 20)))) | ((_rn20 << 16) | ((int) (((usqInt) _rd20 ) << 12) ))) | ((((int) (((usqInt) (((usqInt) 0 ) >> 1) ) << 8) ) | _val5) & 0xFFF);
						(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord69;
						/* end machineCodeAt:put: */
						(self_in_dispatchConcretize->machineCodeSize) = 4;
						goto l350;
					}
					goto l346;
				}
				for (_i11 = 2; _i11 <= 30; _i11 += 2) {
					if ((_val5 & (((0xFFU << _i11) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i11)))) == _val5) {
						{
							_immediate17 = (((usqInt) _val5 ) >> _i11) | (((sqInt) (((usqInt) _val5 ) << (32 - _i11)) ) & 0xFFFFFFFFU);
							_rot11 = 32 - _i11;
							/* begin machineCodeAt:put: */
							_aWord69 = ((((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((int) (((usqInt) OrOpcode ) << 21) ) | (1U << 20)))) | ((_rn20 << 16) | ((int) (((usqInt) _rd20 ) << 12) ))) | ((((sqInt) (((usqInt) (((usqInt) _rot11 ) >> 1) ) << 8) ) | _immediate17) & 0xFFF);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord69;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l350;
						}
						goto l346;
					}
				}
				{
					if (_val5 > 0) {
						_hb5 = highBit(_val5);
						if ((1U << _hb5) == (_val5 + 1)) {
							/* begin machineCodeAt:put: */
							_aWord234 = mvnimmror(self_in_dispatchConcretize, ConcreteIPReg, 0, 0);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord234;
							/* end machineCodeAt:put: */
							/* begin machineCodeAt:put: */
							_aWord325 = dataOpTyperdrnrmlsr(self_in_dispatchConcretize, OrOpcode, _rd20, _rn20, ConcreteIPReg, 32 - _hb5);
							(self_in_dispatchConcretize->machineCode)[4 / 4] = _aWord325;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 8;
							goto l350;
						}
					}
					/* begin concretizeDataOperationCwR: */
					_constant13 = (self_in_dispatchConcretize->operands)[0];
					_rn24 = (self_in_dispatchConcretize->operands)[1];
					_rd24 = _rn24;
					/* begin moveCw:intoR: */
					assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
					assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
					/* begin machineCodeAt:put: */
					_aWord415 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
						 ? 1
						 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
					(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord415;
					/* end machineCodeAt:put: */
					_instrOffset29 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
					/* end moveCw:intoR: */
					/* begin machineCodeAt:put: */
					_aWord2212 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) OrOpcode ) << 21) ) | (1U << 20)))) | ((_rn24 << 16) | ((int) (((usqInt) _rd24 ) << 12) ))) | (ConcreteIPReg & 0xFFF);
					(self_in_dispatchConcretize->machineCode)[_instrOffset29 / 4] = _aWord2212;
					/* end machineCodeAt:put: */
					(self_in_dispatchConcretize->machineCodeSize) = _instrOffset29 + 4;
					goto l350;
					/* end concretizeDataOperationCwR: */
				}
				l346:
				;
				/* end rotateable8bitImmediate:ifTrue:ifFalse: */
				l350:
				;
				/* end concretizeDataOperationCqR: */
				return;
			}
		}
		break;
		case SubCqR:
		{
			{
				/* begin concretizeSubCqR */
				_word = (self_in_dispatchConcretize->operands)[0];
				/* begin rotateable8bitImmediate:ifTrue:ifFalse: */
				if ((_word & 0xFF) == _word) {
					{
						_reg2 = (self_in_dispatchConcretize->operands)[1];
						/* begin machineCodeAt:put: */
						_aWord8 = subsrnimmror(self_in_dispatchConcretize, _reg2, _reg2, _word, 0);
						(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord8;
						/* end machineCodeAt:put: */
						(self_in_dispatchConcretize->machineCodeSize) = 4;
						goto l160;
					}
					goto l158;
				}
				for (_i22 = 2; _i22 <= 30; _i22 += 2) {
					if ((_word & (((0xFFU << _i22) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i22)))) == _word) {
						{
							_immediate3 = (((usqInt) _word ) >> _i22) | (((sqInt) (((usqInt) _word ) << (32 - _i22)) ) & 0xFFFFFFFFU);
							_rot3 = 32 - _i22;
							_reg2 = (self_in_dispatchConcretize->operands)[1];
							/* begin machineCodeAt:put: */
							_aWord8 = subsrnimmror(self_in_dispatchConcretize, _reg2, _reg2, _immediate3, _rot3);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord8;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l160;
						}
						goto l158;
					}
				}
				{
					/* begin rotateable8bitImmediate:ifTrue:ifFalse: */
					if ((-_word & 0xFF) == -_word) {
						{
							_immediate3 = -_word;
							_reg2 = (self_in_dispatchConcretize->operands)[1];
							/* begin machineCodeAt:put: */
							_aWord25 = addsrnimmror(self_in_dispatchConcretize, _reg2, _reg2, _immediate3, 0);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord25;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l160;
						}
						goto l367;
					}
					for (_i3 = 2; _i3 <= 30; _i3 += 2) {
						if ((-_word & (((0xFFU << _i3) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i3)))) == -_word) {
							{
								_immediate3 = (((usqInt) -_word ) >> _i3) | (((sqInt) (((usqInt) -_word ) << (32 - _i3)) ) & 0xFFFFFFFFU);
								_rot3 = 32 - _i3;
								_reg2 = (self_in_dispatchConcretize->operands)[1];
								/* begin machineCodeAt:put: */
								_aWord25 = addsrnimmror(self_in_dispatchConcretize, _reg2, _reg2, _immediate3, _rot3);
								(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord25;
								/* end machineCodeAt:put: */
								(self_in_dispatchConcretize->machineCodeSize) = 4;
								goto l160;
							}
							goto l367;
						}
					}
					{
						/* begin concretizeDataOperationCwR: */
						_constant3 = (self_in_dispatchConcretize->operands)[0];
						_rn4 = (self_in_dispatchConcretize->operands)[1];
						_rd4 = _rn4;
						/* begin moveCw:intoR: */
						assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
						assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
						/* begin machineCodeAt:put: */
						_aWord35 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
							 ? 1
							 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
						(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord35;
						/* end machineCodeAt:put: */
						_instrOffset5 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
						/* end moveCw:intoR: */
						/* begin machineCodeAt:put: */
						_aWord224 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) SubOpcode ) << 21) ) | (1U << 20)))) | ((_rn4 << 16) | ((int) (((usqInt) _rd4 ) << 12) ))) | (ConcreteIPReg & 0xFFF);
						(self_in_dispatchConcretize->machineCode)[_instrOffset5 / 4] = _aWord224;
						/* end machineCodeAt:put: */
						(self_in_dispatchConcretize->machineCodeSize) = _instrOffset5 + 4;
						goto l160;
						/* end concretizeDataOperationCwR: */
					}
					l367:
					;
					/* end rotateable8bitImmediate:ifTrue:ifFalse: */
				}
				l158:
				;
				/* end rotateable8bitImmediate:ifTrue:ifFalse: */
				l160:
				;
				/* end concretizeSubCqR */
				return;
			}
		}
		break;
		case TstCqR:
		{
			{
				/* begin concretizeTstCqR */
				/* begin rotateable8bitImmediate:ifTrue:ifFalse: */
				_constant22 = (self_in_dispatchConcretize->operands)[0];
				if ((_constant22 & 0xFF) == _constant22) {
					{
						_reg3 = (self_in_dispatchConcretize->operands)[1];
						/* begin machineCodeAt:put: */
						_aWord9 = tstrnimmror(self_in_dispatchConcretize, _reg3, _reg3, _constant22, 0);
						(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord9;
						/* end machineCodeAt:put: */
						(self_in_dispatchConcretize->machineCodeSize) = 4;
						goto l166;
					}
					goto l165;
				}
				for (_i4 = 2; _i4 <= 30; _i4 += 2) {
					if ((_constant22 & (((0xFFU << _i4) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i4)))) == _constant22) {
						{
							_immediate4 = (((usqInt) _constant22 ) >> _i4) | (((sqInt) (((usqInt) _constant22 ) << (32 - _i4)) ) & 0xFFFFFFFFU);
							_rot4 = 32 - _i4;
							_reg3 = (self_in_dispatchConcretize->operands)[1];
							/* begin machineCodeAt:put: */
							_aWord9 = tstrnimmror(self_in_dispatchConcretize, _reg3, _reg3, _immediate4, _rot4);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord9;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l166;
						}
						goto l165;
					}
				}
				{
					/* begin concretizeDataOperationCwR: */
					_constant4 = (self_in_dispatchConcretize->operands)[0];
					_rn5 = (self_in_dispatchConcretize->operands)[1];
					_rd5 = _rn5;
					/* begin moveCw:intoR: */
					assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
					assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
					/* begin machineCodeAt:put: */
					_aWord36 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
						 ? 1
						 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
					(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord36;
					/* end machineCodeAt:put: */
					_instrOffset6 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
					/* end moveCw:intoR: */
					/* begin machineCodeAt:put: */
					_aWord26 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) TstOpcode ) << 21) ) | (1U << 20)))) | ((_rn5 << 16) | ((int) (((usqInt) _rd5 ) << 12) ))) | (ConcreteIPReg & 0xFFF);
					(self_in_dispatchConcretize->machineCode)[_instrOffset6 / 4] = _aWord26;
					/* end machineCodeAt:put: */
					(self_in_dispatchConcretize->machineCodeSize) = _instrOffset6 + 4;
					goto l166;
					/* end concretizeDataOperationCwR: */
				}
				l165:
				;
				/* end rotateable8bitImmediate:ifTrue:ifFalse: */
				l166:
				;
				/* end concretizeTstCqR */
				return;
			}
		}
		break;
		case XorCqR:
		{
			{
				/* begin concretizeInvertibleDataOperationCqR: */
				_val6 = (self_in_dispatchConcretize->operands)[0];
				_rn21 = (self_in_dispatchConcretize->operands)[1];
				assert(!(((self_in_dispatchConcretize->opcode)) == CmpOpcode));
				/* begin rotateable8bitBitwiseImmediate:ifTrue:ifFalse: */
				_value7 = _val6;
				while (1) {
					if ((_value7 & 0xFF) == _value7) {
						{
							_invert5 = _val6 != _value7;
							/* begin machineCodeAt:put: */
							/* begin type:op:set:rn:rd:shifterOperand: */
							_flagsOrOpcode6 = ((_invert5)
								 ? inverseOpcodeFor(self_in_dispatchConcretize, XorOpcode)
								 : XorOpcode);
							_aWord70 = ((((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((sqInt) (((usqInt) _flagsOrOpcode6 ) << 21) ) | (1U << 20)))) | ((_rn21 << 16) | (_rn21 << 12))) | ((((int) (((usqInt) (((usqInt) 0 ) >> 1) ) << 8) ) | _value7) & 0xFFF);
							/* end type:op:set:rn:rd:shifterOperand: */
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord70;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l364;
						}
						goto l356;
					}
					for (_i12 = 2; _i12 <= 30; _i12 += 2) {
						if ((_value7 & (((0xFFU << _i12) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i12)))) == _value7) {
							{
								_invert5 = _val6 != _value7;
								_immediate18 = (((usqInt) _value7 ) >> _i12) | ((_value7 << (32 - _i12)) & 0xFFFFFFFFU);
								_rot12 = 32 - _i12;
								/* begin machineCodeAt:put: */
								/* begin type:op:set:rn:rd:shifterOperand: */
								_flagsOrOpcode23 = ((_invert5)
									 ? inverseOpcodeFor(self_in_dispatchConcretize, XorOpcode)
									 : XorOpcode);
								_aWord70 = ((((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((sqInt) (((usqInt) _flagsOrOpcode23 ) << 21) ) | (1U << 20)))) | ((_rn21 << 16) | (_rn21 << 12))) | ((((sqInt) (((usqInt) (((usqInt) _rot12 ) >> 1) ) << 8) ) | _immediate18) & 0xFFF);
								/* end type:op:set:rn:rd:shifterOperand: */
								(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord70;
								/* end machineCodeAt:put: */
								(self_in_dispatchConcretize->machineCodeSize) = 4;
								goto l364;
							}
							goto l356;
						}
					}
					if (!(_value7 == _val6)) 
						break;
					_value7 = ((_val6 < 0)
						 ? -1 - _val6
						 : ((unsigned int) (~_val6) ));
				}
				{
					if (_val6 > 0) {
						_hb6 = highBit(_val6);
						if ((1U << _hb6) == (_val6 + 1)) {
							/* begin machineCodeAt:put: */
							_aWord235 = mvnimmror(self_in_dispatchConcretize, ConcreteIPReg, 0, 0);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord235;
							/* end machineCodeAt:put: */
							/* begin machineCodeAt:put: */
							_aWord327 = dataOpTyperdrnrmlsr(self_in_dispatchConcretize, XorOpcode, _rn21, _rn21, ConcreteIPReg, 32 - _hb6);
							(self_in_dispatchConcretize->machineCode)[4 / 4] = _aWord327;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 8;
							goto l364;
						}
					}
					/* begin concretizeDataOperationCqR: */
					_val23 = (self_in_dispatchConcretize->operands)[0];
					_rn33 = (self_in_dispatchConcretize->operands)[1];
					_rd21 = ((((self_in_dispatchConcretize->opcode)) == CmpOpcode)
						 ? 0
						 : _rn33);
					/* begin rotateable8bitImmediate:ifTrue:ifFalse: */
					if ((_val23 & 0xFF) == _val23) {
						{
							/* begin machineCodeAt:put: */
							_aWord511 = ((((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((int) (((usqInt) XorOpcode ) << 21) ) | (1U << 20)))) | ((_rn33 << 16) | ((int) (((usqInt) _rd21 ) << 12) ))) | ((((int) (((usqInt) (((usqInt) 0 ) >> 1) ) << 8) ) | _val23) & 0xFFF);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord511;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l364;
						}
						goto l368;
					}
					for (_i25 = 2; _i25 <= 30; _i25 += 2) {
						if ((_val23 & (((0xFFU << _i25) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i25)))) == _val23) {
							{
								_immediate23 = (((usqInt) _val23 ) >> _i25) | (((sqInt) (((usqInt) _val23 ) << (32 - _i25)) ) & 0xFFFFFFFFU);
								_rot23 = 32 - _i25;
								/* begin machineCodeAt:put: */
								_aWord511 = ((((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((int) (((usqInt) XorOpcode ) << 21) ) | (1U << 20)))) | ((_rn33 << 16) | ((int) (((usqInt) _rd21 ) << 12) ))) | ((((sqInt) (((usqInt) (((usqInt) _rot23 ) >> 1) ) << 8) ) | _immediate23) & 0xFFF);
								(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord511;
								/* end machineCodeAt:put: */
								(self_in_dispatchConcretize->machineCodeSize) = 4;
								goto l364;
							}
							goto l368;
						}
					}
					{
						if (_val23 > 0) {
							_hb23 = highBit(_val23);
							if ((1U << _hb23) == (_val23 + 1)) {
								/* begin machineCodeAt:put: */
								_aWord236 = mvnimmror(self_in_dispatchConcretize, ConcreteIPReg, 0, 0);
								(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord236;
								/* end machineCodeAt:put: */
								/* begin machineCodeAt:put: */
								_aWord326 = dataOpTyperdrnrmlsr(self_in_dispatchConcretize, XorOpcode, _rd21, _rn33, ConcreteIPReg, 32 - _hb23);
								(self_in_dispatchConcretize->machineCode)[4 / 4] = _aWord326;
								/* end machineCodeAt:put: */
								(self_in_dispatchConcretize->machineCodeSize) = 8;
								goto l364;
							}
						}
						/* begin concretizeDataOperationCwR: */
						_constant14 = (self_in_dispatchConcretize->operands)[0];
						_rn25 = (self_in_dispatchConcretize->operands)[1];
						_rd25 = _rn25;
						/* begin moveCw:intoR: */
						assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
						assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
						/* begin machineCodeAt:put: */
						_aWord416 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
							 ? 1
							 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
						(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord416;
						/* end machineCodeAt:put: */
						_instrOffset30 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
						/* end moveCw:intoR: */
						/* begin machineCodeAt:put: */
						_aWord2213 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) XorOpcode ) << 21) ) | (1U << 20)))) | ((_rn25 << 16) | ((int) (((usqInt) _rd25 ) << 12) ))) | (ConcreteIPReg & 0xFFF);
						(self_in_dispatchConcretize->machineCode)[_instrOffset30 / 4] = _aWord2213;
						/* end machineCodeAt:put: */
						(self_in_dispatchConcretize->machineCodeSize) = _instrOffset30 + 4;
						goto l364;
						/* end concretizeDataOperationCwR: */
					}
					l368:
					;
					/* end rotateable8bitImmediate:ifTrue:ifFalse: */
					goto l364;
					/* end concretizeDataOperationCqR: */
				}
				l356:
				;
				/* end rotateable8bitBitwiseImmediate:ifTrue:ifFalse: */
				l364:
				;
				/* end concretizeInvertibleDataOperationCqR: */
				return;
			}
		}
		break;
		case AddCwR:
		{
			{
				/* begin concretizeDataOperationCwR: */
				_constant5 = (self_in_dispatchConcretize->operands)[0];
				_rn6 = (self_in_dispatchConcretize->operands)[1];
				_rd6 = _rn6;
				/* begin moveCw:intoR: */
				assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
				assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
				/* begin machineCodeAt:put: */
				_aWord10 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
					 ? 1
					 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord10;
				/* end machineCodeAt:put: */
				_instrOffset7 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
				/* end moveCw:intoR: */
				/* begin machineCodeAt:put: */
				_aWord27 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) AddOpcode ) << 21) ) | (1U << 20)))) | ((_rn6 << 16) | ((int) (((usqInt) _rd6 ) << 12) ))) | (ConcreteIPReg & 0xFFF);
				(self_in_dispatchConcretize->machineCode)[_instrOffset7 / 4] = _aWord27;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = _instrOffset7 + 4;
				/* end concretizeDataOperationCwR: */
				return;
			}
		}
		break;
		case AndCwR:
		{
			{
				/* begin concretizeDataOperationCwR: */
				_constant6 = (self_in_dispatchConcretize->operands)[0];
				_rn7 = (self_in_dispatchConcretize->operands)[1];
				_rd7 = _rn7;
				/* begin moveCw:intoR: */
				assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
				assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
				/* begin machineCodeAt:put: */
				_aWord11 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
					 ? 1
					 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord11;
				/* end machineCodeAt:put: */
				_instrOffset8 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
				/* end moveCw:intoR: */
				/* begin machineCodeAt:put: */
				_aWord28 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) AndOpcode ) << 21) ) | (1U << 20)))) | ((_rn7 << 16) | ((int) (((usqInt) _rd7 ) << 12) ))) | (ConcreteIPReg & 0xFFF);
				(self_in_dispatchConcretize->machineCode)[_instrOffset8 / 4] = _aWord28;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = _instrOffset8 + 4;
				/* end concretizeDataOperationCwR: */
				return;
			}
		}
		break;
		case CmpCwR:
		{
			{
				/* begin concretizeDataOperationCwR: */
				_constant7 = (self_in_dispatchConcretize->operands)[0];
				_rn8 = (self_in_dispatchConcretize->operands)[1];
				_rd8 = 0;
				/* begin moveCw:intoR: */
				assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
				assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
				/* begin machineCodeAt:put: */
				_aWord12 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
					 ? 1
					 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord12;
				/* end machineCodeAt:put: */
				_instrOffset9 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
				/* end moveCw:intoR: */
				/* begin machineCodeAt:put: */
				_aWord29 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) CmpOpcode ) << 21) ) | (1U << 20)))) | ((_rn8 << 16) | ((int) (((usqInt) _rd8 ) << 12) ))) | (ConcreteIPReg & 0xFFF);
				(self_in_dispatchConcretize->machineCode)[_instrOffset9 / 4] = _aWord29;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = _instrOffset9 + 4;
				/* end concretizeDataOperationCwR: */
				return;
			}
		}
		break;
		case OrCwR:
		{
			{
				/* begin concretizeDataOperationCwR: */
				_constant8 = (self_in_dispatchConcretize->operands)[0];
				_rn9 = (self_in_dispatchConcretize->operands)[1];
				_rd9 = _rn9;
				/* begin moveCw:intoR: */
				assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
				assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
				/* begin machineCodeAt:put: */
				_aWord13 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
					 ? 1
					 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord13;
				/* end machineCodeAt:put: */
				_instrOffset10 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
				/* end moveCw:intoR: */
				/* begin machineCodeAt:put: */
				_aWord210 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) OrOpcode ) << 21) ) | (1U << 20)))) | ((_rn9 << 16) | ((int) (((usqInt) _rd9 ) << 12) ))) | (ConcreteIPReg & 0xFFF);
				(self_in_dispatchConcretize->machineCode)[_instrOffset10 / 4] = _aWord210;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = _instrOffset10 + 4;
				/* end concretizeDataOperationCwR: */
				return;
			}
		}
		break;
		case SubCwR:
		{
			{
				/* begin concretizeDataOperationCwR: */
				_constant9 = (self_in_dispatchConcretize->operands)[0];
				_rn10 = (self_in_dispatchConcretize->operands)[1];
				_rd10 = _rn10;
				/* begin moveCw:intoR: */
				assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
				assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
				/* begin machineCodeAt:put: */
				_aWord14 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
					 ? 1
					 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord14;
				/* end machineCodeAt:put: */
				_instrOffset11 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
				/* end moveCw:intoR: */
				/* begin machineCodeAt:put: */
				_aWord211 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) SubOpcode ) << 21) ) | (1U << 20)))) | ((_rn10 << 16) | ((int) (((usqInt) _rd10 ) << 12) ))) | (ConcreteIPReg & 0xFFF);
				(self_in_dispatchConcretize->machineCode)[_instrOffset11 / 4] = _aWord211;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = _instrOffset11 + 4;
				/* end concretizeDataOperationCwR: */
				return;
			}
		}
		break;
		case XorCwR:
		{
			{
				/* begin concretizeDataOperationCwR: */
				_constant10 = (self_in_dispatchConcretize->operands)[0];
				_rn11 = (self_in_dispatchConcretize->operands)[1];
				_rd11 = _rn11;
				/* begin moveCw:intoR: */
				assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
				assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
				/* begin machineCodeAt:put: */
				_aWord15 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
					 ? 1
					 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord15;
				/* end machineCodeAt:put: */
				_instrOffset12 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
				/* end moveCw:intoR: */
				/* begin machineCodeAt:put: */
				_aWord212 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) XorOpcode ) << 21) ) | (1U << 20)))) | ((_rn11 << 16) | ((int) (((usqInt) _rd11 ) << 12) ))) | (ConcreteIPReg & 0xFFF);
				(self_in_dispatchConcretize->machineCode)[_instrOffset12 / 4] = _aWord212;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = _instrOffset12 + 4;
				/* end concretizeDataOperationCwR: */
				return;
			}
		}
		break;
		case AddRR:
		{
			{
				/* begin concretizeDataOperationRR: */
				_srcReg2 = (self_in_dispatchConcretize->operands)[0];
				_rn12 = (self_in_dispatchConcretize->operands)[1];
				_rd12 = _rn12;
				/* begin machineCodeAt:put: */
				_aWord16 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) AddOpcode ) << 21) ) | (1U << 20)))) | ((_rn12 << 16) | ((int) (((usqInt) _rd12 ) << 12) ))) | (_srcReg2 & 0xFFF);
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord16;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeDataOperationRR: */
				return;
			}
		}
		break;
		case AndRR:
		{
			{
				/* begin concretizeDataOperationRR: */
				_srcReg3 = (self_in_dispatchConcretize->operands)[0];
				_rn13 = (self_in_dispatchConcretize->operands)[1];
				_rd13 = _rn13;
				/* begin machineCodeAt:put: */
				_aWord17 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) AndOpcode ) << 21) ) | (1U << 20)))) | ((_rn13 << 16) | ((int) (((usqInt) _rd13 ) << 12) ))) | (_srcReg3 & 0xFFF);
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord17;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeDataOperationRR: */
				return;
			}
		}
		break;
		case CmpRR:
		{
			{
				/* begin concretizeDataOperationRR: */
				_srcReg4 = (self_in_dispatchConcretize->operands)[0];
				_rn14 = (self_in_dispatchConcretize->operands)[1];
				_rd14 = 0;
				/* begin machineCodeAt:put: */
				_aWord18 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) CmpOpcode ) << 21) ) | (1U << 20)))) | ((_rn14 << 16) | ((int) (((usqInt) _rd14 ) << 12) ))) | (_srcReg4 & 0xFFF);
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord18;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeDataOperationRR: */
				return;
			}
		}
		break;
		case OrRR:
		{
			{
				/* begin concretizeDataOperationRR: */
				_srcReg5 = (self_in_dispatchConcretize->operands)[0];
				_rn15 = (self_in_dispatchConcretize->operands)[1];
				_rd15 = _rn15;
				/* begin machineCodeAt:put: */
				_aWord19 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) OrOpcode ) << 21) ) | (1U << 20)))) | ((_rn15 << 16) | ((int) (((usqInt) _rd15 ) << 12) ))) | (_srcReg5 & 0xFFF);
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord19;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeDataOperationRR: */
				return;
			}
		}
		break;
		case SubRR:
		{
			{
				/* begin concretizeDataOperationRR: */
				_srcReg6 = (self_in_dispatchConcretize->operands)[0];
				_rn16 = (self_in_dispatchConcretize->operands)[1];
				_rd16 = _rn16;
				/* begin machineCodeAt:put: */
				_aWord20 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) SubOpcode ) << 21) ) | (1U << 20)))) | ((_rn16 << 16) | ((int) (((usqInt) _rd16 ) << 12) ))) | (_srcReg6 & 0xFFF);
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord20;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeDataOperationRR: */
				return;
			}
		}
		break;
		case XorRR:
		{
			{
				/* begin concretizeDataOperationRR: */
				_srcReg7 = (self_in_dispatchConcretize->operands)[0];
				_rn17 = (self_in_dispatchConcretize->operands)[1];
				_rd17 = _rn17;
				/* begin machineCodeAt:put: */
				_aWord21 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) XorOpcode ) << 21) ) | (1U << 20)))) | ((_rn17 << 16) | ((int) (((usqInt) _rd17 ) << 12) ))) | (_srcReg7 & 0xFFF);
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord21;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeDataOperationRR: */
				return;
			}
		}
		break;
		case AddRdRd:
		{
			{
				/* begin concretizeAddRdRd */
				_regRHS = (self_in_dispatchConcretize->operands)[0];
				_regLHS = (self_in_dispatchConcretize->operands)[1];
				(self_in_dispatchConcretize->machineCode)[0] = ((3996125952U | (_regLHS << 16)) | (_regLHS << 12)) | _regRHS;
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeAddRdRd */
				return;
			}
		}
		break;
		case CmpRdRd:
		{
			{
				/* begin concretizeCmpRdRd */
				_regA = (self_in_dispatchConcretize->operands)[0];
				_regB = (self_in_dispatchConcretize->operands)[1];
				(self_in_dispatchConcretize->machineCode)[0] = (4004776768U | (_regB << 12)) | _regA;
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeCmpRdRd */
				return;
			}
		}
		break;
		case DivRdRd:
		{
			{
				/* begin concretizeDivRdRd */
				_regRHS2 = (self_in_dispatchConcretize->operands)[0];
				_regLHS2 = (self_in_dispatchConcretize->operands)[1];
				(self_in_dispatchConcretize->machineCode)[0] = ((4001368832U | (_regLHS2 << 16)) | (_regLHS2 << 12)) | _regRHS2;
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeDivRdRd */
				return;
			}
		}
		break;
		case MulRdRd:
		{
			{
				/* begin concretizeMulRdRd */
				_regRHS3 = (self_in_dispatchConcretize->operands)[0];
				_regLHS3 = (self_in_dispatchConcretize->operands)[1];
				(self_in_dispatchConcretize->machineCode)[0] = ((3995077376U | (_regLHS3 << 16)) | (_regLHS3 << 12)) | _regRHS3;
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeMulRdRd */
				return;
			}
		}
		break;
		case SubRdRd:
		{
			{
				/* begin concretizeSubRdRd */
				_regRHS4 = (self_in_dispatchConcretize->operands)[0];
				_regLHS4 = (self_in_dispatchConcretize->operands)[1];
				(self_in_dispatchConcretize->machineCode)[0] = ((3996126016U | (_regLHS4 << 16)) | (_regLHS4 << 12)) | _regRHS4;
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeSubRdRd */
				return;
			}
		}
		break;
		case SqrtRd:
		{
			{
				/* begin concretizeSqrtRd */
				_regLHS5 = (self_in_dispatchConcretize->operands)[0];
				(self_in_dispatchConcretize->machineCode)[0] = (4004580288U | (_regLHS5 << 12)) | _regLHS5;
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeSqrtRd */
				return;
			}
		}
		break;
		case NegateR:
		{
			{
				/* begin concretizeNegateR */
				_reg4 = (self_in_dispatchConcretize->operands)[0];
				/* begin machineCodeAt:put: */
				_aWord30 = (((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((int) (((usqInt) RsbOpcode ) << 21) ) | (0U << 20)))) | ((_reg4 << 16) | (_reg4 << 12));
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord30;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeNegateR */
				return;
			}
		}
		break;
		case LoadEffectiveAddressMwrR:
		{
			{
				/* begin concretizeLoadEffectiveAddressMwrR */
				_offset28 = (self_in_dispatchConcretize->operands)[0];
				_srcReg8 = (self_in_dispatchConcretize->operands)[1];
				_destReg2 = (self_in_dispatchConcretize->operands)[2];
				/* begin rotateable8bitImmediate:ifTrue:ifFalse: */
				if ((_offset28 & 0xFF) == _offset28) {
					{
						/* begin machineCodeAt:put: */
						_aWord31 = addrnimmror(self_in_dispatchConcretize, _destReg2, _srcReg8, _offset28, 0U << 1);
						(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord31;
						/* end machineCodeAt:put: */
						(self_in_dispatchConcretize->machineCodeSize) = 4;
					}
					goto l209;
				}
				for (_i5 = 2; _i5 <= 30; _i5 += 2) {
					if ((_offset28 & (((0xFFU << _i5) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i5)))) == _offset28) {
						{
							_immediate5 = (((usqInt) _offset28 ) >> _i5) | ((_offset28 << (32 - _i5)) & 0xFFFFFFFFU);
							_rot5 = 32 - _i5;
							/* begin machineCodeAt:put: */
							_aWord31 = addrnimmror(self_in_dispatchConcretize, _destReg2, _srcReg8, _immediate5, ((sqInt) (((usqInt) _rot5 ) << 1) ));
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord31;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
						}
						goto l209;
					}
				}
				{
					/* begin moveCw:intoR: */
					assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
					assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
					/* begin machineCodeAt:put: */
					_aWord213 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
						 ? 1
						 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
					(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord213;
					/* end machineCodeAt:put: */
					_instrOffset13 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
					/* end moveCw:intoR: */
					/* begin machineCodeAt:put: */
					_aWord37 = addrnrm(self_in_dispatchConcretize, _destReg2, _srcReg8, ConcreteIPReg);
					(self_in_dispatchConcretize->machineCode)[16 / 4] = _aWord37;
					/* end machineCodeAt:put: */
					(self_in_dispatchConcretize->machineCodeSize) = _instrOffset13 + 4;
				}
				l209:
				;
				/* end rotateable8bitImmediate:ifTrue:ifFalse: */
				/* end concretizeLoadEffectiveAddressMwrR */
				return;
			}
		}
		break;
		case ArithmeticShiftRightCqR:
		{
			{
				/* begin concretizeArithmeticShiftRightCqR */
				_distance = ((((self_in_dispatchConcretize->operands)[0]) < 0x1F) ? (self_in_dispatchConcretize->operands)[0] : 0x1F);
				_reg5 = (self_in_dispatchConcretize->operands)[1];
				/* begin machineCodeAt:put: */
				_aWord38 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) MoveOpcode ) << 21) ) | (1U << 20)))) | ((0U << 16) | (_reg5 << 12))) | ((((sqInt) (((usqInt) _distance ) << 7) ) | (64 | _reg5)) & 0xFFF);
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord38;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeArithmeticShiftRightCqR */
				return;
			}
		}
		break;
		case LogicalShiftRightCqR:
		{
			{
				/* begin concretizeLogicalShiftRightCqR */
				_distance2 = ((((self_in_dispatchConcretize->operands)[0]) < 0x1F) ? (self_in_dispatchConcretize->operands)[0] : 0x1F);
				_reg6 = (self_in_dispatchConcretize->operands)[1];
				/* begin machineCodeAt:put: */
				_aWord39 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) MoveOpcode ) << 21) ) | (1U << 20)))) | ((0U << 16) | (_reg6 << 12))) | ((((sqInt) (((usqInt) _distance2 ) << 7) ) | (32 | _reg6)) & 0xFFF);
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord39;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeLogicalShiftRightCqR */
				return;
			}
		}
		break;
		case LogicalShiftLeftCqR:
		{
			{
				/* begin concretizeLogicalShiftLeftCqR */
				_distance3 = ((((self_in_dispatchConcretize->operands)[0]) < 0x1F) ? (self_in_dispatchConcretize->operands)[0] : 0x1F);
				_reg7 = (self_in_dispatchConcretize->operands)[1];
				/* begin machineCodeAt:put: */
				_aWord40 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) MoveOpcode ) << 21) ) | (1U << 20)))) | ((0U << 16) | (_reg7 << 12))) | ((((sqInt) (((usqInt) _distance3 ) << 7) ) | _reg7) & 0xFFF);
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord40;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeLogicalShiftLeftCqR */
				return;
			}
		}
		break;
		case ArithmeticShiftRightRR:
		{
			{
				/* begin concretizeArithmeticShiftRightRR */
				_distReg = (self_in_dispatchConcretize->operands)[0];
				_destReg3 = (self_in_dispatchConcretize->operands)[1];
				/* begin machineCodeAt:put: */
				_aWord41 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) MoveOpcode ) << 21) ) | (1U << 20)))) | ((0U << 16) | (_destReg3 << 12))) | (((_distReg << 8) | (80 | _destReg3)) & 0xFFF);
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord41;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeArithmeticShiftRightRR */
				return;
			}
		}
		break;
		case LogicalShiftLeftRR:
		{
			{
				/* begin concretizeLogicalShiftLeftRR */
				_distReg2 = (self_in_dispatchConcretize->operands)[0];
				_destReg4 = (self_in_dispatchConcretize->operands)[1];
				/* begin machineCodeAt:put: */
				_aWord44 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) MoveOpcode ) << 21) ) | (1U << 20)))) | ((0U << 16) | (_destReg4 << 12))) | (((_distReg2 << 8) | (16 | _destReg4)) & 0xFFF);
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord44;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeLogicalShiftLeftRR */
				return;
			}
		}
		break;
		case LogicalShiftRightRR:
		{
			{
				/* begin concretizeLogicalShiftRightRR */
				_distReg3 = (self_in_dispatchConcretize->operands)[0];
				_destReg5 = (self_in_dispatchConcretize->operands)[1];
				/* begin machineCodeAt:put: */
				_aWord45 = ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) MoveOpcode ) << 21) ) | (1U << 20)))) | ((0U << 16) | (_destReg5 << 12))) | (((_distReg3 << 8) | (48 | _destReg5)) & 0xFFF);
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord45;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeLogicalShiftRightRR */
				return;
			}
		}
		break;
		case SMULL:
		{
			{
				concretizeSMULL(self_in_dispatchConcretize);
				return;
			}
		}
		break;
		case CMPSMULL:
		{
			{
				concretizeCMPSMULL(self_in_dispatchConcretize);
				return;
			}
		}
		break;
		case MSR:
		{
			{
				concretizeMSR(self_in_dispatchConcretize);
				return;
			}
		}
		break;
		case PopLDM:
		{
			{
				concretizePushOrPopMultipleRegisters(self_in_dispatchConcretize, 0);
				return;
			}
		}
		break;
		case PushSTM:
		{
			{
				concretizePushOrPopMultipleRegisters(self_in_dispatchConcretize, 1);
				return;
			}
		}
		break;
		case MoveCqR:
		{
			{
				/* begin concretizeMoveCqR */
				_word2 = (self_in_dispatchConcretize->operands)[0];
				_reg8 = (self_in_dispatchConcretize->operands)[1];
				/* begin rotateable8bitImmediate:ifTrue:ifFalse: */
				if ((_word2 & 0xFF) == _word2) {
					{
						/* begin machineCodeAt:put: */
						_aWord46 = movimmror(self_in_dispatchConcretize, _reg8, _word2, 0);
						(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord46;
						/* end machineCodeAt:put: */
						(self_in_dispatchConcretize->machineCodeSize) = 4;
						goto l227;
					}
					goto l225;
				}
				for (_i23 = 2; _i23 <= 30; _i23 += 2) {
					if ((_word2 & (((0xFFU << _i23) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i23)))) == _word2) {
						{
							_immediate6 = (((usqInt) _word2 ) >> _i23) | (((sqInt) (((usqInt) _word2 ) << (32 - _i23)) ) & 0xFFFFFFFFU);
							_rot6 = 32 - _i23;
							/* begin machineCodeAt:put: */
							_aWord46 = movimmror(self_in_dispatchConcretize, _reg8, _immediate6, _rot6);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord46;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l227;
						}
						goto l225;
					}
				}
				{
					if (_word2 < 0) {
						_invVal = -1 - _word2;
					} else {
						_invVal = ((unsigned int) (~_word2) );
					}
					/* begin rotateable8bitImmediate:ifTrue:ifFalse: */
					if ((_invVal & 0xFF) == _invVal) {
						{
							/* begin machineCodeAt:put: */
							_aWord214 = mvnimmror(self_in_dispatchConcretize, _reg8, _invVal, 0);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord214;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l227;
						}
						goto l369;
					}
					for (_i6 = 2; _i6 <= 30; _i6 += 2) {
						if ((_invVal & (((0xFFU << _i6) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i6)))) == _invVal) {
							{
								_immediate6 = (((usqInt) _invVal ) >> _i6) | ((_invVal << (32 - _i6)) & 0xFFFFFFFFU);
								_rot6 = 32 - _i6;
								/* begin machineCodeAt:put: */
								_aWord214 = mvnimmror(self_in_dispatchConcretize, _reg8, _immediate6, _rot6);
								(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord214;
								/* end machineCodeAt:put: */
								(self_in_dispatchConcretize->machineCodeSize) = 4;
								goto l227;
							}
							goto l369;
						}
					}
					{
						(self_in_dispatchConcretize->machineCodeSize) = loadCwInto(self_in_dispatchConcretize, (self_in_dispatchConcretize->operands)[1]);
						goto l227;
					}
					l369:
					;
					/* end rotateable8bitImmediate:ifTrue:ifFalse: */
				}
				l225:
				;
				/* end rotateable8bitImmediate:ifTrue:ifFalse: */
				l227:
				;
				/* end concretizeMoveCqR */
				return;
			}
		}
		break;
		case MoveCwR:
		{
			{
				/* begin concretizeMoveCwR */
				(self_in_dispatchConcretize->machineCodeSize) = loadCwInto(self_in_dispatchConcretize, (self_in_dispatchConcretize->operands)[1]);
				/* end concretizeMoveCwR */
				return;
			}
		}
		break;
		case MoveRR:
		{
			{
				/* begin concretizeMoveRR */
				_srcReg9 = (self_in_dispatchConcretize->operands)[0];
				_destReg6 = (self_in_dispatchConcretize->operands)[1];
				/* begin machineCodeAt:put: */
				_aWord47 = movrn(self_in_dispatchConcretize, _destReg6, _srcReg9);
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord47;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeMoveRR */
				return;
			}
		}
		break;
		case MoveAwR:
		{
			{
				/* begin concretizeMoveAwR */
				_srcAddr = (self_in_dispatchConcretize->operands)[0];
				_destReg7 = (self_in_dispatchConcretize->operands)[1];
				if ((_srcAddr != null) && ((_srcAddr >= (varBaseAddress())) && ((_srcAddr - (varBaseAddress())) < (1U << 12)))) {
					/* begin machineCodeAt:put: */
					_aWord48 = ldrrnplusImm(self_in_dispatchConcretize, _destReg7, ConcreteVarBaseReg, _srcAddr - (varBaseAddress()));
					(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord48;
					/* end machineCodeAt:put: */
					(self_in_dispatchConcretize->machineCodeSize) = 4;
					goto l234;
				}
				/* begin moveCw:intoR: */
				assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
				assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
				/* begin machineCodeAt:put: */
				_aWord215 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
					 ? 1
					 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord215;
				/* end machineCodeAt:put: */
				_instrOffset14 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
				/* end moveCw:intoR: */
				/* begin machineCodeAt:put: */
				_aWord310 = ldrrnplusImm(self_in_dispatchConcretize, _destReg7, ConcreteIPReg, 0);
				(self_in_dispatchConcretize->machineCode)[_instrOffset14 / 4] = _aWord310;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = _instrOffset14 + 4;
				l234:
				;
				/* end concretizeMoveAwR */
				return;
			}
		}
		break;
		case MoveRAw:
		{
			{
				/* begin concretizeMoveRAw */
				_srcReg10 = (self_in_dispatchConcretize->operands)[0];
				_destAddr = (self_in_dispatchConcretize->operands)[1];
				if ((_destAddr != null) && ((_destAddr >= (varBaseAddress())) && ((_destAddr - (varBaseAddress())) < (1U << 12)))) {
					/* begin machineCodeAt:put: */
					_aWord49 = strrnplusImm(self_in_dispatchConcretize, _srcReg10, ConcreteVarBaseReg, _destAddr - (varBaseAddress()));
					(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord49;
					/* end machineCodeAt:put: */
					(self_in_dispatchConcretize->machineCodeSize) = 4;
					goto l239;
				}
				/* begin moveCw:intoR: */
				assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
				assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
				/* begin machineCodeAt:put: */
				_aWord216 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
					 ? 1
					 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord216;
				/* end machineCodeAt:put: */
				_instrOffset15 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
				/* end moveCw:intoR: */
				/* begin machineCodeAt:put: */
				_aWord311 = strrnplusImm(self_in_dispatchConcretize, _srcReg10, ConcreteIPReg, 0);
				(self_in_dispatchConcretize->machineCode)[_instrOffset15 / 4] = _aWord311;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = _instrOffset15 + 4;
				l239:
				;
				/* end concretizeMoveRAw */
				return;
			}
		}
		break;
		case MoveAbR:
		{
			{
				/* begin concretizeMoveAbR */
				_srcAddr2 = (self_in_dispatchConcretize->operands)[0];
				_destReg8 = (self_in_dispatchConcretize->operands)[1];
				if ((_srcAddr2 != null) && ((_srcAddr2 >= (varBaseAddress())) && ((_srcAddr2 - (varBaseAddress())) < (1U << 12)))) {
					/* begin machineCodeAt:put: */
					_aWord50 = ldrbrnplusimm(self_in_dispatchConcretize, _destReg8, ConcreteVarBaseReg, 1, _srcAddr2 - (varBaseAddress()));
					(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord50;
					/* end machineCodeAt:put: */
					(self_in_dispatchConcretize->machineCodeSize) = 4;
					goto l244;
				}
				/* begin moveCw:intoR: */
				assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
				assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
				/* begin machineCodeAt:put: */
				_aWord217 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
					 ? 1
					 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord217;
				/* end machineCodeAt:put: */
				_instrOffset16 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
				/* end moveCw:intoR: */
				/* begin machineCodeAt:put: */
				_aWord312 = ldrbrnplusimm(self_in_dispatchConcretize, _destReg8, ConcreteIPReg, 1, 0);
				(self_in_dispatchConcretize->machineCode)[_instrOffset16 / 4] = _aWord312;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = _instrOffset16 + 4;
				l244:
				;
				/* end concretizeMoveAbR */
				return;
			}
		}
		break;
		case MoveRAb:
		{
			{
				/* begin concretizeMoveRAb */
				_srcReg11 = (self_in_dispatchConcretize->operands)[0];
				_destAddr2 = (self_in_dispatchConcretize->operands)[1];
				if ((_destAddr2 != null) && ((_destAddr2 >= (varBaseAddress())) && ((_destAddr2 - (varBaseAddress())) < (1U << 12)))) {
					/* begin machineCodeAt:put: */
					_aWord51 = strbrnplusimm(self_in_dispatchConcretize, _srcReg11, ConcreteVarBaseReg, 1, _destAddr2 - (varBaseAddress()));
					(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord51;
					/* end machineCodeAt:put: */
					(self_in_dispatchConcretize->machineCodeSize) = 4;
					goto l249;
				}
				/* begin moveCw:intoR: */
				assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
				assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
				/* begin machineCodeAt:put: */
				_aWord218 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
					 ? 1
					 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord218;
				/* end machineCodeAt:put: */
				_instrOffset17 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
				/* end moveCw:intoR: */
				/* begin machineCodeAt:put: */
				_aWord313 = strbrnplusimm(self_in_dispatchConcretize, _srcReg11, ConcreteIPReg, 1, 0);
				(self_in_dispatchConcretize->machineCode)[_instrOffset17 / 4] = _aWord313;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = _instrOffset17 + 4;
				l249:
				;
				/* end concretizeMoveRAb */
				return;
			}
		}
		break;
		case MoveMbrR:
		{
			{
				/* begin concretizeMoveMbrR */
				_offset29 = (self_in_dispatchConcretize->operands)[0];
				_srcReg12 = (self_in_dispatchConcretize->operands)[1];
				_destReg9 = (self_in_dispatchConcretize->operands)[2];
				/* begin is12BitValue:ifTrue:ifFalse: */
				if ((SQABS(_offset29)) <= 0xFFF) {
					if (_offset29 >= 0) {
						{
							/* begin machineCodeAt:put: */
							_aWord52 = ldrbrnplusimm(self_in_dispatchConcretize, _destReg9, _srcReg12, 1, _offset29);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord52;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l256;
						}
						goto l252;
					} else {
						{
							_immediate7 = SQABS(_offset29);
							/* begin machineCodeAt:put: */
							_aWord52 = ldrbrnplusimm(self_in_dispatchConcretize, _destReg9, _srcReg12, 0, _immediate7);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord52;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l256;
						}
						goto l252;
					}
				} else {
					{
						if ((_offset29 != null) && ((_offset29 >= (varBaseAddress())) && ((_offset29 - (varBaseAddress())) < (1U << 12)))) {
							/* begin machineCodeAt:put: */
							_aWord219 = addsrnimmror(self_in_dispatchConcretize, ConcreteIPReg, ConcreteVarBaseReg, _offset29 - (varBaseAddress()), 0);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord219;
							/* end machineCodeAt:put: */
							_instrOffset18 = 4;
						} else {
							/* begin moveCw:intoR: */
							assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
							assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
							/* begin machineCodeAt:put: */
							_aWord314 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
								 ? 1
								 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord314;
							/* end machineCodeAt:put: */
							_instrOffset18 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
							/* end moveCw:intoR: */
						}
						/* begin machineCodeAt:put: */
						_aWord410 = ldrbrnrm(self_in_dispatchConcretize, _destReg9, _srcReg12, ConcreteIPReg);
						(self_in_dispatchConcretize->machineCode)[_instrOffset18 / 4] = _aWord410;
						/* end machineCodeAt:put: */
						(self_in_dispatchConcretize->machineCodeSize) = _instrOffset18 + 4;
						goto l256;
					}
					goto l252;
				}
				l252:
				;
				/* end is12BitValue:ifTrue:ifFalse: */
				l256:
				;
				/* end concretizeMoveMbrR */
				return;
			}
		}
		break;
		case MoveRMbr:
		{
			{
				/* begin concretizeMoveRMbr */
				_srcReg13 = (self_in_dispatchConcretize->operands)[0];
				_offset30 = (self_in_dispatchConcretize->operands)[1];
				_baseReg = (self_in_dispatchConcretize->operands)[2];
				/* begin is12BitValue:ifTrue:ifFalse: */
				if ((SQABS(_offset30)) <= 0xFFF) {
					if (_offset30 >= 0) {
						{
							/* begin machineCodeAt:put: */
							_aWord53 = strbrnplusimm(self_in_dispatchConcretize, _srcReg13, _baseReg, 1, _offset30);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord53;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l263;
						}
						goto l259;
					} else {
						{
							_immediate8 = SQABS(_offset30);
							/* begin machineCodeAt:put: */
							_aWord53 = strbrnplusimm(self_in_dispatchConcretize, _srcReg13, _baseReg, 0, _immediate8);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord53;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l263;
						}
						goto l259;
					}
				} else {
					{
						if ((_offset30 != null) && ((_offset30 >= (varBaseAddress())) && ((_offset30 - (varBaseAddress())) < (1U << 12)))) {
							/* begin machineCodeAt:put: */
							_aWord220 = addsrnimmror(self_in_dispatchConcretize, ConcreteIPReg, ConcreteVarBaseReg, _offset30 - (varBaseAddress()), 0);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord220;
							/* end machineCodeAt:put: */
							_instrOffset19 = 4;
						} else {
							/* begin moveCw:intoR: */
							assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
							assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
							/* begin machineCodeAt:put: */
							_aWord315 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
								 ? 1
								 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord315;
							/* end machineCodeAt:put: */
							_instrOffset19 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
							/* end moveCw:intoR: */
						}
						/* begin machineCodeAt:put: */
						_aWord411 = strbrnrm(self_in_dispatchConcretize, _srcReg13, _baseReg, ConcreteIPReg);
						(self_in_dispatchConcretize->machineCode)[_instrOffset19 / 4] = _aWord411;
						/* end machineCodeAt:put: */
						(self_in_dispatchConcretize->machineCodeSize) = _instrOffset19 + 4;
						goto l263;
					}
					goto l259;
				}
				l259:
				;
				/* end is12BitValue:ifTrue:ifFalse: */
				l263:
				;
				/* end concretizeMoveRMbr */
				return;
			}
		}
		break;
		case MoveRM16r:
		{
			{
				/* begin concretizeMoveRM16r */
				_srcReg14 = (self_in_dispatchConcretize->operands)[0];
				_offset31 = (self_in_dispatchConcretize->operands)[1];
				_baseReg2 = (self_in_dispatchConcretize->operands)[2];
				/* begin is12BitValue:ifTrue:ifFalse: */
				if ((SQABS(_offset31)) <= 0xFFF) {
					if (_offset31 >= 0) {
						{
							/* begin machineCodeAt:put: */
							_aWord54 = strhrnplusimm(self_in_dispatchConcretize, _srcReg14, _baseReg2, 1, _offset31);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord54;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l270;
						}
						goto l266;
					} else {
						{
							_immediate9 = SQABS(_offset31);
							/* begin machineCodeAt:put: */
							_aWord54 = strhrnplusimm(self_in_dispatchConcretize, _srcReg14, _baseReg2, 0, _immediate9);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord54;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l270;
						}
						goto l266;
					}
				} else {
					{
						if ((_offset31 != null) && ((_offset31 >= (varBaseAddress())) && ((_offset31 - (varBaseAddress())) < (1U << 12)))) {
							/* begin machineCodeAt:put: */
							_aWord221 = addsrnimmror(self_in_dispatchConcretize, ConcreteIPReg, ConcreteVarBaseReg, _offset31 - (varBaseAddress()), 0);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord221;
							/* end machineCodeAt:put: */
							_instrOffset20 = 4;
						} else {
							/* begin moveCw:intoR: */
							assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
							assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
							/* begin machineCodeAt:put: */
							_aWord316 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
								 ? 1
								 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord316;
							/* end machineCodeAt:put: */
							_instrOffset20 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
							/* end moveCw:intoR: */
						}
						/* begin machineCodeAt:put: */
						_aWord412 = strhrnrm(self_in_dispatchConcretize, _srcReg14, _baseReg2, ConcreteIPReg);
						(self_in_dispatchConcretize->machineCode)[_instrOffset20 / 4] = _aWord412;
						/* end machineCodeAt:put: */
						(self_in_dispatchConcretize->machineCodeSize) = _instrOffset20 + 4;
						goto l270;
					}
					goto l266;
				}
				l266:
				;
				/* end is12BitValue:ifTrue:ifFalse: */
				l270:
				;
				/* end concretizeMoveRM16r */
				return;
			}
		}
		break;
		case MoveM16rR:
		{
			{
				/* begin concretizeMoveM16rR */
				_offset32 = (self_in_dispatchConcretize->operands)[0];
				_srcReg15 = (self_in_dispatchConcretize->operands)[1];
				_destReg10 = (self_in_dispatchConcretize->operands)[2];
				/* begin is8BitValue:ifTrue:ifFalse: */
				if ((SQABS(_offset32)) <= 0xFF) {
					if (_offset32 >= 0) {
						{
							/* begin machineCodeAt:put: */
							_aWord55 = ldrhrnplusimm(self_in_dispatchConcretize, _destReg10, _srcReg15, 1, _offset32);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord55;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l276;
						}
					} else {
						{
							_immediate10 = SQABS(_offset32);
							/* begin machineCodeAt:put: */
							_aWord55 = ldrhrnplusimm(self_in_dispatchConcretize, _destReg10, _srcReg15, 0, _immediate10);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord55;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l276;
						}
					}
				}
				/* end is8BitValue:ifTrue:ifFalse: */
				l276:
				;
				/* end concretizeMoveM16rR */
				return;
			}
		}
		break;
		case MoveM64rRd:
		{
			{
				/* begin concretizeMoveM64rRd */
				_offset = (self_in_dispatchConcretize->operands)[0];
				_u = ((_offset > 0)
					 ? 1
					 : 0);
				_srcReg = (self_in_dispatchConcretize->operands)[1];
				_destReg = (self_in_dispatchConcretize->operands)[2];
				(self_in_dispatchConcretize->machineCode)[0] = (((3977251584U | (_srcReg << 16)) | (_destReg << 12)) | ((int) (((usqInt) _u ) << 23) )) | (((usqInt) _offset ) >> 2);
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeMoveM64rRd */
				return;
			}
		}
		break;
		case MoveMwrR:
		{
			{
				/* begin concretizeMoveMwrR */
				_offset33 = (self_in_dispatchConcretize->operands)[0];
				_srcReg16 = (self_in_dispatchConcretize->operands)[1];
				_destReg11 = (self_in_dispatchConcretize->operands)[2];
				/* begin is12BitValue:ifTrue:ifFalse: */
				if ((SQABS(_offset33)) <= 0xFFF) {
					if (_offset33 >= 0) {
						{
							/* begin machineCodeAt:put: */
							_aWord56 = ldrrnplusimm(self_in_dispatchConcretize, _destReg11, _srcReg16, 1, _offset33);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord56;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l282;
						}
						goto l281;
					} else {
						{
							_immediate11 = SQABS(_offset33);
							/* begin machineCodeAt:put: */
							_aWord56 = ldrrnplusimm(self_in_dispatchConcretize, _destReg11, _srcReg16, 0, _immediate11);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord56;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l282;
						}
						goto l281;
					}
				} else {
					{
						/* begin moveCw:intoR: */
						assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
						assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
						/* begin machineCodeAt:put: */
						_aWord226 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
							 ? 1
							 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
						(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord226;
						/* end machineCodeAt:put: */
						_instrOffset22 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
						/* end moveCw:intoR: */
						/* begin machineCodeAt:put: */
						_aWord318 = ldrrnrm(self_in_dispatchConcretize, _destReg11, _srcReg16, ConcreteIPReg);
						(self_in_dispatchConcretize->machineCode)[_instrOffset22 / 4] = _aWord318;
						/* end machineCodeAt:put: */
						(self_in_dispatchConcretize->machineCodeSize) = _instrOffset22 + 4;
						goto l282;
					}
					goto l281;
				}
				l281:
				;
				/* end is12BitValue:ifTrue:ifFalse: */
				l282:
				;
				/* end concretizeMoveMwrR */
				return;
			}
		}
		break;
		case MoveXbrRR:
		{
			{
				/* begin concretizeMoveXbrRR */
				_index = (self_in_dispatchConcretize->operands)[0];
				_base = (self_in_dispatchConcretize->operands)[1];
				_dest = (self_in_dispatchConcretize->operands)[2];
				/* begin machineCodeAt:put: */
				_aWord57 = ldrbrnrm(self_in_dispatchConcretize, _dest, _base, _index);
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord57;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeMoveXbrRR */
				return;
			}
		}
		break;
		case MoveRXbrR:
		{
			{
				/* begin concretizeMoveRXbrR */
				_src = (self_in_dispatchConcretize->operands)[0];
				_index2 = (self_in_dispatchConcretize->operands)[1];
				_base2 = (self_in_dispatchConcretize->operands)[2];
				/* begin machineCodeAt:put: */
				_aWord58 = strbrnrm(self_in_dispatchConcretize, _src, _base2, _index2);
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord58;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeMoveRXbrR */
				return;
			}
		}
		break;
		case MoveXwrRR:
		{
			{
				/* begin concretizeMoveXwrRR */
				_index3 = (self_in_dispatchConcretize->operands)[0];
				_base3 = (self_in_dispatchConcretize->operands)[1];
				_dest2 = (self_in_dispatchConcretize->operands)[2];
				/* begin machineCodeAt:put: */
				_aWord59 = memMxrregbasepubwlrmLsl2(self_in_dispatchConcretize, AL, _dest2, _base3, 1, 1, 0, 0, 1, _index3);
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord59;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeMoveXwrRR */
				return;
			}
		}
		break;
		case MoveRXwrR:
		{
			{
				/* begin concretizeMoveRXwrR */
				_src2 = (self_in_dispatchConcretize->operands)[0];
				_index4 = (self_in_dispatchConcretize->operands)[1];
				_base4 = (self_in_dispatchConcretize->operands)[2];
				/* begin machineCodeAt:put: */
				_aWord60 = memMxrregbasepubwlrmLsl2(self_in_dispatchConcretize, AL, _src2, _base4, 1, 1, 0, 0, 0, _index4);
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord60;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeMoveRXwrR */
				return;
			}
		}
		break;
		case MoveRMwr:
		{
			{
				/* begin concretizeMoveRMwr */
				_srcReg17 = (self_in_dispatchConcretize->operands)[0];
				_offset34 = (self_in_dispatchConcretize->operands)[1];
				_baseReg3 = (self_in_dispatchConcretize->operands)[2];
				/* begin is12BitValue:ifTrue:ifFalse: */
				if ((SQABS(_offset34)) <= 0xFFF) {
					if (_offset34 >= 0) {
						{
							/* begin machineCodeAt:put: */
							_aWord61 = strrnplusimm(self_in_dispatchConcretize, _srcReg17, _baseReg3, 1, _offset34);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord61;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l296;
						}
						goto l295;
					} else {
						{
							_immediate12 = SQABS(_offset34);
							/* begin machineCodeAt:put: */
							_aWord61 = strrnplusimm(self_in_dispatchConcretize, _srcReg17, _baseReg3, 0, _immediate12);
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord61;
							/* end machineCodeAt:put: */
							(self_in_dispatchConcretize->machineCodeSize) = 4;
							goto l296;
						}
						goto l295;
					}
				} else {
					{
						/* begin moveCw:intoR: */
						assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
						assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
						/* begin machineCodeAt:put: */
						_aWord227 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
							 ? 1
							 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
						(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord227;
						/* end machineCodeAt:put: */
						_instrOffset23 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
						/* end moveCw:intoR: */
						/* begin machineCodeAt:put: */
						_aWord319 = strrnrm(self_in_dispatchConcretize, _srcReg17, _baseReg3, ConcreteIPReg);
						(self_in_dispatchConcretize->machineCode)[_instrOffset23 / 4] = _aWord319;
						/* end machineCodeAt:put: */
						(self_in_dispatchConcretize->machineCodeSize) = _instrOffset23 + 4;
						goto l296;
					}
					goto l295;
				}
				l295:
				;
				/* end is12BitValue:ifTrue:ifFalse: */
				l296:
				;
				/* end concretizeMoveRMwr */
				return;
			}
		}
		break;
		case MoveRdM64r:
		{
			{
				/* begin concretizeMoveRdM64r */
				_offset2 = (self_in_dispatchConcretize->operands)[1];
				_u2 = ((_offset2 > 0)
					 ? 1
					 : 0);
				_dstReg = (self_in_dispatchConcretize->operands)[2];
				_fpReg = (self_in_dispatchConcretize->operands)[0];
				(self_in_dispatchConcretize->machineCode)[0] = (((3976203008U | (_dstReg << 16)) | (_fpReg << 12)) | ((int) (((usqInt) _u2 ) << 23) )) | (((usqInt) _offset2 ) >> 2);
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizeMoveRdM64r */
				return;
			}
		}
		break;
		case PopR:
		{
			{
				/* begin concretizePopR */
				_destReg12 = (self_in_dispatchConcretize->operands)[0];
				/* begin machineCodeAt:put: */
				_aWord62 = popR(self_in_dispatchConcretize, _destReg12);
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord62;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizePopR */
				return;
			}
		}
		break;
		case PushR:
		{
			{
				/* begin concretizePushR */
				_srcReg18 = (self_in_dispatchConcretize->operands)[0];
				/* begin machineCodeAt:put: */
				_aWord63 = pushR(self_in_dispatchConcretize, _srcReg18);
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord63;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = 4;
				/* end concretizePushR */
				return;
			}
		}
		break;
		case PushCq:
		{
			{
				/* begin concretizePushCq */
				_word3 = (self_in_dispatchConcretize->operands)[0];
				/* begin rotateable8bitBitwiseImmediate:ifTrue:ifFalse: */
				_value3 = _word3;
				while (1) {
					if ((_value3 & 0xFF) == _value3) {
						{
							_invert = _word3 != _value3;
							/* begin machineCodeAt:put: */
							_aWord64 = ((_invert)
								 ? mvnimmror(self_in_dispatchConcretize, ConcreteIPReg, _value3, 0)
								 : movimmror(self_in_dispatchConcretize, ConcreteIPReg, _value3, 0));
							(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord64;
							/* end machineCodeAt:put: */
							_instrOffset24 = 4;
						}
						goto l303;
					}
					for (_i7 = 2; _i7 <= 30; _i7 += 2) {
						if ((_value3 & (((0xFFU << _i7) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i7)))) == _value3) {
							{
								_invert = _word3 != _value3;
								_immediate13 = (((usqInt) _value3 ) >> _i7) | ((_value3 << (32 - _i7)) & 0xFFFFFFFFU);
								_rot7 = 32 - _i7;
								/* begin machineCodeAt:put: */
								_aWord64 = ((_invert)
									 ? mvnimmror(self_in_dispatchConcretize, ConcreteIPReg, _immediate13, _rot7)
									 : movimmror(self_in_dispatchConcretize, ConcreteIPReg, _immediate13, _rot7));
								(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord64;
								/* end machineCodeAt:put: */
								_instrOffset24 = 4;
							}
							goto l303;
						}
					}
					if (!(_value3 == _word3)) 
						break;
					_value3 = ((_word3 < 0)
						 ? -1 - _word3
						 : ((unsigned int) (~_word3) ));
				}
				{
					/* begin moveCw:intoR: */
					assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
					assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
					/* begin machineCodeAt:put: */
					_aWord228 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
						 ? 1
						 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
					(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord228;
					/* end machineCodeAt:put: */
					_instrOffset24 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
					/* end moveCw:intoR: */
				}
				l303:
				;
				/* end rotateable8bitBitwiseImmediate:ifTrue:ifFalse: */
				/* begin machineCodeAt:put: */
				_aWord320 = pushR(self_in_dispatchConcretize, ConcreteIPReg);
				(self_in_dispatchConcretize->machineCode)[_instrOffset24 / 4] = _aWord320;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = _instrOffset24 + 4;
				/* end concretizePushCq */
				return;
			}
		}
		break;
		case PushCw:
		{
			{
				/* begin concretizePushCw */
				_word4 = (self_in_dispatchConcretize->operands)[0];
				if (((addressIsInInstructions(((AbstractInstruction *) _word4 ))) || (((AbstractInstruction *) _word4 ) == (methodLabel()))) || ((((usqInt) _word4 ) >= ((methodLabel->address))) && (((usqInt) _word4 ) < (youngReferrers())))) {
					_instrOffset25 = loadCwInto(self_in_dispatchConcretize, ConcreteIPReg);
				} else {
					/* begin rotateable8bitBitwiseImmediate:ifTrue:ifFalse: */
					_value4 = _word4;
					while (1) {
						if ((_value4 & 0xFF) == _value4) {
							{
								_invert2 = _word4 != _value4;
								/* begin machineCodeAt:put: */
								_aWord65 = ((_invert2)
									 ? mvnimmror(self_in_dispatchConcretize, ConcreteIPReg, _value4, 0)
									 : movimmror(self_in_dispatchConcretize, ConcreteIPReg, _value4, 0));
								(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord65;
								/* end machineCodeAt:put: */
								_instrOffset25 = 4;
							}
							goto l307;
						}
						for (_i8 = 2; _i8 <= 30; _i8 += 2) {
							if ((_value4 & (((0xFFU << _i8) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i8)))) == _value4) {
								{
									_invert2 = _word4 != _value4;
									_immediate14 = (((usqInt) _value4 ) >> _i8) | ((_value4 << (32 - _i8)) & 0xFFFFFFFFU);
									_rot8 = 32 - _i8;
									/* begin machineCodeAt:put: */
									_aWord65 = ((_invert2)
										 ? mvnimmror(self_in_dispatchConcretize, ConcreteIPReg, _immediate14, _rot8)
										 : movimmror(self_in_dispatchConcretize, ConcreteIPReg, _immediate14, _rot8));
									(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord65;
									/* end machineCodeAt:put: */
									_instrOffset25 = 4;
								}
								goto l307;
							}
						}
						if (!(_value4 == _word4)) 
							break;
						_value4 = ((_word4 < 0)
							 ? -1 - _word4
							 : ((unsigned int) (~_word4) ));
					}
					{
						_instrOffset25 = loadCwInto(self_in_dispatchConcretize, ConcreteIPReg);
					}
					l307:
					;
					/* end rotateable8bitBitwiseImmediate:ifTrue:ifFalse: */
				}
				/* begin machineCodeAt:put: */
				_aWord229 = pushR(self_in_dispatchConcretize, ConcreteIPReg);
				(self_in_dispatchConcretize->machineCode)[_instrOffset25 / 4] = _aWord229;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = _instrOffset25 + 4;
				/* end concretizePushCw */
				return;
			}
		}
		break;
		case PrefetchAw:
		{
			{
				/* begin concretizePrefetchAw */
				_addressOperand = (self_in_dispatchConcretize->operands)[0];
				if ((_addressOperand != null) && ((_addressOperand >= (varBaseAddress())) && ((_addressOperand - (varBaseAddress())) < (1U << 12)))) {
					/* begin machineCodeAt:put: */
					/* begin pld:plus:offset: */
					_immediate19 = _addressOperand - (varBaseAddress());
					_aWord66 = ((usqInt) (4115722240U | (((int) (((usqInt) ConcreteVarBaseReg ) << 16) ) | ((1U << 23) | _immediate19))) );
					/* end pld:plus:offset: */
					(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord66;
					/* end machineCodeAt:put: */
					(self_in_dispatchConcretize->machineCodeSize) = 4;
					goto l315;
				}
				/* begin moveCw:intoR: */
				assert(addressIsInCurrentCompilation((((self_in_dispatchConcretize->dependent))->address)));
				assert((SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8))) < (1U << 12));
				/* begin machineCodeAt:put: */
				_aWord230 = ldrrnplusimm(self_in_dispatchConcretize, ConcreteIPReg, PC, ((((((self_in_dispatchConcretize->dependent))->address)) >= (((self_in_dispatchConcretize->address)) + 8))
					 ? 1
					 : 0), SQABS(((((self_in_dispatchConcretize->dependent))->address)) - (((self_in_dispatchConcretize->address)) + 8)));
				(self_in_dispatchConcretize->machineCode)[0 / 4] = _aWord230;
				/* end machineCodeAt:put: */
				_instrOffset26 = ((self_in_dispatchConcretize->machineCodeSize) = 4);
				/* end moveCw:intoR: */
				/* begin machineCodeAt:put: */
				_aWord321 = 4115722240U | (((int) (((usqInt) ConcreteIPReg ) << 16) ) | ((1U << 23) | 0));
				(self_in_dispatchConcretize->machineCode)[_instrOffset26 / 4] = _aWord321;
				/* end machineCodeAt:put: */
				(self_in_dispatchConcretize->machineCodeSize) = _instrOffset26 + 4;
				l315:
				;
				/* end concretizePrefetchAw */
				return;
			}
		}
		break;
		case ConvertRRd:
		{
			{
				/* begin concretizeConvertRRd */
				_srcReg19 = (self_in_dispatchConcretize->operands)[0];
				_destReg13 = (self_in_dispatchConcretize->operands)[1];
				(self_in_dispatchConcretize->machineCode)[0] = fmsrFromto(self_in_dispatchConcretize, _srcReg19, 9);
				(self_in_dispatchConcretize->machineCode)[1] = fsitodFromto(self_in_dispatchConcretize, 9, _destReg13);
				(self_in_dispatchConcretize->machineCodeSize) = 8;
				/* end concretizeConvertRRd */
				return;
			}
		}
		break;
		case MovePatcheableC32R:
		{
			{
				concretizeMovePatcheableC32R(self_in_dispatchConcretize);
				return;
			}
		}
		break;
		default:
		error("Case not found and no otherwise clause");
	}
	{
		return;
	}
}
/*	FMSR or VMOV instruction to move a value from an ARM reg to an fpu double 
	register ready for conversion 
	FMSR regB, regA - ARM_ARM v5 DDI 01001.pdf pp. C4-68 
	VMOV regB, regA - ARM_ARM v7 DDi10406 pp. A8-462-3the dest reg bits are spread out a little */
/* CogARMCompiler>>#fmsrFrom:to: */
static usqInt NoDbgRegParms
fmsrFromto(AbstractInstruction * self_in_fmsrFromto, sqInt _regA, sqInt _regB)
{
	sqInt _destReg;

	_destReg = ((sqInt) (((usqInt) (((usqInt) _regB ) >> 1) ) << 16) ) | ((sqInt) (((usqInt) (_regB & 1) ) << 7) );
	return (3992979984U | ((sqInt) (((usqInt) _regA ) << 12) )) | _destReg;
}
/*	FSITOD or VCVT instruction to move convert an integer value to an fpu 
	double FSITOD regB, regA - ARM_ARM v5 DDI 01001.pdf pp. C4-95 
	VCVTW. regB, regA - ARM_ARM v7 DDI10406.pdf pp. A8-576-8the src reg bits are spread out a little */
/* CogARMCompiler>>#fsitodFrom:to: */
static usqInt NoDbgRegParms
fsitodFromto(AbstractInstruction * self_in_fsitodFromto, sqInt _regA, sqInt _regB)
{
	sqInt _srcReg;

	_srcReg = (((usqInt) _regA ) >> 1) | ((sqInt) (((usqInt) (_regA & 1) ) << 5) );
	return (4005039040U | _srcReg) | ((sqInt) (((usqInt) _regB ) << 12) );
}
/*	Currently no instruction level support for divide on ARM. See also 
	#canDivQuoRem  */
/* CogARMCompiler>>#genDivR:R:Quo:Rem: */
static AbstractInstruction * NoDbgRegParms
genDivRRQuoRem(AbstractInstruction * self_in_genDivRRQuoRem, sqInt _abstractRegDivisor, sqInt _abstractRegDividend, sqInt _abstractRegQuotient, sqInt _abstractRegRemainder)
{
	usqInt _divRemFunctionAddr;
	AbstractInstruction * _inst;
	sqInt _rDividend;
	sqInt _rDivisor;
	sqInt _rQuotient;
	sqInt _rRemainder;

	assert(_abstractRegDividend != _abstractRegDivisor);
	assert(_abstractRegQuotient != _abstractRegRemainder);
	_rDividend = _abstractRegDividend;
	_rDivisor = _abstractRegDivisor;
	if (!(_rDividend == CArg0Reg)) {
		if (_rDivisor == CArg0Reg) {
			if (_rDividend == CArg1Reg) {
				error("register choices in genDivR:R:Quo:Rem: made life impossible");
			}
			genoperandoperand(MoveRR, _rDivisor, CArg1Reg);
			_rDivisor = CArg1Reg;
		}
		genoperandoperand(MoveRR, _rDividend, CArg0Reg);
	}
	if (!(_rDivisor == CArg1Reg)) {
		genoperandoperand(MoveRR, _rDivisor, CArg1Reg);
	}
	_divRemFunctionAddr = aeabiDivModFunctionAddr(self_in_genDivRRQuoRem);
	/* begin saveAndRestoreLinkRegAround: */
	_inst = genoperand(PushR, LinkReg);
	{
		CallFullRTregistersToBeSavedMask(((usqInt) _divRemFunctionAddr ), (1U << CArg2Reg) | (1U << CArg3Reg));
	}
	genoperand(PopR, LinkReg);
	/* end saveAndRestoreLinkRegAround: */
	_rQuotient = _abstractRegQuotient;
	_rRemainder = _abstractRegRemainder;
	if (!(_rQuotient == CArg0Reg)) {
		genoperandoperand(MoveRR, CArg0Reg, _rQuotient);
		if (_rQuotient == CArg1Reg) {
			error("register choices in genDivR:R:Quo:Rem: made life impossible");
		}
	}
	if (!(_rRemainder == CArg1Reg)) {
		genoperandoperand(MoveRR, CArg1Reg, _rRemainder);
	}
	return self_in_genDivRRQuoRem;
}
/*	Load the stack pointer register with that of the C stack, effecting 
	a switch to the C stack. Used when machine code calls into the 
	CoInterpreter run-time (e.g. to invoke interpreter primitives). */
/* CogARMCompiler>>#genLoadCStackPointer */
static sqInt NoDbgRegParms
genLoadCStackPointer(AbstractInstruction * self_in_genLoadCStackPointer)
{
	sqInt _address;

	/* begin MoveAw:R: */
	_address = cStackPointerAddress();
	/* begin gen:literal:operand: */
	checkLiteralforInstruction(_address, genoperandoperand(MoveAwR, _address, SPReg));
	/* end gen:literal:operand: */
	/* end MoveAw:R: */
	return 0;
}
/*	Load the frame and stack pointer registers with those of the C stack, 
	effecting a switch to the C stack. Used when machine code calls into 
	the CoInterpreter run-time (e.g. to invoke interpreter primitives). */
/* CogARMCompiler>>#genLoadCStackPointers */
static sqInt NoDbgRegParms
genLoadCStackPointers(AbstractInstruction * self_in_genLoadCStackPointers)
{
	sqInt _address;
	sqInt _address2;

	/* begin MoveAw:R: */
	_address = cStackPointerAddress();
	/* begin gen:literal:operand: */
	checkLiteralforInstruction(_address, genoperandoperand(MoveAwR, _address, SPReg));
	/* end gen:literal:operand: */
	/* end MoveAw:R: */
	/* begin MoveAw:R: */
	_address2 = cFramePointerAddress();
	/* begin gen:literal:operand: */
	checkLiteralforInstruction(_address2, genoperandoperand(MoveAwR, _address2, FPReg));
	/* end gen:literal:operand: */
	/* end MoveAw:R: */
	return 0;
}
/*	Switch back to the Smalltalk stack. Assign SPReg first 
	because typically it is used immediately afterwards. */
/* CogARMCompiler>>#genLoadStackPointers */
static sqInt NoDbgRegParms
genLoadStackPointers(AbstractInstruction * self_in_genLoadStackPointers)
{
	sqInt _address;
	sqInt _address2;

	/* begin MoveAw:R: */
	_address = stackPointerAddress();
	/* begin gen:literal:operand: */
	checkLiteralforInstruction(_address, genoperandoperand(MoveAwR, _address, SPReg));
	/* end gen:literal:operand: */
	/* end MoveAw:R: */
	/* begin MoveAw:R: */
	_address2 = framePointerAddress();
	/* begin gen:literal:operand: */
	checkLiteralforInstruction(_address2, genoperandoperand(MoveAwR, _address2, FPReg));
	/* end gen:literal:operand: */
	/* end MoveAw:R: */
	return 0;
}
/*	Use SMULL to produce a 64-bit result, explicitly in RISCTempReg,regDest. - 
	ARM_ARM v7 DDI10406 pp. A8-354-5 
	By comparing RISCTempReg with regDest ASR 31(which effectively makes it 0 
	or -1) we know that the result being EQ means the hi reg and the top bit 
	of the lo reg are the same - ie no overflow. The condition code can then 
	be forced to oVerflow by use of MSR APSR_nzcvq, #1, lsl 28 */
/* CogARMCompiler>>#genMulR:R: */
static AbstractInstruction * NoDbgRegParms
genMulRR(AbstractInstruction * self_in_genMulRR, sqInt _regSource, sqInt _regDest)
{
	AbstractInstruction *_first;

	_first = genoperandoperand(SMULL, _regSource, _regDest);
	genoperandoperand(CMPSMULL, RISCTempReg, _regDest);
	genoperand(MSR, 1);
	return _first;
}
/*	Ensure that the register args are pushed before the outer and 
	inner retpcs at an entry miss for arity <= self numRegArgs. The 
	outer retpc is that of a call at a send site. The inner is the call 
	from a method or PIC abort/miss to the trampoline.Putting the receiver and args above the return address means the 
	CoInterpreter has a single machine-code frame format which saves 
	us a lot of work.Iff there are register args convert 
	sp		->	outerRetpc			(send site retpc) 
	linkReg = innerRetpc			(PIC abort/miss retpc) 
	to 
	base	->	receiver 
	(arg0) 
	(arg1) 
	sp		->	outerRetpc			(send site retpc) 
	sp		->	linkReg/innerRetpc	(PIC abort/miss retpc) */
/* CogARMCompiler>>#genPushRegisterArgsForAbortMissNumArgs: */
static AbstractInstruction * NoDbgRegParms
genPushRegisterArgsForAbortMissNumArgs(AbstractInstruction * self_in_genPushRegisterArgsForAbortMissNumArgs, sqInt _numArgs)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;

	if (_numArgs <= 2) {
		assert((numRegArgs()) <= 2);
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperandoperand(MoveMwrR, 0, SPReg, TempReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(0));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction2 = genoperandoperandoperand(MoveRMwr, ReceiverResultReg, 0, SPReg);
		if (usesOutOfLineLiteral(_anInstruction2)) {
			(_anInstruction2->dependent = locateLiteral(0));
		}
		/* end checkQuickConstant:forInstruction: */
		if (_numArgs > 0) {
			genoperand(PushR, Arg0Reg);
			if (_numArgs > 1) {
				genoperand(PushR, Arg1Reg);
			}
		}
		genoperand(PushR, TempReg);
	}
	genoperand(PushR, LinkReg);
	return self_in_genPushRegisterArgsForAbortMissNumArgs;
}
/*	Ensure that the register args are pushed before the retpc for arity <= 
	self numRegArgs.This is easy on a RISC like ARM because the return address is in the link 
	register. Putting 
	the receiver and args above the return address means the CoInterpreter has 
	a single 
	machine-code frame format which saves us a lot of work 
	NOTA BENE: we do NOT push the return address here, which means it must be 
	dealt with later. */
/* CogARMCompiler>>#genPushRegisterArgsForNumArgs:scratchReg: */
static AbstractInstruction * NoDbgRegParms
genPushRegisterArgsForNumArgsscratchReg(AbstractInstruction * self_in_genPushRegisterArgsForNumArgsscratchReg, sqInt _numArgs, sqInt ignored)
{
	if (_numArgs <= 2) {
		assert((numRegArgs()) <= 2);
		genoperand(PushR, ReceiverResultReg);
		if (_numArgs > 0) {
			genoperand(PushR, Arg0Reg);
			if (_numArgs > 1) {
				genoperand(PushR, Arg1Reg);
			}
		}
	}
	return self_in_genPushRegisterArgsForNumArgsscratchReg;
}
/*	Save the frame and stack pointer registers to the framePointer 
	and stackPointer variables. Used to save the machine code frame 
	for use by the run-time when calling into the CoInterpreter run-time. */
/* CogARMCompiler>>#genSaveStackPointers */
static sqInt NoDbgRegParms
genSaveStackPointers(AbstractInstruction * self_in_genSaveStackPointers)
{
	sqInt _address;
	sqInt _address2;

	/* begin MoveR:Aw: */
	_address = framePointerAddress();
	/* begin gen:operand:literal: */
	checkLiteralforInstruction(_address, genoperandoperand(MoveRAw, FPReg, _address));
	/* end gen:operand:literal: */
	/* end MoveR:Aw: */
	/* begin MoveR:Aw: */
	_address2 = stackPointerAddress();
	/* begin gen:operand:literal: */
	checkLiteralforInstruction(_address2, genoperandoperand(MoveRAw, SPReg, _address2));
	/* end gen:operand:literal: */
	/* end MoveR:Aw: */
	return 0;
}
/*	Answer the instruction immediately preceding followingAddress. */
/* CogARMCompiler>>#instructionBeforeAddress: */
static sqInt NoDbgRegParms
instructionBeforeAddress(AbstractInstruction * self_in_instructionBeforeAddress, sqInt _followingAddress)
{
	return uint32AtPointer(_followingAddress - 4);
}
/*	is this a BLX <targetReg> instruction? */
/* CogARMCompiler>>#instructionIsBLX: */
static sqInt NoDbgRegParms
instructionIsBLX(AbstractInstruction * self_in_instructionIsBLX, sqInt _instr)
{
	return (conditionIsNotNever(self_in_instructionIsBLX, _instr)) && ((_instr & 0xFFFFFF0) == 19922736);
}
/*	is this a BL <offset> instruction? */
/* CogARMCompiler>>#instructionIsBL: */
static sqInt NoDbgRegParms
instructionIsBL(AbstractInstruction * self_in_instructionIsBL, sqInt _instr)
{
	return (conditionIsNotNever(self_in_instructionIsBL, _instr)) && ((_instr & (15U << 24)) == (11U << 24));
}
/*	is this a B <offset> instruction? */
/* CogARMCompiler>>#instructionIsB: */
static sqInt NoDbgRegParms
instructionIsB(AbstractInstruction * self_in_instructionIsB, sqInt _instr)
{
	return (conditionIsNotNever(self_in_instructionIsB, _instr)) && ((_instr & (15U << 24)) == (10U << 24));
}
/*	is this any kind of LDR instruction? c.f. memMxr:reg:base:u:b:l:imm: */
/* CogARMCompiler>>#instructionIsLDR: */
static sqInt NoDbgRegParms
instructionIsLDR(AbstractInstruction * self_in_instructionIsLDR, sqInt _instr)
{
	return (conditionIsNotNever(self_in_instructionIsLDR, _instr)) && (((((usqInt) _instr ) >> 20) & 197) == 65);
}
/*	is this a push -str r??, [sp, #-4] - instruction? */
/* CogARMCompiler>>#instructionIsPush: */
static sqInt NoDbgRegParms
instructionIsPush(AbstractInstruction * self_in_instructionIsPush, sqInt _instr)
{
	return (conditionIsNotNever(self_in_instructionIsPush, _instr)) && ((_instr & 268374015) == 86835204);
}
/*	Several of the opcodes are inverses. Answer the inverse for an opcode if 
	it has one. 
	See Table A3-2 in sec A3.4 Data-processing instructions of the AARM. */
/* CogARMCompiler>>#inverseOpcodeFor: */
static sqInt NoDbgRegParms
inverseOpcodeFor(AbstractInstruction * self_in_inverseOpcodeFor, sqInt _armOpcode)
{
	switch (_armOpcode) {
		case AddOpcode:
		{
			return SubOpcode;
		}
		case AndOpcode:
		{
			return BicOpcode;
		}
		case BicOpcode:
		{
			return AndOpcode;
		}
		case CmpOpcode:
		{
			return CmpNotOpcode;
		}
		case MoveOpcode:
		{
			return MoveNotOpcode;
		}
		case MoveNotOpcode:
		{
			return MoveOpcode;
		}
		case SubOpcode:
		{
			return AddOpcode;
		}
		default:
		{
			error("opcode has no inverse");
			return -1;
		}
	}
}
/*	Assuming mcpc is a send return pc answer if the instruction before it is a 
	call (not a CallFull).There are two types of calls: BL and/BLX encoding */
/* CogARMCompiler>>#isCallPrecedingReturnPC: */
static sqInt NoDbgRegParms
isCallPrecedingReturnPC(AbstractInstruction * self_in_isCallPrecedingReturnPC, sqInt _mcpc)
{
	sqInt _call;

	/* begin instructionBeforeAddress: */
	_call = uint32AtPointer(_mcpc - 4);
	/* end instructionBeforeAddress: */
	return (instructionIsBL(self_in_isCallPrecedingReturnPC, _call)) || (instructionIsBLX(self_in_isCallPrecedingReturnPC, _call));
}
/*	ARM calls and jumps span +/- 32 mb, more than enough for intra-zone calls 
	and jumps. */
/* CogARMCompiler>>#isInImmediateJumpRange: */
static sqInt NoDbgRegParms
isInImmediateJumpRange(AbstractInstruction * self_in_isInImmediateJumpRange, usqIntptr_t _operand)
{
	return (((int) _operand ) >= -33554432) && (((int) _operand ) <= 0x1FFFFFC);
}
/*	add xx, pc, blah or sub xx, pc, blah */
/* CogARMCompiler>>#isPCRelativeValueLoad: */
static sqInt NoDbgRegParms
isPCRelativeValueLoad(AbstractInstruction * self_in_isPCRelativeValueLoad, unsigned int _instr)
{
	return ((((usqInt) _instr ) >> 16) == 57999) || ((((usqInt) _instr ) >> 16) == 57935);
}
/*	Branch/Call ranges. Jump[Cond] can be generated as short as possible. 
	Call/Jump[Cond]Long must be generated 
	in the same number of bytes irrespective of displacement since their 
	targets may be updated, but they need only 
	span 16Mb, the maximum size of the code zone. This allows e.g. ARM to use 
	single-word call and jump instructions 
	for most calls and jumps. CallFull/JumpFull must also be generated in the 
	same number of bytes irrespective of 
	displacement for the same reason, but they must be able to span the full 
	(32-bit or 64-bit) address space because 
	they are used to call code in the C runtime, which may be distant from the 
	code zone */
/* CogARMCompiler>>#jumpLongByteSize */
static sqInt NoDbgRegParms
jumpLongByteSize(AbstractInstruction * self_in_jumpLongByteSize)
{
	return 4;
}
/* CogARMCompiler>>#jumpLongConditionalByteSize */
static sqInt NoDbgRegParms
jumpLongConditionalByteSize(AbstractInstruction * self_in_jumpLongConditionalByteSize)
{
	return jumpLongByteSize(self_in_jumpLongConditionalByteSize);
}
/*	Answer the target address for the long jump immediately preceding mcpc */
/* CogARMCompiler>>#jumpLongTargetBeforeFollowingAddress: */
static sqInt NoDbgRegParms
jumpLongTargetBeforeFollowingAddress(AbstractInstruction * self_in_jumpLongTargetBeforeFollowingAddress, sqInt _mcpc)
{
	return callTargetFromReturnAddress(self_in_jumpLongTargetBeforeFollowingAddress, _mcpc);
}
/*	LDRB destReg, [baseReg, 'u' immediate12bitValue] u=0 -> - ARM_ARM v7 
	DDI10406 pp. A8-128-9 
	Note that this is a very low level interface that does not check the sign 
	of the immediate, nor validity. See for example #concretizeMoveMbrR */
/* CogARMCompiler>>#ldrb:rn:plus:imm: */
static sqInt NoDbgRegParms
ldrbrnplusimm(AbstractInstruction * self_in_ldrbrnplusimm, sqInt _destReg, sqInt _baseReg, sqInt _u, sqInt _immediate12bitValue)
{
	return memMxrregbaseublimm(self_in_ldrbrnplusimm, AL, _destReg, _baseReg, _u, 1, 1, _immediate12bitValue);
}
/*	LDRB destReg, [baseReg, + offsetReg] - ARM_ARM v7 DDI10406 pp. A8-132-3 
	The contents of offsetReg are assumed to be correctly signed */
/* CogARMCompiler>>#ldrb:rn:rm: */
static sqInt NoDbgRegParms
ldrbrnrm(AbstractInstruction * self_in_ldrbrnrm, sqInt _destReg, sqInt _baseReg, sqInt _offsetReg)
{
	return memMxrregbasepubwlrm(self_in_ldrbrnrm, AL, _destReg, _baseReg, 1, 1, 1, 0, 1, _offsetReg);
}
/*	LDRH destReg, [baseReg, 'u' immediate8bitValue] u=0 -> subtract imm; =1 -> 
	add imm - ARM_ARM v7 DDI10406 pp. A8-152-3 */
/* CogARMCompiler>>#ldrh:rn:plus:imm: */
static sqInt NoDbgRegParms
ldrhrnplusimm(AbstractInstruction * self_in_ldrhrnplusimm, sqInt _destReg, sqInt _baseReg, sqInt _u, sqInt _immediate8bitValue)
{
	return memM16xrregbasepuwloffset(self_in_ldrhrnplusimm, AL, _destReg, _baseReg, 1, _u, 0, 1, _immediate8bitValue);
}
/*	LDR destReg, [baseReg, +immediate12bitValue] - ARM_ARM v7 DDI10406 pp. 
	A8-120-1  */
/* CogARMCompiler>>#ldr:rn:plusImm: */
static sqInt NoDbgRegParms
ldrrnplusImm(AbstractInstruction * self_in_ldrrnplusImm, sqInt _destReg, sqInt _baseReg, sqInt _immediate12bitValue)
{
	return memMxrregbaseublimm(self_in_ldrrnplusImm, AL, _destReg, _baseReg, 1, 0, 1, _immediate12bitValue);
}
/*	LDR destReg, [baseReg, immediate12bitValue] u=0 -> subtract imm; =1 -> add 
	imm - ARM_ARM v7 DDI10406 pp. A8-120-1 */
/* CogARMCompiler>>#ldr:rn:plus:imm: */
static sqInt NoDbgRegParms
ldrrnplusimm(AbstractInstruction * self_in_ldrrnplusimm, sqInt _destReg, sqInt _baseReg, sqInt _u, sqInt _immediate12bitValue)
{
	return memMxrregbaseublimm(self_in_ldrrnplusimm, AL, _destReg, _baseReg, _u, 0, 1, _immediate12bitValue);
}
/*	LDR destReg, [baseReg, + offsetReg] - ARM_ARM v7 DDI10406 pp. A8-124-5 
	The contents of offsetReg are assumed to be correctly signed */
/* CogARMCompiler>>#ldr:rn:rm: */
static sqInt NoDbgRegParms
ldrrnrm(AbstractInstruction * self_in_ldrrnrm, sqInt _destReg, sqInt _baseReg, sqInt _offsetReg)
{
	return memMxrregbasepubwlrm(self_in_ldrrnrm, AL, _destReg, _baseReg, 1, 1, 0, 0, 1, _offsetReg);
}
/* CogARMCompiler>>#literalBeforeInlineCacheTagAt: */
static sqInt NoDbgRegParms
literalBeforeInlineCacheTagAt(AbstractInstruction * self_in_literalBeforeInlineCacheTagAt, sqInt callSiteReturnAddress)
{
	/* begin notYetImplemented: */
	{
		logError("Should implement access to the class in directed super sends for ARMv7");
		abort();
	}
	/* end notYetImplemented: */
	return 0;
}
/*	Load the operand into the destination register, answering 
	the size of the instructions generated to do so. */
/* CogARMCompiler>>#loadCwInto: */
static usqInt NoDbgRegParms
loadCwInto(AbstractInstruction * self_in_loadCwInto, sqInt _destReg)
{
	sqInt _aWord;
	sqInt _aWord2;
	sqInt _distance;
	sqInt _i;
	sqInt _immediate;
	sqInt _negate;
	usqInt _operand;
	sqInt _rot;
	sqInt _value;

	_operand = (self_in_loadCwInto->operands)[0];
	if ((addressIsInInstructions(((AbstractInstruction *) _operand ))) || (((AbstractInstruction *) _operand ) == (methodLabel()))) {
		_operand = ((((AbstractInstruction *) _operand ))->address);
	}
	if ((((usqInt) _operand ) >= ((methodLabel->address))) && (((usqInt) _operand ) < (youngReferrers()))) {
		_distance = _operand - (((self_in_loadCwInto->address)) + 8);
		/* begin rotateable8bitSignedImmediate:ifTrue:ifFalse: */
		_value = _distance;
		while (1) {
			if ((_value & 0xFF) == _value) {
				{
					_negate = _distance != _value;
					/* begin machineCodeAt:put: */
					_aWord = ((_negate)
						 ? subrnimmror(self_in_loadCwInto, _destReg, PC, _value, 0)
						 : addrnimmror(self_in_loadCwInto, _destReg, PC, _value, 0));
					(self_in_loadCwInto->machineCode)[0 / 4] = _aWord;
					/* end machineCodeAt:put: */
					return 4;
				}
				goto l3;
			}
			for (_i = 2; _i <= 30; _i += 2) {
				if ((_value & (((0xFFU << _i) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i)))) == _value) {
					{
						_negate = _distance != _value;
						_immediate = (((usqInt) _value ) >> _i) | (((sqInt) (((usqInt) _value ) << (32 - _i)) ) & 0xFFFFFFFFU);
						_rot = 32 - _i;
						/* begin machineCodeAt:put: */
						_aWord = ((_negate)
							 ? subrnimmror(self_in_loadCwInto, _destReg, PC, _immediate, _rot)
							 : addrnimmror(self_in_loadCwInto, _destReg, PC, _immediate, _rot));
						(self_in_loadCwInto->machineCode)[0 / 4] = _aWord;
						/* end machineCodeAt:put: */
						return 4;
					}
					goto l3;
				}
			}
			if (!((_value == _distance) && (_distance != 0))) 
				break;
			_value = -_distance;
		}
		{
			assert(!(isAnInstruction(self_in_loadCwInto, ((AbstractInstruction *) ((self_in_loadCwInto->operands)[0]) ))));
		}
		l3:
		;
		/* end rotateable8bitSignedImmediate:ifTrue:ifFalse: */
	}
	/* begin moveCw:intoR: */
	assert(addressIsInCurrentCompilation((((self_in_loadCwInto->dependent))->address)));
	assert((SQABS(((((self_in_loadCwInto->dependent))->address)) - (((self_in_loadCwInto->address)) + 8))) < (1U << 12));
	/* begin machineCodeAt:put: */
	_aWord2 = ldrrnplusimm(self_in_loadCwInto, _destReg, PC, ((((((self_in_loadCwInto->dependent))->address)) >= (((self_in_loadCwInto->address)) + 8))
		 ? 1
		 : 0), SQABS(((((self_in_loadCwInto->dependent))->address)) - (((self_in_loadCwInto->address)) + 8)));
	(self_in_loadCwInto->machineCode)[0 / 4] = _aWord2;
	/* end machineCodeAt:put: */
	return ((self_in_loadCwInto->machineCodeSize) = 4);
	/* end moveCw:intoR: */
}
/*	Answer the byte size of a MoveCwR opcode's corresponding machine code 
	when the argument is a PIC. This is for the self-reference at the end of a 
	closed PIC. On ARM this is a single instruction pc-relative register load. */
/* CogARMCompiler>>#loadPICLiteralByteSize */
static sqInt NoDbgRegParms
loadPICLiteralByteSize(AbstractInstruction * self_in_loadPICLiteralByteSize)
{
	return 4;
}
/*	build an ARM [base +/- offset8] half-word memory instruction 
	p -> pre-index (1) or post-index (0) the offset. Combines with W to do 
	some odd things. 
	u -> up (1) or down (0) ie + or - for the offset 
	b -> byte(1) or word (0) 
	w -> write-back (1) if pre-indexing.  
	l -> load (1) or store (0) */
/* CogARMCompiler>>#memM16xr:reg:base:p:u:w:l:offset: */
static sqInt NoDbgRegParms
memM16xrregbasepuwloffset(AbstractInstruction * self_in_memM16xrregbasepuwloffset, sqInt _cond, sqInt _destReg, sqInt _baseReg, sqInt _postpreoffset, sqInt _updown, sqInt _weirdstuff, sqInt _loadstore, sqInt _offset8)
{
	return ((sqInt) (((usqInt) _cond ) << 28) ) | ((0U << 25) | (((sqInt) (((usqInt) _postpreoffset ) << 24) ) | (((sqInt) (((usqInt) _updown ) << 23) ) | ((1U << 22) | (((sqInt) (((usqInt) _weirdstuff ) << 21) ) | (((sqInt) (((usqInt) _loadstore ) << 20) ) | (((sqInt) (((usqInt) _baseReg ) << 16) ) | (((sqInt) (((usqInt) _destReg ) << 12) ) | (((sqInt) (((usqInt) (_offset8 & 240) ) << 4) ) | ((11U << 4) | (_offset8 & 15)))))))))));
}
/*	build an ARM [base +/- offsetReg] memory instruction 
	p -> pre-index (1) or post-index (0) the offset. Combines with W to do 
	some odd things. 
	u -> up (1) or down (0) ie + or - for the offset 
	b -> byte(1) or word (0) 
	w -> write-back (1) if pre-indexing.  
	l -> load (1) or store (0) */
/* CogARMCompiler>>#memM16xr:reg:base:p:u:w:l:rm: */
static sqInt NoDbgRegParms
memM16xrregbasepuwlrm(AbstractInstruction * self_in_memM16xrregbasepuwlrm, sqInt _cond, sqInt _destReg, sqInt _baseReg, sqInt _postpreoffset, sqInt _updown, sqInt _weirdstuff, sqInt _loadstore, sqInt _offsetReg)
{
	return ((sqInt) (((usqInt) _cond ) << 28) ) | ((0U << 25) | (((sqInt) (((usqInt) _postpreoffset ) << 24) ) | (((sqInt) (((usqInt) _updown ) << 23) ) | ((0U << 22) | (((sqInt) (((usqInt) _weirdstuff ) << 21) ) | (((sqInt) (((usqInt) _loadstore ) << 20) ) | (((sqInt) (((usqInt) _baseReg ) << 16) ) | (((sqInt) (((usqInt) _destReg ) << 12) ) | (176 | _offsetReg)))))))));
}
/*	build an ARM [base +/- offset] memory instruction 
	p -> pre-index (1) or post-index (0) the offset. Combines with W to do 
	some odd things. 
	u -> up (1) or down (0) ie + or - for the offset 
	b -> byte(1) or word (0) 
	w -> write-back (1) if pre-indexing.  
	l -> load (1) or store (0) */
/* CogARMCompiler>>#memMxr:reg:base:p:u:b:w:l:imm: */
static sqInt NoDbgRegParms
memMxrregbasepubwlimm(AbstractInstruction * self_in_memMxrregbasepubwlimm, sqInt _cond, sqInt _destReg, sqInt _baseReg, sqInt _postpreoffset, sqInt _updown, sqInt _byteword, sqInt _weirdstuff, sqInt _loadstore, sqInt _offset)
{
	return ((sqInt) (((usqInt) _cond ) << 28) ) | ((2U << 25) | (((sqInt) (((usqInt) _postpreoffset ) << 24) ) | (((sqInt) (((usqInt) _updown ) << 23) ) | (((sqInt) (((usqInt) _byteword ) << 22) ) | (((sqInt) (((usqInt) _weirdstuff ) << 21) ) | (((sqInt) (((usqInt) _loadstore ) << 20) ) | (((sqInt) (((usqInt) _baseReg ) << 16) ) | (((sqInt) (((usqInt) _destReg ) << 12) ) | _offset))))))));
}
/*	build an ARM [base +/- offsetReg lsl #2] memory instruction - see also 
	#memMxr:reg:base:p:u:b:w:l:rm: and keep them correlated properly 
	p -> pre-index (1) or post-index (0) the offset. Combines with W to do 
	some odd things. 
	u -> up (1) or down (0) ie + or - for the offset 
	b -> byte(1) or word (0) 
	w -> write-back (1) if pre-indexing.  
	l -> load (1) or store (0) */
/* CogARMCompiler>>#memMxr:reg:base:p:u:b:w:l:rmLsl2: */
static sqInt NoDbgRegParms
memMxrregbasepubwlrmLsl2(AbstractInstruction * self_in_memMxrregbasepubwlrmLsl2, sqInt _cond, sqInt _destReg, sqInt _baseReg, sqInt _postpreoffset, sqInt _updown, sqInt _byteword, sqInt _weirdstuff, sqInt _loadstore, sqInt _offsetReg)
{
	return ((sqInt) (((usqInt) (_cond & 15) ) << 28) ) | ((3U << 25) | (((sqInt) (((usqInt) (_postpreoffset & 1) ) << 24) ) | (((sqInt) (((usqInt) (_updown & 1) ) << 23) ) | (((sqInt) (((usqInt) (_byteword & 1) ) << 22) ) | (((sqInt) (((usqInt) (_weirdstuff & 1) ) << 21) ) | (((sqInt) (((usqInt) (_loadstore & 1) ) << 20) ) | (((sqInt) (((usqInt) (_baseReg & 15) ) << 16) ) | (((sqInt) (((usqInt) (_destReg & 15) ) << 12) ) | (256 | (_offsetReg & 15))))))))));
}
/*	build an ARM [base +/- offsetReg] memory instruction 
	p -> pre-index (1) or post-index (0) the offset. Combines with W to do 
	some odd things. 
	u -> up (1) or down (0) ie + or - for the offset 
	b -> byte(1) or word (0) 
	w -> write-back (1) if pre-indexing.  
	l -> load (1) or store (0) */
/* CogARMCompiler>>#memMxr:reg:base:p:u:b:w:l:rm: */
static sqInt NoDbgRegParms
memMxrregbasepubwlrm(AbstractInstruction * self_in_memMxrregbasepubwlrm, sqInt _cond, sqInt _destReg, sqInt _baseReg, sqInt _postpreoffset, sqInt _updown, sqInt _byteword, sqInt _weirdstuff, sqInt _loadstore, sqInt _offsetReg)
{
	return ((sqInt) (((usqInt) (_cond & 15) ) << 28) ) | ((3U << 25) | (((sqInt) (((usqInt) (_postpreoffset & 1) ) << 24) ) | (((sqInt) (((usqInt) (_updown & 1) ) << 23) ) | (((sqInt) (((usqInt) (_byteword & 1) ) << 22) ) | (((sqInt) (((usqInt) (_weirdstuff & 1) ) << 21) ) | (((sqInt) (((usqInt) (_loadstore & 1) ) << 20) ) | (((sqInt) (((usqInt) (_baseReg & 15) ) << 16) ) | (((sqInt) (((usqInt) (_destReg & 15) ) << 12) ) | (_offsetReg & 15)))))))));
}
/*	This is the lowest level build of an ARM [base +/- immediate 12bit offset] 
	memory instruction 
	u -> up (1) or down (0) ie + or - for the offset 
	b -> byte(1) or word (0) 
	l -> load (1) or store (0) */
/* CogARMCompiler>>#memMxr:reg:base:u:b:l:imm: */
static sqInt NoDbgRegParms
memMxrregbaseublimm(AbstractInstruction * self_in_memMxrregbaseublimm, sqInt _cond, sqInt _destReg, sqInt _baseReg, sqInt _updown, sqInt _byteword, sqInt _loadstore, sqInt _immediate12bitValue)
{
	return ((sqInt) (((usqInt) (_cond & 15) ) << 28) ) | ((5U << 24) | (((sqInt) (((usqInt) (_updown & 1) ) << 23) ) | (((sqInt) (((usqInt) (_byteword & 1) ) << 22) ) | (((sqInt) (((usqInt) (_loadstore & 1) ) << 20) ) | (((sqInt) (((usqInt) (_baseReg & 15) ) << 16) ) | (((sqInt) (((usqInt) (_destReg & 15) ) << 12) ) | (_immediate12bitValue & 0xFFF)))))));
}
/*	Remember the ROR is doubled by the cpu so use 30>>1 etc. 
	MOV destReg, #immediate8BitValue ROR rot - ARM_ARM v7 DDI10406 pp. 
	A8-194-5  */
/* CogARMCompiler>>#mov:imm:ror: */
static sqInt NoDbgRegParms
movimmror(AbstractInstruction * self_in_movimmror, sqInt _destReg, sqInt _immediate8bitValue, sqInt _rot)
{
	return ((((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((int) (((usqInt) MoveOpcode ) << 21) ) | (0U << 20)))) | ((0U << 16) | ((sqInt) (((usqInt) _destReg ) << 12) ))) | ((((sqInt) (((usqInt) (((usqInt) _rot ) >> 1) ) << 8) ) | _immediate8bitValue) & 0xFFF);
}
/*	MOV destReg, srcReg - ARM_ARM v7 DDI10406 pp. A8-196-7 */
/* CogARMCompiler>>#mov:rn: */
static sqInt NoDbgRegParms
movrn(AbstractInstruction * self_in_movrn, sqInt _destReg, sqInt _srcReg)
{
	return ((((int) (((usqInt) AL ) << 28) ) | ((0U << 25) | (((int) (((usqInt) MoveOpcode ) << 21) ) | (0U << 20)))) | ((0U << 16) | ((sqInt) (((usqInt) _destReg ) << 12) ))) | (_srcReg & 0xFFF);
}
/*	Generate an MSR CPSR_f, #flags instruction. 
	Note that  
	a) CPSR_f is equivalent to APSR_nzcvq (ARM ARM DDI0406A p A8-209 & A2-14) 
	b) We only have business with the NZCV flags so the generated instruction 
	shifts the flags value <<28 - which is a ROR 4 */
/* CogARMCompiler>>#msr: */
static sqInt NoDbgRegParms
msr(AbstractInstruction * self_in_msr, sqInt _flags)
{
	return (321449984 + (2U << 8)) + (_flags & 15);
}
/*	Remember the ROR is doubled by the cpu so use 30>>1 etc. 
	MVN destReg, #immediate8BitValue ROR rot - ARM_ARM v7 DDI10406 pp. 
	A8-214-5  */
/* CogARMCompiler>>#mvn:imm:ror: */
static sqInt NoDbgRegParms
mvnimmror(AbstractInstruction * self_in_mvnimmror, sqInt _destReg, sqInt _immediate8bitValue, sqInt _rot)
{
	return ((((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((int) (((usqInt) MoveNotOpcode ) << 21) ) | (0U << 20)))) | ((0U << 16) | ((sqInt) (((usqInt) _destReg ) << 12) ))) | ((((sqInt) (((usqInt) (((usqInt) _rot ) >> 1) ) << 8) ) | _immediate8bitValue) & 0xFFF);
}
/* CogARMCompiler>>#numIntRegArgs */
static sqInt NoDbgRegParms
numIntRegArgs(AbstractInstruction * self_in_numIntRegArgs)
{
	return 4;
}
/* CogARMCompiler>>#padIfPossibleWithStopsFrom:to: */
static AbstractInstruction * NoDbgRegParms
padIfPossibleWithStopsFromto(AbstractInstruction * self_in_padIfPossibleWithStopsFromto, sqInt _startAddr, sqInt _endAddr)
{
	sqInt _nullBytes;
	sqInt _p;

	_nullBytes = ((_endAddr - _startAddr) + 1) % 4;
	stopsFromto(self_in_padIfPossibleWithStopsFromto, _startAddr, _endAddr - _nullBytes);
	for (_p = (_endAddr - _nullBytes) + 1; _p <= _endAddr; _p += 1) {
		byteAtput(_p, 0xFF);
	}
	return self_in_padIfPossibleWithStopsFromto;
}
/*	pop word off TOS 
	LDR srcReg, [sp] #4 - ARM_ARM v7 DDI10406 pp. A8-120-1 */
/* CogARMCompiler>>#popR: */
static sqInt NoDbgRegParms
popR(AbstractInstruction * self_in_popR, sqInt _dstReg)
{
	return memMxrregbasepubwlimm(self_in_popR, AL, _dstReg, SP, 0, 1, 0, 0, 1, 4);
}
/*	ARMv5 should be aligned to 16 bytes */
/* CogARMCompiler>>#prepareStackToCallCFunctionInSmalltalkStack: */
static AbstractInstruction * NoDbgRegParms
prepareStackToCallCFunctionInSmalltalkStack(AbstractInstruction * self_in_prepareStackToCallCFunctionInSmalltalkStack, sqInt anObject)
{
	AbstractInstruction *_anInstruction;

	genoperandoperand(MoveRR, SPReg, ClassReg);
	genoperandoperand(MoveRR, SPReg, Extra2Reg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(AndCqR, 0xFFFFFFF0U, Extra2Reg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(0xFFFFFFF0U));
	}
	/* end checkQuickConstant:forInstruction: */
	genoperandoperand(MoveRR, Extra2Reg, SPReg);
	return self_in_prepareStackToCallCFunctionInSmalltalkStack;
}
/* CogARMCompiler>>#pushLinkRegisterByteSize */
static sqInt NoDbgRegParms
pushLinkRegisterByteSize(AbstractInstruction * self_in_pushLinkRegisterByteSize)
{
	return 4;
}
/*	push word to TOS  
	STR srcReg, [sp, #-4]! - ARM_ARM v7 DDI10406 pp. A8-382-3 */
/* CogARMCompiler>>#pushR: */
static sqInt NoDbgRegParms
pushR(AbstractInstruction * self_in_pushR, sqInt _srcReg)
{
	return memMxrregbasepubwlimm(self_in_pushR, AL, _srcReg, SP, 1, 0, 0, 1, 0, 4);
}
/* CogARMCompiler>>#relocateCallBeforeReturnPC:by: */
static AbstractInstruction * NoDbgRegParms
relocateCallBeforeReturnPCby(AbstractInstruction * self_in_relocateCallBeforeReturnPCby, sqInt _retpc, sqInt _delta)
{
	sqInt _distanceDiv4;
	sqInt _instr;

	assert((_delta % 4) == 0);
	if (_delta != 0) {
		/* begin instructionBeforeAddress: */
		_instr = uint32AtPointer(_retpc - 4);
		/* end instructionBeforeAddress: */
		assert((instructionIsB(self_in_relocateCallBeforeReturnPCby, _instr)) || (instructionIsBL(self_in_relocateCallBeforeReturnPCby, _instr)));
		_distanceDiv4 = _instr & 0xFFFFFF;
		_distanceDiv4 += _delta / 4;
		uint32AtPointerput(_retpc - 4, (_instr & 0xFF000000U) | (_distanceDiv4 & 0xFFFFFF));
	}
	return self_in_relocateCallBeforeReturnPCby;
}
/* CogARMCompiler>>#returnFromCallCFunctionInSmalltalkStack: */
static AbstractInstruction * NoDbgRegParms
returnFromCallCFunctionInSmalltalkStack(AbstractInstruction * self_in_returnFromCallCFunctionInSmalltalkStack, sqInt anObject)
{
	genoperandoperand(MoveRR, ClassReg, SPReg);
	return self_in_returnFromCallCFunctionInSmalltalkStack;
}
/*	Rewrite a call instruction to call a different target. This variant is 
	used to link PICs 
	in ceSendMiss et al,.  
	Answer the extent of the code change which is used to compute the range of 
	the icache to flush. */
/* CogARMCompiler>>#rewriteCallAt:target: */
static sqInt NoDbgRegParms
rewriteCallAttarget(AbstractInstruction * self_in_rewriteCallAttarget, usqInt _callSiteReturnAddress, usqInt _callTargetAddress)
{
	return rewriteTransferAttarget(self_in_rewriteCallAttarget, _callSiteReturnAddress, _callTargetAddress);
}
/*	Rewrite a jump instruction to call a different target. This variant is 
	used to reset the  
	jumps in the prototype CPIC to suit each use,.  
	Answer the extent of the code change which is used to compute the range of 
	the icache to flush. */
/* CogARMCompiler>>#rewriteJumpLongAt:target: */
static sqInt NoDbgRegParms
rewriteJumpLongAttarget(AbstractInstruction * self_in_rewriteJumpLongAttarget, usqInt _callSiteReturnAddress, usqInt _callTargetAddress)
{
	return rewriteTransferAttarget(self_in_rewriteJumpLongAttarget, _callSiteReturnAddress, _callTargetAddress);
}
/*	Rewrite a call/jump instruction to call a different target. This variant 
	is used to link PICs 
	in ceSendMiss et al, and to rewrite call/jumps in CPICs. 
	Answer the extent of 
	the code change which is used to compute the range of the icache to flush.for debug - [cogit disassembleFrom: callSiteReturnAddress - 10 to: 
	callSiteReturnAddress - 1]. */
/* CogARMCompiler>>#rewriteTransferAt:target: */
static sqInt NoDbgRegParms
rewriteTransferAttarget(AbstractInstruction * self_in_rewriteTransferAttarget, usqInt _callSiteReturnAddress, usqInt _callTargetAddress)
{
	usqInt _callDistance;
	sqInt _instr;

	{
		if (!(_callTargetAddress >= (minCallAddress()))) {
			error("linking callsite to invalid address");
		}
	}
	_callDistance = ((usqInt) (_callTargetAddress - ((_callSiteReturnAddress + 8) - 4)) );
	assert(isInImmediateJumpRange(self_in_rewriteTransferAttarget, _callDistance));
	/* begin instructionBeforeAddress: */
	_instr = uint32AtPointer(_callSiteReturnAddress - 4);
	/* end instructionBeforeAddress: */
	assert((instructionIsB(self_in_rewriteTransferAttarget, _instr)) || (instructionIsBL(self_in_rewriteTransferAttarget, _instr)));
	uint32AtPointerput(_callSiteReturnAddress - 4, (_instr & 0xFF000000U) | ((_callDistance / 4) & 0xFFFFFF));
	assert((callTargetFromReturnAddress(self_in_rewriteTransferAttarget, _callSiteReturnAddress)) == _callTargetAddress);
	return 4;
}
/*	to save Slang from having to be a real compiler (it can't inline switches 
	that return)Answer if the receiver's opcode sets the condition codes correctly for the 
	given conditional jump opcode. 
	ARM has to check carefully since the V flag is not affected by 
	non-comparison instructions */
/* CogARMCompiler>>#setsConditionCodesFor: */
static sqInt NoDbgRegParms
setsConditionCodesFor(AbstractInstruction * self_in_setsConditionCodesFor, sqInt _aConditionalJumpOpcode)
{
	switch ((self_in_setsConditionCodesFor->opcode)) {
		case ArithmeticShiftRightCqR:
		case ArithmeticShiftRightRR:
		case LogicalShiftLeftCqR:
		case LogicalShiftLeftRR:
		{
			return shiftSetsConditionCodesFor(self_in_setsConditionCodesFor, _aConditionalJumpOpcode);
		}
		case XorRR:
		{
			return 1;
		}
		default:
		{
			haltmsg("unhandled opcode in setsConditionCodesFor:");
			return 0;
		}
	}
}
/*	check what flags the opcdoe needs setting - ARM doesn't set V when simply 
	MOVing  */
/* CogARMCompiler>>#shiftSetsConditionCodesFor: */
static sqInt NoDbgRegParms
shiftSetsConditionCodesFor(AbstractInstruction * self_in_shiftSetsConditionCodesFor, sqInt _aConditionalJumpOpcode)
{
	switch (_aConditionalJumpOpcode) {
		case JumpNegative:
		case JumpZero:
		case JumpLess:
		{
			return 1;
		}
		default:
		{
			haltmsg("unhandled opcode in setsConditionCodesFor:");
			return 0;
		}
	}
}
/* CogARMCompiler>>#stopsFrom:to: */
static AbstractInstruction * NoDbgRegParms
stopsFromto(AbstractInstruction * self_in_stopsFromto, sqInt _startAddr, sqInt _endAddr)
{
	sqInt _addr;

	assert((((_endAddr - _startAddr) + 1) % 4) == 0);
	for (_addr = _startAddr; _addr <= _endAddr; _addr += 4) {
		uint32AtPointerput(_addr, ((int) (((usqInt) AL ) << 28) ) | ((18U << 20) | (7U << 4)));
	}
	return self_in_stopsFromto;
}
/*	STRB destReg, [baseReg, 'u' immediate12bitValue] u=0 -> subtract imm; =1 
	-> add imm - ARM_ARM v7 DDI10406 pp. A8-388-9 */
/* CogARMCompiler>>#strb:rn:plus:imm: */
static sqInt NoDbgRegParms
strbrnplusimm(AbstractInstruction * self_in_strbrnplusimm, sqInt _destReg, sqInt _baseReg, sqInt _u, sqInt _immediate12bitValue)
{
	return memMxrregbaseublimm(self_in_strbrnplusimm, AL, _destReg, _baseReg, _u, 1, 0, _immediate12bitValue);
}
/*	STRB srcReg, [baseReg, + offsetReg] - ARM_ARM v7 DDI10406 pp. A8-390-1 
	The contents of offsetReg are assumed to be correctly signed */
/* CogARMCompiler>>#strb:rn:rm: */
static sqInt NoDbgRegParms
strbrnrm(AbstractInstruction * self_in_strbrnrm, sqInt _srcReg, sqInt _baseReg, sqInt _offsetReg)
{
	return memMxrregbasepubwlrm(self_in_strbrnrm, AL, _srcReg, _baseReg, 1, 1, 1, 0, 0, _offsetReg);
}
/*	STRH destReg, [baseReg, 'u' immediate8bitValue] u=0 -> subtract imm; =1 -> 
	add imm - ARM_ARM v7 DDI10406 pp. A8-408-9 */
/* CogARMCompiler>>#strh:rn:plus:imm: */
static sqInt NoDbgRegParms
strhrnplusimm(AbstractInstruction * self_in_strhrnplusimm, sqInt _destReg, sqInt _baseReg, sqInt _u, sqInt _immediate8bitValue)
{
	return memM16xrregbasepuwloffset(self_in_strhrnplusimm, AL, _destReg, _baseReg, 1, _u, 0, 0, _immediate8bitValue);
}
/*	STRH srcReg, [baseReg, +offsetReg] - ARM_ARM v7 DDI10406 pp. A8-410-1 */
/* CogARMCompiler>>#strh:rn:rm: */
static sqInt NoDbgRegParms
strhrnrm(AbstractInstruction * self_in_strhrnrm, sqInt _srcReg, sqInt _baseReg, sqInt _offsetReg)
{
	return memM16xrregbasepuwlrm(self_in_strhrnrm, AL, _srcReg, _baseReg, 1, 1, 0, 0, _offsetReg);
}
/*	STR srcReg, [baseReg, +immediate12bitValue] - ARM_ARM v7 DDI10406 pp. 
	A8-382-3  */
/* CogARMCompiler>>#str:rn:plusImm: */
static sqInt NoDbgRegParms
strrnplusImm(AbstractInstruction * self_in_strrnplusImm, sqInt _srcReg, sqInt _baseReg, sqInt _immediate12bitValue)
{
	return memMxrregbaseublimm(self_in_strrnplusImm, AL, _srcReg, _baseReg, 1, 0, 0, _immediate12bitValue);
}
/*	STR destReg, [baseReg, 'u' immediate12bitValue] u=0 -> subtract imm; =1 -> 
	add imm - ARM_ARM v7 DDI10406 pp. A8-382-3 */
/* CogARMCompiler>>#str:rn:plus:imm: */
static sqInt NoDbgRegParms
strrnplusimm(AbstractInstruction * self_in_strrnplusimm, sqInt _destReg, sqInt _baseReg, sqInt _u, sqInt _immediate12bitValue)
{
	return memMxrregbaseublimm(self_in_strrnplusimm, AL, _destReg, _baseReg, _u, 0, 0, _immediate12bitValue);
}
/*	STR srcReg, [baseReg, + offsetReg] - ARM_ARM v7 DDI10406 pp. A8-384-5 
	The contents of offsetReg are assumed to be correctly signed */
/* CogARMCompiler>>#str:rn:rm: */
static sqInt NoDbgRegParms
strrnrm(AbstractInstruction * self_in_strrnrm, sqInt _srcReg, sqInt _baseReg, sqInt _offsetReg)
{
	return memMxrregbasepubwlrm(self_in_strrnrm, AL, _srcReg, _baseReg, 1, 1, 0, 0, 0, _offsetReg);
}
/*	Remember the ROR is doubled by the cpu so use 30>>1 etc 
	SUBS destReg, srcReg, #immediate ROR rot - ARM_ARM v7 DDI10406 pp. 
	A8-418-9  */
/* CogARMCompiler>>#subs:rn:imm:ror: */
static sqInt NoDbgRegParms
subsrnimmror(AbstractInstruction * self_in_subsrnimmror, sqInt _destReg, sqInt _srcReg, sqInt _immediate, sqInt _rot)
{
	return ((((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((int) (((usqInt) SubOpcode ) << 21) ) | (1U << 20)))) | (((sqInt) (((usqInt) _srcReg ) << 16) ) | ((sqInt) (((usqInt) _destReg ) << 12) ))) | ((((sqInt) (((usqInt) (((usqInt) _rot ) >> 1) ) << 8) ) | _immediate) & 0xFFF);
}
/*	Remember the ROR is doubled by the cpu so use 30>>1 etc 
	SUB destReg, srcReg, #immediate ROR rot - ARM_ARM v7 DDI10406 pp. A8-418-9 */
/* CogARMCompiler>>#sub:rn:imm:ror: */
static sqInt NoDbgRegParms
subrnimmror(AbstractInstruction * self_in_subrnimmror, sqInt _destReg, sqInt _srcReg, sqInt _immediate, sqInt _rot)
{
	return ((((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((int) (((usqInt) SubOpcode ) << 21) ) | (0U << 20)))) | (((sqInt) (((usqInt) _srcReg ) << 16) ) | ((sqInt) (((usqInt) _destReg ) << 12) ))) | ((((sqInt) (((usqInt) (((usqInt) _rot ) >> 1) ) << 8) ) | _immediate) & 0xFFF);
}
/*	Remember the ROR is doubled by the cpu so use 30>>1 etcalso note that TST has no destReg 
	TST srcReg, #immediate ROR rot - ARM_ARM v7 DDI10406 pp. A8-452-3 */
/* CogARMCompiler>>#tst:rn:imm:ror: */
static sqInt NoDbgRegParms
tstrnimmror(AbstractInstruction * self_in_tstrnimmror, sqInt ignored, sqInt _srcReg, sqInt _immediate, sqInt _rot)
{
	return ((((int) (((usqInt) AL ) << 28) ) | ((1U << 25) | (((int) (((usqInt) TstOpcode ) << 21) ) | (1U << 20)))) | (((sqInt) (((usqInt) _srcReg ) << 16) ) | (0U << 12))) | ((((sqInt) (((usqInt) (((usqInt) _rot ) >> 1) ) << 8) ) | _immediate) & 0xFFF);
}
/* CogBytecodeDescriptor>>#isBranch */
static sqInt NoDbgRegParms
isBranch(BytecodeDescriptor * self_in_isBranch)
{
	return ((self_in_isBranch->spanFunction)) != null;
}
/* Cogit>>#AddCq:R: */
static AbstractInstruction * NoDbgRegParms
gAddCqR(sqInt _quickConstant, sqInt _reg)
{
	AbstractInstruction *_anInstruction;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(AddCqR, _quickConstant, _reg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(_quickConstant));
	}
	return _anInstruction;
	/* end checkQuickConstant:forInstruction: */
}
/* Cogit>>#AndCq:R: */
static AbstractInstruction * NoDbgRegParms
gAndCqR(sqInt _quickConstant, sqInt _reg)
{
	AbstractInstruction *_anInstruction;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(AndCqR, _quickConstant, _reg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(_quickConstant));
	}
	return _anInstruction;
	/* end checkQuickConstant:forInstruction: */
}
/* Cogit>>#AndCq:R:R: */
static AbstractInstruction * NoDbgRegParms
gAndCqRR(sqInt _quickConstant, sqInt _srcReg, sqInt _destReg)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_first;

	{
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction3 = genoperandoperandoperand(AndCqRR, _quickConstant, _srcReg, _destReg);
		if (usesOutOfLineLiteral(_anInstruction3)) {
			(_anInstruction3->dependent = locateLiteral(_quickConstant));
		}
		return _anInstruction3;
		/* end checkQuickConstant:forInstruction: */
	}
	if (_srcReg == _destReg) {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(AndCqR, _quickConstant, _destReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_quickConstant));
		}
		return _anInstruction;
		/* end checkQuickConstant:forInstruction: */
	}
	_first = genoperandoperand(MoveRR, _srcReg, _destReg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(AndCqR, _quickConstant, _destReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	return _first;
}
/* Cogit>>#abortOffset */
sqInt
abortOffset(void)
{
	return missOffset;
}
/*	Perform an integrity/leak check using the heapMap. 
	Set a bit at each cog method's header. */
/* Cogit>>#addCogMethodsToHeapMap */
void
addCogMethodsToHeapMap(void)
{
	CogMethod *_cogMethod;

	_cogMethod = ((CogMethod *) methodZoneBase );
	while (_cogMethod < (limitZony())) {
		if (((_cogMethod->cmType)) == CMMethod) {
			heapMapAtWordPut(_cogMethod, 1);
		}
		_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
	}
}
/* Cogit>>#addressIsInCurrentCompilation: */
static sqInt NoDbgRegParms
addressIsInCurrentCompilation(sqInt _address)
{
	return (((usqInt) _address ) >= ((methodLabel->address))) && (((usqInt) _address ) < (youngReferrers()));
}
/*	Hardcode renaming to _address */
/* Cogit>>#addressIsInFixups: */
static sqInt NoDbgRegParms
addressIsInFixups(BytecodeFixup *_address)
{
	return (BytecodeFixup *)_address >= fixups && (BytecodeFixup *)_address < (fixups + numAbstractOpcodes);
}
/*	Hardcode renaming to _address */
/* Cogit>>#addressIsInInstructions: */
static sqInt NoDbgRegParms
addressIsInInstructions(AbstractInstruction *_address)
{
	return !((usqInt)(_address) & BytesPerWord-1) \
				&& (_address) >= &abstractOpcodes[0] \
				&& (_address) < &abstractOpcodes[opcodeIndex];
}
/*	calculate the end of the n'th case statement - which is complicated 
	because we have case 1 right at the top of our CPIC and then build up from 
	the last one. Yes I know this sounds strange, but trust me - I'm an 
	Engineer, we do things backwards all the emit */
/* Cogit>>#addressOfEndOfCase:inCPIC: */
static sqInt NoDbgRegParms
addressOfEndOfCaseinCPIC(sqInt _n, CogMethod *_cPIC)
{
	assert((_n >= 1) && (_n <= MaxCPICCases));
	return ((_n == 1)
		 ? ((sqInt) _cPIC ) + firstCPICCaseOffset
		 : (((sqInt) _cPIC ) + firstCPICCaseOffset) + (((MaxCPICCases + 1) - _n) * cPICCaseSize));
}
/* Cogit>>#alignUptoRoutineBoundary: */
static sqInt NoDbgRegParms
alignUptoRoutineBoundary(sqInt _anAddress)
{
	return ((_anAddress + 7) | 7) - 7;
}
/*	Check that all methods have valid selectors, and that all linked sends are 
	to valid targets and have valid cache tags */
/* Cogit>>#allMachineCodeObjectReferencesValid */
static sqInt
allMachineCodeObjectReferencesValid(void)
{
	CogMethod *_cogMethod;
	int _ok;

	_ok = 1;
	_cogMethod = ((CogMethod *) methodZoneBase );
	while (_cogMethod < (limitZony())) {
		if (((_cogMethod->cmType)) != CMFree) {
			if (!(asserta(checkValidOopReference((_cogMethod->selector))))) {
				_ok = 0;
			}
			if (!(asserta((cogMethodDoesntLookKosher(_cogMethod)) == 0))) {
				_ok = 0;
			}
		}
		if ((((_cogMethod->cmType)) == CMMethod) || (((_cogMethod->cmType)) == CMMegamorphicIC)) {
			if (!(asserta((mapForperformUntilarg(_cogMethod, checkIfValidOopRefAndTargetpccogMethod, ((sqInt) _cogMethod ))) == 0))) {
				_ok = 0;
			}
		}
		if (((_cogMethod->cmType)) == CMPolymorphicIC) {
			if (!(asserta(noTargetsFreeInClosedPIC(_cogMethod)))) {
				_ok = 0;
			}
		}
		_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
	}
	return _ok;
}
/* Cogit>>#allMethodsHaveCorrectHeader */
static sqInt
allMethodsHaveCorrectHeader(void)
{
	CogMethod *_cogMethod;

	_cogMethod = ((CogMethod *) methodZoneBase );
	while (_cogMethod < (limitZony())) {
		if (((_cogMethod->cmType)) == CMMethod) {
			if (!(((_cogMethod->objectHeader)) == (nullHeaderForMachineCodeMethod()))) {
				return 0;
			}
		}
		_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
	}
	return 1;
}
/* Cogit>>#annotateAbsolutePCRef: */
static AbstractInstruction * NoDbgRegParms
annotateAbsolutePCRef(AbstractInstruction *_abstractInstruction)
{
	(_abstractInstruction->annotation = IsAbsPCReference);
	return _abstractInstruction;
}
/* Cogit>>#annotateBytecode: */
static AbstractInstruction * NoDbgRegParms
annotateBytecode(AbstractInstruction *_abstractInstruction)
{
	(_abstractInstruction->annotation = HasBytecodePC);
	return _abstractInstruction;
}
/* Cogit>>#annotate:objRef: */
static AbstractInstruction * NoDbgRegParms
annotateobjRef(AbstractInstruction *_abstractInstruction, sqInt _anOop)
{
	if (shouldAnnotateObjectReference(_anOop)) {
		if (isYoungObject(getMemoryMap(), _anOop)) {
			hasYoungReferent = 1;
		}
		(_abstractInstruction->annotation = IsObjectReference);
	}
	return _abstractInstruction;
}
/* Cogit>>#assertSaneJumpTarget: */
static void NoDbgRegParms
assertSaneJumpTarget(AbstractInstruction *_jumpTarget)
{
	assert((closedPICSize == null) || ((openPICSize == null) || ((addressIsInInstructions(_jumpTarget)) || ((((usqInt) _jumpTarget ) >= codeBase) && (((usqInt) _jumpTarget ) <= (((sqInt) (limitZony()) ) + (((closedPICSize < openPICSize) ? openPICSize : closedPICSize))))))));
}
/*	Answer the zero-relative bytecode pc matching the machine code pc argument 
	in cogMethod, given the start of the bytecodes for cogMethod's method 
	object.  */
/* Cogit>>#bytecodePCFor:startBcpc:in: */
sqInt
bytecodePCForstartBcpcin(sqInt _mcpc, sqInt _startbcpc, CogMethod *_cogMethod)
{
	sqInt _aMethodObj;
	sqInt _annotation;
	sqInt _bcpc;
	sqInt _byte;
	BytecodeDescriptor *_descriptor;
	sqInt _distance;
	sqInt _endbcpc;
	CogMethod *_homeMethod;
	sqInt _isBackwardBranch;
	usqInt _isInBlock;
	sqInt _latestContinuation;
	usqInt _map;
	sqInt _mapByte;
	usqInt _mcpc2;
	int _nExts;
	sqInt _nextBcpc;
	sqInt _result;
	sqInt _targetPC;

	/* begin mapFor:bcpc:performUntil:arg: */
	assert(((_cogMethod->stackCheckOffset)) > 0);
	_mcpc2 = ((usqInt) _cogMethod ) + ((_cogMethod->stackCheckOffset));
	_result = findIsBackwardBranchMcpcBcpcMatchingMcpc(null, 0 + ((int) (((usqInt) HasBytecodePC ) << 1) ), ((char *) _mcpc2 ), _startbcpc, ((void *) _mcpc ));
	if (_result != 0) {
		return _result;
	}
	_bcpc = _startbcpc;
	_isInBlock = (_cogMethod->cpicHasMNUCaseOrCMIsFullBlock);
	_homeMethod = ((CogMethod *) _cogMethod );
	assert(_startbcpc == (startPCOfMethodHeader((_homeMethod->methodHeader))));
	_map = (((usqInt) _homeMethod ) + ((_homeMethod->blockSize))) - 1;
	_annotation = ((usqInt) (byteAt(_map)) ) >> AnnotationShift;
	assert((_annotation == IsAbsPCReference) || ((_annotation == IsObjectReference) || ((_annotation == IsRelativeCall) || (_annotation == IsDisplacementX2N))));
	_latestContinuation = _startbcpc;
	_aMethodObj = (_homeMethod->methodObject);
	_endbcpc = (numBytesOf(_aMethodObj)) - 1;
	_bcpc += deltaToSkipPrimAndErrorStoreInheader(_aMethodObj, (_homeMethod->methodHeader));
	_nExts = 0;
	while ((((usqInt) (byteAt(_map)) ) >> AnnotationShift) != HasBytecodePC) {
		_map -= 1;
	}
	_map -= 1;
	while (((_mapByte = byteAt(_map))) != MapEnd) {
		if (_mapByte >= FirstAnnotation) {
			_annotation = ((usqInt) _mapByte ) >> AnnotationShift;
			_mcpc2 += (_mapByte & DisplacementMask) * 4;
			if (_annotation >= HasBytecodePC) {
				if ((_annotation == IsSendCall) && ((((usqInt) ((_mapByte = byteAt(_map - 1))) ) >> AnnotationShift) == IsAnnotationExtension)) {
					_annotation += _mapByte & DisplacementMask;
					_map -= 1;
				}
				while (1) {
					_byte = fetchByteofObject(_bcpc, _aMethodObj);
					_descriptor = generatorAt(_byte);
					if (_isInBlock) {
						if (_bcpc >= _endbcpc) {
							return 0;
						}
					} else {
						if (((_descriptor->isReturn)) && (_bcpc >= _latestContinuation)) {
							return 0;
						}
						if (isBranch(_descriptor)) {
							/* begin latestContinuationPCFor:at:exts:in: */
							_distance = ((_descriptor->spanFunction))(_descriptor, _bcpc, _nExts, _aMethodObj);
							_targetPC = (_bcpc + ((_descriptor->numBytes))) + (((_distance < 0) ? 0 : _distance));
							/* end latestContinuationPCFor:at:exts:in: */
							_latestContinuation = ((_latestContinuation < _targetPC) ? _targetPC : _latestContinuation);
						}
					}
					_nextBcpc = _bcpc + ((_descriptor->numBytes));
					if (((_descriptor->isMapped)) || (_isInBlock && ((_descriptor->isMappedInBlock)))) 
						break;
					_bcpc = _nextBcpc;
					_nExts = (((_descriptor->isExtension))
						 ? _nExts + 1
						 : 0);
				}
				_isBackwardBranch = (isBranch(_descriptor)) && ((assert(((_descriptor->spanFunction)) != null), (((_descriptor->spanFunction))(_descriptor, _bcpc, _nExts, _aMethodObj)) < 0));
				_result = findIsBackwardBranchMcpcBcpcMatchingMcpc(_descriptor, ((_isBackwardBranch)
					 ? ((sqInt) (((usqInt) _annotation ) << 1) ) + 1
					 : ((sqInt) (((usqInt) _annotation ) << 1) )), ((char *) _mcpc2 ), ((_isBackwardBranch)
					 ? _bcpc - (2 * _nExts)
					 : _bcpc), ((void *) _mcpc ));
				if (_result != 0) {
					return _result;
				}
				_bcpc = _nextBcpc;
				_nExts = (((_descriptor->isExtension))
					 ? _nExts + 1
					 : 0);
			}
		} else {
			assert(((((usqInt) _mapByte ) >> AnnotationShift) == IsDisplacementX2N) || ((((usqInt) _mapByte ) >> AnnotationShift) == IsAnnotationExtension));
			if (_mapByte < ((int) (((usqInt) IsAnnotationExtension ) << AnnotationShift) )) {
				_mcpc2 += ((sqInt) (((usqInt) (_mapByte - DisplacementX2N) ) << AnnotationShift) ) * 4;
			}
		}
		_map -= 1;
	}
	return 0;
	/* end mapFor:bcpc:performUntil:arg: */
}
/* Cogit>>#CallFullRT:registersToBeSavedMask: */
static AbstractInstruction * NoDbgRegParms
CallFullRTregistersToBeSavedMask(sqInt _callTarget, sqInt _registersToBeSaved)
{
	sqInt _callerSavedRegsToBeSaved;
	AbstractInstruction *_lastInst;

	_callerSavedRegsToBeSaved = CallerSavedRegisterMask & _registersToBeSaved;
	{
		/* begin genPushRegisterMask: */
		if (_callerSavedRegsToBeSaved == 0) {
			genoperandoperand(Label, (labelCounter += 1), bytecodePC);
		}
 else {
			genoperand(PushSTM, _callerSavedRegsToBeSaved);
		}
		/* end genPushRegisterMask: */
	}
	{
		/* begin gen:literal: */
		_lastInst = checkLiteralforInstruction(_callTarget, genoperand(CallFull, _callTarget));
		/* end gen:literal: */
	}
	{
		/* begin genPopRegisterMask: */
		return ((_callerSavedRegsToBeSaved == 0)
			 ? genoperandoperand(Label, (labelCounter += 1), bytecodePC)
			 : genoperand(PopLDM, _callerSavedRegsToBeSaved));
		/* end genPopRegisterMask: */
	}
}
/* Cogit>>#CallRT:registersToBeSavedMask: */
static AbstractInstruction * NoDbgRegParms
CallRTregistersToBeSavedMask(sqInt _callTarget, sqInt _registersToBeSaved)
{
	AbstractInstruction *_abstractInstruction;
	sqInt _callerSavedRegsToBeSaved;
	AbstractInstruction *_lastInst;

	_callerSavedRegsToBeSaved = CallerSavedRegisterMask & _registersToBeSaved;
	{
		/* begin genPushRegisterMask: */
		if (_callerSavedRegsToBeSaved == 0) {
			genoperandoperand(Label, (labelCounter += 1), bytecodePC);
		}
 else {
			genoperand(PushSTM, _callerSavedRegsToBeSaved);
		}
		/* end genPushRegisterMask: */
	}
	/* begin CallRT: */
	/* begin annotateCall: */
	_abstractInstruction = genoperand(Call, _callTarget);
	(_abstractInstruction->annotation = IsRelativeCall);
	_lastInst = _abstractInstruction;
	/* end annotateCall: */
	/* end CallRT: */
	{
		/* begin genPopRegisterMask: */
		return ((_callerSavedRegsToBeSaved == 0)
			 ? genoperandoperand(Label, (labelCounter += 1), bytecodePC)
			 : genoperand(PopLDM, _callerSavedRegsToBeSaved));
		/* end genPopRegisterMask: */
	}
}
/* Cogit>>#Call: */
static AbstractInstruction * NoDbgRegParms
gCall(sqInt _callTarget)
{
	return genoperand(Call, _callTarget);
}
/* Cogit>>#CmpCq:R: */
static AbstractInstruction * NoDbgRegParms
gCmpCqR(sqInt _quickConstant, sqInt _reg)
{
	AbstractInstruction *_anInstruction;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(CmpCqR, _quickConstant, _reg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(_quickConstant));
	}
	return _anInstruction;
	/* end checkQuickConstant:forInstruction: */
}
/*	in-line cache tags are selectors on unlinked sends, super sends and 
	megamorphically linked sends */
/* Cogit>>#cacheTagIsSelectorForAnnotation:andEntryPoint: */
static sqInt NoDbgRegParms
cacheTagIsSelectorForAnnotationandEntryPoint(sqInt _annotation, sqInt _entryPoint)
{
	return (_entryPoint < methodZoneBase) || (((_annotation == IsSuperSend) || ((_annotation >= IsDirectedSuperSend) && (_annotation <= IsDirectedSuperBindingSend))) || ((((((CogMethod *) (_entryPoint - cmEntryOffset) ))->cmType)) == CMMegamorphicIC));
}
/*	This is a static version of ceCallCogCodePopReceiverReg 
	for break-pointing when debugging in C.This exists only for break-pointing. */
/* Cogit>>#callCogCodePopReceiver */
void
callCogCodePopReceiver(void)
{
	realCECallCogCodePopReceiverReg();
	{
		error("what??");
	}
}
/*	This is a static version of ceCallCogCodePopReceiverAndClassRegs 
	for break-pointing when debugging in C.This exists only for break-pointing. */
/* Cogit>>#callCogCodePopReceiverAndClassRegs */
void
callCogCodePopReceiverAndClassRegs(void)
{
	realCECallCogCodePopReceiverAndClassRegs();
}
/*	Code entry closed PIC miss. A send has fallen 
	through a closed (finite) polymorphic inline cache. 
	Either extend it or patch the send site to an open PIC. 
	The stack looks like: 
	receiver 
	args 
	sp=>	sender return address */
/* Cogit>>#ceCPICMiss:receiver: */
sqInt
ceCPICMissreceiver(CogMethod *_cPIC, sqInt _receiver)
{
	sqInt _callerReturnAddress;
	sqInt _errorSelectorOrNil;
	sqInt _methodOrSelectorIndex;
	sqInt _newTargetMethodOrNil;
	sqInt _selector;

	/* begin simulationOnly: */
	/* end simulationOnly: */
	if (isOopForwarded(_receiver)) {
		return ceSendFromInLineCacheMiss(_cPIC);
	}
	_callerReturnAddress = stackTop();
	assert(!((inlineCacheTagAt(backEnd, _callerReturnAddress)) == (isMNUPicAbortDiscriminatorValue())));
	if (MaxCPICCases <= ((_cPIC->cPICNumCases))) {
		patchToMegamorphicICFornumArgsreceiver((_cPIC->selector), (_cPIC->cmNumArgs), _receiver);
		return ceSendFromInLineCacheMiss(_cPIC);
	}
	/* begin lookup:for:methodAndErrorSelectorInto: */
	_selector = (_cPIC->selector);
	_methodOrSelectorIndex = lookupMethodWithoutMNUProcessingForSelectorreceiver(_selector, _receiver);
	if (_methodOrSelectorIndex == SelectorCannotInterpret) {
		{
			_newTargetMethodOrNil = null;
			_errorSelectorOrNil = SelectorCannotInterpret;
		}
		goto l2;
	}
	if (_methodOrSelectorIndex == SelectorDoesNotUnderstand) {
		_methodOrSelectorIndex = lookupMethodWithoutMNUProcessingForSelectorreceiver(splObj(SelectorDoesNotUnderstand), _receiver);
		if (((usqInt) _methodOrSelectorIndex ) <= (maxLookupNoMNUErrorCode())) {
			{
				_newTargetMethodOrNil = null;
				_errorSelectorOrNil = SelectorDoesNotUnderstand;
			}
			goto l2;
		}
		assert(isOopCompiledMethod(_methodOrSelectorIndex));
		cogMethodIfPossibleselector(_methodOrSelectorIndex, splObj(SelectorDoesNotUnderstand));
		{
			_newTargetMethodOrNil = _methodOrSelectorIndex;
			_errorSelectorOrNil = SelectorDoesNotUnderstand;
		}
		goto l2;
	}
	assert(couldBeObject(((usqInt) _methodOrSelectorIndex )));
	if (!(isOopCompiledMethod(_methodOrSelectorIndex))) {
		{
			_newTargetMethodOrNil = _methodOrSelectorIndex;
			_errorSelectorOrNil = SelectorCannotInterpret;
		}
		goto l2;
	}
	cogMethodIfPossibleselector(_methodOrSelectorIndex, _selector);
	{
		_newTargetMethodOrNil = _methodOrSelectorIndex;
		_errorSelectorOrNil = null;
	}
	l2:
	;
	/* end lookup:for:methodAndErrorSelectorInto: */
	if ((_errorSelectorOrNil == SelectorCannotInterpret) || ((_newTargetMethodOrNil == null) || (isYoung(_newTargetMethodOrNil)))) {
		patchToMegamorphicICFornumArgsreceiver((_cPIC->selector), (_cPIC->cmNumArgs), _receiver);
		return ceSendFromInLineCacheMiss(_cPIC);
	}
	cogExtendPICCaseNMethodtagisMNUCase(_cPIC, _newTargetMethodOrNil, inlineCacheTagForInstance(_receiver), _errorSelectorOrNil == SelectorDoesNotUnderstand);
	executeCogPICfromLinkedSendWithReceiverandCacheTag(_cPIC, _receiver, inlineCacheTagAt(backEnd, _callerReturnAddress));
	{
		assert(0);
	}
	return 0;
}
/* Cogit>>#ceFree: */
void
ceFree(void *_pointer)
{
	free(_pointer);
}
/* Cogit>>#ceMalloc: */
void*
ceMalloc(size_t _size)
{
	return malloc(_size);
}
/*	An in-line cache check in a method has failed. The failing entry check has 
	jumped to the ceMethodAbort abort call at the start of the method which 
	has called this routine. 
	If possible allocate a closed PIC for the current and existing classes. 
	The stack looks like: 
	receiver 
	args 
	sender return address 
	sp=>	ceMethodAbort call return address 
	So we can find the method that did the failing entry check at 
	ceMethodAbort call return address - missOffset 
	and we can find the send site from the outer return address. */
/* Cogit>>#ceSICMiss: */
sqInt
ceSICMiss(sqInt _receiver)
{
	sqInt _cacheTag;
	usqInt _callerReturnAddress;
	sqInt _errorSelectorOrNil;
	sqInt _extent;
	CogMethod *_inlineCache;
	sqInt _linkingSucceeded;
	sqInt _methodOrSelectorIndex;
	CogMethod * _missedTargetCogMethod;
	usqInt _missedTargetReturnAddress;
	sqInt _newTargetMethodOrNil;
	sqInt _selector;

	_extent = 0;
	_linkingSucceeded = 0;
	_missedTargetReturnAddress = ((usqInt) (popStack()) );
	_missedTargetCogMethod = ((CogMethod *) (_missedTargetReturnAddress - missOffset) );
	if (isOopForwarded(_receiver)) {
		return ceSendFromInLineCacheMiss(_missedTargetCogMethod);
	}
	_callerReturnAddress = ((usqInt) (stackTop()) );
	assert((_callerReturnAddress >= methodZoneBase) && (_callerReturnAddress <= (freeStart())));
	assert(((_missedTargetCogMethod->selector)) != (nilObject()));
	assert((((sqInt) _missedTargetCogMethod ) + cmEntryOffset) == (callTargetFromReturnAddress(backEnd, _callerReturnAddress)));
	if ((inlineCacheTagAt(backEnd, _callerReturnAddress)) == 0) {
		patchToMegamorphicICFornumArgsreceiver((_missedTargetCogMethod->selector), (_missedTargetCogMethod->cmNumArgs), _receiver);
		return ceSendFromInLineCacheMiss(_missedTargetCogMethod);
	}
	/* begin lookup:for:methodAndErrorSelectorInto: */
	_selector = (_missedTargetCogMethod->selector);
	_methodOrSelectorIndex = lookupMethodWithoutMNUProcessingForSelectorreceiver(_selector, _receiver);
	if (_methodOrSelectorIndex == SelectorCannotInterpret) {
		{
			_newTargetMethodOrNil = null;
			_errorSelectorOrNil = SelectorCannotInterpret;
		}
		goto l2;
	}
	if (_methodOrSelectorIndex == SelectorDoesNotUnderstand) {
		_methodOrSelectorIndex = lookupMethodWithoutMNUProcessingForSelectorreceiver(splObj(SelectorDoesNotUnderstand), _receiver);
		if (((usqInt) _methodOrSelectorIndex ) <= (maxLookupNoMNUErrorCode())) {
			{
				_newTargetMethodOrNil = null;
				_errorSelectorOrNil = SelectorDoesNotUnderstand;
			}
			goto l2;
		}
		assert(isOopCompiledMethod(_methodOrSelectorIndex));
		cogMethodIfPossibleselector(_methodOrSelectorIndex, splObj(SelectorDoesNotUnderstand));
		{
			_newTargetMethodOrNil = _methodOrSelectorIndex;
			_errorSelectorOrNil = SelectorDoesNotUnderstand;
		}
		goto l2;
	}
	assert(couldBeObject(((usqInt) _methodOrSelectorIndex )));
	if (!(isOopCompiledMethod(_methodOrSelectorIndex))) {
		{
			_newTargetMethodOrNil = _methodOrSelectorIndex;
			_errorSelectorOrNil = SelectorCannotInterpret;
		}
		goto l2;
	}
	cogMethodIfPossibleselector(_methodOrSelectorIndex, _selector);
	{
		_newTargetMethodOrNil = _methodOrSelectorIndex;
		_errorSelectorOrNil = null;
	}
	l2:
	;
	/* end lookup:for:methodAndErrorSelectorInto: */
	_cacheTag = inlineCacheTagForInstance(_receiver);
	if ((_errorSelectorOrNil == SelectorCannotInterpret) || ((_newTargetMethodOrNil == null) || (isYoung(_newTargetMethodOrNil)))) {
		patchToMegamorphicICFornumArgsreceiver((_missedTargetCogMethod->selector), (_missedTargetCogMethod->cmNumArgs), _receiver);
		return ceSendFromInLineCacheMiss(_missedTargetCogMethod);
	}
	{
		_inlineCache = openPICWithSelector((_missedTargetCogMethod->selector));
		_linkingSucceeded = _inlineCache != null;
		if (_inlineCache) {
			/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
			/* begin enableCodeZoneWrite */
			if (jitCodeZoneWriteEnabled) {
				error("Code zone writing is not reentrant");
			}
			
#      if READ_ONLY_CODE_ZONE
			{
				
#        if __APPLE__
				{
					pthread_jit_write_protect_np(0);
				}
#        else /* __APPLE__ */
				{
					sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
				}
#        endif /* __APPLE__ */
			}
#      endif /* READ_ONLY_CODE_ZONE */
			jitCodeZoneWriteEnabled = 1;
			/* end enableCodeZoneWrite */
			{
				_extent = rewriteInlineCacheAttagtarget(backEnd, _callerReturnAddress, inlineCacheValueForSelectorinat((_missedTargetCogMethod->selector), mframeHomeMethodExport(), _callerReturnAddress), ((sqInt) _inlineCache ) + cmEntryOffset);
			}
			/* begin disableCodeZoneWrite */
			
#      if READ_ONLY_CODE_ZONE
			{
				
#        if __APPLE__
				{
					pthread_jit_write_protect_np(1);
				}
#        else /* __APPLE__ */
				{
					sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
				}
#        endif /* __APPLE__ */
			}
#      endif /* READ_ONLY_CODE_ZONE */
			jitCodeZoneWriteEnabled = 0;
			/* end disableCodeZoneWrite */
			{
				flushICacheFromto(((usqInt) _callerReturnAddress ) - _extent, ((usqInt) _callerReturnAddress ));
			}
			/* end enableCodeZoneWriteDuring:flushingCacheWith: */
		}
	}
	if (!_inlineCache) {
		/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
		/* begin enableCodeZoneWrite */
		if (jitCodeZoneWriteEnabled) {
			error("Code zone writing is not reentrant");
		}
		
#    if READ_ONLY_CODE_ZONE
		{
			
#      if __APPLE__
			{
				pthread_jit_write_protect_np(0);
			}
#      else /* __APPLE__ */
			{
				sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
			}
#      endif /* __APPLE__ */
		}
#    endif /* READ_ONLY_CODE_ZONE */
		jitCodeZoneWriteEnabled = 1;
		/* end enableCodeZoneWrite */
		{
			_inlineCache = cogPICSelectornumArgsCase0MethodCase1MethodtagisMNUCase((_missedTargetCogMethod->selector), (_missedTargetCogMethod->cmNumArgs), _missedTargetCogMethod, _newTargetMethodOrNil, _cacheTag, _errorSelectorOrNil == SelectorDoesNotUnderstand);
			_linkingSucceeded = !((((sqInt) _inlineCache ) >= MaxNegativeErrorCode) && (((sqInt) _inlineCache ) <= -1));
			if (_linkingSucceeded) {
				_extent = rewriteCallAttarget(backEnd, _callerReturnAddress, ((sqInt) _inlineCache ) + cmEntryOffset);
			}
		}
		/* begin disableCodeZoneWrite */
		
#    if READ_ONLY_CODE_ZONE
		{
			
#      if __APPLE__
			{
				pthread_jit_write_protect_np(1);
			}
#      else /* __APPLE__ */
			{
				sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
			}
#      endif /* __APPLE__ */
		}
#    endif /* READ_ONLY_CODE_ZONE */
		jitCodeZoneWriteEnabled = 0;
		/* end disableCodeZoneWrite */
		{
			if (_linkingSucceeded) {
				flushICacheFromto(((usqInt) _inlineCache ), ((usqInt) _inlineCache ) + closedPICSize);
				flushICacheFromto(((usqInt) _callerReturnAddress ) - _extent, ((usqInt) _callerReturnAddress ));
			}
		}
		/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	}
	if (_linkingSucceeded) {
		executeCogPICfromLinkedSendWithReceiverandCacheTag(_inlineCache, _receiver, inlineCacheTagAt(backEnd, _callerReturnAddress));
	}
	if (((sqInt) _inlineCache ) == InsufficientCodeSpace) {
		callForCogCompiledCodeCompaction();
	}
	return ceSendFromInLineCacheMiss(_missedTargetCogMethod);
}
/* Cogit>>#checkAssertsEnabledInCogit */
void
checkAssertsEnabledInCogit(void)
{
	int _assertsAreEnabledInCogit;

	_assertsAreEnabledInCogit = 0;
	assert(_assertsAreEnabledInCogit);
}
/*	Check if the CFramePointer is in use. 
	Different C compilers can choose to not use the frame pointers to delimit 
	stack frames, and use instead the frame pointer as a general purpose 
	register. This function implements a rough heuristic to determine if the 
	FP is used as a frame delimiter or not. 
	 
	This function is meant to work as follows: 
	- the caller should call ceCaptureCStackPointers capturing the FP and SP 
	of the caller. 
	- then the caller calls this function that will in turn also call 
	ceCaptureCStackPointers to capture the FP and SP. 
	 
	If the FP moved between the two calls, and the FP captured the second time 
	is between the previous one and the new SP, this means the compiler 
	probably generated code to update the FP. 
	 */
/* Cogit>>#checkCFramePointerInUse */
static sqInt
checkCFramePointerInUse(void)
{
	void * _currentCSP;
	sqInt _result;

	/* begin simulationOnly: */
	/* end simulationOnly: */
	_currentCSP = getCStackPointer();
	ceCaptureCStackPointers();
	assert((getCStackPointer()) < _currentCSP);
	_result = ((getCFramePointer()) >= (getCStackPointer())) && ((getCFramePointer()) <= _currentCSP);
	/* begin simulationOnly: */
	/* end simulationOnly: */
	return _result;
}
/*	Check for a valid object reference, if any, at a map entry. Answer a code 
	unique to each error for debugging. */
/* Cogit>>#checkIfValidOopRefAndTarget:pc:cogMethod: */
static sqInt NoDbgRegParms
checkIfValidOopRefAndTargetpccogMethod(sqInt _annotation, char *_mcpc, sqInt _cogMethod)
{
	usqInt _cacheTag2;
	sqInt _entryPoint;
	sqInt _entryPoint2;
	sqInt _literal;
	sqInt _offset2;
	sqInt _tagCouldBeObj;
	CogMethod * _targetCogCode;

	if (_annotation == IsObjectReference) {
		_literal = unsignedLongAt(((usqInt) _mcpc ));
		if (!(asserta(checkValidOopReference(_literal)))) {
			return 1;
		}
		if ((couldBeObject(_literal)) && (isReallyYoungObject(_literal))) {
			if (!(asserta(((((CogMethod *) _cogMethod ))->cmRefersToYoung)))) {
				return 2;
			}
		}
	}
	if (_annotation >= IsSendCall) {
		if (!(asserta((((((CogMethod *) _cogMethod ))->cmType)) == CMMethod))) {
			return 3;
		}
		/* begin entryCacheTagAndCouldBeObjectAt:annotation:into: */
		_cacheTag2 = inlineCacheTagAt(backEnd, ((sqInt) _mcpc ));
		_entryPoint2 = callTargetFromReturnAddress(backEnd, ((sqInt) _mcpc ));
		_tagCouldBeObj = cacheTagIsSelectorForAnnotationandEntryPoint(_annotation, _entryPoint2);
		{
			_entryPoint = _entryPoint2;
			if (_tagCouldBeObj) {
				if (couldBeObject(_cacheTag2)) {
					if (!(asserta(checkValidOopReference(_cacheTag2)))) {
						return 4;
					}
				}
 else {
					if (!(asserta(validInlineCacheTag(_cacheTag2)))) {
						return 5;
					}
				}
				if ((couldBeObject(_cacheTag2)) && (isReallyYoungObject(_cacheTag2))) {
					if (!(asserta(((((CogMethod *) _cogMethod ))->cmRefersToYoung)))) {
						return 6;
					}
				}
			} else {
				{
					if (!(asserta(validInlineCacheTag(_cacheTag2)))) {
						return 9;
					}
				}
			}
		}
		/* end entryCacheTagAndCouldBeObjectAt:annotation:into: */
		if (_entryPoint > methodZoneBase) {
			/* begin targetMethodAndSendTableFor:annotation:into: */
			/* begin offsetAndSendTableFor:annotation:into: */
			if (_annotation == IsSendCall) {
				_offset2 = cmEntryOffset;
			} else {
				if (_annotation == IsDirectedSuperSend) {
					_offset2 = cmNoCheckEntryOffset;
				} else {
					if (_annotation == IsDirectedSuperBindingSend) {
						_offset2 = cmNoCheckEntryOffset;
					} else {
						assert(_annotation == IsSuperSend);
						_offset2 = cmNoCheckEntryOffset;
					}
				}
			}
			{
				_targetCogCode = ((CogMethod *) (_entryPoint - _offset2) );
				{
					if (!(asserta((((_targetCogCode->cmType)) == CMMethod) || ((((_targetCogCode->cmType)) == CMPolymorphicIC) || (((_targetCogCode->cmType)) == CMMegamorphicIC))))) {
						return 10;
					}
				}
			}
			/* end offsetAndSendTableFor:annotation:into: */
			/* end targetMethodAndSendTableFor:annotation:into: */
		}
	}
	return 0;
}
/*	Check for a valid object reference, if any, at a map entry. Answer a code 
	unique to each error for debugging. */
/* Cogit>>#checkIfValidOopRef:pc:cogMethod: */
static sqInt NoDbgRegParms
checkIfValidOopRefpccogMethod(sqInt _annotation, char *_mcpc, sqInt _cogMethod)
{
	sqInt _entryPoint;
	sqInt _literal;
	sqInt _offset;
	sqInt _offset2;
	usqInt _selectorOrCacheTag;

	if (_annotation == IsObjectReference) {
		_literal = unsignedLongAt(((usqInt) _mcpc ));
		if (!(checkValidOopReference(_literal))) {
			{
				print("object ref leak in CM ");
				printHex(((sqInt) _cogMethod ));
				print(" @ ");
				printHex(((sqInt) _mcpc ));
				cr();
			}
			return 1;
		}
	}
	if (_annotation >= IsSendCall) {
		_entryPoint = callTargetFromReturnAddress(backEnd, ((sqInt) _mcpc ));
		if (_entryPoint <= methodZoneBase) {
			_offset = _entryPoint;
		} else {
			/* begin offsetAndSendTableFor:annotation:into: */
			if (_annotation == IsSendCall) {
				_offset2 = cmEntryOffset;
			} else {
				if (_annotation == IsDirectedSuperSend) {
					_offset2 = cmNoCheckEntryOffset;
				} else {
					if (_annotation == IsDirectedSuperBindingSend) {
						_offset2 = cmNoCheckEntryOffset;
					} else {
						assert(_annotation == IsSuperSend);
						_offset2 = cmNoCheckEntryOffset;
					}
				}
			}
			{
				_offset = _offset2;
			}
			/* end offsetAndSendTableFor:annotation:into: */
		}
		_selectorOrCacheTag = inlineCacheTagAt(backEnd, ((sqInt) _mcpc ));
		if ((_entryPoint > methodZoneBase) && ((_offset != cmNoCheckEntryOffset) && ((((((CogMethod *) (_entryPoint - _offset) ))->cmType)) != CMMegamorphicIC))) {
			if (!(validInlineCacheTag(_selectorOrCacheTag))) {
				{
					print("cache tag leak in CM ");
					printHex(((sqInt) _cogMethod ));
					print(" @ ");
					printHex(((sqInt) _mcpc ));
					cr();
				}
				return 1;
			}
		}
 else {
			if (!(checkValidOopReference(_selectorOrCacheTag))) {
				{
					print("selector leak in CM ");
					printHex(((sqInt) _cogMethod ));
					print(" @ ");
					printHex(((sqInt) _mcpc ));
					cr();
				}
				return 1;
			}
		}
	}
	return 0;
}
/*	Answer if all references to objects in machine-code are valid. */
/* Cogit>>#checkIntegrityOfObjectReferencesInCode: */
sqInt
checkIntegrityOfObjectReferencesInCode(sqInt gcModes)
{
	CogMethod *_cogMethod;
	sqInt _count;
	int _ok;

	_cogMethod = ((CogMethod *) methodZoneBase );
	_ok = 1;
	while (_cogMethod < (limitZony())) {
		if (((_cogMethod->cmType)) != CMFree) {
			if ((_cogMethod->cmRefersToYoung)) {
				if (((_count = occurrencesInYoungReferrers(_cogMethod))) != 1) {
					{
						print("young referrer CM ");
						printHex(((sqInt) _cogMethod ));
					}
					if (_count == 0) {
						{
							print(" is not in youngReferrers");
							cr();
						}
					} else {
						{
							print(" is in youngReferrers ");
							printNum(_count);
							print(" times!");
							cr();
						}
					}
					_ok = 0;
				}
			}
			if (!(checkValidOopReference((_cogMethod->selector)))) {
				{
					print("object leak in CM ");
					printHex(((sqInt) _cogMethod ));
					print(" selector");
					cr();
				}
				_ok = 0;
			}
			if (((_cogMethod->cmType)) == CMMethod) {
				assert(((_cogMethod->objectHeader)) == (nullHeaderForMachineCodeMethod()));
				if (!(checkValidObjectReference((_cogMethod->methodObject)))) {
					{
						print("object leak in CM ");
						printHex(((sqInt) _cogMethod ));
						print(" methodObject");
						cr();
					}
					_ok = 0;
				}
				if (!(isOopCompiledMethod((_cogMethod->methodObject)))) {
					{
						print("non-method in CM ");
						printHex(((sqInt) _cogMethod ));
						print(" methodObject");
						cr();
					}
					_ok = 0;
				}
				if ((mapForperformUntilarg(_cogMethod, checkIfValidOopRefpccogMethod, ((sqInt) _cogMethod ))) != 0) {
					_ok = 0;
				}
				if (((isYoungObject(getMemoryMap(), (_cogMethod->methodObject))) || (isYoung((_cogMethod->selector)))) && (!((_cogMethod->cmRefersToYoung)))) {
					{
						print("CM ");
						printHex(((sqInt) _cogMethod ));
						print(" refers to young but not marked as such");
						cr();
					}
					_ok = 0;
				}
			} else {
				if (((_cogMethod->cmType)) == CMPolymorphicIC) {
					if (!(checkValidObjectReferencesInClosedPIC(_cogMethod))) {
						_ok = 0;
					}
				}
 else {
					if (((_cogMethod->cmType)) == CMMegamorphicIC) {
						if ((mapForperformUntilarg(_cogMethod, checkIfValidOopRefpccogMethod, ((sqInt) _cogMethod ))) != 0) {
							_ok = 0;
						}
					}
				}
			}
		}
		_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
	}
	return _ok;
}
/* Cogit>>#checkMaybeObjRefInClosedPIC: */
static sqInt NoDbgRegParms
checkMaybeObjRefInClosedPIC(sqInt _maybeObject)
{
	if (_maybeObject == 0) {
		return 1;
	}
	if (!(couldBeObject(_maybeObject))) {
		return 1;
	}
	return checkValidObjectReference(_maybeObject);
}
/* Cogit>>#checkValidObjectReferencesInClosedPIC: */
static sqInt NoDbgRegParms
checkValidObjectReferencesInClosedPIC(CogMethod *_cPIC)
{
	sqInt _i;
	int _ok;
	sqInt _pc;

	_ok = 1;
	_pc = ((sqInt) _cPIC ) + firstCPICCaseOffset;
	if (!(checkMaybeObjRefInClosedPIC(literalBeforeFollowingAddress(backEnd, _pc - (jumpLongByteSize(backEnd)))))) {
		{
			print("object leak in CPIC ");
			printHex(((sqInt) _cPIC ));
			print(" @ ");
			printHex(_pc - (jumpLongByteSize(backEnd)));
			cr();
		}
		_ok = 0;
	}
	_pc = addressOfEndOfCaseinCPIC((_cPIC->cPICNumCases), _cPIC);
	for (_i = 2; _i <= ((_cPIC->cPICNumCases)); _i += 1) {
		if (!(checkMaybeObjRefInClosedPIC(literalBeforeFollowingAddress(backEnd, (_pc - (jumpLongConditionalByteSize(backEnd))) - (cmpC32RTempByteSize(backEnd)))))) {
			{
				print("object leak in CPIC ");
				printHex(((sqInt) _cPIC ));
				print(" @ ");
				printHex(_pc - (jumpLongConditionalByteSize(backEnd)));
				cr();
			}
			_ok = 0;
		}
		_pc += cPICCaseSize;
	}
	return _ok;
}
/*	i.e. this should never be called, so keep it out of the main path. */
/* Cogit>>#cleanUpFailingCogCodeConstituents: */
static sqInt NoDbgRegParms NeverInline
cleanUpFailingCogCodeConstituents(CogMethod *_cogMethodArg)
{
	CogMethod *_cogMethod;

	_cogMethod = _cogMethodArg;
	while (_cogMethod < (limitZony())) {
		if (((_cogMethod->cmType)) == CMPolymorphicIC) {
			(_cogMethod->methodObject = 0);
		}
		_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
	}
	popRemappableOop();
	return null;
}
/*	Answer if the ClosedPIC refers to any unmarked objects or freed/freeable 
	target methods, 
	applying markAndTraceOrFreeCogMethod:firstVisit: to those targets to 
	determine if freed/freeable. */
/* Cogit>>#closedPICRefersToUnmarkedObject: */
static sqInt NoDbgRegParms
closedPICRefersToUnmarkedObject(CogMethod *_cPIC)
{
	sqInt _i;
	sqInt _object;
	sqInt _pc;

	if (!((isImmediate((_cPIC->selector))) || (isMarkedOrPermanent((_cPIC->selector))))) {
		return 1;
	}
	_pc = addressOfEndOfCaseinCPIC(1, _cPIC);
	if (couldBeObject((_object = literalBeforeFollowingAddress(backEnd, _pc - (jumpLongByteSize(backEnd)))))) {
		if (!(isMarkedOrPermanent(_object))) {
			return 1;
		}
	}
	if (markAndTraceOrFreePICTargetin(jumpLongTargetBeforeFollowingAddress(backEnd, _pc), _cPIC)) {
		return 1;
	}
	for (_i = 2; _i <= ((_cPIC->cPICNumCases)); _i += 1) {
		_pc = addressOfEndOfCaseinCPIC(_i, _cPIC);
		if (couldBeObject((_object = literalBeforeFollowingAddress(backEnd, (_pc - (jumpLongConditionalByteSize(backEnd))) - (cmpC32RTempByteSize(backEnd)))))) {
			if (!(isMarkedOrPermanent(_object))) {
				return 1;
			}
		}
		if (markAndTraceOrFreePICTargetin(jumpLongTargetBeforeFollowingAddress(backEnd, _pc), _cPIC)) {
			return 1;
		}
	}
	return 0;
}
/* Cogit>>#codeEntryFor: */
char *
codeEntryFor(char *_address)
{
	sqInt _i;

	for (_i = 0; _i <= (trampolineTableIndex - 3); _i += 2) {
		if ((_address >= (trampolineAddresses[_i + 1])) && (_address <= ((trampolineAddresses[_i + 3]) - 1))) {
			return trampolineAddresses[_i + 1];
		}
	}
	return null;
}
/* Cogit>>#codeEntryNameFor: */
char *
codeEntryNameFor(char *_address)
{
	sqInt _i;

	for (_i = 0; _i <= (trampolineTableIndex - 3); _i += 2) {
		if ((_address >= (trampolineAddresses[_i + 1])) && (_address <= ((trampolineAddresses[_i + 3]) - 1))) {
			return trampolineAddresses[_i];
		}
	}
	return null;
}
/* Cogit>>#cogCodeBase */
sqInt
cogCodeBase(void)
{
	return codeBase;
}
/*	Answer the contents of the code zone as an array of pair-wise element, 
	address in ascending address order. 
	Answer a string for a runtime routine or abstract label (beginning, end, 
	etc), a CompiledMethod for a CMMethod, 
	or a selector (presumably a Symbol) for a PIC. 
	If withDetails is true 
	- answer machine-code to bytecode pc mapping information for methods 
	- answer class, target pair information for closed PIC 
	N.B. Since the class tag for the first case of a closed PIC is stored at 
	the send site, it must be collected 
	by scanning methods (see 
	collectCogConstituentFor:Annotation:Mcpc:Bcpc:Method:). Since closed PICs 
	are never shared they always come after the method that references them, 
	so we don't need an extra pass 
	to collect the first case class tags, which are (temporarily) assigned to 
	each closed PIC's methodObject field. 
	But we do need to reset the methodObject fields to zero. This is done in 
	createPICData:, unless memory 
	runs out, in which case it is done by cleanUpFailingCogCodeConstituents:. */
/* Cogit>>#cogCodeConstituents: */
sqInt
cogCodeConstituents(sqInt _withDetails)
{
	CogMethod *_cogMethod;
	sqInt _constituents;
	sqInt _count;
	sqInt _i;
	sqInt _label;
	sqInt _profileData;
	sqInt _value;

	_count = (trampolineTableIndex / 2) + 3;
	_cogMethod = ((CogMethod *) methodZoneBase );
	while (_cogMethod < (limitZony())) {
		if (((_cogMethod->cmType)) != CMFree) {
			_count += 1;
		}
		_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
	}
	_constituents = instantiateClassindexableSize(classArray(), _count * 2);
	if (!_constituents) {
		return _constituents;
	}
	pushRemappableOop(_constituents);
	if (((_label = stringForCString("CogCode")) == null) || ((_value = positive32BitIntegerFor(codeBase)) == null)) {
		popRemappableOop();
		return null;
	}
	{
		storePointerUncheckedofObjectwithValue(0, _constituents, _label);
		storePointerUncheckedofObjectwithValue(1, _constituents, _value);
	}
	for (_i = 0; _i < trampolineTableIndex; _i += 2) {
		if (((_label = stringForCString(trampolineAddresses[_i])) == null) || ((_value = positive32BitIntegerFor(((usqInt) (trampolineAddresses[_i + 1]) ))) == null)) {
			popRemappableOop();
			return null;
		}
		{
			storePointerUncheckedofObjectwithValue(2 + _i, _constituents, _label);
			storePointerUncheckedofObjectwithValue(3 + _i, _constituents, _value);
		}
	}
	_count = trampolineTableIndex + 2;
	_cogMethod = ((CogMethod *) methodZoneBase );
	while (_cogMethod < (limitZony())) {
		if (((_cogMethod->cmType)) != CMFree) {
			if (((_cogMethod->cmType)) == CMMethod) {
				_profileData = (_cogMethod->methodObject);
			} else {
				_profileData = ((_withDetails && (((_cogMethod->cmType)) == CMPolymorphicIC))
					 ? createCPICData(_cogMethod)
					 : (_cogMethod->selector));
			}
			if (!_profileData) {
				return cleanUpFailingCogCodeConstituents(_cogMethod);
			}
			storePointerUncheckedofObjectwithValue(_count, _constituents, _profileData);
			if (_withDetails) {
				_value = collectCogMethodConstituent(_cogMethod);
			}
 else {
				_value = positive32BitIntegerFor(((usqInt) _cogMethod ));
			}
			if (!_value) {
				return cleanUpFailingCogCodeConstituents(_cogMethod);
			}
			storePointerUncheckedofObjectwithValue(_count + 1, _constituents, _value);
			_count += 2;
		}
		_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
	}
	if (((_label = stringForCString("CCFree")) == null) || ((_value = positive32BitIntegerFor(mzFreeStart)) == null)) {
		popRemappableOop();
		return null;
	}
	{
		storePointerUncheckedofObjectwithValue(_count, _constituents, _label);
		storePointerUncheckedofObjectwithValue(_count + 1, _constituents, _value);
	}
	if (((_label = stringForCString("CCEnd")) == null) || ((_value = positive32BitIntegerFor(limitAddress)) == null)) {
		popRemappableOop();
		return null;
	}
	{
		storePointerUncheckedofObjectwithValue(_count + 2, _constituents, _label);
		storePointerUncheckedofObjectwithValue(_count + 3, _constituents, _value);
	}
	_constituents = popRemappableOop();
	beRootIfOld(_constituents);
	return _constituents;
}
/*	Extend the cPIC with the supplied case. If caseNMethod is cogged dispatch 
	direct to 
	its unchecked entry-point. If caseNMethod is not cogged, jump to the fast 
	interpreter dispatch, and if isMNUCase then dispatch to fast MNU 
	invocation and mark the cPIC as 
	having the MNU case for cache flushing. */
/* Cogit>>#cogExtendPIC:CaseNMethod:tag:isMNUCase: */
static sqInt NoDbgRegParms
cogExtendPICCaseNMethodtagisMNUCase(CogMethod *_cPIC, sqInt _caseNMethod, sqInt _caseNTag, sqInt _isMNUCase)
{
	sqInt _address;
	usqInt _addressFollowingJump;
	int _operand;
	sqInt _target;

	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		assert((_caseNMethod != null) && (!(isYoung(_caseNMethod))));
		if (!_isMNUCase && (methodHasCogMethod(_caseNMethod))) {
			_operand = 0;
			_target = ((sqInt) (cogMethodOf(_caseNMethod)) ) + cmNoCheckEntryOffset;
		} else {
			_operand = _caseNMethod;
			if (_isMNUCase) {
				(_cPIC->cpicHasMNUCaseOrCMIsFullBlock) = 1;
				_target = picAbortAddress(_cPIC);
			} else {
				_target = ((sqInt) _cPIC ) + (picInterpretAbortOffset());
			}
		}
		_address = addressOfEndOfCaseinCPIC(((_cPIC->cPICNumCases)) + 1, _cPIC);
		rewritePICCaseAttagobjReftarget(_address, _caseNTag, _operand, _target);
		/* begin rewriteCPIC:caseJumpTo: */
		/* begin rewriteCPICJumpAt:target: */
		_addressFollowingJump = ((((sqInt) _cPIC ) + firstCPICCaseOffset) - (jumpLongByteSize(backEnd))) - (loadLiteralByteSize(backEnd));
		rewriteTransferAttarget(((AbstractInstruction *) backEnd ), _addressFollowingJump, _address - cPICCaseSize);
		/* end rewriteCPICJumpAt:target: */
		/* end rewriteCPIC:caseJumpTo: */
		(_cPIC->cPICNumCases = ((_cPIC->cPICNumCases)) + 1);
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
		flushICacheFromto(((usqInt) _cPIC ), ((usqInt) _cPIC ) + closedPICSize);
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	return 0;
}
/*	Attempt to produce a machine code method for the bytecode method 
	object aMethodObj. N.B. If there is no code memory available do *NOT* 
	attempt to reclaim the method zone. Certain clients (e.g. ceSICMiss:) 
	depend on the zone remaining constant across method generation. */
/* Cogit>>#cogFullBlockMethod:numCopied: */
CogMethod *
cogFullBlockMethodnumCopied(sqInt _aMethodObj, sqInt _numCopied)
{
	CogMethod *_cogMethod;
	usqLong _startTime;
	sqInt _ultimateLiteral;

	_startTime = ioUTCMicrosecondsNow();
	ensureNoForwardedLiteralsIn(_aMethodObj);
	_ultimateLiteral = ultimateLiteralOf(_aMethodObj);
	assert(!(isForwarded(_ultimateLiteral)));
	assert(!(methodHasCogMethod(_aMethodObj)));
	assert(isOopCompiledMethod(_ultimateLiteral));
	methodObj = _aMethodObj;
	methodHeader = methodHeaderOf(_aMethodObj);
	receiverTags = receiverTagBitsForMethod(methodObj);
	_cogMethod = compileCogFullBlockMethod(_numCopied);
	if ((((sqInt) _cogMethod ) >= MaxNegativeErrorCode) && (((sqInt) _cogMethod ) <= -1)) {
		if (((sqInt) _cogMethod ) == InsufficientCodeSpace) {
			callForCogCompiledCodeCompaction();
		}
		return null;
	}
	statCompileFullBlockCount += 1;
	statCompileFullBlockUsecs += (ioUTCMicrosecondsNow()) - _startTime;
	return _cogMethod;
}
/* Cogit>>#cogitPostGCAction: */
void
cogitPostGCAction(sqInt _gcMode)
{
	if (_gcMode == GCModeBecome) {
		followForwardedLiteralsInOpenPICList();
	}
	assert(allMethodsHaveCorrectHeader());
	assert(((_gcMode & (GCModeFull + GCModeNewSpace)) == 0) || (kosherYoungReferrers()));
}
/*	Check that the header fields onf a non-free method are consistent with 
	the type. Answer 0 if it is ok, otherwise answer a code for the error. */
/* Cogit>>#cogMethodDoesntLookKosher: */
sqInt
cogMethodDoesntLookKosher(CogMethod *_cogMethod)
{
	if (((((_cogMethod->blockSize)) & (BytesPerWord - 1)) != 0) || ((((_cogMethod->blockSize)) < (sizeof(CogMethod))) || (((_cogMethod->blockSize)) >= 32768))) {
		return 1;
	}
	if (((_cogMethod->cmType)) == CMFree) {
		return 2;
	}
	if (((_cogMethod->cmType)) == CMMethod) {
		if (!((((_cogMethod->methodHeader)) & 1))) {
			return 11;
		}
		if (!(couldBeObject((_cogMethod->methodObject)))) {
			return 12;
		}
		if ((((_cogMethod->stackCheckOffset)) > 0) && (((_cogMethod->stackCheckOffset)) < cmNoCheckEntryOffset)) {
			return 13;
		}
		return 0;
	}
	if (((_cogMethod->cmType)) == CMMegamorphicIC) {
		if (((_cogMethod->blockSize)) != openPICSize) {
			return 21;
		}
		if (((_cogMethod->methodHeader)) != 0) {
			return 22;
		}
		if (((_cogMethod->objectHeader)) >= 0) {
			if (!((((_cogMethod->methodObject)) == 0) || (compactionInProgress || (((_cogMethod->methodObject)) == ((usqInt) (methodFor((_cogMethod->methodObject))) ))))) {
				return 23;
			}
		}
		if (((_cogMethod->stackCheckOffset)) != 0) {
			return 24;
		}
		return 0;
	}
	if (((_cogMethod->cmType)) == CMPolymorphicIC) {
		if (((_cogMethod->blockSize)) != closedPICSize) {
			return 0x1F;
		}
		if (!((((_cogMethod->cPICNumCases)) >= 1) && (((_cogMethod->cPICNumCases)) <= MaxCPICCases))) {
			return 32;
		}
		if (((_cogMethod->methodHeader)) != 0) {
			return 33;
		}
		if (((_cogMethod->methodObject)) != 0) {
			return 34;
		}
		return 0;
	}
	return 9;
}
/* Cogit>>#cogMethodIfPossible:selector: */
void
cogMethodIfPossibleselector(sqInt _methodOrSelectorIndex, sqInt _selector)
{
	if ((!(methodHasCogMethod(_methodOrSelectorIndex))) && (methodShouldBeCogged(_methodOrSelectorIndex))) {
		cogselector(_methodOrSelectorIndex, _selector);
	}
}
/*	Attempt to create a one-case PIC for an MNU. 
	The tag for the case is at the send site and so doesn't need to be 
	generated.  */
/* Cogit>>#cogMNUPICSelector:receiver:methodOperand:numArgs: */
CogMethod *
cogMNUPICSelectorreceivermethodOperandnumArgs(sqInt _selector, sqInt _rcvr, sqInt _methodOperand, sqInt _numArgs)
{
	CogMethod * _pic;
	usqInt _startAddress;

	if ((isYoung(_selector)) || ((inlineCacheTagForInstance(_rcvr)) == 0)) {
		return 0;
	}
	assert(endCPICCase0 != null);
	_startAddress = allocate(closedPICSize);
	if (_startAddress == 0) {
		callForCogCompiledCodeCompaction();
		return 0;
	}
	_pic = ((CogMethod *) _startAddress );
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		initializePICatDeltanumArgs(_pic, _startAddress - cPICPrototype, _numArgs);
		configureMNUCPICmethodOperand(_pic, _methodOperand);
		/* begin fillInCPICHeader:numArgs:numCases:hasMNUCase:selector: */
		assert(!(isYoung(_selector)));
		(_pic->cmType = CMPolymorphicIC);
		(_pic->objectHeader = 0);
		(_pic->blockSize = closedPICSize);
		(_pic->methodObject = 0);
		(_pic->methodHeader = 0);
		(_pic->selector = _selector);
		(_pic->cmNumArgs = _numArgs);
		(_pic->cmRefersToYoung = 0);
		(_pic->cmUsageCount = initialClosedPICUsageCount());
		(_pic->cpicHasMNUCaseOrCMIsFullBlock) = 1;
		(_pic->cPICNumCases = 1);
		(_pic->picUsage = 0);
		assert(((_pic->cmType)) == CMPolymorphicIC);
		assert(((_pic->selector)) == _selector);
		assert(((_pic->cmNumArgs)) == _numArgs);
		assert(((_pic->cPICNumCases)) == 1);
		assert((callTargetFromReturnAddress(backEnd, ((sqInt) _pic ) + missOffset)) == (picAbortTrampolineFor(_numArgs)));
		assert(closedPICSize == (roundUpLength(closedPICSize)));
		/* end fillInCPICHeader:numArgs:numCases:hasMNUCase:selector: */
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
		flushICacheFromto(((usqInt) _pic ), ((usqInt) _pic ) + closedPICSize);
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	return _pic;
}
/*	Create an Open PIC. Temporarily create a direct call of 
	ceSendFromOpenPIC:. Should become a probe of the first-level method lookup 
	cache followed by a 
	call of ceSendFromOpenPIC: if the probe fails. */
/* Cogit>>#cogOpenPICSelector:numArgs: */
static CogMethod * NoDbgRegParms
cogOpenPICSelectornumArgs(sqInt _selector, sqInt _numArgs)
{
	sqInt _codeSize;
	sqInt _end;
	sqInt _mapSize;
	CogMethod * _pic;
	CogMethod *_pic2;
	usqInt _startAddress;

	_startAddress = allocate(openPICSize);
	if (_startAddress == 0) {
		return ((CogMethod *) InsufficientCodeSpace );
	}
	{
		(methodLabel->address = _startAddress);
		(methodLabel->dependent = null);
	}
	/* begin allocateOpcodes:bytecodes: */
	ensureAndClearAbstractOpcodes(100);
	zeroOpcodeIndexForNewOpcodes();
	labelCounter = 0;
	/* end allocateOpcodes:bytecodes: */
	compileOpenPICnumArgs(_selector, _numArgs);
	computeMaximumSizes();
	concretizeAt(methodLabel, _startAddress);
	_codeSize = generateInstructionsAt(_startAddress + (sizeof(CogMethod)));
	_mapSize = generateMapAtstart((_startAddress + openPICSize) - 1, _startAddress + cmNoCheckEntryOffset);
	assert((((entry->address)) - _startAddress) == cmEntryOffset);
	assert(((roundUpLength((sizeof(CogMethod)) + _codeSize)) + (roundUpLength(_mapSize))) <= openPICSize);
	_end = outputInstructionsAt(_startAddress + (sizeof(CogMethod)));
	/* begin fillInOPICHeader:numArgs:selector: */
	_pic2 = ((CogMethod *) _startAddress );
	(_pic2->cmType = CMMegamorphicIC);
	(_pic2->objectHeader = 0);
	(_pic2->blockSize = openPICSize);
	addToMegamorphicICList(_pic2);
	(_pic2->methodHeader = 0);
	(_pic2->selector = _selector);
	(_pic2->cmNumArgs = _numArgs);
	if ((_pic2->cmRefersToYoung = isYoung(_selector))) {
		addToYoungReferrers(_pic2);
	}
	(_pic2->cmUsageCount = initialOpenPICUsageCount());
	(_pic2->cpicHasMNUCaseOrCMIsFullBlock) = 0;
	(_pic2->cPICNumCases = 0);
	(_pic2->picUsage = 0);
	assert(((_pic2->cmType)) == CMMegamorphicIC);
	assert(((_pic2->selector)) == _selector);
	assert(((_pic2->cmNumArgs)) == _numArgs);
	assert((callTargetFromReturnAddress(backEnd, ((sqInt) _pic2 ) + missOffset)) == (picAbortTrampolineFor(_numArgs)));
	assert(openPICSize == (roundUpLength(openPICSize)));
	_pic = _pic2;
	/* end fillInOPICHeader:numArgs:selector: */
	return _pic;
}
/*	Attempt to create a two-case PIC for case0CogMethod and 
	case1Method,case1Tag. The tag for case0CogMethod is at the send site and 
	so doesn't need to be generated. 
	case1Method may be any of 
	- a Cog method; link to its unchecked entry-point 
	- a CompiledMethod; link to ceInterpretMethodFromPIC: 
	- a CompiledMethod; link to ceMNUFromPICMNUMethod:receiver: */
/* Cogit>>#cogPICSelector:numArgs:Case0Method:Case1Method:tag:isMNUCase: */
static CogMethod * NoDbgRegParms
cogPICSelectornumArgsCase0MethodCase1MethodtagisMNUCase(sqInt _selector, sqInt _numArgs, CogMethod *_case0CogMethod, sqInt _case1MethodOrNil, sqInt _case1Tag, sqInt _isMNUCase)
{
	CogMethod *_pic;
	usqInt _startAddress;

	if (isYoung(_selector)) {
		return ((CogMethod *) YoungSelectorInPIC );
	}
	_startAddress = allocate(closedPICSize);
	_pic = ((CogMethod *) _startAddress );
	if (_startAddress == 0) {
		return ((CogMethod *) InsufficientCodeSpace );
	}
	initializePICatDeltanumArgs(_pic, _startAddress - cPICPrototype, _numArgs);
	configureCPICCase0Case1MethodtagisMNUCase(_pic, _case0CogMethod, _case1MethodOrNil, _case1Tag, _isMNUCase);
	/* begin fillInCPICHeader:numArgs:numCases:hasMNUCase:selector: */
	assert(!(isYoung(_selector)));
	(_pic->cmType = CMPolymorphicIC);
	(_pic->objectHeader = 0);
	(_pic->blockSize = closedPICSize);
	(_pic->methodObject = 0);
	(_pic->methodHeader = 0);
	(_pic->selector = _selector);
	(_pic->cmNumArgs = _numArgs);
	(_pic->cmRefersToYoung = 0);
	(_pic->cmUsageCount = initialClosedPICUsageCount());
	(_pic->cpicHasMNUCaseOrCMIsFullBlock) = _isMNUCase;
	(_pic->cPICNumCases = 2);
	(_pic->picUsage = 0);
	assert(((_pic->cmType)) == CMPolymorphicIC);
	assert(((_pic->selector)) == _selector);
	assert(((_pic->cmNumArgs)) == _numArgs);
	assert(((_pic->cPICNumCases)) == 2);
	assert((callTargetFromReturnAddress(backEnd, ((sqInt) _pic ) + missOffset)) == (picAbortTrampolineFor(_numArgs)));
	assert(closedPICSize == (roundUpLength(closedPICSize)));
	/* end fillInCPICHeader:numArgs:numCases:hasMNUCase:selector: */
	return _pic;
}
/*	Attempt to produce a machine code method for the bytecode method 
	object aMethodObj. N.B. If there is no code memory available do *NOT* 
	attempt to reclaim the method zone. Certain clients (e.g. ceSICMiss:) 
	depend on the zone remaining constant across method generation. */
/* Cogit>>#cog:selector: */
CogMethod *
cogselector(sqInt _aMethodObj, sqInt _aSelectorOop)
{
	CogMethod *_cogMethod;
	sqInt _selector;
	usqLong _startTime;

	_startTime = ioUTCMicrosecondsNow();
	assert(!(methodHasCogMethod(_aMethodObj)));
	assert(!(isOopCompiledMethod(ultimateLiteralOf(_aMethodObj))));
	_selector = ((_aSelectorOop == (nilObject()))
		 ? maybeSelectorOfMethod(_aMethodObj)
		 : _aSelectorOop);
	ensureNoForwardedLiteralsIn(_aMethodObj);
	methodObj = _aMethodObj;
	methodHeader = methodHeaderOf(_aMethodObj);
	receiverTags = receiverTagBitsForMethod(methodObj);
	_cogMethod = compileCogMethod(_aSelectorOop);
	if ((((sqInt) _cogMethod ) >= MaxNegativeErrorCode) && (((sqInt) _cogMethod ) <= -1)) {
		if (((sqInt) _cogMethod ) == InsufficientCodeSpace) {
			callForCogCompiledCodeCompaction();
		}
		return null;
	}
	statCompileMethodCount += 1;
	statCompileMethodUsecs += (ioUTCMicrosecondsNow()) - _startTime;
	return _cogMethod;
}
/* Cogit>>#collectCogConstituentFor:Annotation:Mcpc:Bcpc:Method: */
static sqInt NoDbgRegParms
collectCogConstituentForAnnotationMcpcBcpcMethod(BytecodeDescriptor *_descriptor, sqInt _isBackwardBranchAndAnnotation, char *_mcpc, sqInt _bcpc, void *cogMethodArg)
{
	sqInt _address;
	sqInt _annotation;
	sqInt _entryPoint;
	sqInt _offset2;
	CogMethod * _targetCogCode;

	if (!_descriptor) {
		return 0;
	}
	if (!((_descriptor->isMapped))) {
		return 0;
	}
	_address = positive32BitIntegerFor(_mcpc);
	if (!_address) {
		return PrimErrNoMemory;
	}
	storePointerUncheckedofObjectwithValue(cogConstituentIndex, topRemappableOop(), _address);
	storePointerUncheckedofObjectwithValue(cogConstituentIndex + 1, topRemappableOop(), ((((usqInt) _bcpc ) << 1) | 1));
	cogConstituentIndex += 2;
	if (((_isBackwardBranchAndAnnotation & 1) == 0) && ((((usqInt) _isBackwardBranchAndAnnotation ) >> 1) >= IsSendCall)) {
		_entryPoint = callTargetFromReturnAddress(backEnd, ((sqInt) _mcpc ));
		if (_entryPoint > methodZoneBase) {
			/* begin targetMethodAndSendTableFor:annotation:into: */
			_annotation = ((usqInt) _isBackwardBranchAndAnnotation ) >> 1;
			/* begin offsetAndSendTableFor:annotation:into: */
			if (_annotation == IsSendCall) {
				_offset2 = cmEntryOffset;
			} else {
				if (_annotation == IsDirectedSuperSend) {
					_offset2 = cmNoCheckEntryOffset;
				} else {
					if (_annotation == IsDirectedSuperBindingSend) {
						_offset2 = cmNoCheckEntryOffset;
					} else {
						assert(_annotation == IsSuperSend);
						_offset2 = cmNoCheckEntryOffset;
					}
				}
			}
			{
				_targetCogCode = ((CogMethod *) (_entryPoint - _offset2) );
				{
					if (((_targetCogCode->cmType)) == CMPolymorphicIC) {
						(_targetCogCode->methodObject = classForInlineCacheTag(inlineCacheTagAt(backEnd, _mcpc)));
					}
				}
			}
			/* end offsetAndSendTableFor:annotation:into: */
			/* end targetMethodAndSendTableFor:annotation:into: */
		}
	}
	return 0;
}
/*	Answer a description of the mapping between machine code pointers and 
	bytecode pointers for the Cog Method. 
	First value is the address of the cog method. 
	Following values are pairs of machine code pc and bytecode pc */
/* Cogit>>#collectCogMethodConstituent: */
static sqInt NoDbgRegParms
collectCogMethodConstituent(CogMethod *_cogMethod)
{
	sqInt _address;
	sqInt _aMethodObj;
	sqInt _annotation;
	sqInt _bcpc;
	sqInt _byte;
	sqInt _cm;
	sqInt _data;
	BytecodeDescriptor *_descriptor;
	sqInt _distance;
	sqInt _endbcpc;
	sqInt _errCode;
	CogMethod *_homeMethod;
	sqInt _isBackwardBranch;
	usqInt _isInBlock;
	sqInt _latestContinuation;
	usqInt _map;
	sqInt _mapByte;
	usqInt _mcpc;
	int _nExts;
	sqInt _nextBcpc;
	sqInt _nSlots;
	sqInt _result;
	sqInt _startbcpc;
	sqInt _targetPC;

	if (!(((_cogMethod->cmType)) == CMMethod)) {
		return positive32BitIntegerFor(((usqInt) _cogMethod ));
	}
	if (((_cogMethod->stackCheckOffset)) == 0) {
		return positive32BitIntegerFor(((usqInt) _cogMethod ));
	}
	_cm = (_cogMethod->methodObject);
	_nSlots = ((((byteSizeOf(_cm)) - (startPCOfMethod(_cm))) * 2) + (minSlotsForShortening())) + 1;
	_data = instantiateClassindexableSize(splObj(ClassArray), _nSlots);
	if (!_data) {
		return null;
	}
	pushRemappableOop(_data);
	_address = positive32BitIntegerFor(((usqInt) _cogMethod ));
	if (!_address) {
		popRemappableOop();
		return null;
	}
	storePointerUncheckedofObjectwithValue(0, topRemappableOop(), _address);
	cogConstituentIndex = 1;
	/* begin mapFor:bcpc:performUntil:arg: */
	_startbcpc = startPCOfMethod((_cogMethod->methodObject));
	assert(((_cogMethod->stackCheckOffset)) > 0);
	_mcpc = ((usqInt) _cogMethod ) + ((_cogMethod->stackCheckOffset));
	_result = collectCogConstituentForAnnotationMcpcBcpcMethod(null, 0 + ((int) (((usqInt) HasBytecodePC ) << 1) ), ((char *) _mcpc ), _startbcpc, ((void *) _cogMethod ));
	if (_result != 0) {
		_errCode = _result;
		goto l3;
	}
	_bcpc = _startbcpc;
	_isInBlock = (_cogMethod->cpicHasMNUCaseOrCMIsFullBlock);
	_homeMethod = ((CogMethod *) _cogMethod );
	assert(_startbcpc == (startPCOfMethodHeader((_homeMethod->methodHeader))));
	_map = (((usqInt) _homeMethod ) + ((_homeMethod->blockSize))) - 1;
	_annotation = ((usqInt) (byteAt(_map)) ) >> AnnotationShift;
	assert((_annotation == IsAbsPCReference) || ((_annotation == IsObjectReference) || ((_annotation == IsRelativeCall) || (_annotation == IsDisplacementX2N))));
	_latestContinuation = _startbcpc;
	_aMethodObj = (_homeMethod->methodObject);
	_endbcpc = (numBytesOf(_aMethodObj)) - 1;
	_bcpc += deltaToSkipPrimAndErrorStoreInheader(_aMethodObj, (_homeMethod->methodHeader));
	_nExts = 0;
	while ((((usqInt) (byteAt(_map)) ) >> AnnotationShift) != HasBytecodePC) {
		_map -= 1;
	}
	_map -= 1;
	while (((_mapByte = byteAt(_map))) != MapEnd) {
		if (_mapByte >= FirstAnnotation) {
			_annotation = ((usqInt) _mapByte ) >> AnnotationShift;
			_mcpc += (_mapByte & DisplacementMask) * 4;
			if (_annotation >= HasBytecodePC) {
				if ((_annotation == IsSendCall) && ((((usqInt) ((_mapByte = byteAt(_map - 1))) ) >> AnnotationShift) == IsAnnotationExtension)) {
					_annotation += _mapByte & DisplacementMask;
					_map -= 1;
				}
				while (1) {
					_byte = fetchByteofObject(_bcpc, _aMethodObj);
					_descriptor = generatorAt(_byte);
					if (_isInBlock) {
						if (_bcpc >= _endbcpc) {
							_errCode = 0;
							goto l3;
						}
					} else {
						if (((_descriptor->isReturn)) && (_bcpc >= _latestContinuation)) {
							_errCode = 0;
							goto l3;
						}
						if (isBranch(_descriptor)) {
							/* begin latestContinuationPCFor:at:exts:in: */
							_distance = ((_descriptor->spanFunction))(_descriptor, _bcpc, _nExts, _aMethodObj);
							_targetPC = (_bcpc + ((_descriptor->numBytes))) + (((_distance < 0) ? 0 : _distance));
							/* end latestContinuationPCFor:at:exts:in: */
							_latestContinuation = ((_latestContinuation < _targetPC) ? _targetPC : _latestContinuation);
						}
					}
					_nextBcpc = _bcpc + ((_descriptor->numBytes));
					if (((_descriptor->isMapped)) || (_isInBlock && ((_descriptor->isMappedInBlock)))) 
						break;
					_bcpc = _nextBcpc;
					_nExts = (((_descriptor->isExtension))
						 ? _nExts + 1
						 : 0);
				}
				_isBackwardBranch = (isBranch(_descriptor)) && ((assert(((_descriptor->spanFunction)) != null), (((_descriptor->spanFunction))(_descriptor, _bcpc, _nExts, _aMethodObj)) < 0));
				_result = collectCogConstituentForAnnotationMcpcBcpcMethod(_descriptor, ((_isBackwardBranch)
					 ? ((sqInt) (((usqInt) _annotation ) << 1) ) + 1
					 : ((sqInt) (((usqInt) _annotation ) << 1) )), ((char *) _mcpc ), ((_isBackwardBranch)
					 ? _bcpc - (2 * _nExts)
					 : _bcpc), ((void *) _cogMethod ));
				if (_result != 0) {
					_errCode = _result;
					goto l3;
				}
				_bcpc = _nextBcpc;
				_nExts = (((_descriptor->isExtension))
					 ? _nExts + 1
					 : 0);
			}
		} else {
			assert(((((usqInt) _mapByte ) >> AnnotationShift) == IsDisplacementX2N) || ((((usqInt) _mapByte ) >> AnnotationShift) == IsAnnotationExtension));
			if (_mapByte < ((int) (((usqInt) IsAnnotationExtension ) << AnnotationShift) )) {
				_mcpc += ((sqInt) (((usqInt) (_mapByte - DisplacementX2N) ) << AnnotationShift) ) * 4;
			}
		}
		_map -= 1;
	}
	_errCode = 0;
	l3:
	;
	/* end mapFor:bcpc:performUntil:arg: */
	if (_errCode != 0) {
		popRemappableOop();
		return null;
	}
	if (cogConstituentIndex < _nSlots) {
		shortentoIndexableSize(topRemappableOop(), cogConstituentIndex);
	}
	return popRemappableOop();
}
/* Cogit>>#compactCogCompiledCode */
void
compactCogCompiledCode(void)
{
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		assert(noCogMethodsMaximallyMarked());
		markActiveMethodsAndReferents();
		freeOlderMethodsForCompaction();
		compactPICsWithFreedTargets();
		planCompaction();
		updateStackZoneReferencesToCompiledCodePreCompaction();
		relocateMethodsPreCompaction();
		compactCompiledCode();
		assert(allMethodsHaveCorrectHeader());
		assert(kosherYoungReferrers());
		stopsFromto(backEnd, freeStart(), (youngReferrers()) - 1);
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
		flushICacheFromto(((usqInt) methodZoneBase ), ((usqInt) (youngReferrers()) ));
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
}
/* Cogit>>#compactPICsWithFreedTargets */
static void
compactPICsWithFreedTargets(void)
{
	CogMethod *_cogMethod;
	int _count;

	_cogMethod = ((CogMethod *) methodZoneBase );
	_count = 0;
	while (_cogMethod < (limitZony())) {
		if ((((_cogMethod->cmType)) == CMPolymorphicIC) && (cPICCompactAndIsNowEmpty(_cogMethod))) {
			(_cogMethod->cmType = CMFree);
		}
		_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
		_count += 1;
	}
	assert(_count == (numMethods()));
}
/*	The start of a CogMethod has a call to a run-time abort routine that 
	either handles an in-line cache failure or a stack overflow. The routine 
	selects the 
	path depending on ReceiverResultReg; if zero it takes the stack overflow 
	path; if nonzero the in-line cache miss path. Neither of these paths 
	returns. The abort routine must be called; In the callee the method is 
	located by 
	adding the relevant offset to the return address of the call. 
	 
	N.B. This code must match that in compilePICAbort: so that the offset of 
	the return address of the call is the same in methods and closed PICs. */
/* Cogit>>#compileAbort */
static AbstractInstruction *
compileAbort(void)
{
	AbstractInstruction *_anInstruction;
	sqInt _callTarget;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(MoveCqR, 0, ReceiverResultReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(0));
	}
	stackOverflowCall = _anInstruction;
	/* end checkQuickConstant:forInstruction: */
	{
		sendMiss = genoperand(PushR, LinkReg);
		/* begin Call: */
		_callTarget = methodAbortTrampolineFor(methodOrBlockNumArgs);
		return genoperand(Call, _callTarget);
		/* end Call: */
	}
}
/*	Generate a call to aRoutine with up to 4 arguments. If resultRegOrNone is 
	not NoReg assign the C result to resultRegOrNone. If saveRegs, save all 
	registers. Hack: a negative arg value indicates an abstract register, a 
	non-negative value 
	indicates a constant. */
/* Cogit>>#compileCallFor:numArgs:arg:arg:arg:arg:resultReg:regsToSave: */
static void NoDbgRegParms
compileCallFornumArgsargargargargresultRegregsToSave(void *_aRoutine, sqInt _numArgs, sqInt _regOrConst0, sqInt _regOrConst1, sqInt _regOrConst2, sqInt _regOrConst3, sqInt _resultRegOrNone, sqInt _regMask)
{
	const int cStackAlignment = STACK_ALIGN_BYTES;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction5;
	sqInt _delta;
	int _numRegsPushed;
	sqInt _operand2;
	usqInt _regMaskCopy;
	sqInt _regsToSave;
	int _wordsPushedModAlignment;

	_regsToSave = ((_resultRegOrNone == NoReg)
		 ? _regMask
		 : (_regMask | (1U << _resultRegOrNone)) - (1U << _resultRegOrNone));
	if (cStackAlignment > BytesPerWord) {
		/* begin genAlignCStackSavingRegisters:numArgs:wordAlignment: */
		_regMaskCopy = ((usqInt) _regsToSave );
		_numRegsPushed = 0;
		while (_regMaskCopy != 0) {
			_numRegsPushed += _regMaskCopy & 1;
			_regMaskCopy = ((usqInt) _regMaskCopy ) >> 1;
		}
		if ((_numRegsPushed == 0) && ((numIntRegArgs(((AbstractInstruction *) backEnd ))) >= _numArgs)) {
			goto l5;
		}
		_wordsPushedModAlignment = (_numRegsPushed + _numArgs) % (cStackAlignment / BytesPerWord);
		if (_wordsPushedModAlignment != 0) {
			_delta = (cStackAlignment / BytesPerWord) - _wordsPushedModAlignment;
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction = genoperandoperand(SubCqR, _delta * BytesPerWord, SPReg);
			if (usesOutOfLineLiteral(_anInstruction)) {
				(_anInstruction->dependent = locateLiteral(_delta * BytesPerWord));
			}
			/* end checkQuickConstant:forInstruction: */
		}
		l5:
		;
		/* end genAlignCStackSavingRegisters:numArgs:wordAlignment: */
	}
	{
		/* begin genSaveRegs: */
		/* begin genPushRegisterMask: */
		if (_regsToSave == 0) {
			genoperandoperand(Label, (labelCounter += 1), bytecodePC);
		}
 else {
			genoperand(PushSTM, _regsToSave);
		}
		/* end genPushRegisterMask: */
		/* end genSaveRegs: */
		/* begin genMarshallNArgs:arg:arg:arg:arg: */
		if (_numArgs == 0) {
			goto l6;
		}
		if (_regOrConst0 < NoReg) {
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction2 = genoperandoperand(MoveCqR, -2 - _regOrConst0, CArg0Reg);
			if (usesOutOfLineLiteral(_anInstruction2)) {
				(_anInstruction2->dependent = locateLiteral(-2 - _regOrConst0));
			}
			/* end checkQuickConstant:forInstruction: */
		} else {
			genoperandoperand(MoveRR, _regOrConst0, CArg0Reg);
		}
		if (_numArgs == 1) {
			goto l6;
		}
		if (_regOrConst1 < NoReg) {
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction3 = genoperandoperand(MoveCqR, -2 - _regOrConst1, CArg1Reg);
			if (usesOutOfLineLiteral(_anInstruction3)) {
				(_anInstruction3->dependent = locateLiteral(-2 - _regOrConst1));
			}
			/* end checkQuickConstant:forInstruction: */
		} else {
			genoperandoperand(MoveRR, _regOrConst1, CArg1Reg);
		}
		if (_numArgs == 2) {
			goto l6;
		}
		if (_regOrConst2 < NoReg) {
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction4 = genoperandoperand(MoveCqR, -2 - _regOrConst2, CArg2Reg);
			if (usesOutOfLineLiteral(_anInstruction4)) {
				(_anInstruction4->dependent = locateLiteral(-2 - _regOrConst2));
			}
			/* end checkQuickConstant:forInstruction: */
		} else {
			genoperandoperand(MoveRR, _regOrConst2, CArg2Reg);
		}
		if (_numArgs == 3) {
			goto l6;
		}
		if (_regOrConst3 < NoReg) {
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction5 = genoperandoperand(MoveCqR, -2 - _regOrConst3, CArg3Reg);
			if (usesOutOfLineLiteral(_anInstruction5)) {
				(_anInstruction5->dependent = locateLiteral(-2 - _regOrConst3));
			}
			/* end checkQuickConstant:forInstruction: */
		} else {
			genoperandoperand(MoveRR, _regOrConst3, CArg3Reg);
		}
		l6:
		;
		/* end genMarshallNArgs:arg:arg:arg:arg: */
	}
	{
		/* begin gen:literal: */
		_operand2 = ((usqInt) _aRoutine );
		checkLiteralforInstruction(_operand2, genoperand(CallFull, _operand2));
		/* end gen:literal: */
	}
	if (_resultRegOrNone != NoReg) {
		genWriteCResultIntoReg(backEnd, _resultRegOrNone);
	}
	/* begin genRemoveNArgsFromStack: */
	assert(_numArgs <= 4);
	/* end genRemoveNArgsFromStack: */
	/* begin genRestoreRegs: */
	/* begin genPopRegisterMask: */
	if (_regsToSave == 0) {
		genoperandoperand(Label, (labelCounter += 1), bytecodePC);
	}
 else {
		genoperand(PopLDM, _regsToSave);
	}
	/* end genPopRegisterMask: */
	/* end genRestoreRegs: */
}
/*	Compile the cache tag computation and the first comparison. Answer the 
	address of that comparison. */
/* Cogit>>#compileCPICEntry */
static AbstractInstruction *
compileCPICEntry(void)
{
	entry = genGetInlineCacheClassTagFrominto(ReceiverResultReg, TempReg);
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, ClassReg, TempReg);
	/* end CmpR:R: */
	return genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
}
/*	Compile the abstract instructions for the entire full block method. */
/* Cogit>>#compileEntireFullBlockMethod: */
static sqInt NoDbgRegParms
compileEntireFullBlockMethod(sqInt _numCopied)
{
	sqInt _result;

	/* begin preenMethodLabel */
	/* begin setLabelOffset: */
	((((AbstractInstruction *) methodLabel ))->operands)[1] = 0;
	/* end setLabelOffset: */
	/* end preenMethodLabel */
	compileFullBlockEntry();
	compileFullBlockMethodFrameBuild(_numCopied);
	if (((_result = compileMethodBody())) < 0) {
		return _result;
	}
	return 0;
}
/*	The entry code to a method checks that the class of the current receiver 
	matches that in the inline cache. Other non-obvious elements are that its 
	alignment must be 
	different from the alignment of the noCheckEntry so that the method map 
	machinery can distinguish normal and super sends (super sends bind to the 
	noCheckEntry).  */
/* Cogit>>#compileEntry */
static void
compileEntry(void)
{
	AbstractInstruction *_abstractInstruction;
	AbstractInstruction * _inst;

	entry = genGetInlineCacheClassTagFrominto(ReceiverResultReg, TempReg);
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, ClassReg, TempReg);
	/* end CmpR:R: */
	genConditionalBranchoperand(JumpNonZero, ((sqInt) sendMiss ));
	noCheckEntry = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
	if (compileSendTrace()) {
		/* begin saveAndRestoreLinkRegAround: */
		_inst = genoperand(PushR, LinkReg);
		{
			/* begin CallRT: */
			/* begin annotateCall: */
			_abstractInstruction = genoperand(Call, ceTraceLinkedSendTrampoline);
			(_abstractInstruction->annotation = IsRelativeCall);
			/* end annotateCall: */
			/* end CallRT: */
		}
		genoperand(PopR, LinkReg);
		/* end saveAndRestoreLinkRegAround: */
	}
}
/*	Compile the abstract instructions for the entire method, including blocks.Abort for stack overflow on full block activation (no inline cache miss 
	possible). The flag is SendNumArgsReg. */
/* Cogit>>#compileFullBlockEntry */
static sqInt
compileFullBlockEntry(void)
{
	sqInt _alignment;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	sqInt _callTarget;
	AbstractInstruction * _jumpNoContextSwitch;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(MoveCqR, 0, ReceiverResultReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(0));
	}
	stackOverflowCall = _anInstruction;
	/* end checkQuickConstant:forInstruction: */
	{
		/* begin PushR: */
		genoperand(PushR, LinkReg);
		/* end PushR: */
	}
	/* begin Call: */
	_callTarget = methodAbortTrampolineFor(methodOrBlockNumArgs);
	genoperand(Call, _callTarget);
	/* end Call: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(MoveCqR, 0, SendNumArgsReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(0));
	}
	fullBlockNoContextSwitchEntry = _anInstruction2;
	/* end checkQuickConstant:forInstruction: */
	_jumpNoContextSwitch = genoperand(Jump, ((sqInt) 0 ));
	/* begin AlignmentNops: */
	_alignment = ((BytesPerWord < 8) ? 8 : BytesPerWord);
	genoperand(AlignmentNops, _alignment);
	/* end AlignmentNops: */
	fullBlockEntry = genoperandoperand(MoveRR, ReceiverResultReg, SendNumArgsReg);
	jmpTarget(_jumpNoContextSwitch, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	return 0;
}
/*	Compile the top-level method body. */
/* Cogit>>#compileMethodBody */
static sqInt
compileMethodBody(void)
{
	if (endPC < initialPC) {
		return 0;
	}
	return compileAbstractInstructionsFromthrough(initialPC + (deltaToSkipPrimAndErrorStoreInheader(methodObj, methodHeader)), endPC);
}
/*	The start of a PIC has a call to a run-time abort routine that either 
	handles a dispatch to an 
	interpreted method or a dispatch of an MNU case. The routine selects the 
	path by testing 
	ClassReg, which holds the inline cache tag; if equal to the 
	picAbortDiscriminatorValue (zero) 
	it takes the MNU path; if nonzero the dispatch to interpreter path. 
	Neither of these paths 
	returns. The abort routine must be called; In the callee the PIC is 
	located by adding the 
	relevant offset to the return address of the call. 
	 
	N.B. This code must match that in compileAbort so that the offset of the 
	return address of 
	the call is the same in methods and closed PICs. */
/* Cogit>>#compilePICAbort: */
static sqInt NoDbgRegParms
compilePICAbort(sqInt _numArgs)
{
	AbstractInstruction *_anInstruction;
	sqInt _callTarget;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(MoveCqR, 0, ClassReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	{
		picInterpretAbort = genoperand(PushR, LinkReg);
		/* begin Call: */
		_callTarget = picAbortTrampolineFor(_numArgs);
		genoperand(Call, _callTarget);
		/* end Call: */
	}
	return 0;
}
/*	Generate a trampoline with up to four arguments. Generate either a call or 
	a jump to aRoutine 
	as requested by callJumpBar. If generating a call and resultRegOrNone is 
	not NoReg pass the C 
	result back in resultRegOrNone. 
	Hack: a negative value indicates an abstract register, a non-negative 
	value indicates a constant. */
/* Cogit>>#compileTrampolineFor:numArgs:arg:arg:arg:arg:regsToSave:pushLinkReg:resultReg: */
static void NoDbgRegParms
compileTrampolineFornumArgsargargargargregsToSavepushLinkRegresultReg(void *_aRoutine, sqInt _numArgs, sqInt _regOrConst0, sqInt _regOrConst1, sqInt _regOrConst2, sqInt _regOrConst3, sqInt _regMask, sqInt _pushLinkReg, sqInt _resultRegOrNone)
{
	genSmalltalkToCStackSwitch(_pushLinkReg);
	compileCallFornumArgsargargargargresultRegregsToSave(_aRoutine, _numArgs, _regOrConst0, _regOrConst1, _regOrConst2, _regOrConst3, _resultRegOrNone, _regMask);
	genLoadStackPointers(backEnd);
	if (_pushLinkReg && 1) {
		{
			genoperand(PopR, PCReg);
		}
	} else {
		genoperand(RetN, 0);
	}
}
/*	Generate the entry code for a method to determine cmEntryOffset and 
	cmNoCheckEntryOffset. We 
	need cmNoCheckEntryOffset up front to be able to generate the map starting 
	from cmNoCheckEntryOffsetstack allocate the various collections so that they 
	are effectively garbage collected on return. */
/* Cogit>>#computeEntryOffsets */
static void
computeEntryOffsets(void)
{
	AbstractInstruction *_sendMissCall;

	/* begin allocateOpcodes:bytecodes: */
	ensureAndClearAbstractOpcodes(24);
	zeroOpcodeIndexForNewOpcodes();
	labelCounter = 0;
	/* end allocateOpcodes:bytecodes: */
	methodOrBlockNumArgs = 0;
	_sendMissCall = compileAbort();
	compileEntry();
	computeMaximumSizes();
	/* begin enableCodeZoneWriteDuring: */
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		generateInstructionsAt(methodZoneBase + (sizeof(CogMethod)));
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	/* end enableCodeZoneWriteDuring: */
	cmEntryOffset = ((entry->address)) - methodZoneBase;
	cmNoCheckEntryOffset = ((noCheckEntry->address)) - methodZoneBase;
	missOffset = (((_sendMissCall->address)) + ((_sendMissCall->machineCodeSize))) - methodZoneBase;
}
/*	Generate the entry code for a method to determine cmEntryOffset and 
	cmNoCheckEntryOffset. We 
	need cmNoCheckEntryOffset up front to be able to generate the map starting 
	from cmNoCheckEntryOffsetstack allocate the various collections so that they 
	are effectively garbage collected on return. */
/* Cogit>>#computeFullBlockEntryOffsets */
static void
computeFullBlockEntryOffsets(void)
{
	/* begin allocateOpcodes:bytecodes: */
	ensureAndClearAbstractOpcodes(24);
	zeroOpcodeIndexForNewOpcodes();
	labelCounter = 0;
	/* end allocateOpcodes:bytecodes: */
	methodOrBlockNumArgs = 0;
	compileFullBlockEntry();
	computeMaximumSizes();
	/* begin enableCodeZoneWriteDuring: */
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		generateInstructionsAt(methodZoneBase + (sizeof(CogMethod)));
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	/* end enableCodeZoneWriteDuring: */
	cbEntryOffset = ((fullBlockEntry->address)) - methodZoneBase;
	cbNoSwitchEntryOffset = ((fullBlockNoContextSwitchEntry->address)) - methodZoneBase;
}
/*	This pass assigns maximum sizes to all abstract instructions and 
	eliminates jump fixups. 
	It hence assigns the maximum address an instruction will occur at which 
	allows the next 
	pass to conservatively size jumps. */
/* Cogit>>#computeMaximumSizes */
static void
computeMaximumSizes(void)
{
	AbstractInstruction *_abstractInstruction;
	sqInt _i;
	int _relativeAddress;

	dumpLiterals(0);
	_relativeAddress = 0;
	for (_i = 0; _i < opcodeIndex; _i += 1) {
		_abstractInstruction = abstractInstructionAt(_i);
		{
			(_abstractInstruction->address = _relativeAddress);
			(_abstractInstruction->maxSize = computeMaximumSize(_abstractInstruction));
		}
		_relativeAddress += (_abstractInstruction->maxSize);
	}
}
/*	Configure a copy of the prototype CPIC for a two-case PIC for  
	case0CogMethod and 
	case1Method 
	case1Tag. 
	The tag for case0CogMethod is at the send site and so doesn't need to be 
	generated. case1Method may be any of 
	- a Cog method; jump to its unchecked entry-point 
	- a CompiledMethod; jump to the ceInterpretFromPIC trampoline 
	- nil; call ceMNUFromPIC 
	addDelta is the address change from the prototype to the new CPIC 
	location, needed 
	because the loading of the CPIC label at the end may use a literal instead 
	of a pc relative load.self disassembleFrom: cPIC asInteger + (self sizeof: CogMethod) to: cPIC 
	asInteger + closedPICSize */
/* Cogit>>#configureCPIC:Case0:Case1Method:tag:isMNUCase: */
static sqInt NoDbgRegParms
configureCPICCase0Case1MethodtagisMNUCase(CogMethod *_aPIC, CogMethod *_case0CogMethod, sqInt _case1Method, sqInt _case1Tag, sqInt _isMNUCase)
{
	sqInt _caseEndAddress;
	int _operand;
	sqInt _targetEntry;

	assert(_case1Method != null);
	if (!_isMNUCase && (methodHasCogMethod(_case1Method))) {
		_operand = 0;
		_targetEntry = ((sqInt) (cogMethodOf(_case1Method)) ) + cmNoCheckEntryOffset;
	} else {
		_operand = (((_case1Method == null) || (isYoungObject(getMemoryMap(), _case1Method)))
			 ? 0
			 : _case1Method);
		_targetEntry = ((_case1Method == null)
			 ? picAbortAddress(_aPIC)
			 : ((sqInt) _aPIC ) + (picInterpretAbortOffset()));
	}
	rewriteJumpLongAttarget(backEnd, ((sqInt) _aPIC ) + firstCPICCaseOffset, ((sqInt) _case0CogMethod ) + cmNoCheckEntryOffset);
	_caseEndAddress = addressOfEndOfCaseinCPIC(2, _aPIC);
	rewritePICCaseAttagobjReftarget(_caseEndAddress, _case1Tag, _operand, ((sqInt) (((_isMNUCase)
		 ? picAbortAddress(_aPIC)
		 : _targetEntry)) ));
	return 0;
}
/*	Configure a copy of the prototype CPIC for a one-case MNU CPIC that calls 
	ceMNUFromPIC for 
	case0Tag The tag for case0 is at the send site and so doesn't need to be 
	generated. addDelta is the address change from the prototype to the new 
	CPIC location, needed 
	because the loading of the CPIC label at the end may be a literal instead 
	of a pc-relative load.We do not scavenge PICs, hence we cannot cache the MNU method if it is in 
	new space. */
/* Cogit>>#configureMNUCPIC:methodOperand: */
static sqInt NoDbgRegParms
configureMNUCPICmethodOperand(CogMethod *_aPIC, sqInt _methodOop)
{
	usqInt _addressFollowingJump;
	int _operand;
	sqInt _target;

	_operand = (((_methodOop == null) || (isYoungObject(getMemoryMap(), _methodOop)))
		 ? 0
		 : _methodOop);
	rewriteJumpLongAttarget(backEnd, ((sqInt) _aPIC ) + firstCPICCaseOffset, picAbortAddress(_aPIC));
	storeLiteralbeforeFollowingAddress(backEnd, _operand, (((sqInt) _aPIC ) + firstCPICCaseOffset) - (jumpLongByteSize(backEnd)));
	/* begin rewriteCPIC:caseJumpTo: */
	_target = addressOfEndOfCaseinCPIC(2, _aPIC);
	/* begin rewriteCPICJumpAt:target: */
	_addressFollowingJump = ((((sqInt) _aPIC ) + firstCPICCaseOffset) - (jumpLongByteSize(backEnd))) - (loadLiteralByteSize(backEnd));
	rewriteTransferAttarget(((AbstractInstruction *) backEnd ), _addressFollowingJump, _target);
	/* end rewriteCPICJumpAt:target: */
	/* end rewriteCPIC:caseJumpTo: */
	return 0;
}
/*	Scan the CPIC for target methods that have been freed and eliminate them. 
	Since the first entry cannot be eliminated, answer that the PIC should be 
	freed if the first entry is to a free target. Answer if the PIC is now 
	empty or should be freed. */
/* Cogit>>#cPICCompactAndIsNowEmpty: */
static sqInt NoDbgRegParms
cPICCompactAndIsNowEmpty(CogMethod *_cPIC)
{
	usqInt _addressFollowingJump;
	usqInt _addressFollowingJump2;
	sqInt _entryPoint;
	sqInt _followingAddress;
	sqInt _i;
	sqInt _methods[MaxCPICCases];
	sqInt _pc;
	int _tags[MaxCPICCases];
	CogMethod *_targetMethod;
	sqInt _targets[MaxCPICCases];
	int _used;
	int _valid;

	_used = 0;
	for (_i = 1; _i <= ((_cPIC->cPICNumCases)); _i += 1) {
		_pc = addressOfEndOfCaseinCPIC(_i, _cPIC);
		if (_i == 1) {
			_entryPoint = jumpLongTargetBeforeFollowingAddress(backEnd, _pc);
		} else {
			/* begin jumpLongConditionalTargetBeforeFollowingAddress: */
			_entryPoint = jumpLongTargetBeforeFollowingAddress(((AbstractInstruction *) backEnd ), _pc);
			/* end jumpLongConditionalTargetBeforeFollowingAddress: */
		}
		_valid = 1;
		if (!((((usqInt) _cPIC ) <= ((usqInt) _entryPoint )) && ((((usqInt) _cPIC ) + ((_cPIC->blockSize))) >= ((usqInt) _entryPoint )))) {
			_targetMethod = ((CogMethod *) (_entryPoint - cmNoCheckEntryOffset) );
			assert((((_targetMethod->cmType)) == CMMethod) || (((_targetMethod->cmType)) == CMFree));
			if (((_targetMethod->cmType)) == CMFree) {
				if (_i == 1) {
					return 1;
				}
				_valid = 0;
			}
		}
		if (_valid) {
			_tags[_used] = ((_i > 1)
				 ? (/* begin literal32BeforeFollowingAddress: */ (_followingAddress = _pc - (jumpLongConditionalByteSize(backEnd))), literalBeforeFollowingAddress(((AbstractInstruction *) backEnd ), _followingAddress) /* end literal32BeforeFollowingAddress: */)
				 : 0);
			_targets[_used] = _entryPoint;
			_methods[_used] = literalBeforeFollowingAddress(backEnd, _pc - (((_i == 1)
				 ? jumpLongByteSize(backEnd)
				 : (jumpLongConditionalByteSize(backEnd)) + (cmpC32RTempByteSize(backEnd)))));
			_used += 1;
		}
	}
	if (_used == ((_cPIC->cPICNumCases))) {
		return 0;
	}
	if (_used == 0) {
		return 1;
	}
	(_cPIC->cPICNumCases = _used);
	if (_used == 1) {
		_pc = addressOfEndOfCaseinCPIC(2, _cPIC);
		/* begin rewriteCPIC:caseJumpTo: */
		/* begin rewriteCPICJumpAt:target: */
		_addressFollowingJump = ((((sqInt) _cPIC ) + firstCPICCaseOffset) - (jumpLongByteSize(backEnd))) - (loadLiteralByteSize(backEnd));
		rewriteTransferAttarget(((AbstractInstruction *) backEnd ), _addressFollowingJump, _pc);
		/* end rewriteCPICJumpAt:target: */
		/* end rewriteCPIC:caseJumpTo: */
		return 0;
	}
	for (_i = 1; _i < _used; _i += 1) {
		_pc = addressOfEndOfCaseinCPIC(_i + 1, _cPIC);
		rewritePICCaseAttagobjReftarget(_pc, _tags[_i], _methods[_i], _targets[_i]);
	}
	/* begin rewriteCPIC:caseJumpTo: */
	/* begin rewriteCPICJumpAt:target: */
	_addressFollowingJump2 = ((((sqInt) _cPIC ) + firstCPICCaseOffset) - (jumpLongByteSize(backEnd))) - (loadLiteralByteSize(backEnd));
	rewriteTransferAttarget(((AbstractInstruction *) backEnd ), _addressFollowingJump2, _pc - cPICCaseSize);
	/* end rewriteCPICJumpAt:target: */
	/* end rewriteCPIC:caseJumpTo: */
	return 0;
}
/*	The first case in a CPIC doesn't have a class reference so we need only 
	step over actually usd subsequent cases. */
/* Cogit>>#cPICHasForwardedClass: */
static sqInt NoDbgRegParms
cPICHasForwardedClass(CogMethod *_cPIC)
{
	sqInt _classIndex;
	sqInt _i;
	sqInt _pc;

	_pc = (addressOfEndOfCaseinCPIC((_cPIC->cPICNumCases), _cPIC)) - (jumpLongConditionalByteSize(backEnd));
	for (_i = 2; _i <= ((_cPIC->cPICNumCases)); _i += 1) {
		/* begin literal32BeforeFollowingAddress: */
		_classIndex = literalBeforeFollowingAddress(((AbstractInstruction *) backEnd ), _pc);
		/* end literal32BeforeFollowingAddress: */
		if (isForwardedClassIndex(_classIndex)) {
			return 1;
		}
		_pc += cPICCaseSize;
	}
	return 0;
}
/*	scan the CPIC for target methods that have been freed. */
/* Cogit>>#cPICHasFreedTargets: */
static sqInt NoDbgRegParms
cPICHasFreedTargets(CogMethod *_cPIC)
{
	sqInt _entryPoint;
	sqInt _i;
	sqInt _pc;
	CogMethod *_targetMethod;

	for (_i = 1; _i <= ((_cPIC->cPICNumCases)); _i += 1) {
		_pc = addressOfEndOfCaseinCPIC(_i, _cPIC);
		if (_i == 1) {
			_entryPoint = jumpLongTargetBeforeFollowingAddress(backEnd, _pc);
		} else {
			/* begin jumpLongConditionalTargetBeforeFollowingAddress: */
			_entryPoint = jumpLongTargetBeforeFollowingAddress(((AbstractInstruction *) backEnd ), _pc);
			/* end jumpLongConditionalTargetBeforeFollowingAddress: */
		}
		if (!((((usqInt) _cPIC ) <= ((usqInt) _entryPoint )) && ((((usqInt) _cPIC ) + ((_cPIC->blockSize))) >= ((usqInt) _entryPoint )))) {
			_targetMethod = ((CogMethod *) (_entryPoint - cmNoCheckEntryOffset) );
			assert((((_targetMethod->cmType)) == CMMethod) || (((_targetMethod->cmType)) == CMFree));
			if (((_targetMethod->cmType)) == CMFree) {
				return 1;
			}
		}
	}
	return 0;
}
/*	Whimsey; we want 16rCA5E10 + cPICPrototypeCaseOffset to be somewhere in 
	the middle of the zone. */
/* Cogit>>#cPICPrototypeCaseOffset */
static sqInt
cPICPrototypeCaseOffset(void)
{
	return ((methodZoneBase + (youngReferrers())) / 2) - 13262352;
}
/*	Are any of the jumps from this CPIC to targetMethod? */
/* Cogit>>#cPIC:HasTarget: */
static sqInt NoDbgRegParms
cPICHasTarget(CogMethod *_cPIC, CogMethod *_targetMethod)
{
	sqInt _i;
	sqInt _pc;
	sqInt _target;

	_target = ((usqInt) _targetMethod ) + cmNoCheckEntryOffset;
	_pc = ((sqInt) _cPIC ) + firstCPICCaseOffset;
	if (_target == (jumpLongTargetBeforeFollowingAddress(backEnd, _pc))) {
		return 1;
	}
	for (_i = 2; _i <= MaxCPICCases; _i += 1) {
		_pc += cPICCaseSize;
		if (_target == (jumpLongTargetBeforeFollowingAddress(backEnd, _pc))) {
			return 1;
		}
	}
	return 0;
}
/*	Answer an Array of the PIC's selector, followed by class and 
	targetMethod/doesNotUnderstand: for each entry in the PIC. */
/* Cogit>>#createCPICData: */
static sqInt NoDbgRegParms
createCPICData(CogMethod *_cPIC)
{
	sqInt _class;
	sqInt _entryPoint;
	sqInt _i;
	sqInt _pc;
	sqInt _picData;
	sqInt _target;
	CogMethod *_targetMethod;

	assert((((_cPIC->methodObject)) == 0) || (addressCouldBeOop((_cPIC->methodObject))));
	_picData = instantiateClassindexableSize(classArray(), (((_cPIC->cPICNumCases)) * 2) + 1);
	if (!_picData) {
		return _picData;
	}
	storePointerUncheckedofObjectwithValue(0, _picData, (_cPIC->selector));
	for (_i = 1; _i <= ((_cPIC->cPICNumCases)); _i += 1) {
		_pc = addressOfEndOfCaseinCPIC(_i, _cPIC);
		if (_i == 1) {
			_class = (_cPIC->methodObject);
			if (_class == 0) {
				_class = nilObject();
			}
			_entryPoint = jumpLongTargetBeforeFollowingAddress(backEnd, _pc);
		} else {
			_class = classForInlineCacheTag(literal32BeforeFollowingAddress(backEnd, _pc - (jumpLongConditionalByteSize(backEnd))));
			/* begin jumpLongConditionalTargetBeforeFollowingAddress: */
			_entryPoint = jumpLongTargetBeforeFollowingAddress(((AbstractInstruction *) backEnd ), _pc);
			/* end jumpLongConditionalTargetBeforeFollowingAddress: */
		}
		if ((((usqInt) _cPIC ) <= ((usqInt) _entryPoint )) && ((((usqInt) _cPIC ) + ((_cPIC->blockSize))) >= ((usqInt) _entryPoint ))) {
			_target = splObj(SelectorDoesNotUnderstand);
		} else {
			_targetMethod = ((CogMethod *) (_entryPoint - cmNoCheckEntryOffset) );
			assert(((_targetMethod->cmType)) == CMMethod);
			_target = (_targetMethod->methodObject);
		}
		{
			storePointerUncheckedofObjectwithValue((_i * 2) - 1, _picData, _class);
			storePointerUncheckedofObjectwithValue(_i * 2, _picData, _target);
		}
	}
	beRootIfOld(_picData);
	(_cPIC->methodObject = 0);
	return _picData;
}
/*	Division is a little weird on some processors. Defer to the backEnd 
	to allow it to generate any special code it may need to. */
/* Cogit>>#DivR:R:Quo:Rem: */
static AbstractInstruction * NoDbgRegParms
gDivRRQuoRem(sqInt _rDivisor, sqInt _rDividend, sqInt _rQuotient, sqInt _rRemainder)
{
	genDivRRQuoRem(backEnd, _rDivisor, _rDividend, _rQuotient, _rRemainder);
	return abstractInstructionAt(opcodeIndex - 1);
}
/*	Return the default number of bytes to allocate for native code at startup. 
	The actual value can be set via vmParameterAt: and/or a preference in the 
	ini file. */
/* Cogit>>#defaultCogCodeSize */
sqInt
defaultCogCodeSize(void)
{
	return 1024 * 1280;
}
/*	Answer the number of bytecodes to skip to get to the first bytecode 
	past the primitive call and any store of the error code. */
/* Cogit>>#deltaToSkipPrimAndErrorStoreIn:header: */
static sqInt NoDbgRegParms
deltaToSkipPrimAndErrorStoreInheader(sqInt _aMethodObj, sqInt _aMethodHeader)
{
	return ((((primitiveIndexOfMethodheader(_aMethodObj, _aMethodHeader)) > 0) && ((longStoreBytecodeForHeader(_aMethodHeader)) == (fetchByteofObject((startPCOfMethod(_aMethodObj)) + (sizeOfCallPrimitiveBytecode(_aMethodHeader)), _aMethodObj))))
		 ? (sizeOfCallPrimitiveBytecode(_aMethodHeader)) + (sizeOfLongStoreTempBytecode(_aMethodHeader))
		 : 0);
}
/* Cogit>>#endPCOf: */
static sqInt NoDbgRegParms
endPCOf(sqInt _aMethod)
{
	sqInt _byte;
	BytecodeDescriptor *_descriptor;
	sqInt _distance;
	sqInt _end;
	sqInt _latestContinuation;
	int _nExts;
	sqInt _pc;
	sqInt _prim;
	sqInt _targetPC;

	_pc = (_latestContinuation = startPCOfMethod(_aMethod));
	if (((_prim = primitiveIndexOf(_aMethod))) > 0) {
		if (isQuickPrimitiveIndex(_prim)) {
			return _pc - 1;
		}
	}
	_nExts = 0;
	_end = numBytesOf(_aMethod);
	while (_pc <= _end) {
		_byte = fetchByteofObject(_pc, _aMethod);
		_descriptor = generatorAt(_byte);
		if (((_descriptor->isReturn)) && (_pc >= _latestContinuation)) {
			_end = _pc;
		}
		if (isBranch(_descriptor)) {
			_distance = ((_descriptor->spanFunction))(_descriptor, _pc, _nExts, _aMethod);
			_targetPC = (_pc + ((_descriptor->numBytes))) + _distance;
			_latestContinuation = ((_latestContinuation < _targetPC) ? _targetPC : _latestContinuation);
		}
		_nExts = (((_descriptor->isExtension))
			 ? _nExts + 1
			 : 0);
		_pc += (_descriptor->numBytes);
	}
	return _end;
}
/* Cogit>>#ensureAndClearAbstractOpcodes: */
static void NoDbgRegParms
ensureAndClearAbstractOpcodes(sqInt _numberOfAbstractOpcodes)
{
	usqIntptr_t _allocBytes;
	usqIntptr_t _clearFixupsBytes;
	usqIntptr_t _clearOpcodesBytes;
	usqIntptr_t _fixupBytes;
	usqIntptr_t _opcodeBytes;

	numAbstractOpcodes = _numberOfAbstractOpcodes;
	_opcodeBytes = (sizeof(CogAbstractInstruction)) * MaxNumberOfAbstractOpcodes;
	_fixupBytes = (sizeof(CogBytecodeFixup)) * MaxNumberOfAbstractOpcodes;
	_allocBytes = _opcodeBytes + _fixupBytes;
	_clearOpcodesBytes = (sizeof(CogAbstractInstruction)) * _numberOfAbstractOpcodes;
	_clearFixupsBytes = (sizeof(CogBytecodeFixup)) * _numberOfAbstractOpcodes;
	{
		if (!abstractOpcodes) {
			abstractOpcodes = malloc(_allocBytes);
			fixups = ((void *) (((usqInt) abstractOpcodes ) + _opcodeBytes) );
		}
		bzero(abstractOpcodes, _clearOpcodesBytes);
		bzero(fixups, _clearFixupsBytes);
	}
}
/*	This is a static version of ceEnterCogCodePopReceiverReg 
	for break-pointing when debugging in C.This exists only for break-pointing. */
/* Cogit>>#enterCogCodePopReceiver */
void
enterCogCodePopReceiver(void)
{
	realCEEnterCogCodePopReceiverReg();
	{
		error("what??");
	}
}
/*	Use asserts to check if the ClosedPICPrototype is as expected from 
	compileClosedPICPrototype, and can be updated as required via 
	rewriteCPICCaseAt:tag:objRef:target:. If all asserts pass, answer 
	0, otherwise answer a bit mask identifying all the errors.self disassembleFrom: methodZoneBase + (self sizeof: CogMethod) to: 
	methodZoneBase + closedPICSize */
/* Cogit>>#expectedClosedPICPrototype: */
static sqInt NoDbgRegParms
expectedClosedPICPrototype(CogMethod *_cPIC)
{
	sqInt _classTag;
	sqInt _classTagPC;
	sqInt _entryPoint;
	int _errors;
	sqInt _i;
	sqInt _methodObjPC;
	sqInt _object;
	sqInt _pc;

	_errors = 0;
	_pc = ((usqInt) _cPIC ) + firstCPICCaseOffset;
	_object = literalBeforeFollowingAddress(backEnd, _pc - (jumpLongByteSize(backEnd)));
	if (!(asserta(_object == (firstPrototypeMethodOop())))) {
		_errors = 1;
	}
	_entryPoint = jumpLongTargetBeforeFollowingAddress(backEnd, _pc);
	if (!(asserta(_entryPoint == ((cPICPrototypeCaseOffset()) + 13262352)))) {
		_errors += 2;
	}
	for (_i = 1; _i < MaxCPICCases; _i += 1) {
		_pc += cPICCaseSize;
		_methodObjPC = (_pc - (jumpLongConditionalByteSize(backEnd))) - (cmpC32RTempByteSize(backEnd));
		_object = literalBeforeFollowingAddress(backEnd, _methodObjPC);
		if (!(asserta(_object == ((subsequentPrototypeMethodOop()) + _i)))) {
			_errors = _errors | 4;
		}
		_classTagPC = _pc - (jumpLongConditionalByteSize(backEnd));
		/* begin literal32BeforeFollowingAddress: */
		_classTag = literalBeforeFollowingAddress(((AbstractInstruction *) backEnd ), _classTagPC);
		/* end literal32BeforeFollowingAddress: */
		if (!(asserta(_classTag == (3133021973U + _i)))) {
			_errors = _errors | 8;
		}
		/* begin jumpLongConditionalTargetBeforeFollowingAddress: */
		_entryPoint = jumpLongTargetBeforeFollowingAddress(((AbstractInstruction *) backEnd ), _pc);
		/* end jumpLongConditionalTargetBeforeFollowingAddress: */
		if (!(asserta(_entryPoint == (((cPICPrototypeCaseOffset()) + 13262352) + (_i * 16))))) {
			_errors = _errors | 16;
		}
		rewritePICCaseAttagobjReftarget(_pc, _classTag ^ 1515870810, _object ^ 2779096485U, _entryPoint ^ 371280);
		_object = literalBeforeFollowingAddress(backEnd, _methodObjPC);
		if (!(asserta(_object == (((subsequentPrototypeMethodOop()) + _i) ^ 2779096485U)))) {
			_errors = _errors | 32;
		}
		/* begin literal32BeforeFollowingAddress: */
		_classTag = literalBeforeFollowingAddress(((AbstractInstruction *) backEnd ), _classTagPC);
		/* end literal32BeforeFollowingAddress: */
		if (!(asserta(_classTag == ((3133021973U + _i) ^ 1515870810)))) {
			_errors = _errors | 64;
		}
		/* begin jumpLongConditionalTargetBeforeFollowingAddress: */
		_entryPoint = jumpLongTargetBeforeFollowingAddress(((AbstractInstruction *) backEnd ), _pc);
		/* end jumpLongConditionalTargetBeforeFollowingAddress: */
		if (!(asserta(_entryPoint == ((((cPICPrototypeCaseOffset()) + 13262352) + (_i * 16)) ^ 371280)))) {
			_errors = _errors | 128;
		}
		rewritePICCaseAttagobjReftarget(_pc, _classTag ^ 1515870810, _object ^ 2779096485U, _entryPoint ^ 371280);
	}
	_entryPoint = jumpLongTargetBeforeFollowingAddress(backEnd, (_pc + cPICEndSize) - (endSizeOffset()));
	if (!(asserta(_entryPoint == (cPICMissTrampolineFor(0))))) {
		_errors += 256;
	}
	return _errors;
}
/*	224		11100000	aaaaaaaa	Extend A (Ext A = Ext A prev * 256 + Ext A) */
/* Cogit>>#extABytecode */
static sqInt
extABytecode(void)
{
	extA = (((usqInt) extA ) << 8) + byte1;
	return 0;
}
/*	225		11100001	sbbbbbbb	Extend B (Ext B = Ext B prev * 256 + Ext B) */
/* Cogit>>#extBBytecode */
static sqInt
extBBytecode(void)
{
	extB = (((numExtB == 0) && (byte1 > 0x7F))
		 ? byte1 - 256
		 : (((usqInt) extB ) << 8) + byte1);
	numExtB += 1;
	return 0;
}
/* Cogit>>#FaddS:Rv:Rv:Rv: */
static AbstractInstruction * NoDbgRegParms
gFaddSRvRvRv(sqInt _aSize, sqInt _vectorRegister1, sqInt _vectorRegister2, sqInt _vectorRegisterSum)
{
	return genoperandoperandoperandoperand(FaddSRvRvRv, _aSize, _vectorRegister1, _vectorRegister2, _vectorRegisterSum);
}
/* Cogit>>#FsubS:Rv:Rv:Rv: */
static AbstractInstruction * NoDbgRegParms
gFsubSRvRvRv(sqInt _aSize, sqInt _minuendVectorRegister, sqInt _subtrahendVectorRegister, sqInt _vectorRegisterSum)
{
	return genoperandoperandoperandoperand(FsubSRvRvRv, _aSize, _minuendVectorRegister, _subtrahendVectorRegister, _vectorRegisterSum);
}
/* Cogit>>#fillInMethodHeader:size:selector: */
static CogMethod * NoDbgRegParms
fillInMethodHeadersizeselector(CogMethod *method, sqInt _size, sqInt _selector)
{
	CogMethod *_originalMethod;
	sqInt _rawHeader;

	(method->cmType = CMMethod);
	(method->objectHeader = nullHeaderForMachineCodeMethod());
	(method->blockSize = _size);
	(method->methodObject = methodObj);
	_rawHeader = rawHeaderOf(methodObj);
	if (isCogMethodReference(_rawHeader)) {
		_originalMethod = ((CogMethod *) _rawHeader );
		assert(((_originalMethod->blockSize)) == _size);
		assert(methodHeader == ((_originalMethod->methodHeader)));
	} else {
		rawHeaderOfput(methodObj, ((sqInt) method ));
	}
	(method->methodHeader = methodHeader);
	(method->selector = _selector);
	(method->cmNumArgs = argumentCountOfMethodHeader(methodHeader));
	if ((method->cmRefersToYoung = hasYoungReferent)) {
		addToYoungReferrers(method);
	}
	(method->cmUsageCount = initialMethodUsageCount());
	(method->cpicHasMNUCaseOrCMIsFullBlock) = 0;
	(method->cmUsesPenultimateLit = maxLitIndex >= ((literalCountOfMethodHeader(methodHeader)) - 2));
	(method->picUsage = 0);
	if (needsFrame) {
		if (!((((stackCheckLabel->address)) - ((sqInt) method )) <= MaxStackCheckOffset)) {
			error("too much code for stack check offset");
		}
	}
	(method->stackCheckOffset = ((needsFrame)
		 ? ((stackCheckLabel->address)) - ((sqInt) method )
		 : 0));
	assert((callTargetFromReturnAddress(backEnd, ((sqInt) method ) + missOffset)) == (methodAbortTrampolineFor((method->cmNumArgs))));
	assert(_size == (roundUpLength(_size)));
	return method;
}
/* Cogit>>#findBackwardBranch:IsBackwardBranch:Mcpc:Bcpc:MatchingBcpc: */
static sqInt NoDbgRegParms
findBackwardBranchIsBackwardBranchMcpcBcpcMatchingBcpc(BytecodeDescriptor *descriptor, sqInt _isBackwardBranchAndAnnotation, char *_mcpc, sqInt _bcpc, void *_targetBcpc)
{
	return (((_isBackwardBranchAndAnnotation & 1) && (((sqInt) _targetBcpc ) == _bcpc))
		 ? ((sqInt) _mcpc )
		 : 0);
}
/*	Machine code addresses map to the following bytecode for all bytecodes 
	except backward branches, where they map to the backward branch itself. 
	This is so that loops continue, rather than terminate prematurely. */
/* Cogit>>#find:IsBackwardBranch:Mcpc:Bcpc:MatchingMcpc: */
static sqInt NoDbgRegParms
findIsBackwardBranchMcpcBcpcMatchingMcpc(BytecodeDescriptor *_descriptor, sqInt _isBackwardBranchAndAnnotation, char *_mcpc, sqInt _bcpc, void *_targetMcpc)
{
	return ((_targetMcpc == _mcpc)
		 ? (((_descriptor == null) || (_isBackwardBranchAndAnnotation & 1))
			 ? _bcpc
			 : _bcpc + ((_descriptor->numBytes)))
		 : 0);
}
/*	Answer a fake value for the first method oop in the PIC prototype. 
	Since we use MoveUniqueCw:R: it must not be confused with a 
	method-relative address. */
/* Cogit>>#firstPrototypeMethodOop */
static sqInt
firstPrototypeMethodOop(void)
{
	return (((((usqInt) 99282957 ) >= ((methodLabel->address))) && (((usqInt) 99282957 ) < (youngReferrers())))
		 ? 212332557
		 : 99282957);
}
/* Cogit>>#fixupAt: */
static BytecodeFixup * NoDbgRegParms
fixupAt(sqInt _fixupPC)
{
	return fixupAtIndex(_fixupPC - initialPC);
}
/* Cogit>>#followForwardedLiteralsIn: */
void
followForwardedLiteralsIn(CogMethod *_cogMethod)
{
	sqInt _annotation;
	usqInt _map;
	sqInt _mapByte;
	sqInt _mcpc;
	sqInt _result;

	assert((((_cogMethod->cmType)) != CMMethod) || (!(isForwarded((_cogMethod->methodObject)))));
	/* begin enableCodeZoneWriteDuring: */
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		if (shouldRemapOop((_cogMethod->selector))) {
			(_cogMethod->selector = remapObj((_cogMethod->selector)));
			if (isYoung((_cogMethod->selector))) {
				ensureInYoungReferrers(_cogMethod);
			}
		}
		/* begin mapFor:performUntil:arg: */
		/* begin firstMappedPCFor: */
		_mcpc = (((_cogMethod->cpicHasMNUCaseOrCMIsFullBlock))
			 ? ((usqInt) _cogMethod ) + cbNoSwitchEntryOffset
			 : ((usqInt) _cogMethod ) + cmNoCheckEntryOffset);
		/* end firstMappedPCFor: */
		_map = (((usqInt) _cogMethod ) + ((_cogMethod->blockSize))) - 1;
		while (((_mapByte = byteAt(_map))) != MapEnd) {
			if (_mapByte >= FirstAnnotation) {
				_mcpc += (_mapByte & DisplacementMask) * 4;
				if ((((_annotation = ((usqInt) _mapByte ) >> AnnotationShift)) == IsSendCall) && ((((usqInt) ((_mapByte = byteAt(_map - 1))) ) >> AnnotationShift) == IsAnnotationExtension)) {
					_annotation += _mapByte & DisplacementMask;
					_map -= 1;
				}
				_result = remapIfObjectRefpchasYoung(_annotation, ((char *) _mcpc ), 0);
				if (_result != 0) {
					goto l4;
				}
			} else {
				if (_mapByte < ((int) (((usqInt) IsAnnotationExtension ) << AnnotationShift) )) {
					_mcpc += ((sqInt) (((usqInt) (_mapByte - DisplacementX2N) ) << AnnotationShift) ) * 4;
				}
			}
			_map -= 1;
		}
		l4:
		;
		/* end mapFor:performUntil:arg: */
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	/* end enableCodeZoneWriteDuring: */
}
/* Cogit>>#followForwardedMethods */
void
followForwardedMethods(void)
{
	CogMethod *_cogMethod;
	sqInt _followed;
	int _freedPIC;

	_freedPIC = 0;
	_cogMethod = ((CogMethod *) methodZoneBase );
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		while (_cogMethod < (limitZony())) {
			if (isOopForwarded((_cogMethod->selector))) {
				_followed = followForwarded((_cogMethod->selector));
				(_cogMethod->selector = _followed);
				if (isYoung(_followed)) {
					ensureInYoungReferrers(_cogMethod);
				}
			}
			if (((_cogMethod->cmType)) == CMMethod) {
				if (isForwarded((_cogMethod->methodObject))) {
					(_cogMethod->methodObject = followForwarded((_cogMethod->methodObject)));
					if (isYoungObject(getMemoryMap(), (_cogMethod->methodObject))) {
						ensureInYoungReferrers(_cogMethod);
					}
				}
			}
			if (((_cogMethod->cmType)) == CMPolymorphicIC) {
				if (followMethodReferencesInClosedPIC(_cogMethod)) {
					_freedPIC = 1;
					freeMethod(_cogMethod);
				}
			}
			_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
		}
		if (_freedPIC) {
			unlinkSendsToFree();
		}
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
		if (codeModified) {
			flushICacheFromto(((usqInt) methodZoneBase ), ((usqInt) (limitZony()) ));
		}
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
}
/*	Follow a potential object reference from a closed PIC. 
	This may be a method reference or null. 
	Answer if the followed literal is young. 
	'mcpc' refers to the jump/branch instruction at the end of 
	each cpic case */
/* Cogit>>#followMaybeObjRefInClosedPICAt: */
static sqInt NoDbgRegParms
followMaybeObjRefInClosedPICAt(sqInt _mcpc)
{
	sqInt _object;
	sqInt _subject;

	_object = literalBeforeFollowingAddress(backEnd, _mcpc);
	if (!(couldBeObject(_object))) {
		return 0;
	}
	if (!(isForwarded(_object))) {
		return isYoungObject(getMemoryMap(), _object);
	}
	_subject = followForwarded(_object);
	storeLiteralbeforeFollowingAddress(backEnd, _subject, _mcpc);
	codeModified = 1;
	return isYoungObject(getMemoryMap(), _subject);
}
/*	Remap all object references in the closed PIC. Answer if any references 
	are young. 
	Set codeModified if any modifications are made. */
/* Cogit>>#followMethodReferencesInClosedPIC: */
static sqInt NoDbgRegParms
followMethodReferencesInClosedPIC(CogMethod *_cPIC)
{
	sqInt _i;
	sqInt _pc;
	sqInt _refersToYoung;

	_pc = addressOfEndOfCaseinCPIC(1, _cPIC);
	_refersToYoung = followMaybeObjRefInClosedPICAt(_pc - (jumpLongByteSize(backEnd)));
	_pc = addressOfEndOfCaseinCPIC((_cPIC->cPICNumCases), _cPIC);
	for (_i = 2; _i <= ((_cPIC->cPICNumCases)); _i += 1) {
		if (followMaybeObjRefInClosedPICAt((_pc - (jumpLongConditionalByteSize(backEnd))) - (cmpC32RTempByteSize(backEnd)))) {
			_refersToYoung = 1;
		}
		_pc += cPICCaseSize;
	}
	return _refersToYoung;
}
/*	Free machine-code methods whose compiled methods are unmarked 
	and open PICs whose selectors are not marked, and closed PICs that 
	refer to unmarked objects. */
/* Cogit>>#freeUnmarkedMachineCode */
void
freeUnmarkedMachineCode(void)
{
	CogMethod *_cogMethod;
	int _freedMethod;

	_freedMethod = 0;
	_cogMethod = ((CogMethod *) methodZoneBase );
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		while (_cogMethod < (limitZony())) {
			if ((((_cogMethod->cmType)) == CMMethod) && (!(isMarkedOrPermanent((_cogMethod->methodObject))))) {
				_freedMethod = 1;
				freeMethod(_cogMethod);
			}
			if ((((_cogMethod->cmType)) == CMMegamorphicIC) && ((!(isImmediate((_cogMethod->selector)))) && (!(isMarkedOrPermanent((_cogMethod->selector)))))) {
				_freedMethod = 1;
				freeMethod(_cogMethod);
			}
			if ((((_cogMethod->cmType)) == CMPolymorphicIC) && (closedPICRefersToUnmarkedObject(_cogMethod))) {
				_freedMethod = 1;
				freeMethod(_cogMethod);
			}
			_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
		}
		if (_freedMethod) {
			unlinkSendsToFree();
		}
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
		if (codeModified) {
			flushICacheFromto(((usqInt) methodZoneBase ), ((usqInt) (limitZony()) ));
		}
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
}
/*	Call ceSendMustBeBooleanTo: via the relevant trampoline. */
/* Cogit>>#genCallMustBeBooleanFor: */
static AbstractInstruction * NoDbgRegParms
genCallMustBeBooleanFor(sqInt _boolean)
{
	AbstractInstruction *_abstractInstruction;
	sqInt _callTarget;

	/* begin CallRT: */
	_callTarget = ((_boolean == (falseObject()))
		 ? ceSendMustBeBooleanAddFalseTrampoline
		 : ceSendMustBeBooleanAddTrueTrampoline);
	/* begin annotateCall: */
	_abstractInstruction = genoperand(Call, _callTarget);
	(_abstractInstruction->annotation = IsRelativeCall);
	return _abstractInstruction;
	/* end annotateCall: */
	/* end CallRT: */
}
/* Cogit>>#genCheckForInterruptsTrampoline */
static sqInt
genCheckForInterruptsTrampoline(void)
{
	sqInt _address;

	zeroOpcodeIndex();
	{
		/* begin MoveR:Aw: */
		_address = instructionPointerAddress();
		/* begin gen:operand:literal: */
		checkLiteralforInstruction(_address, genoperandoperand(MoveRAw, LinkReg, _address));
		/* end gen:operand:literal: */
		/* end MoveR:Aw: */
	}
	return genTrampolineForcallednumArgsargargargargregsToSavepushLinkRegresultRegappendOpcodes(ceCheckForInterrupts, "ceCheckForInterruptsTrampoline", 0, null, null, null, null, 0, 0, NoReg, 1);
}
/* Cogit>>#genConditionalBranch:operand: */
static AbstractInstruction * NoDbgRegParms
genConditionalBranchoperand(sqInt _opcode, sqInt _operandOne)
{
	AbstractInstruction *_branch;

	/* begin noteFollowingConditionalBranch: */
	_branch = genoperand(_opcode, _operandOne);
	return _branch;
	/* end noteFollowingConditionalBranch: */
}
/*	An enilopmart (the reverse of a trampoline) is a piece of code that makes 
	the system-call-like transition from the C runtime into generated machine 
	code. The desired arguments and entry-point are pushed on a stackPage's 
	stack. The enilopmart pops off the values to be loaded into registers and 
	then executes a return instruction to pop off the entry-point and jump to 
	it.  
	BEFORE				AFTER			(stacks grow down) 
	whatever			stackPointer ->	whatever 
	target address =>	reg1 = reg1val, etc 
	reg1val				pc = target address 
	reg2val 
	stackPointer ->	reg3val */
/* Cogit>>#genEnilopmartFor:and:and:forCall:called: */
static void (*genEnilopmartForandandforCallcalled(sqInt _regArg1, sqInt _regArg2OrNone, sqInt _regArg3OrNone, sqInt _forCall, char *_trampolineName))(void)

{
	AbstractInstruction *_anInstruction;
	sqInt _endAddress;
	sqInt _enilopmart;
	sqInt _quickConstant;
	sqInt _size;

	zeroOpcodeIndex();
	{
		/* begin MoveCq:R: */
		_quickConstant = varBaseAddress();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(MoveCqR, _quickConstant, VarBaseReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_quickConstant));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveCq:R: */
	}
	genLoadStackPointers(backEnd);
	if (_regArg3OrNone != NoReg) {
		genoperand(PopR, _regArg3OrNone);
	}
	if (_regArg2OrNone != NoReg) {
		genoperand(PopR, _regArg2OrNone);
	}
	genoperand(PopR, _regArg1);
	genEnilopmartReturn(_forCall);
	computeMaximumSizes();
	_size = generateInstructionsAt(methodZoneBase);
	_endAddress = outputInstructionsAt(methodZoneBase);
	assert((methodZoneBase + _size) == _endAddress);
	_enilopmart = methodZoneBase;
	methodZoneBase = alignUptoRoutineBoundary(_endAddress);
	stopsFromto(backEnd, _endAddress, methodZoneBase - 1);
	recordGeneratedRunTimeaddress(_trampolineName, _enilopmart);
	return ((void (*)(void)) _enilopmart );
}
/*	An enilopmart (the reverse of a trampoline) is a piece of code that makes 
	the system-call-like transition from the C runtime into generated machine 
	code. At the point the enilopmart enters machine code via a return 
	instruction, any argument registers have been loaded with their values and 
	the stack, if 
	for call, looks like 
	ret pc 
	stackPointer ->	target address 
	 
	and if not for call, looks like 
	whatever 
	stackPointer ->	target address 
	 
	If forCall and running on a CISC, ret pc must be left on the stack. If 
	forCall and 
	running on a RISC, ret pc must be popped into LinkReg. In either case, 
	target address must be removed from the stack and jumped/returned to. */
/* Cogit>>#genEnilopmartReturn: */
static void NoDbgRegParms
genEnilopmartReturn(sqInt _forCall)
{
	{
		if (_forCall) {
			genoperand(PopR, RISCTempReg);
			genoperand(PopR, LinkReg);
			genoperand(JumpR, RISCTempReg);
		} else {
			{
				genoperand(PopR, PCReg);
			}
		}
	}
}
/*	Generate the routine that writes the current values of the C frame and 
	stack pointers into 
	variables. These are used to establish the C stack in trampolines back 
	into the C run-time. 
	 
	This is a presumptuous quick hack for x86. It is presumptuous for two 
	reasons. Firstly 
	the system's frame and stack pointers may differ from those we use in 
	generated code, 
	e.g. on register-rich RISCs. Secondly the ABI may not support a simple 
	frameless call 
	as written here (for example 128-bit stack alignment on Mac OS X). */
/* Cogit>>#generateCaptureCStackPointers: */
static void NoDbgRegParms
generateCaptureCStackPointers(sqInt _captureFramePointer)
{
	sqInt _startAddress;

	/* begin allocateOpcodes:bytecodes: */
	ensureAndClearAbstractOpcodes(32);
	zeroOpcodeIndexForNewOpcodes();
	labelCounter = 0;
	/* end allocateOpcodes:bytecodes: */
	_startAddress = methodZoneBase;
	genCaptureCStackPointers(backEnd, _captureFramePointer);
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		outputInstructionsForGeneratedRuntimeAt(_startAddress);
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
		flushICacheFromto(((usqInt) _startAddress ), ((usqInt) methodZoneBase ));
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	recordGeneratedRunTimeaddress("ceCaptureCStackPointers", _startAddress);
	ceCaptureCStackPointers = ((void (*)(void)) _startAddress );
}
/*	Generate the prototype ClosedPIC to determine how much space as full PIC 
	takes. When we first allocate a closed PIC it only has one or two cases 
	and we want to grow it. 
	So we have to determine how big a full one is before hand. */
/* Cogit>>#generateClosedPICPrototype */
static void
generateClosedPICPrototype(void)
{
	AbstractInstruction * cPICEndOfCodeLabel;
	AbstractInstruction * endCPICCase1;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	CogMethod *_cPIC;
	sqInt _endAddress;
	sqInt _h;
	AbstractInstruction *_jumpNext;
	sqInt _jumpTarget;
	sqInt _jumpTarget2;
	sqInt _jumpTarget3;
	int _numArgs;
	sqInt _opcode;
	sqInt _operandOne;
	sqInt _wordConstant;
	sqInt _wordConstant2;

	/* begin allocateOpcodes:bytecodes: */
	ensureAndClearAbstractOpcodes(MaxCPICCases * 9);
	zeroOpcodeIndexForNewOpcodes();
	labelCounter = 0;
	/* end allocateOpcodes:bytecodes: */
	{
		(methodLabel->address = methodZoneBase);
		(methodLabel->dependent = null);
	}
	/* begin compilePolymorphicICPrototype */
	compilePICAbort((_numArgs = 0));
	_jumpNext = compileCPICEntry();
	/* begin MoveUniqueCw:R: */
	_wordConstant2 = firstPrototypeMethodOop();
	/* begin uniqueLiteral:forInstruction: */
	_anInstruction2 = genoperandoperand(MoveCwR, _wordConstant2, SendNumArgsReg);
	assert(usesOutOfLineLiteral(_anInstruction2));
	(_anInstruction2->dependent = allocateLiteral(_wordConstant2));
	/* end uniqueLiteral:forInstruction: */
	/* end MoveUniqueCw:R: */
	/* begin JumpLong: */
	_jumpTarget2 = (((methodZoneBase + (youngReferrers())) / 2) - 13262352) + 13262352;
	genoperand(JumpLong, _jumpTarget2);
	/* end JumpLong: */
	endCPICCase0 = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
	for (_h = 1; _h < MaxCPICCases; _h += 1) {
		if (_h == (MaxCPICCases - 1)) {
			jmpTarget(_jumpNext, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
		}
		/* begin MoveUniqueCw:R: */
		_wordConstant = (subsequentPrototypeMethodOop()) + _h;
		/* begin uniqueLiteral:forInstruction: */
		_anInstruction = genoperandoperand(MoveCwR, _wordConstant, SendNumArgsReg);
		assert(usesOutOfLineLiteral(_anInstruction));
		(_anInstruction->dependent = allocateLiteral(_wordConstant));
		/* end uniqueLiteral:forInstruction: */
		/* end MoveUniqueCw:R: */
		/* begin gen:literal:operand: */
		_opcode = CmpCwR;
		checkLiteralforInstruction(3133021973U + _h, genoperandoperand(_opcode, 3133021973U + _h, TempReg));
		/* end gen:literal:operand: */
		/* begin JumpLongZero: */
		_jumpTarget = ((((methodZoneBase + (youngReferrers())) / 2) - 13262352) + 13262352) + (_h * 16);
		genConditionalBranchoperand(JumpLongZero, ((sqInt) _jumpTarget ));
		/* end JumpLongZero: */
		if (_h == 1) {
			endCPICCase1 = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
		}
	}
	/* begin gen:literal:operand: */
	_operandOne = (methodLabel->address);
	checkLiteralforInstruction(_operandOne, genoperandoperand(MoveCwR, _operandOne, ClassReg));
	/* end gen:literal:operand: */
	/* begin JumpLong: */
	_jumpTarget3 = cPICMissTrampolineFor(_numArgs);
	genoperand(JumpLong, _jumpTarget3);
	/* end JumpLong: */
	cPICEndOfCodeLabel = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
	dumpLiterals(0);
	/* end compilePolymorphicICPrototype */
	computeMaximumSizes();
	_cPIC = ((CogMethod *) methodZoneBase );
	closedPICSize = (sizeof(CogMethod)) + (generateInstructionsAt(methodZoneBase + (sizeof(CogMethod))));
	/* begin enableCodeZoneWriteDuring: */
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		_endAddress = outputInstructionsAt(methodZoneBase + (sizeof(CogMethod)));
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	/* end enableCodeZoneWriteDuring: */
	assert((methodZoneBase + closedPICSize) == _endAddress);
	firstCPICCaseOffset = ((endCPICCase0->address)) - methodZoneBase;
	cPICEndOfCodeOffset = ((cPICEndOfCodeLabel->address)) - methodZoneBase;
	cPICCaseSize = ((endCPICCase1->address)) - ((endCPICCase0->address));
	cPICEndSize = closedPICSize - (((MaxCPICCases - 1) * cPICCaseSize) + firstCPICCaseOffset);
	closedPICSize = roundUpLength(closedPICSize);
	assert(((picInterpretAbort->address)) == (((methodLabel->address)) + (picInterpretAbortOffset())));
	/* begin enableCodeZoneWriteDuring: */
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		assert((expectedClosedPICPrototype(_cPIC)) == 0);
		storeLiteralbeforeFollowingAddress(backEnd, 0, ((endCPICCase0->address)) - (jumpLongByteSize(backEnd)));
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	/* end enableCodeZoneWriteDuring: */
	methodZoneBase = alignUptoRoutineBoundary(_endAddress);
	cPICPrototype = _cPIC;
}
/*	We handle jump sizing simply. First we make a pass that asks each 
	instruction to compute its maximum size. Then we make a pass that 
	sizes jumps based on the maxmimum sizes. Then we make a pass 
	that fixes up jumps. When fixing up a jump the jump is not allowed to 
	choose a smaller offset but must stick to the size set in the second pass. */
/* Cogit>>#generateCogFullBlock */
static CogMethod *
generateCogFullBlock(void)
{
	CogMethod *method;
	sqInt _codeSize;
	usqIntptr_t _headerSize;
	sqInt _mapSize;
	sqInt _result;
	usqInt _startAddress;
	sqInt _totalSize;

	_headerSize = sizeof(CogMethod);
	(methodLabel->address = freeStart());
	computeMaximumSizes();
	concretizeAt(methodLabel, freeStart());
	/* begin enableCodeZoneWriteDuring: */
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		_codeSize = generateInstructionsAt(((methodLabel->address)) + _headerSize);
		_mapSize = generateMapAtstart(null, ((methodLabel->address)) + cbNoSwitchEntryOffset);
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	/* end enableCodeZoneWriteDuring: */
	_totalSize = roundUpLength((_headerSize + _codeSize) + _mapSize);
	if (_totalSize > MaxMethodSize) {
		return ((CogMethod *) MethodTooBig );
	}
	_startAddress = allocate(_totalSize);
	if (_startAddress == 0) {
		return ((CogMethod *) InsufficientCodeSpace );
	}
	assert((_startAddress + cbEntryOffset) == ((fullBlockEntry->address)));
	assert((_startAddress + cbNoSwitchEntryOffset) == ((fullBlockNoContextSwitchEntry->address)));
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		_result = outputInstructionsAt(_startAddress + _headerSize);
		assert(((_startAddress + _headerSize) + _codeSize) == _result);
		padIfPossibleWithStopsFromto(backEnd, _result, ((_startAddress + _totalSize) - _mapSize) - 1);
		generateMapAtstart((_startAddress + _totalSize) - 1, _startAddress + cbNoSwitchEntryOffset);
		flag("TOCHECK");
		method = fillInMethodHeadersizeselector(((CogMethod *) _startAddress ), _totalSize, nilObject());
		(method->cpicHasMNUCaseOrCMIsFullBlock = 1);
		if (postCompileHook) {
			postCompileHook(method);
			postCompileHook = null;
		}
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
		flushICacheFromto(((usqInt) method ), ((usqInt) method ) + _totalSize);
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	return method;
}
/*	We handle jump sizing simply. First we make a pass that asks each 
	instruction to compute its maximum size. Then we make a pass that 
	sizes jumps based on the maxmimum sizes. Then we make a pass 
	that fixes up jumps. When fixing up a jump the jump is not allowed to 
	choose a smaller offset but must stick to the size set in the second pass. */
/* Cogit>>#generateCogMethod: */
static CogMethod * NoDbgRegParms
generateCogMethod(sqInt _selector)
{
	CogMethod *method;
	sqInt _codeSize;
	usqIntptr_t _headerSize;
	sqInt _mapSize;
	sqInt _result;
	usqInt _startAddress;
	sqInt _totalSize;

	_headerSize = sizeof(CogMethod);
	(methodLabel->address = freeStart());
	computeMaximumSizes();
	concretizeAt(methodLabel, freeStart());
	/* begin enableCodeZoneWriteDuring: */
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		_codeSize = generateInstructionsAt(((methodLabel->address)) + _headerSize);
		_mapSize = generateMapAtstart(null, ((methodLabel->address)) + cmNoCheckEntryOffset);
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	/* end enableCodeZoneWriteDuring: */
	_totalSize = roundUpLength((_headerSize + _codeSize) + _mapSize);
	if (_totalSize > MaxMethodSize) {
		return ((CogMethod *) MethodTooBig );
	}
	_startAddress = allocate(_totalSize);
	if (_startAddress == 0) {
		return ((CogMethod *) InsufficientCodeSpace );
	}
	assert((_startAddress + cmEntryOffset) == ((entry->address)));
	assert((_startAddress + cmNoCheckEntryOffset) == ((noCheckEntry->address)));
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		_result = outputInstructionsAt(_startAddress + _headerSize);
		assert(((_startAddress + _headerSize) + _codeSize) == _result);
		padIfPossibleWithStopsFromto(backEnd, _result, ((_startAddress + _totalSize) - _mapSize) - 1);
		generateMapAtstart((_startAddress + _totalSize) - 1, _startAddress + cmNoCheckEntryOffset);
		method = fillInMethodHeadersizeselector(((CogMethod *) _startAddress ), _totalSize, _selector);
		if (postCompileHook) {
			postCompileHook(method);
			postCompileHook = null;
		}
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
		flushICacheFromto(((usqInt) method ), ((usqInt) method ) + _totalSize);
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	return method;
}
/*	Generate the method map at addressrNull (or compute it if addressOrNull is 
	null). Answer the length of the map in byes. Each entry in the map is in 
	two parts. In the 
	least signficant bits are a displacement of how far from the start or 
	previous entry, 
	unless it is an IsAnnotationExtension byte, in which case those bits are 
	the extension. 
	In the most signficant bits are the type of annotation at the point 
	reached. A null 
	byte ends the map. */
/* Cogit>>#generateMapAt:start: */
static sqInt NoDbgRegParms
generateMapAtstart(usqInt _addressOrNull, usqInt _startAddress)
{
	unsigned char _annotation;
	sqInt _delta;
	sqInt _i;
	AbstractInstruction *_instruction;
	int _length;
	usqInt _location;
	sqInt _mapEntry;
	sqInt _maxDelta;
	usqInt _mcpc;

	_length = 0;
	_location = _startAddress;
	for (_i = 0; _i < opcodeIndex; _i += 1) {
		_instruction = abstractInstructionAt(_i);
		{
			_annotation = (_instruction->annotation);
			if (!(_annotation == null)) {
				/* begin assertValidAnnotation:for: */
				assert((_annotation != (getIsObjectReference())) || (((_instruction->opcode)) == Literal));
				/* end assertValidAnnotation:for: */
				_mcpc = ((((_instruction->opcode)) == Literal)
					 ? (_instruction->address)
					 : ((_instruction->address)) + ((_instruction->machineCodeSize)));
				while (((_delta = (_mcpc - _location) / 4)) > DisplacementMask) {
					_maxDelta = ((((_delta < MaxX2NDisplacement) ? _delta : MaxX2NDisplacement)) | DisplacementMask) - DisplacementMask;
					assert((((usqInt) _maxDelta ) >> AnnotationShift) <= DisplacementMask);
					if (_addressOrNull) {
						/* begin addToMap:instruction:byte:at:for: */
						byteAtput(_addressOrNull - _length, (((usqInt) _maxDelta ) >> AnnotationShift) + DisplacementX2N);
						/* end addToMap:instruction:byte:at:for: */
					}
					_location += _maxDelta * 4;
					_length += 1;
				}
				if (_addressOrNull) {
					_mapEntry = _delta + ((sqInt) (((usqInt) (((_annotation < IsSendCall) ? _annotation : IsSendCall)) ) << AnnotationShift) );
					/* begin addToMap:instruction:byte:at:for: */
					byteAtput(_addressOrNull - _length, _mapEntry);
					/* end addToMap:instruction:byte:at:for: */
				}
				_location += _delta * 4;
				_length += 1;
				if (_annotation > IsSendCall) {
					if (_addressOrNull) {
						_mapEntry = ((int) (((usqInt) IsAnnotationExtension ) << AnnotationShift) ) + (_annotation - IsSendCall);
						/* begin addToMap:instruction:byte:at:for: */
						byteAtput(_addressOrNull - _length, _mapEntry);
						/* end addToMap:instruction:byte:at:for: */
					}
					_length += 1;
				}
			}
		}
	}
	if (_addressOrNull) {
		/* begin addToMap:instruction:byte:at:for: */
		byteAtput(_addressOrNull - _length, MapEnd);
		/* end addToMap:instruction:byte:at:for: */
	}
	return _length + 1;
}
/*	Generate the prototype ClosedPIC to determine how much space as full PIC 
	takes. When we first allocate a closed PIC it only has one or two cases 
	and we want to grow it. 
	So we have to determine how big a full one is before hand.stack allocate the various collections so that they 
	are effectively garbage collected on return. */
/* Cogit>>#generateOpenPICPrototype */
static void
generateOpenPICPrototype(void)
{
	sqInt _codeSize;
	sqInt _mapSize;

	/* begin allocateOpcodes:bytecodes: */
	ensureAndClearAbstractOpcodes(100);
	zeroOpcodeIndexForNewOpcodes();
	labelCounter = 0;
	/* end allocateOpcodes:bytecodes: */
	{
		(methodLabel->address = methodZoneBase);
		(methodLabel->dependent = null);
	}
	compileOpenPICnumArgs(specialSelector(0), 2);
	computeMaximumSizes();
	concretizeAt(methodLabel, methodZoneBase);
	/* begin enableCodeZoneWriteDuring: */
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		_codeSize = generateInstructionsAt(methodZoneBase + (sizeof(CogMethod)));
		_mapSize = generateMapAtstart(null, methodZoneBase + cmNoCheckEntryOffset);
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	/* end enableCodeZoneWriteDuring: */
	openPICSize = (roundUpLength((sizeof(CogMethod)) + _codeSize)) + (roundUpLength(_mapSize));
}
/* Cogit>>#generateReturnToInterpreterPCTrampoline */
static void
generateReturnToInterpreterPCTrampoline(void)
{
	ceReturnToInterpreterTrampoline = genReturnTrampolineForcalledarg(ceReturnToInterpreter, "ceReturnToInterpreterTrampoline", ReceiverResultReg);
}
/*	Generate the run-time entries at the base of the native code zone and 
	update the base. */
/* Cogit>>#generateRunTimeTrampolines */
static void
generateRunTimeTrampolines(void)
{
	sqInt ceFreeTrampoline;
	sqInt ceMallocTrampoline;

	ceSendMustBeBooleanAddFalseTrampoline = genMustBeBooleanTrampolineForcalled(falseObject(), "ceSendMustBeBooleanAddFalseTrampoline");
	ceSendMustBeBooleanAddTrueTrampoline = genMustBeBooleanTrampolineForcalled(trueObject(), "ceSendMustBeBooleanAddTrueTrampoline");
	ceNonLocalReturnTrampoline = genNonLocalReturnTrampoline();
	ceCheckForInterruptTrampoline = genCheckForInterruptsTrampoline();
	ceFetchContextInstVarTrampoline = genTrampolineForcalledargargresult(ceContextinstVar, "ceFetchContextInstVarTrampoline", ReceiverResultReg, SendNumArgsReg, SendNumArgsReg);
	ceStoreContextInstVarTrampoline = genTrampolineForcalledargargargresult(ceContextinstVarvalue, "ceStoreContextInstVarTrampoline", ReceiverResultReg, SendNumArgsReg, ClassReg, ReceiverResultReg);
	ceCannotResumeTrampoline = genTrampolineForcalled(ceCannotResume, "ceCannotResumeTrampoline");
	ceBaseFrameReturnTrampoline = genReturnTrampolineForcalledarg(ceBaseFrameReturn, "ceBaseFrameReturnTrampoline", ReceiverResultReg);
	generateReturnToInterpreterPCTrampoline();
	ceMallocTrampoline = genTrampolineForcalledargresult(ceMalloc, "ceMallocTrampoline", ReceiverResultReg, TempReg);
	ceFreeTrampoline = genTrampolineForcalledarg(ceFree, "ceFreeTrampoline", ReceiverResultReg);
}
/*	Generate a routine ceCaptureCStackPointers that will capture the C stack 
	pointer, and, if it is in use, the C frame pointer. These are used in 
	trampolines to call 
	run-time routines in the interpreter from machine-code. */
/* Cogit>>#generateStackPointerCapture */
static void
generateStackPointerCapture(void)
{
	sqInt _oldMethodZoneBase;
	sqInt _oldTrampolineTableIndex;

	cFramePointerInUse = 0;
	assertCStackWellAligned();
	_oldMethodZoneBase = methodZoneBase;
	_oldTrampolineTableIndex = trampolineTableIndex;
	generateCaptureCStackPointers(1);
	ceCaptureCStackPointers();
	if (!((cFramePointerInUse = checkCFramePointerInUse()))) {
		methodZoneBase = _oldMethodZoneBase;
		trampolineTableIndex = _oldTrampolineTableIndex;
		generateCaptureCStackPointers(0);
	}
	assertCStackWellAligned();
}
/*	Generate the run-time entries and exits at the base of the native code 
	zone and update the base. 
	Read the class-side method trampolines for documentation on the various 
	trampolines  */
/* Cogit>>#generateTrampolines */
static void
generateTrampolines(void)
{
	sqInt _methodZoneStart;

	_methodZoneStart = methodZoneBase;
	(methodLabel->address = _methodZoneStart);
	/* begin allocateOpcodes:bytecodes: */
	ensureAndClearAbstractOpcodes(80);
	zeroOpcodeIndexForNewOpcodes();
	labelCounter = 0;
	/* end allocateOpcodes:bytecodes: */
	hasYoungReferent = 0;
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		generateSendTrampolines();
		generateMissAbortTrampolines();
		generateObjectRepresentationTrampolines();
		generateRunTimeTrampolines();
		generateEnilopmarts();
		generateTracingTrampolines();
		recordGeneratedRunTimeaddress("methodZoneBase", methodZoneBase);
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
		flushICacheFromto(((usqInt) _methodZoneStart ), ((usqInt) methodZoneBase ));
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
}
/* Cogit>>#generatorForPC: */
static BytecodeDescriptor * NoDbgRegParms
generatorForPC(sqInt _pc)
{
	return generatorAt(fetchByteofObject(_pc, methodObj));
}
/*	Generate a routine that answers the stack pointer immedately 
	after a leaf call, used for checking stack pointer alignment. */
/* Cogit>>#genGetLeafCallStackPointer */
static void
genGetLeafCallStackPointer(void)
{
	sqInt _startAddress;

	/* begin allocateOpcodes:bytecodes: */
	ensureAndClearAbstractOpcodes(4);
	zeroOpcodeIndexForNewOpcodes();
	labelCounter = 0;
	/* end allocateOpcodes:bytecodes: */
	_startAddress = methodZoneBase;
	{
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, FPReg, R0);
		/* end MoveR:R: */
		genoperand(RetN, 0);
	}
	outputInstructionsForGeneratedRuntimeAt(_startAddress);
	recordGeneratedRunTimeaddress("ceGetFP", _startAddress);
	ceGetFP = ((usqIntptr_t (*)(void)) _startAddress );
	_startAddress = methodZoneBase;
	zeroOpcodeIndex();
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, SPReg, R0);
	/* end MoveR:R: */
	genoperand(RetN, 0);
	outputInstructionsForGeneratedRuntimeAt(_startAddress);
	recordGeneratedRunTimeaddress("ceGetSP", _startAddress);
	ceGetSP = ((usqIntptr_t (*)(void)) _startAddress );
}
/*	Generate the abort for a PIC. This abort performs either a call of 
	ceInterpretMethodFromPIC:receiver: to handle invoking an uncogged target 
	or a call of ceMNUFromPICMNUMethod:receiver: to handle an MNU dispatch 
	in a closed PIC. It distinguishes the two by testing ClassReg. If the 
	register is zero then this is an MNU. 
	 
	This poses a problem in 32-bit Spur, where zero is the cache tag for 
	immediate characters (tag pattern 2r10) because SmallIntegers have tag 
	patterns 2r11 
	and 2r01, so anding with 1 reduces these to 0 & 1. We solve the ambiguity 
	by patching send sites with a 0 cache tag to open PICs instead of closed 
	PICs.  */
/* Cogit>>#genInnerPICAbortTrampoline: */
static sqInt NoDbgRegParms
genInnerPICAbortTrampoline(char *_name)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_jumpMNUCase;

	/* begin CmpCq:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(CmpCqR, 0, ClassReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	_jumpMNUCase = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	compileTrampolineFornumArgsargargargargregsToSavepushLinkRegresultReg(ceInterpretMethodFromPICreceiver, 2, SendNumArgsReg, ReceiverResultReg, null, null, 0, 0, NoReg);
	jmpTarget(_jumpMNUCase, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	return genTrampolineForcallednumArgsargargargargregsToSavepushLinkRegresultRegappendOpcodes(ceMNUFromPICMNUMethodreceiver, _name, 2, SendNumArgsReg, ReceiverResultReg, null, null, 0, 0, NoReg, 1);
}
/* Cogit>>#genLoadCStackPointersForPrimCall */
static sqInt
genLoadCStackPointersForPrimCall(void)
{
	sqInt _address;
	sqInt _address2;
	sqInt _address3;
	AbstractInstruction *_anInstruction;
	sqInt _reg;
	sqInt _reg2;

	if (debugPrimCallStackOffset == 0) {
		/* begin MoveAw:R: */
		_address = cStackPointerAddress();
		_reg = cStackPointer(backEnd);
		/* begin gen:literal:operand: */
		checkLiteralforInstruction(_address, genoperandoperand(MoveAwR, _address, _reg));
		/* end gen:literal:operand: */
		/* end MoveAw:R: */
	} else {
		/* begin MoveAw:R: */
		_address2 = cStackPointerAddress();
		/* begin gen:literal:operand: */
		checkLiteralforInstruction(_address2, genoperandoperand(MoveAwR, _address2, TempReg));
		/* end gen:literal:operand: */
		/* end MoveAw:R: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(SubCqR, debugPrimCallStackOffset, TempReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(debugPrimCallStackOffset));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin MoveR:R: */
		_reg2 = cStackPointer(backEnd);
		genoperandoperand(MoveRR, TempReg, _reg2);
		/* end MoveR:R: */
	}
	if (cFramePointerInUse) {
		/* begin MoveAw:R: */
		_address3 = cFramePointerAddress();
		/* begin gen:literal:operand: */
		checkLiteralforInstruction(_address3, genoperandoperand(MoveAwR, _address3, FPReg));
		/* end gen:literal:operand: */
		/* end MoveAw:R: */
	}
	return 0;
}
/*	The in-line cache for a send is implemented as a constant load into 
	ClassReg. We always use a 32-bit load, even in 64-bits. 
	 
	In the initial (unlinked) state the in-line cache is notionally loaded 
	with the selector. 
	But since in 64-bits an arbitrary selector oop won't fit in a 32-bit 
	constant load, we 
	instead load the cache with the selector's index, either into the literal 
	frame of the 
	current method, or into the special selector array. Negative values are 
	1-relative indices into the special selector array. 
	 
	When a send is linked, the load of the selector, or selector index, is 
	overwritten with a 
	load of the receiver's class, or class tag. Hence, the 64-bit VM is 
	currently constrained 
	to use class indices as cache tags. If out-of-line literals are used, 
	distinct caches /must 
	not/ share acche locations, for if they do, send cacheing will be confused 
	by the sharing. 
	Hence we use the MoveUniqueC32:R: instruction that will not share literal 
	locations.  */
/* Cogit>>#genLoadInlineCacheWithSelector: */
static void NoDbgRegParms
genLoadInlineCacheWithSelector(sqInt _selectorIndex)
{
	AbstractInstruction *_anInstruction;
	sqInt _cacheValue;
	sqInt _selector;

	assert(((_selectorIndex < 0)
		 ? (-_selectorIndex >= 1) && (-_selectorIndex <= (numSpecialSelectors()))
		 : (_selectorIndex >= 0) && (_selectorIndex <= ((literalCountOf(methodObj)) - 1))));
	{
		_selector = ((_selectorIndex < 0)
			 ? specialSelector(-1 - _selectorIndex)
			 : getLiteral(_selectorIndex));
		assert(addressCouldBeOop(_selector));
		if (isYoung(_selector)) {
			hasYoungReferent = 1;
		}
		_cacheValue = _selector;
	}
	/* begin uniqueLiteral:forInstruction: */
	_anInstruction = genoperandoperand(MovePatcheableC32R, _cacheValue, ClassReg);
	assert(usesOutOfLineLiteral(_anInstruction));
	(_anInstruction->dependent = allocateLiteral(_cacheValue));
	/* end uniqueLiteral:forInstruction: */
}
/* Cogit>>#genNonLocalReturnTrampoline */
static sqInt
genNonLocalReturnTrampoline(void)
{
	sqInt _address;

	zeroOpcodeIndex();
	{
		/* begin MoveR:Aw: */
		_address = instructionPointerAddress();
		/* begin gen:operand:literal: */
		checkLiteralforInstruction(_address, genoperandoperand(MoveRAw, LinkReg, _address));
		/* end gen:operand:literal: */
		/* end MoveR:Aw: */
	}
	return genTrampolineForcallednumArgsargargargargregsToSavepushLinkRegresultRegappendOpcodes(ceNonLocalReturn, "ceNonLocalReturnTrampoline", 1, ReceiverResultReg, null, null, null, 0, 0, NoReg, 1);
}
/*	Generate a trampoline for a routine used as a return address, that has one 
	argument. Hack: a negative value indicates an abstract register, a 
	non-negative value indicates a constant. */
/* Cogit>>#genReturnTrampolineFor:called:arg: */
static sqInt NoDbgRegParms
genReturnTrampolineForcalledarg(void *_aRoutine, char *_aString, sqInt _regOrConst0)
{
	return genTrampolineForcallednumArgsargargargargregsToSavepushLinkRegresultRegappendOpcodes(_aRoutine, _aString, 1, _regOrConst0, null, null, null, 0, 0, NoReg, 0);
}
/*	If the client requires, then on an ARM-like RISC processor, the return 
	address needs to 
	be pushed to the stack so that the interpreter sees the same stack layout 
	as on CISC. */
/* Cogit>>#genSmalltalkToCStackSwitch: */
static sqInt NoDbgRegParms
genSmalltalkToCStackSwitch(sqInt _pushLinkReg)
{
	if (_pushLinkReg) {
		genoperand(PushR, LinkReg);
	}
	genSaveStackPointers(backEnd);
	if (cFramePointerInUse) {
		genLoadCStackPointers(backEnd);
	}
 else {
		genLoadCStackPointer(backEnd);
	}
	return 0;
}
/*	Generate a trampoline with no arguments */
/* Cogit>>#genTrampolineFor:called: */
static sqInt NoDbgRegParms
genTrampolineForcalled(void *_aRoutine, char *_aString)
{
	return genTrampolineForcallednumArgsargargargargregsToSavepushLinkRegresultRegappendOpcodes(_aRoutine, _aString, 0, null, null, null, null, 0, 1, NoReg, 0);
}
/*	Generate a trampoline with one argument. 
	Hack: a negative value indicates an abstract register, a non-negative 
	value indicates a constant. */
/* Cogit>>#genTrampolineFor:called:arg: */
static sqInt NoDbgRegParms
genTrampolineForcalledarg(void *_aRoutine, char *_aString, sqInt _regOrConst0)
{
	return genTrampolineForcallednumArgsargargargargregsToSavepushLinkRegresultRegappendOpcodes(_aRoutine, _aString, 1, _regOrConst0, null, null, null, 0, 1, NoReg, 0);
}
/*	Generate a trampoline with two arguments that answers a result. 
	Hack: a negative value indicates an abstract register, a non-negative 
	value indicates a constant. */
/* Cogit>>#genTrampolineFor:called:arg:arg:arg:result: */
static sqInt NoDbgRegParms
genTrampolineForcalledargargargresult(void *_aRoutine, char *_aString, sqInt _regOrConst0, sqInt _regOrConst1, sqInt _regOrConst2, sqInt _resultReg)
{
	return genTrampolineForcallednumArgsargargargargregsToSavepushLinkRegresultRegappendOpcodes(_aRoutine, _aString, 3, _regOrConst0, _regOrConst1, _regOrConst2, null, 0, 1, _resultReg, 0);
}
/*	Generate a trampoline with two arguments. 
	Hack: a negative value indicates an abstract register, a non-negative 
	value indicates a constant. */
/* Cogit>>#genTrampolineFor:called:arg:arg:regsToSave: */
static sqInt NoDbgRegParms
genTrampolineForcalledargargregsToSave(void *_aRoutine, char *_aString, sqInt _regOrConst0, sqInt _regOrConst1, sqInt _regMask)
{
	return genTrampolineForcallednumArgsargargargargregsToSavepushLinkRegresultRegappendOpcodes(_aRoutine, _aString, 2, _regOrConst0, _regOrConst1, null, null, _regMask, 1, NoReg, 0);
}
/*	Generate a trampoline with two arguments that answers a result. 
	Hack: a negative value indicates an abstract register, a non-negative 
	value indicates a constant. */
/* Cogit>>#genTrampolineFor:called:arg:arg:result: */
static sqInt NoDbgRegParms
genTrampolineForcalledargargresult(void *_aRoutine, char *_aString, sqInt _regOrConst0, sqInt _regOrConst1, sqInt _resultReg)
{
	return genTrampolineForcallednumArgsargargargargregsToSavepushLinkRegresultRegappendOpcodes(_aRoutine, _aString, 2, _regOrConst0, _regOrConst1, null, null, 0, 1, _resultReg, 0);
}
/*	Generate a trampoline with one argument. 
	Hack: a negative value indicates an abstract register, a non-negative 
	value indicates a constant. */
/* Cogit>>#genTrampolineFor:called:arg:regsToSave: */
static sqInt NoDbgRegParms
genTrampolineForcalledargregsToSave(void *_aRoutine, char *_aString, sqInt _regOrConst0, sqInt _regMask)
{
	return genTrampolineForcallednumArgsargargargargregsToSavepushLinkRegresultRegappendOpcodes(_aRoutine, _aString, 1, _regOrConst0, null, null, null, _regMask, 1, NoReg, 0);
}
/*	Generate a trampoline with one argument that answers a result. 
	Hack: a negative value indicates an abstract register, a non-negative 
	value indicates a constant. */
/* Cogit>>#genTrampolineFor:called:arg:result: */
static sqInt NoDbgRegParms
genTrampolineForcalledargresult(void *_aRoutine, char *_aString, sqInt _regOrConst0, sqInt _resultReg)
{
	return genTrampolineForcallednumArgsargargargargregsToSavepushLinkRegresultRegappendOpcodes(_aRoutine, _aString, 1, _regOrConst0, null, null, null, 0, 1, _resultReg, 0);
}
/*	Generate a trampoline with up to four arguments. Generate either a call or 
	a jump to aRoutineOrNil 
	as requested by callJumpBar. If generating a call and resultRegOrNone is 
	not NoReg pass the C result 
	back in resultRegOrNone. 
	Hack: a negative value indicates an abstract register, a non-negative 
	value indicates a constant. */
/* Cogit>>#genTrampolineFor:called:numArgs:arg:arg:arg:arg:regsToSave:pushLinkReg:resultReg:appendOpcodes: */
static sqInt NoDbgRegParms
genTrampolineForcallednumArgsargargargargregsToSavepushLinkRegresultRegappendOpcodes(void *_aRoutine, char *_trampolineName, sqInt _numArgs, sqInt _regOrConst0, sqInt _regOrConst1, sqInt _regOrConst2, sqInt _regOrConst3, sqInt _regMask, sqInt _pushLinkReg, sqInt _resultRegOrNone, sqInt _appendBoolean)
{
	sqInt _startAddress;

	_startAddress = methodZoneBase;
	if (!_appendBoolean) {
		zeroOpcodeIndex();
	}
	compileTrampolineFornumArgsargargargargregsToSavepushLinkRegresultReg(_aRoutine, _numArgs, _regOrConst0, _regOrConst1, _regOrConst2, _regOrConst3, _regMask, _pushLinkReg, _resultRegOrNone);
	outputInstructionsForGeneratedRuntimeAt(_startAddress);
	recordGeneratedRunTimeaddress(_trampolineName, _startAddress);
	recordRunTimeObjectReferences();
	return _startAddress;
}
/*	Generate a trampoline with no arguments */
/* Cogit>>#genTrampolineFor:called:regsToSave: */
static sqInt NoDbgRegParms
genTrampolineForcalledregsToSave(void *_aRoutine, char *_aString, sqInt _regMask)
{
	return genTrampolineForcallednumArgsargargargargregsToSavepushLinkRegresultRegappendOpcodes(_aRoutine, _aString, 0, null, null, null, null, _regMask, 1, NoReg, 0);
}
/*	<Integer> */
/* Cogit>>#gen: */
static AbstractInstruction * NoDbgRegParms
gen(sqInt _opcode)
{
	AbstractInstruction *_abstractInstruction;

	assert(opcodeIndex < numAbstractOpcodes);
	_abstractInstruction = abstractInstructionAt(opcodeIndex);
	opcodeIndex += 1;
	(_abstractInstruction->opcode = _opcode);
	return _abstractInstruction;
}
/*	<Integer|CogAbstractInstruction> */
/* Cogit>>#gen:operand: */
static AbstractInstruction * NoDbgRegParms
genoperand(sqInt _opcode, sqInt _operand)
{
	AbstractInstruction *_abstractInstruction;

	assert(opcodeIndex < numAbstractOpcodes);
	_abstractInstruction = abstractInstructionAt(opcodeIndex);
	opcodeIndex += 1;
	(_abstractInstruction->opcode = _opcode);
	(_abstractInstruction->operands)[0] = _operand;
	return _abstractInstruction;
}
/*	<Integer|CogAbstractInstruction> */
/* Cogit>>#gen:operand:operand: */
static AbstractInstruction * NoDbgRegParms
genoperandoperand(sqInt _opcode, sqInt _operandOne, sqInt _operandTwo)
{
	AbstractInstruction *_abstractInstruction;

	assert(opcodeIndex < numAbstractOpcodes);
	_abstractInstruction = abstractInstructionAt(opcodeIndex);
	opcodeIndex += 1;
	(_abstractInstruction->opcode = _opcode);
	(_abstractInstruction->operands)[0] = _operandOne;
	(_abstractInstruction->operands)[1] = _operandTwo;
	return _abstractInstruction;
}
/*	<Integer|CogAbstractInstruction> */
/* Cogit>>#gen:operand:operand:operand: */
static AbstractInstruction * NoDbgRegParms
genoperandoperandoperand(sqInt _opcode, sqInt _operandOne, sqInt _operandTwo, sqInt _operandThree)
{
	AbstractInstruction *_abstractInstruction;

	assert(opcodeIndex < numAbstractOpcodes);
	_abstractInstruction = abstractInstructionAt(opcodeIndex);
	opcodeIndex += 1;
	(_abstractInstruction->opcode = _opcode);
	(_abstractInstruction->operands)[0] = _operandOne;
	(_abstractInstruction->operands)[1] = _operandTwo;
	(_abstractInstruction->operands)[2] = _operandThree;
	return _abstractInstruction;
}
/*	<Integer|CogAbstractInstruction> */
/* Cogit>>#gen:operand:operand:operand:operand: */
static AbstractInstruction * NoDbgRegParms
genoperandoperandoperandoperand(sqInt _opcode, sqInt _operandOne, sqInt _operandTwo, sqInt _operandThree, sqInt _operandFour)
{
	AbstractInstruction *_abstractInstruction;

	assert(opcodeIndex < numAbstractOpcodes);
	_abstractInstruction = abstractInstructionAt(opcodeIndex);
	opcodeIndex += 1;
	(_abstractInstruction->opcode = _opcode);
	(_abstractInstruction->operands)[0] = _operandOne;
	(_abstractInstruction->operands)[1] = _operandTwo;
	(_abstractInstruction->operands)[2] = _operandThree;
	(_abstractInstruction->operands)[3] = _operandFour;
	return _abstractInstruction;
}
/* Cogit>>#getBlockCompilationCount */
sqInt
getBlockCompilationCount(void)
{
	return ((((usqInt) statCompileFullBlockCount ) << 1) | 1);
}
/* Cogit>>#getBlockCompilationMSecs */
sqInt
getBlockCompilationMSecs(void)
{
	return ((((usqInt) ((statCompileFullBlockUsecs + 500) / 1000) ) << 1) | 1);
}
/* Cogit>>#getLiteral: */
static sqInt NoDbgRegParms
getLiteral(sqInt _litIndex)
{
	if (maxLitIndex < _litIndex) {
		maxLitIndex = _litIndex;
	}
	return literalofMethod(_litIndex, methodObj);
}
/* Cogit>>#getMethodCompilationCount */
sqInt
getMethodCompilationCount(void)
{
	return ((((usqInt) statCompileMethodCount ) << 1) | 1);
}
/* Cogit>>#getMethodCompilationMSecs */
sqInt
getMethodCompilationMSecs(void)
{
	return ((((usqInt) ((statCompileMethodUsecs + 500) / 1000) ) << 1) | 1);
}
/*	Access for the literal manager. */
/* Cogit>>#getOpcodeIndex */
static sqInt
getOpcodeIndex(void)
{
	return opcodeIndex;
}
/* Cogit>>#incrementUsageOfTargetIfLinkedSend:mcpc:ignored: */
static sqInt NoDbgRegParms
incrementUsageOfTargetIfLinkedSendmcpcignored(sqInt _annotation, char *_mcpc, sqInt superfluity)
{
	sqInt _entryPoint;
	sqInt _offset2;
	CogMethod * _targetCogCode;

	if (_annotation >= IsSendCall) {
		_entryPoint = callTargetFromReturnAddress(backEnd, ((sqInt) _mcpc ));
		if (_entryPoint > methodZoneBase) {
			/* begin targetMethodAndSendTableFor:annotation:into: */
			/* begin offsetAndSendTableFor:annotation:into: */
			if (_annotation == IsSendCall) {
				_offset2 = cmEntryOffset;
			} else {
				if (_annotation == IsDirectedSuperSend) {
					_offset2 = cmNoCheckEntryOffset;
				} else {
					if (_annotation == IsDirectedSuperBindingSend) {
						_offset2 = cmNoCheckEntryOffset;
					} else {
						assert(_annotation == IsSuperSend);
						_offset2 = cmNoCheckEntryOffset;
					}
				}
			}
			{
				_targetCogCode = ((CogMethod *) (_entryPoint - _offset2) );
				{
					if (((_targetCogCode->cmUsageCount)) < (CMMaxUsageCount / 2)) {
						(_targetCogCode->cmUsageCount = ((_targetCogCode->cmUsageCount)) + 1);
					}
				}
			}
			/* end offsetAndSendTableFor:annotation:into: */
			/* end targetMethodAndSendTableFor:annotation:into: */
		}
	}
	return 0;
}
/*	Answer the value to put in an inline-cache that is being loaded with the 
	selector. Usually this is simply the selector, but in 64-bits the cache is 
	only 32-bits wide 
	and so the cache is loaded with the index of the selector. */
/* Cogit>>#indexForSelector:in:at: */
static sqInt NoDbgRegParms
indexForSelectorinat(sqInt _selector, CogMethod *_cogMethod, sqInt _mcpc)
{
	sqInt _aSpecialSelector;
	sqInt _i;
	sqInt _iLimit;
	sqInt _methodLiteral;
	sqInt _methodOop;

	assert(!(isOopForwarded(_selector)));
	assert((((usqInt) _mcpc ) > ((usqInt) _cogMethod )) && (_mcpc < (((usqInt) _cogMethod ) + ((_cogMethod->blockSize)))));
	for (_i = 0; _i < NumSpecialSelectors; _i += 1) {
		_aSpecialSelector = specialSelector(_i);
		if (isOopForwarded(_aSpecialSelector)) {
			_aSpecialSelector = followForwarded(_aSpecialSelector);
		}
		if (_selector == _aSpecialSelector) {
			return -1 - _i;
		}
	}
	_methodOop = (_cogMethod->methodObject);
	for (_i = LiteralStart, _iLimit = literalCountOfMethodHeader((_cogMethod->methodHeader)); _i <= _iLimit; _i += 1) {
		_methodLiteral = longAt(((_i * BytesPerOop) + BaseHeaderSize) + _methodOop);
		if (isOopForwarded(_methodLiteral)) {
			_methodLiteral = followForwarded(_methodLiteral);
			longAtput(((_i * BytesPerOop) + BaseHeaderSize) + _methodOop, _methodLiteral);
		}
		if (_methodLiteral == _selector) {
			assert(_selector == (literalofMethod(_i - 1, _methodOop)));
			return _i - 1;
		}
	}
	error("could not find selector in method when unlinking send site");
	return 0;
}
/*	Answer a usage count that reflects likely long-term usage. */
/* Cogit>>#initialClosedPICUsageCount */
static sqInt
initialClosedPICUsageCount(void)
{
	return CMMaxUsageCount / 2;
}
/* Cogit>>#initializeBackend */
static void
initializeBackend(void)
{
	AbstractInstruction *_existingInst;
	sqInt _i;
	sqInt _iLimit;
	AbstractInstruction *_newInst;
	AbstractInstruction *_newLiterals;

	(methodLabel->machineCodeSize = 0);
	(methodLabel->opcode = Label);
	(methodLabel->operands)[0] = 0;
	(methodLabel->operands)[1] = 0;
	{
		assert(((registerMaskFor(VarBaseReg)) & CallerSavedRegisterMask) == 0);
	}
	{
		/* begin allocateLiterals: */
		if (4 > literalsSize) {
			_newLiterals = calloc(4, sizeof(CogAbstractInstruction));
			if (literals) {
				for (_i = 0; _i < nextLiteralIndex; _i += 1) {
					_existingInst = literalInstructionAt(_i);
					_newInst = &(_newLiterals[_i]);
					cloneLiteralFrom(_newInst, _existingInst);
					assert(((_existingInst->dependent)) == null);
					(_existingInst->dependent = _newInst);
				}
				for (_i = 0, _iLimit = opcodeIndex - 1; _i <= _iLimit; _i += 1) {
					_existingInst = abstractInstructionAt(_i);
					if ((((_existingInst->dependent)) != null) && (((((_existingInst->dependent))->opcode)) == Literal)) {
						(_existingInst->dependent = (((_existingInst->dependent))->dependent));
					}
				}
			}
			free(literals);
			literals = _newLiterals;
			literalsSize = 4;
		}
		/* end allocateLiterals: */
		/* begin resetLiterals */
		firstOpcodeIndex = 1U << 16;
		nextLiteralIndex = (lastDumpedLiteralIndex = 0);
		/* end resetLiterals */
	}
}
/* Cogit>>#initializeCodeZoneFrom:upTo: */
void
initializeCodeZoneFromupTo(sqInt _startAddress, sqInt _endAddress)
{
	initializeBackend();
	/* begin enableCodeZoneWriteDuring: */
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		stopsFromto(backEnd, _startAddress, _endAddress - 1);
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	/* end enableCodeZoneWriteDuring: */
	/* begin simulationOnly: */
	/* end simulationOnly: */
	codeBase = (methodZoneBase = _startAddress);
	minValidCallAddress = (((((codeBase < (interpretAddress())) ? codeBase : interpretAddress())) < (primitiveFailAddress())) ? ((codeBase < (interpretAddress())) ? codeBase : interpretAddress()) : primitiveFailAddress());
	manageFromto(methodZoneBase, _endAddress);
	/* begin enableCodeZoneWriteDuring: */
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		/* begin maybeGenerateCheckFeatures */
		/* end maybeGenerateCheckFeatures */
		/* begin maybeGenerateICacheFlush */
		/* end maybeGenerateICacheFlush */
		genGetLeafCallStackPointer();
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	/* end enableCodeZoneWriteDuring: */
	generateStackPointerCapture();
	generateTrampolines();
	computeEntryOffsets();
	computeFullBlockEntryOffsets();
	generateClosedPICPrototype();
	manageFromto(methodZoneBase, _endAddress);
	generateOpenPICPrototype();
}
/* Cogit>>#initializePIC:atDelta:numArgs: */
static void NoDbgRegParms
initializePICatDeltanumArgs(CogMethod *_aPIC, sqInt _addrDelta, sqInt _numArgs)
{
	memcpy(_aPIC, ((CogMethod *) cPICPrototype ), closedPICSize);
	rewriteCallAttarget(backEnd, ((sqInt) _aPIC ) + missOffset, picAbortTrampolineFor(_numArgs));
	relocateMethodReferenceBeforeAddressby(backEnd, (((sqInt) _aPIC ) + cPICEndOfCodeOffset) - (jumpLongByteSize(backEnd)), _addrDelta);
	rewriteJumpLongAttarget(backEnd, ((sqInt) _aPIC ) + cPICEndOfCodeOffset, cPICMissTrampolineFor(_numArgs));
}
/*	Answer a usage count that reflects likely long-term usage. 
	Answer 1 for non-primitives or quick primitives (inst var accessors), 
	2 for methods with interpreter primitives, and 3 for compiled primitives. */
/* Cogit>>#initialMethodUsageCount */
static sqInt
initialMethodUsageCount(void)
{
	if ((primitiveIndex == 1) || (isQuickPrimitiveIndex(primitiveIndex))) {
		return 1;
	}
	if (!(((primitiveDescriptor())->primitiveGenerator))) {
		return 2;
	}
	return 3;
}
/*	Answer a usage count that reflects likely long-term usage. */
/* Cogit>>#initialOpenPICUsageCount */
static sqInt
initialOpenPICUsageCount(void)
{
	return CMMaxUsageCount - 1;
}
/*	Answer the value to put in an inline-cache that is being loaded with the 
	selector. Usually this is simply the selector, but in 64-bits the cache is 
	only 32-bits wide 
	and so the cache is loaded with the index of the selector. */
/* Cogit>>#inlineCacheValueForSelector:in:at: */
static sqInt NoDbgRegParms
inlineCacheValueForSelectorinat(sqInt _selector, CogMethod *_aCogMethod, sqInt _mcpc)
{
	return _selector;
}
/* Cogit>>#inverseBranchFor: */
static sqInt NoDbgRegParms
inverseBranchFor(sqInt _opcode)
{
	switch (_opcode) {
		case JumpLongZero:
		{
			return JumpLongNonZero;
		}
		case JumpLongNonZero:
		{
			return JumpLongZero;
		}
		case JumpZero:
		{
			return JumpNonZero;
		}
		case JumpNonZero:
		{
			return JumpZero;
		}
		case JumpNegative:
		{
			return JumpNonNegative;
		}
		case JumpNonNegative:
		{
			return JumpNegative;
		}
		case JumpOverflow:
		{
			return JumpNoOverflow;
		}
		case JumpNoOverflow:
		{
			return JumpOverflow;
		}
		case JumpCarry:
		{
			return JumpNoCarry;
		}
		case JumpNoCarry:
		{
			return JumpCarry;
		}
		case JumpLess:
		{
			return JumpGreaterOrEqual;
		}
		case JumpGreaterOrEqual:
		{
			return JumpLess;
		}
		case JumpGreater:
		{
			return JumpLessOrEqual;
		}
		case JumpLessOrEqual:
		{
			return JumpGreater;
		}
		case JumpBelow:
		{
			return JumpAboveOrEqual;
		}
		case JumpAboveOrEqual:
		{
			return JumpBelow;
		}
		case JumpAbove:
		{
			return JumpBelowOrEqual;
		}
		case JumpBelowOrEqual:
		{
			return JumpAbove;
		}
		default:
		error("Case not found and no otherwise clause");
	}
	error("invalid opcode for inverse");
	return 0;
}
/*	This value is used to decide between MNU processing 
	or interpretation in the closed PIC aborts. */
/* Cogit>>#isMNUPicAbortDiscriminatorValue */
static sqInt
isMNUPicAbortDiscriminatorValue(void)
{
	return 0;
}
/*	See Cogit class>>initializeAnnotationConstants */
/* Cogit>>#isPCMappedAnnotation: */
static sqInt NoDbgRegParms
isPCMappedAnnotation(sqInt _annotation)
{
	return _annotation >= HasBytecodePC;
}
/* Cogit>>#isPCWithinMethodZone: */
sqInt
isPCWithinMethodZone(void *_address)
{
	return (((usqInt) _address ) >= methodZoneBase) && (((usqInt) _address ) <= (freeStart()));
}
/*	Answer if the instruction preceding retpc is a call instruction. */
/* Cogit>>#isSendReturnPC: */
sqInt
isSendReturnPC(sqInt _retpc)
{
	sqInt _target;

	if (!(isCallPrecedingReturnPC(backEnd, _retpc))) {
		return 0;
	}
	_target = callTargetFromReturnAddress(backEnd, _retpc);
	return ((_target >= firstSend) && (_target <= lastSend)) || ((_target >= methodZoneBase) && (_target <= (freeStart())));
}
/*	Floating-point jumps are a little weird on some processors. Defer to 
	the backEnd to allow it to generate any special code it may need to. */
/* Cogit>>#JumpFPEqual: */
static AbstractInstruction * NoDbgRegParms
gJumpFPEqual(void *_jumpTarget)
{
	/* begin genJumpFPEqual: */
	return genConditionalBranchoperand(JumpFPEqual, ((sqInt) _jumpTarget ));
	/* end genJumpFPEqual: */
}
/*	Floating-point jumps are a little weird on some processors. Defer to 
	the backEnd to allow it to generate any special code it may need to. */
/* Cogit>>#JumpFPGreaterOrEqual: */
static AbstractInstruction * NoDbgRegParms
gJumpFPGreaterOrEqual(void *_jumpTarget)
{
	/* begin genJumpFPGreaterOrEqual: */
	return genConditionalBranchoperand(JumpFPGreaterOrEqual, ((sqInt) _jumpTarget ));
	/* end genJumpFPGreaterOrEqual: */
}
/*	Floating-point jumps are a little weird on some processors. Defer to 
	the backEnd to allow it to generate any special code it may need to. */
/* Cogit>>#JumpFPGreater: */
static AbstractInstruction * NoDbgRegParms
gJumpFPGreater(void *_jumpTarget)
{
	/* begin genJumpFPGreater: */
	return genConditionalBranchoperand(JumpFPGreater, ((sqInt) _jumpTarget ));
	/* end genJumpFPGreater: */
}
/*	Floating-point jumps are a little weird on some processors. Defer to 
	the backEnd to allow it to generate any special code it may need to. */
/* Cogit>>#JumpFPNotEqual: */
static AbstractInstruction * NoDbgRegParms
gJumpFPNotEqual(void *_jumpTarget)
{
	/* begin genJumpFPNotEqual: */
	return genConditionalBranchoperand(JumpFPNotEqual, ((sqInt) _jumpTarget ));
	/* end genJumpFPNotEqual: */
}
/* Cogit>>#Ld1S:Vr:R:Mw: */
static AbstractInstruction * NoDbgRegParms
gLd1SVrRMw(sqInt _aSize, sqInt _aVectorRegister, sqInt _aMemoryRegister, sqInt _anOffset)
{
	return genoperandoperandoperandoperand(Ld1VrRMw, _aSize, _aVectorRegister, _aMemoryRegister, _anOffset);
}
/* Cogit>>#LogicalShiftLeftCq:R: */
static AbstractInstruction * NoDbgRegParms
gLogicalShiftLeftCqR(sqInt _quickConstant, sqInt _reg)
{
	return genoperandoperand(LogicalShiftLeftCqR, _quickConstant, _reg);
}
/* Cogit>>#lastOpcode */
static AbstractInstruction *
lastOpcode(void)
{
	assert(opcodeIndex > 0);
	return abstractInstructionAt(opcodeIndex - 1);
}
/* Cogit>>#linkSendAt:in:to:offset:receiver: */
void
linkSendAtintooffsetreceiver(sqInt _callSiteReturnAddress, CogMethod *sendingMethod, CogMethod *_targetMethod, sqInt _theEntryOffset, sqInt _receiver)
{
	sqInt _address;
	sqInt _extent;
	sqInt _inlineCacheTag;

	assert((_theEntryOffset == cmEntryOffset) || (_theEntryOffset == cmNoCheckEntryOffset));
	assert((_callSiteReturnAddress >= methodZoneBase) && (_callSiteReturnAddress <= (freeStart())));
	_inlineCacheTag = ((_theEntryOffset == cmNoCheckEntryOffset)
		 ? (_targetMethod->selector)
		 : inlineCacheTagForInstance(_receiver));
	_address = ((sqInt) _targetMethod ) + _theEntryOffset;
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		_extent = rewriteInlineCacheAttagtarget(backEnd, _callSiteReturnAddress, _inlineCacheTag, _address);
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
		flushICacheFromto(((usqInt) _callSiteReturnAddress ) - _extent, ((usqInt) _callSiteReturnAddress ));
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
}
/* Cogit>>#loadBytesAndGetDescriptor */
static BytecodeDescriptor *
loadBytesAndGetDescriptor(void)
{
	BytecodeDescriptor *_descriptor;

	byte0 = fetchByteofObject(bytecodePC, methodObj);
	_descriptor = generatorAt(byte0);
	loadSubsequentBytesForDescriptorat(_descriptor, bytecodePC);
	return _descriptor;
}
/* Cogit>>#loadSubsequentBytesForDescriptor:at: */
static void NoDbgRegParms
loadSubsequentBytesForDescriptorat(BytecodeDescriptor *_descriptor, sqInt _pc)
{
	if (((_descriptor->numBytes)) > 1) {
		byte1 = fetchByteofObject(_pc + 1, methodObj);
		if (((_descriptor->numBytes)) > 2) {
			byte2 = fetchByteofObject(_pc + 2, methodObj);
			if (((_descriptor->numBytes)) > 3) {
				byte3 = fetchByteofObject(_pc + 3, methodObj);
				if (((_descriptor->numBytes)) > 4) {
					/* begin notYetImplemented */
					/* begin notYetImplemented: */
					{
						logError("Not Yet Implemented!");
						abort();
					}
					/* end notYetImplemented: */
					/* end notYetImplemented */
				}
			}
		}
	}
}
/* Cogit>>#MoveAw:R: */
static AbstractInstruction * NoDbgRegParms
gMoveAwR(sqInt _address, sqInt _reg)
{
	/* begin gen:literal:operand: */
	return checkLiteralforInstruction(_address, genoperandoperand(MoveAwR, _address, _reg));
	/* end gen:literal:operand: */
}
/* Cogit>>#MoveCw:R: */
static AbstractInstruction * NoDbgRegParms
gMoveCwR(sqInt _wordConstant, sqInt _reg)
{
	/* begin gen:literal:operand: */
	return checkLiteralforInstruction(_wordConstant, genoperandoperand(MoveCwR, _wordConstant, _reg));
	/* end gen:literal:operand: */
}
/*	Unlinking/GC/Disassembly support */
/* Cogit>>#mapFor:performUntil:arg: */
static sqInt NoDbgRegParms
mapForperformUntilarg(CogMethod *_cogMethod, sqInt (*_functionSymbol)(sqInt annotation, char *mcpc, sqInt arg), sqInt _arg)
{
	sqInt _annotation;
	usqInt _map;
	sqInt _mapByte;
	sqInt _mcpc;
	sqInt _result;

	/* begin firstMappedPCFor: */
	_mcpc = (((_cogMethod->cpicHasMNUCaseOrCMIsFullBlock))
		 ? ((usqInt) _cogMethod ) + cbNoSwitchEntryOffset
		 : ((usqInt) _cogMethod ) + cmNoCheckEntryOffset);
	/* end firstMappedPCFor: */
	_map = (((usqInt) _cogMethod ) + ((_cogMethod->blockSize))) - 1;
	while (((_mapByte = byteAt(_map))) != MapEnd) {
		if (_mapByte >= FirstAnnotation) {
			_mcpc += (_mapByte & DisplacementMask) * 4;
			if ((((_annotation = ((usqInt) _mapByte ) >> AnnotationShift)) == IsSendCall) && ((((usqInt) ((_mapByte = byteAt(_map - 1))) ) >> AnnotationShift) == IsAnnotationExtension)) {
				_annotation += _mapByte & DisplacementMask;
				_map -= 1;
			}
			_result = _functionSymbol(_annotation, ((char *) _mcpc ), _arg);
			if (_result != 0) {
				return _result;
			}
		} else {
			if (_mapByte < ((int) (((usqInt) IsAnnotationExtension ) << AnnotationShift) )) {
				_mcpc += ((sqInt) (((usqInt) (_mapByte - DisplacementX2N) ) << AnnotationShift) ) * 4;
			}
		}
		_map -= 1;
	}
	return 0;
}
/*	Remap all object references in the closed PIC. Answer if any references 
	are young. 
	Set codeModified if any modifications are made. */
/* Cogit>>#mapObjectReferencesInClosedPIC: */
static sqInt NoDbgRegParms
mapObjectReferencesInClosedPIC(CogMethod *_cPIC)
{
	sqInt _i;
	sqInt _pc;
	sqInt _refersToYoung;

	_pc = addressOfEndOfCaseinCPIC(1, _cPIC);
	_refersToYoung = remapMaybeObjRefInClosedPICAt(_pc - (jumpLongByteSize(backEnd)));
	_pc = addressOfEndOfCaseinCPIC((_cPIC->cPICNumCases), _cPIC);
	for (_i = 2; _i <= ((_cPIC->cPICNumCases)); _i += 1) {
		if (remapMaybeObjRefInClosedPICAt((_pc - (jumpLongConditionalByteSize(backEnd))) - (cmpC32RTempByteSize(backEnd)))) {
			_refersToYoung = 1;
		}
		_pc += cPICCaseSize;
	}
	return _refersToYoung;
}
/*	Update all references to objects in the generated runtime. */
/* Cogit>>#mapObjectReferencesInGeneratedRuntime */
static void
mapObjectReferencesInGeneratedRuntime(void)
{
	sqInt _i;
	sqInt _literal;
	sqInt _mappedLiteral;
	usqInt _mcpc;

	for (_i = 0; _i < runtimeObjectRefIndex; _i += 1) {
		_mcpc = objectReferencesInRuntime[_i];
		_literal = unsignedLongAt(_mcpc);
		_mappedLiteral = remapObject(_literal);
		if (_mappedLiteral != _literal) {
			/* begin storeLiteral:atAnnotatedAddress:using: */
			unsignedLongAtput(_mcpc, _mappedLiteral);
			/* end storeLiteral:atAnnotatedAddress:using: */
			codeModified = 1;
		}
	}
}
/*	Update all references to objects in machine code for a become. 
	Unlike incrementalGC or fullGC a method that does not refer to young may 
	refer to young as a result of the become operation. Unlike incrementalGC 
	or fullGC the reference from a Cog method to its methodObject *must not* 
	change since the two are two halves of the same object. */
/* Cogit>>#mapObjectReferencesInMachineCodeForBecome */
static void
mapObjectReferencesInMachineCodeForBecome(void)
{
	sqInt _annotation;
	CogMethod *_cogMethod;
	int _freedPIC;
	int _hasYoungObj;
	sqInt _hasYoungObjPtr;
	usqInt _map;
	sqInt _mapByte;
	sqInt _mcpc;
	sqInt _remappedMethod;
	sqInt _result;
	sqInt _val;

	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	_val = 0;
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		_hasYoungObj = 0;
		_hasYoungObjPtr = ((sqInt) &_hasYoungObj );
		codeModified = (_freedPIC = 0);
		mapObjectReferencesInGeneratedRuntime();
		_cogMethod = ((CogMethod *) methodZoneBase );
		while (_cogMethod < (limitZony())) {
			assert(!_hasYoungObj);
			if (((_cogMethod->cmType)) != CMFree) {
				assert((cogMethodDoesntLookKosher(_cogMethod)) == 0);
				(_cogMethod->selector = remapOop((_cogMethod->selector)));
				if (((_cogMethod->cmType)) == CMPolymorphicIC) {
					if ((isYoung((_cogMethod->selector))) || (mapObjectReferencesInClosedPIC(_cogMethod))) {
						_freedPIC = 1;
						freeMethod(_cogMethod);
					}
				} else {
					if (isYoung((_cogMethod->selector))) {
						_hasYoungObj = 1;
					}
					if (((_cogMethod->cmType)) == CMMethod) {
						assert(((_cogMethod->objectHeader)) == (nullHeaderForMachineCodeMethod()));
						_remappedMethod = remapOop((_cogMethod->methodObject));
						if (_remappedMethod != ((_cogMethod->methodObject))) {
							if (methodHasCogMethod(_remappedMethod)) {
								error("attempt to become two cogged methods");
							}
							if (!(withoutForwardingOnandwithsendToCogit((_cogMethod->methodObject), _remappedMethod, (_cogMethod->cmUsesPenultimateLit), methodhasSameCodeAscheckPenultimate))) {
								error("attempt to become cogged method into different method");
							}
							if ((rawHeaderOf((_cogMethod->methodObject))) == ((sqInt) _cogMethod )) {
								rawHeaderOfput((_cogMethod->methodObject), (_cogMethod->methodHeader));
								{
									(_cogMethod->methodHeader = rawHeaderOf(_remappedMethod));
									(_cogMethod->methodObject = _remappedMethod);
								}
								rawHeaderOfput(_remappedMethod, ((sqInt) _cogMethod ));
							} else {
								assert((noAssertMethodClassAssociationOf((_cogMethod->methodObject))) == (nilObject()));
								{
									(_cogMethod->methodHeader = rawHeaderOf(_remappedMethod));
									(_cogMethod->methodObject = _remappedMethod);
								}
							}
						}
						if (isYoung((_cogMethod->methodObject))) {
							_hasYoungObj = 1;
						}
					}
					/* begin mapFor:performUntil:arg: */
					/* begin firstMappedPCFor: */
					_mcpc = (((_cogMethod->cpicHasMNUCaseOrCMIsFullBlock))
						 ? ((usqInt) _cogMethod ) + cbNoSwitchEntryOffset
						 : ((usqInt) _cogMethod ) + cmNoCheckEntryOffset);
					/* end firstMappedPCFor: */
					_map = (((usqInt) _cogMethod ) + ((_cogMethod->blockSize))) - 1;
					while (((_mapByte = byteAt(_map))) != MapEnd) {
						if (_mapByte >= FirstAnnotation) {
							_mcpc += (_mapByte & DisplacementMask) * 4;
							if ((((_annotation = ((usqInt) _mapByte ) >> AnnotationShift)) == IsSendCall) && ((((usqInt) ((_mapByte = byteAt(_map - 1))) ) >> AnnotationShift) == IsAnnotationExtension)) {
								_annotation += _mapByte & DisplacementMask;
								_map -= 1;
							}
							_result = remapIfObjectRefpchasYoung(_annotation, ((char *) _mcpc ), _hasYoungObjPtr);
							if (_result != 0) {
								goto l4;
							}
						} else {
							if (_mapByte < ((int) (((usqInt) IsAnnotationExtension ) << AnnotationShift) )) {
								_mcpc += ((sqInt) (((usqInt) (_mapByte - DisplacementX2N) ) << AnnotationShift) ) * 4;
							}
						}
						_map -= 1;
					}
					l4:
					;
					/* end mapFor:performUntil:arg: */
					if (_hasYoungObj) {
						ensureInYoungReferrers(_cogMethod);
						_hasYoungObj = 0;
					} else {
						(_cogMethod->cmRefersToYoung = 0);
					}
				}
			}
			_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
		}
		pruneYoungReferrers();
		if (_freedPIC) {
			unlinkSendsToFree();
		}
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
		if (codeModified) {
			flushICacheFromto(((usqInt) codeBase ), ((usqInt) (limitZony()) ));
		}
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
}
/*	Update all references to objects in machine code for a full gc. Since 
	the current (New)ObjectMemory GC makes everything old in a full GC 
	a method not referring to young will not refer to young afterwards */
/* Cogit>>#mapObjectReferencesInMachineCodeForFullGC */
static void
mapObjectReferencesInMachineCodeForFullGC(void)
{
	sqInt _annotation;
	CogMethod *_cogMethod;
	usqInt _map;
	sqInt _mapByte;
	sqInt _mcpc;
	sqInt _result;

	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		codeModified = 0;
		mapObjectReferencesInGeneratedRuntime();
		_cogMethod = ((CogMethod *) methodZoneBase );
		while (_cogMethod < (limitZony())) {
			if (((_cogMethod->cmType)) != CMFree) {
				assert((cogMethodDoesntLookKosher(_cogMethod)) == 0);
				(_cogMethod->selector = remapOop((_cogMethod->selector)));
				if (((_cogMethod->cmType)) == CMPolymorphicIC) {
					assert(!((_cogMethod->cmRefersToYoung)));
					mapObjectReferencesInClosedPIC(_cogMethod);
				} else {
					if (((_cogMethod->cmType)) == CMMethod) {
						assert(((_cogMethod->objectHeader)) == (nullHeaderForMachineCodeMethod()));
						(_cogMethod->methodObject = remapOop((_cogMethod->methodObject)));
					}
					/* begin mapFor:performUntil:arg: */
					/* begin firstMappedPCFor: */
					_mcpc = (((_cogMethod->cpicHasMNUCaseOrCMIsFullBlock))
						 ? ((usqInt) _cogMethod ) + cbNoSwitchEntryOffset
						 : ((usqInt) _cogMethod ) + cmNoCheckEntryOffset);
					/* end firstMappedPCFor: */
					_map = (((usqInt) _cogMethod ) + ((_cogMethod->blockSize))) - 1;
					while (((_mapByte = byteAt(_map))) != MapEnd) {
						if (_mapByte >= FirstAnnotation) {
							_mcpc += (_mapByte & DisplacementMask) * 4;
							if ((((_annotation = ((usqInt) _mapByte ) >> AnnotationShift)) == IsSendCall) && ((((usqInt) ((_mapByte = byteAt(_map - 1))) ) >> AnnotationShift) == IsAnnotationExtension)) {
								_annotation += _mapByte & DisplacementMask;
								_map -= 1;
							}
							_result = remapIfObjectRefpchasYoung(_annotation, ((char *) _mcpc ), 0);
							if (_result != 0) {
								goto l4;
							}
						} else {
							if (_mapByte < ((int) (((usqInt) IsAnnotationExtension ) << AnnotationShift) )) {
								_mcpc += ((sqInt) (((usqInt) (_mapByte - DisplacementX2N) ) << AnnotationShift) ) * 4;
							}
						}
						_map -= 1;
					}
					l4:
					;
					/* end mapFor:performUntil:arg: */
				}
			}
			_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
		}
		pruneYoungReferrers();
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
		if (codeModified) {
			flushICacheFromto(((usqInt) codeBase ), ((usqInt) (limitZony()) ));
		}
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
}
/*	Update all references to objects in machine code for either a Spur 
	scavenging gc 
	or a Squeak V3 incremental GC. Avoid scanning all code by using the 
	youngReferrers list. In a young gc a method referring to young may no 
	longer refer to young, but a 
	method not referring to young cannot and will not refer to young 
	afterwards.  */
/* Cogit>>#mapObjectReferencesInMachineCodeForYoungGC */
static void
mapObjectReferencesInMachineCodeForYoungGC(void)
{
	sqInt _annotation;
	CogMethod *_cogMethod;
	int _hasYoungObj;
	sqInt _hasYoungObjPtr;
	usqInt _map;
	sqInt _mapByte;
	sqInt _mcpc;
	usqInt _pointer;
	sqInt _result;
	sqInt _val;

	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	_val = 0;
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		_hasYoungObj = 0;
		_hasYoungObjPtr = ((sqInt) &_hasYoungObj );
		codeModified = 0;
		_pointer = youngReferrers();
		while (_pointer < limitAddress) {
			assert(!_hasYoungObj);
			_cogMethod = ((CogMethod *) (longAt(_pointer)) );
			if (((_cogMethod->cmType)) == CMFree) {
				assert(!((_cogMethod->cmRefersToYoung)));
			} else {
				assert((cogMethodDoesntLookKosher(_cogMethod)) == 0);
				if ((_cogMethod->cmRefersToYoung)) {
					assert((((_cogMethod->cmType)) == CMMethod) || (((_cogMethod->cmType)) == CMMegamorphicIC));
					(_cogMethod->selector = remapOop((_cogMethod->selector)));
					if (isYoung((_cogMethod->selector))) {
						_hasYoungObj = 1;
					}
					if (((_cogMethod->cmType)) == CMMethod) {
						assert(((_cogMethod->objectHeader)) == (nullHeaderForMachineCodeMethod()));
						(_cogMethod->methodObject = remapOop((_cogMethod->methodObject)));
						if (isYoung((_cogMethod->methodObject))) {
							_hasYoungObj = 1;
						}
					}
					/* begin mapFor:performUntil:arg: */
					/* begin firstMappedPCFor: */
					_mcpc = (((_cogMethod->cpicHasMNUCaseOrCMIsFullBlock))
						 ? ((usqInt) _cogMethod ) + cbNoSwitchEntryOffset
						 : ((usqInt) _cogMethod ) + cmNoCheckEntryOffset);
					/* end firstMappedPCFor: */
					_map = (((usqInt) _cogMethod ) + ((_cogMethod->blockSize))) - 1;
					while (((_mapByte = byteAt(_map))) != MapEnd) {
						if (_mapByte >= FirstAnnotation) {
							_mcpc += (_mapByte & DisplacementMask) * 4;
							if ((((_annotation = ((usqInt) _mapByte ) >> AnnotationShift)) == IsSendCall) && ((((usqInt) ((_mapByte = byteAt(_map - 1))) ) >> AnnotationShift) == IsAnnotationExtension)) {
								_annotation += _mapByte & DisplacementMask;
								_map -= 1;
							}
							_result = remapIfObjectRefpchasYoung(_annotation, ((char *) _mcpc ), _hasYoungObjPtr);
							if (_result != 0) {
								goto l4;
							}
						} else {
							if (_mapByte < ((int) (((usqInt) IsAnnotationExtension ) << AnnotationShift) )) {
								_mcpc += ((sqInt) (((usqInt) (_mapByte - DisplacementX2N) ) << AnnotationShift) ) * 4;
							}
						}
						_map -= 1;
					}
					l4:
					;
					/* end mapFor:performUntil:arg: */
					if (_hasYoungObj) {
						_hasYoungObj = 0;
					} else {
						(_cogMethod->cmRefersToYoung = 0);
					}
				}
			}
			_pointer += BytesPerWord;
		}
		pruneYoungReferrers();
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
		if (codeModified) {
			flushICacheFromto(((usqInt) codeBase ), ((usqInt) (limitZony()) ));
		}
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
}
/*	Update all references to objects in machine code. */
/* Cogit>>#mapObjectReferencesInMachineCode: */
void
mapObjectReferencesInMachineCode(sqInt _gcMode)
{
	switch (_gcMode) {
		case GCModeNewSpace:
		{
			mapObjectReferencesInMachineCodeForYoungGC();
		}
		break;
		case GCModeFull:
		{
			mapObjectReferencesInMachineCodeForFullGC();
		}
		break;
		case GCModeBecome:
		{
			mapObjectReferencesInMachineCodeForBecome();
		}
		break;
		default:
		error("Case not found and no otherwise clause");
	}
	if (!(asserta((freeStart()) <= (youngReferrers())))) {
		error("youngReferrers list overflowed");
	}
}
/*	Mark objects in machine-code of marked methods (or open PICs with marked 
	selectors).  */
/* Cogit>>#markAndTraceMachineCodeOfMarkedMethods */
void
markAndTraceMachineCodeOfMarkedMethods(void)
{
	sqInt _annotation;
	sqInt _annotation2;
	CogMethod *_cogMethod;
	usqInt _map;
	usqInt _map2;
	sqInt _mapByte;
	sqInt _mapByte2;
	sqInt _mcpc;
	sqInt _mcpc2;
	sqInt _result;
	sqInt _result2;
	sqInt _val;
	sqInt _val2;

	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	_val = 0;
	_val2 = 0;
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		if (leakCheckFullGC()) {
			assert(allMachineCodeObjectReferencesValid());
		}
		codeModified = 0;
		markAndTraceObjectReferencesInGeneratedRuntime();
		_cogMethod = ((CogMethod *) methodZoneBase );
		while (_cogMethod < (limitZony())) {
			if ((((_cogMethod->cmType)) == CMMethod) && (isMarkedOrPermanent((_cogMethod->methodObject)))) {
				/* begin markAndTraceLiteralsIn: */
				assert(((((_cogMethod->cmType)) == CMMethod) && (isMarkedOrPermanent((_cogMethod->methodObject)))) || ((((_cogMethod->cmType)) == CMMegamorphicIC) && ((isImmediate((_cogMethod->selector))) || (isMarkedOrPermanent((_cogMethod->selector))))));
				markAndTraceLiteralinat((_cogMethod->selector), _cogMethod, &((_cogMethod->selector)));
				maybeMarkCountersIn(_cogMethod);
				/* begin mapFor:performUntil:arg: */
				/* begin firstMappedPCFor: */
				_mcpc = (((_cogMethod->cpicHasMNUCaseOrCMIsFullBlock))
					 ? ((usqInt) _cogMethod ) + cbNoSwitchEntryOffset
					 : ((usqInt) _cogMethod ) + cmNoCheckEntryOffset);
				/* end firstMappedPCFor: */
				_map = (((usqInt) _cogMethod ) + ((_cogMethod->blockSize))) - 1;
				while (((_mapByte = byteAt(_map))) != MapEnd) {
					if (_mapByte >= FirstAnnotation) {
						_mcpc += (_mapByte & DisplacementMask) * 4;
						if ((((_annotation = ((usqInt) _mapByte ) >> AnnotationShift)) == IsSendCall) && ((((usqInt) ((_mapByte = byteAt(_map - 1))) ) >> AnnotationShift) == IsAnnotationExtension)) {
							_annotation += _mapByte & DisplacementMask;
							_map -= 1;
						}
						_result = markLiteralspcmethod(_annotation, ((char *) _mcpc ), ((sqInt) _cogMethod ));
						if (_result != 0) {
							goto l6;
						}
					} else {
						if (_mapByte < ((int) (((usqInt) IsAnnotationExtension ) << AnnotationShift) )) {
							_mcpc += ((sqInt) (((usqInt) (_mapByte - DisplacementX2N) ) << AnnotationShift) ) * 4;
						}
					}
					_map -= 1;
				}
				l6:
				;
				/* end mapFor:performUntil:arg: */
				/* end markAndTraceLiteralsIn: */
			}
			if ((((_cogMethod->cmType)) == CMMegamorphicIC) && ((isImmediate((_cogMethod->selector))) || (isMarkedOrPermanent((_cogMethod->selector))))) {
				/* begin markAndTraceLiteralsIn: */
				assert(((((_cogMethod->cmType)) == CMMethod) && (isMarkedOrPermanent((_cogMethod->methodObject)))) || ((((_cogMethod->cmType)) == CMMegamorphicIC) && ((isImmediate((_cogMethod->selector))) || (isMarkedOrPermanent((_cogMethod->selector))))));
				markAndTraceLiteralinat((_cogMethod->selector), _cogMethod, &((_cogMethod->selector)));
				maybeMarkCountersIn(_cogMethod);
				/* begin mapFor:performUntil:arg: */
				/* begin firstMappedPCFor: */
				_mcpc2 = (((_cogMethod->cpicHasMNUCaseOrCMIsFullBlock))
					 ? ((usqInt) _cogMethod ) + cbNoSwitchEntryOffset
					 : ((usqInt) _cogMethod ) + cmNoCheckEntryOffset);
				/* end firstMappedPCFor: */
				_map2 = (((usqInt) _cogMethod ) + ((_cogMethod->blockSize))) - 1;
				while (((_mapByte2 = byteAt(_map2))) != MapEnd) {
					if (_mapByte2 >= FirstAnnotation) {
						_mcpc2 += (_mapByte2 & DisplacementMask) * 4;
						if ((((_annotation2 = ((usqInt) _mapByte2 ) >> AnnotationShift)) == IsSendCall) && ((((usqInt) ((_mapByte2 = byteAt(_map2 - 1))) ) >> AnnotationShift) == IsAnnotationExtension)) {
							_annotation2 += _mapByte2 & DisplacementMask;
							_map2 -= 1;
						}
						_result2 = markLiteralspcmethod(_annotation2, ((char *) _mcpc2 ), ((sqInt) _cogMethod ));
						if (_result2 != 0) {
							goto l7;
						}
					} else {
						if (_mapByte2 < ((int) (((usqInt) IsAnnotationExtension ) << AnnotationShift) )) {
							_mcpc2 += ((sqInt) (((usqInt) (_mapByte2 - DisplacementX2N) ) << AnnotationShift) ) * 4;
						}
					}
					_map2 -= 1;
				}
				l7:
				;
				/* end mapFor:performUntil:arg: */
				/* end markAndTraceLiteralsIn: */
			}
			_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
		}
		if (leakCheckFullGC()) {
			assert(allMachineCodeObjectReferencesValid());
		}
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
		if (codeModified) {
			flushICacheFromto(((usqInt) codeBase ), ((usqInt) (limitZony()) ));
		}
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
}
/*	Mark and trace any object references in the generated run-time. */
/* Cogit>>#markAndTraceObjectReferencesInGeneratedRuntime */
static void
markAndTraceObjectReferencesInGeneratedRuntime(void)
{
	sqInt _i;
	sqInt _literal;
	usqInt _mcpc;

	for (_i = 0; _i < runtimeObjectRefIndex; _i += 1) {
		_mcpc = objectReferencesInRuntime[_i];
		_literal = unsignedLongAt(_mcpc);
		markAndTraceLiteralinatpc(_literal, ((CogMethod *) null ), ((usqInt) _mcpc ));
	}
}
/*	Mark and trace objects in the argument and free if it is appropriate. 
	Answer if the method has been freed. firstVisit is a hint used to avoid 
	scanning methods we've already seen. False positives are fine. 
	For a CMMethod this 
	frees if the bytecode method isnt marked, 
	marks and traces object literals and selectors, 
	unlinks sends to targets that should be freed. 
	For a CMClosedPIC this 
	frees if it refers to anything that should be freed or isn't marked. 
	For a CMOpenPIC this 
	frees if the selector isn't marked.this recurses at most one level down */
/* Cogit>>#markAndTraceOrFreeCogMethod:firstVisit: */
static sqInt NoDbgRegParms
markAndTraceOrFreeCogMethodfirstVisit(CogMethod *_cogMethod, sqInt _firstVisit)
{
	sqInt _annotation;
	usqInt _map;
	sqInt _mapByte;
	sqInt _mcpc;
	sqInt _result;
	sqInt _val;

	_val = 0;
	if (((_cogMethod->cmType)) == CMFree) {
		return 1;
	}
	assert((cogMethodDoesntLookKosher(_cogMethod)) == 0);
	if (((_cogMethod->cmType)) == CMMethod) {
		if (!(isMarkedOrPermanent((_cogMethod->methodObject)))) {
			freeMethod(_cogMethod);
			return 1;
		}
		if (_firstVisit) {
			/* begin markLiteralsAndUnlinkUnmarkedSendsIn: */
			assert(((_cogMethod->cmType)) == CMMethod);
			assert(isMarkedOrPermanent((_cogMethod->methodObject)));
			markAndTraceLiteralinat((_cogMethod->selector), _cogMethod, &((_cogMethod->selector)));
			maybeMarkCountersIn(_cogMethod);
			/* begin mapFor:performUntil:arg: */
			/* begin firstMappedPCFor: */
			_mcpc = (((_cogMethod->cpicHasMNUCaseOrCMIsFullBlock))
				 ? ((usqInt) _cogMethod ) + cbNoSwitchEntryOffset
				 : ((usqInt) _cogMethod ) + cmNoCheckEntryOffset);
			/* end firstMappedPCFor: */
			_map = (((usqInt) _cogMethod ) + ((_cogMethod->blockSize))) - 1;
			while (((_mapByte = byteAt(_map))) != MapEnd) {
				if (_mapByte >= FirstAnnotation) {
					_mcpc += (_mapByte & DisplacementMask) * 4;
					if ((((_annotation = ((usqInt) _mapByte ) >> AnnotationShift)) == IsSendCall) && ((((usqInt) ((_mapByte = byteAt(_map - 1))) ) >> AnnotationShift) == IsAnnotationExtension)) {
						_annotation += _mapByte & DisplacementMask;
						_map -= 1;
					}
					_result = markLiteralsAndUnlinkIfUnmarkedSendpcmethod(_annotation, ((char *) _mcpc ), ((sqInt) _cogMethod ));
					if (_result != 0) {
						goto l3;
					}
				} else {
					if (_mapByte < ((int) (((usqInt) IsAnnotationExtension ) << AnnotationShift) )) {
						_mcpc += ((sqInt) (((usqInt) (_mapByte - DisplacementX2N) ) << AnnotationShift) ) * 4;
					}
				}
				_map -= 1;
			}
			l3:
			;
			/* end mapFor:performUntil:arg: */
			/* end markLiteralsAndUnlinkUnmarkedSendsIn: */
		}
		return 0;
	}
	if (((_cogMethod->cmType)) == CMPolymorphicIC) {
		if (!(closedPICRefersToUnmarkedObject(_cogMethod))) {
			return 0;
		}
		freeMethod(_cogMethod);
		return 1;
	}
	if (((_cogMethod->cmType)) == CMMegamorphicIC) {
		if (isMarkedOrPermanent((_cogMethod->selector))) {
			return 0;
		}
		freeMethod(_cogMethod);
		return 1;
	}
	assert((((_cogMethod->cmType)) == CMMethod) || ((((_cogMethod->cmType)) == CMPolymorphicIC) || (((_cogMethod->cmType)) == CMMegamorphicIC)));
	return 0;
}
/*	If entryPoint is that of some method, then mark and trace objects in it 
	and free if it is appropriate. 
	Answer if the method has been freed. */
/* Cogit>>#markAndTraceOrFreePICTarget:in: */
static sqInt NoDbgRegParms
markAndTraceOrFreePICTargetin(sqInt _entryPoint, CogMethod *_cPIC)
{
	CogMethod *_targetMethod;

	assert((_entryPoint > methodZoneBase) && (_entryPoint < (freeStart())));
	if ((((usqInt) _cPIC ) <= ((usqInt) _entryPoint )) && ((((usqInt) _cPIC ) + ((_cPIC->blockSize))) >= ((usqInt) _entryPoint ))) {
		return 0;
	}
	_targetMethod = ((CogMethod *) (_entryPoint - cmNoCheckEntryOffset) );
	assert((((_targetMethod->cmType)) == CMMethod) || (((_targetMethod->cmType)) == CMFree));
	return markAndTraceOrFreeCogMethodfirstVisit(_targetMethod, ((usqInt) _targetMethod ) > ((usqInt) _cPIC ));
}
/*	Mark and trace literals. Unlink sends that have unmarked cache tags or 
	targets.  */
/* Cogit>>#markLiteralsAndUnlinkIfUnmarkedSend:pc:method: */
static sqInt NoDbgRegParms
markLiteralsAndUnlinkIfUnmarkedSendpcmethod(sqInt _annotation, char *_mcpc, sqInt _cogMethod)
{
	usqInt _cacheTag2;
	sqInt _cacheTagMarked;
	sqInt _entryPoint2;
	sqInt _literal;
	sqInt _offset2;
	sqInt *_sendTable2;
	sqInt _tagCouldBeObj2;
	CogMethod * _targetCogCode;
	sqInt _unlinkedRoutine;
	sqInt _val;

	_val = 0;
	if (_annotation == IsObjectReference) {
		_literal = unsignedLongAt(((usqInt) _mcpc ));
		if (markAndTraceLiteralinatpc(_literal, ((CogMethod *) _cogMethod ), ((usqInt) _mcpc ))) {
			codeModified = 1;
		}
	}
	if (_annotation >= IsSendCall) {
		/* begin entryCacheTagAndCouldBeObjectAt:annotation:into: */
		_cacheTag2 = inlineCacheTagAt(backEnd, ((sqInt) _mcpc ));
		_entryPoint2 = callTargetFromReturnAddress(backEnd, ((sqInt) _mcpc ));
		_tagCouldBeObj2 = cacheTagIsSelectorForAnnotationandEntryPoint(_annotation, _entryPoint2);
		{
			_cacheTagMarked = _tagCouldBeObj2 && (cacheTagIsMarked(_cacheTag2));
			if (_entryPoint2 > methodZoneBase) {
				/* begin targetMethodAndSendTableFor:annotation:into: */
				/* begin offsetAndSendTableFor:annotation:into: */
				if (_annotation == IsSendCall) {
					_offset2 = cmEntryOffset;
					_sendTable2 = ordinarySendTrampolines;
				} else {
					if (_annotation == IsDirectedSuperSend) {
						_offset2 = cmNoCheckEntryOffset;
						_sendTable2 = directedSuperSendTrampolines;
					} else {
						if (_annotation == IsDirectedSuperBindingSend) {
							_offset2 = cmNoCheckEntryOffset;
							_sendTable2 = directedSuperBindingSendTrampolines;
						} else {
							assert(_annotation == IsSuperSend);
							_offset2 = cmNoCheckEntryOffset;
							_sendTable2 = superSendTrampolines;
						}
					}
				}
				{
					_targetCogCode = ((CogMethod *) (_entryPoint2 - _offset2) );
					{
						if (!_cacheTagMarked || (markAndTraceOrFreeCogMethodfirstVisit(_targetCogCode, ((usqInt) _targetCogCode ) > ((usqInt) _mcpc )))) {
							/* begin unlinkSendAt:targetMethod:sendTable: */
							_unlinkedRoutine = _sendTable2[((((_targetCogCode->cmNumArgs)) < (NumSendTrampolines - 1)) ? (_targetCogCode->cmNumArgs) : NumSendTrampolines - 1)];
							rewriteInlineCacheAttagtarget(backEnd, ((sqInt) _mcpc ), inlineCacheValueForSelectorinat((_targetCogCode->selector), enumeratingCogMethod, _mcpc), _unlinkedRoutine);
							codeModified = 1;
							/* end unlinkSendAt:targetMethod:sendTable: */
							markAndTraceLiteralinat((_targetCogCode->selector), _targetCogCode, &((_targetCogCode->selector)));
						}
					}
				}
				/* end offsetAndSendTableFor:annotation:into: */
				/* end targetMethodAndSendTableFor:annotation:into: */
			} else {
				if (markAndTraceCacheTagLiteralinatpc(_cacheTag2, ((CogMethod *) _cogMethod ), ((usqInt) _mcpc ))) {
					codeModified = 1;
				}
			}
		}
		/* end entryCacheTagAndCouldBeObjectAt:annotation:into: */
	}
	return 0;
}
/*	Mark and trace literals. */
/* Cogit>>#markLiterals:pc:method: */
static sqInt NoDbgRegParms
markLiteralspcmethod(sqInt _annotation, char *_mcpc, sqInt _cogMethod)
{
	usqInt _cacheTag2;
	sqInt _entryPoint;
	sqInt _literal;
	sqInt _tagCouldBeObj2;

	if (_annotation == IsObjectReference) {
		_literal = unsignedLongAt(((usqInt) _mcpc ));
		if (markAndTraceLiteralinatpc(_literal, ((CogMethod *) _cogMethod ), ((usqInt) _mcpc ))) {
			codeModified = 1;
		}
	}
	if (_annotation >= IsSendCall) {
		/* begin entryCacheTagAndCouldBeObjectAt:annotation:into: */
		_cacheTag2 = inlineCacheTagAt(backEnd, ((sqInt) _mcpc ));
		_entryPoint = callTargetFromReturnAddress(backEnd, ((sqInt) _mcpc ));
		_tagCouldBeObj2 = cacheTagIsSelectorForAnnotationandEntryPoint(_annotation, _entryPoint);
		{
			if (_tagCouldBeObj2) {
				if (markAndTraceCacheTagLiteralinatpc(_cacheTag2, ((CogMethod *) _cogMethod ), ((usqInt) _mcpc ))) {
					codeModified = 1;
				}
			}
		}
		/* end entryCacheTagAndCouldBeObjectAt:annotation:into: */
	}
	return 0;
}
/* Cogit>>#markMethodAndReferents: */
void
markMethodAndReferents(CogMethod *_aCogMethod)
{
	sqInt _annotation;
	usqInt _map;
	sqInt _mapByte;
	sqInt _mcpc;
	sqInt _result;

	assert(((_aCogMethod->cmType)) == CMMethod);
	(_aCogMethod->cmUsageCount = CMMaxUsageCount);
	/* begin mapFor:performUntil:arg: */
	/* begin firstMappedPCFor: */
	_mcpc = (((_aCogMethod->cpicHasMNUCaseOrCMIsFullBlock))
		 ? ((usqInt) _aCogMethod ) + cbNoSwitchEntryOffset
		 : ((usqInt) _aCogMethod ) + cmNoCheckEntryOffset);
	/* end firstMappedPCFor: */
	_map = (((usqInt) _aCogMethod ) + ((_aCogMethod->blockSize))) - 1;
	while (((_mapByte = byteAt(_map))) != MapEnd) {
		if (_mapByte >= FirstAnnotation) {
			_mcpc += (_mapByte & DisplacementMask) * 4;
			if ((((_annotation = ((usqInt) _mapByte ) >> AnnotationShift)) == IsSendCall) && ((((usqInt) ((_mapByte = byteAt(_map - 1))) ) >> AnnotationShift) == IsAnnotationExtension)) {
				_annotation += _mapByte & DisplacementMask;
				_map -= 1;
			}
			_result = incrementUsageOfTargetIfLinkedSendmcpcignored(_annotation, ((char *) _mcpc ), 0);
			if (_result != 0) {
				goto l3;
			}
		} else {
			if (_mapByte < ((int) (((usqInt) IsAnnotationExtension ) << AnnotationShift) )) {
				_mcpc += ((sqInt) (((usqInt) (_mapByte - DisplacementX2N) ) << AnnotationShift) ) * 4;
			}
		}
		_map -= 1;
	}
	l3:
	;
	/* end mapFor:performUntil:arg: */
}
/* Cogit>>#maxCogMethodAddress */
usqInt
maxCogMethodAddress(void)
{
	return ((usqInt) (limitZony()) );
}
/*	Check that the header fields are consistent with the type. 
	Answer 0 if it is ok, otherwise answer a code for the error. */
/* Cogit>>#maybeFreeCogMethodDoesntLookKosher: */
static sqInt NoDbgRegParms
maybeFreeCogMethodDoesntLookKosher(CogMethod *_cogMethod)
{
	sqInt _result;

	_result = cogMethodDoesntLookKosher(_cogMethod);
	return ((_result == 2)
		 ? 0
		 : _result);
}
/*	In SIsta Spur counters are held on the heap in pinned objects which must 
	be marked 
	to avoid them being garbage collected. This is the hook through which that 
	happens.  */
/* Cogit>>#maybeMarkCountersIn: */
static void NoDbgRegParms
maybeMarkCountersIn(CogMethod *cogMethod)
{
}
/* Cogit>>#mclassIsSmallInteger */
static sqInt
mclassIsSmallInteger(void)
{
	return (receiverTags & 1);
}
/*	Answer the absolute machine code pc matching the zero-relative 
	bytecode pc of a backward branch in cogMethod, given the start 
	of the bytecodes for cogMethod's method object. */
/* Cogit>>#mcPCForBackwardBranch:startBcpc:in: */
usqInt
mcPCForBackwardBranchstartBcpcin(sqInt _bcpc, sqInt _startbcpc, CogMethod *_cogMethod)
{
	sqInt _aMethodObj;
	sqInt _annotation;
	sqInt _bcpc2;
	sqInt _byte;
	BytecodeDescriptor *_descriptor;
	sqInt _distance;
	sqInt _endbcpc;
	CogMethod *_homeMethod;
	sqInt _isBackwardBranch;
	usqInt _isInBlock;
	sqInt _latestContinuation;
	usqInt _map;
	sqInt _mapByte;
	usqInt _mcpc;
	int _nExts;
	sqInt _nextBcpc;
	sqInt _result;
	sqInt _targetPC;

	/* begin mapFor:bcpc:performUntil:arg: */
	assert(((_cogMethod->stackCheckOffset)) > 0);
	_mcpc = ((usqInt) _cogMethod ) + ((_cogMethod->stackCheckOffset));
	_result = ((((0 + ((int) (((usqInt) HasBytecodePC ) << 1) )) & 1) && (((sqInt) ((void *) _bcpc ) ) == _startbcpc))
		 ? ((sqInt) ((char *) _mcpc ) )
		 : 0);
	if (_result != 0) {
		return _result;
	}
	_bcpc2 = _startbcpc;
	_isInBlock = (_cogMethod->cpicHasMNUCaseOrCMIsFullBlock);
	_homeMethod = ((CogMethod *) _cogMethod );
	assert(_startbcpc == (startPCOfMethodHeader((_homeMethod->methodHeader))));
	_map = (((usqInt) _homeMethod ) + ((_homeMethod->blockSize))) - 1;
	_annotation = ((usqInt) (byteAt(_map)) ) >> AnnotationShift;
	assert((_annotation == IsAbsPCReference) || ((_annotation == IsObjectReference) || ((_annotation == IsRelativeCall) || (_annotation == IsDisplacementX2N))));
	_latestContinuation = _startbcpc;
	_aMethodObj = (_homeMethod->methodObject);
	_endbcpc = (numBytesOf(_aMethodObj)) - 1;
	_bcpc2 += deltaToSkipPrimAndErrorStoreInheader(_aMethodObj, (_homeMethod->methodHeader));
	_nExts = 0;
	while ((((usqInt) (byteAt(_map)) ) >> AnnotationShift) != HasBytecodePC) {
		_map -= 1;
	}
	_map -= 1;
	while (((_mapByte = byteAt(_map))) != MapEnd) {
		if (_mapByte >= FirstAnnotation) {
			_annotation = ((usqInt) _mapByte ) >> AnnotationShift;
			_mcpc += (_mapByte & DisplacementMask) * 4;
			if (_annotation >= HasBytecodePC) {
				if ((_annotation == IsSendCall) && ((((usqInt) ((_mapByte = byteAt(_map - 1))) ) >> AnnotationShift) == IsAnnotationExtension)) {
					_annotation += _mapByte & DisplacementMask;
					_map -= 1;
				}
				while (1) {
					_byte = fetchByteofObject(_bcpc2, _aMethodObj);
					_descriptor = generatorAt(_byte);
					if (_isInBlock) {
						if (_bcpc2 >= _endbcpc) {
							return 0;
						}
					} else {
						if (((_descriptor->isReturn)) && (_bcpc2 >= _latestContinuation)) {
							return 0;
						}
						if (isBranch(_descriptor)) {
							/* begin latestContinuationPCFor:at:exts:in: */
							_distance = ((_descriptor->spanFunction))(_descriptor, _bcpc2, _nExts, _aMethodObj);
							_targetPC = (_bcpc2 + ((_descriptor->numBytes))) + (((_distance < 0) ? 0 : _distance));
							/* end latestContinuationPCFor:at:exts:in: */
							_latestContinuation = ((_latestContinuation < _targetPC) ? _targetPC : _latestContinuation);
						}
					}
					_nextBcpc = _bcpc2 + ((_descriptor->numBytes));
					if (((_descriptor->isMapped)) || (_isInBlock && ((_descriptor->isMappedInBlock)))) 
						break;
					_bcpc2 = _nextBcpc;
					_nExts = (((_descriptor->isExtension))
						 ? _nExts + 1
						 : 0);
				}
				_isBackwardBranch = (isBranch(_descriptor)) && ((assert(((_descriptor->spanFunction)) != null), (((_descriptor->spanFunction))(_descriptor, _bcpc2, _nExts, _aMethodObj)) < 0));
				_result = findBackwardBranchIsBackwardBranchMcpcBcpcMatchingBcpc(_descriptor, ((_isBackwardBranch)
					 ? ((sqInt) (((usqInt) _annotation ) << 1) ) + 1
					 : ((sqInt) (((usqInt) _annotation ) << 1) )), ((char *) _mcpc ), ((_isBackwardBranch)
					 ? _bcpc2 - (2 * _nExts)
					 : _bcpc2), ((void *) _bcpc ));
				if (_result != 0) {
					return _result;
				}
				_bcpc2 = _nextBcpc;
				_nExts = (((_descriptor->isExtension))
					 ? _nExts + 1
					 : 0);
			}
		} else {
			assert(((((usqInt) _mapByte ) >> AnnotationShift) == IsDisplacementX2N) || ((((usqInt) _mapByte ) >> AnnotationShift) == IsAnnotationExtension));
			if (_mapByte < ((int) (((usqInt) IsAnnotationExtension ) << AnnotationShift) )) {
				_mcpc += ((sqInt) (((usqInt) (_mapByte - DisplacementX2N) ) << AnnotationShift) ) * 4;
			}
		}
		_map -= 1;
	}
	return 0;
	/* end mapFor:bcpc:performUntil:arg: */
}
/*	For the purposes of become: see if the two methods are similar, i.e. can 
	be safely becommed. 
	This is pretty strict. All literals and bytecodes must be identical. Only 
	trailer bytes and header 
	flags can differ. */
/* Cogit>>#method:hasSameCodeAs:checkPenultimate: */
static sqInt NoDbgRegParms
methodhasSameCodeAscheckPenultimate(sqInt _methodA, sqInt _methodB, sqInt _comparePenultimateLiteral)
{
	sqInt _bi;
	sqInt _endPCA;
	sqInt _headerA;
	sqInt _headerB;
	sqInt _li;
	sqInt _numLitsA;

	_headerA = methodHeaderOf(_methodA);
	_headerB = methodHeaderOf(_methodB);
	_numLitsA = literalCountOfMethodHeader(_headerA);
	_endPCA = endPCOf(_methodA);
	if (((argumentCountOfMethodHeader(_headerA)) != (argumentCountOfMethodHeader(_headerB))) || (((temporaryCountOfMethodHeader(_headerA)) != (temporaryCountOfMethodHeader(_headerB))) || (((primitiveIndexOfMethodheader(_methodA, _headerA)) != (primitiveIndexOfMethodheader(_methodB, _headerB))) || ((_numLitsA != (literalCountOfMethodHeader(_headerB))) || (_endPCA > (numBytesOf(_methodB))))))) {
		return 0;
	}
	for (_li = 1; _li < _numLitsA; _li += 1) {
		if ((fetchPointerofObject(_li, _methodA)) != (fetchPointerofObject(_li, _methodB))) {
			if ((_li < (_numLitsA - 1)) || _comparePenultimateLiteral) {
				return 0;
			}
		}
	}
	for (_bi = startPCOfMethod(_methodA); _bi <= _endPCA; _bi += 1) {
		if ((fetchByteofObject(_bi, _methodA)) != (fetchByteofObject(_bi, _methodB))) {
			return 0;
		}
	}
	return 1;
}
/* Cogit>>#minCogMethodAddress */
sqInt
minCogMethodAddress(void)
{
	return methodZoneBase;
}
/* Cogit>>#mnuOffset */
sqInt
mnuOffset(void)
{
	return missOffset;
}
/* Cogit>>#needsFrameIfImmutability: */
static sqInt NoDbgRegParms
needsFrameIfImmutability(sqInt stackDelta)
{
	return IMMUTABILITY;
}
/* Cogit>>#needsFrameIfInBlock: */
static sqInt NoDbgRegParms
needsFrameIfInBlock(sqInt stackDelta)
{
	return inBlock > 0;
}
/* Cogit>>#needsFrameNever: */
static sqInt NoDbgRegParms
needsFrameNever(sqInt stackDelta)
{
	return 0;
}
/* Cogit>>#noAssertMethodClassAssociationOf: */
static sqInt NoDbgRegParms
noAssertMethodClassAssociationOf(sqInt _methodPointer)
{
	return literalofMethod((literalCountOfMethodHeader(noAssertHeaderOf(_methodPointer))) - 1, _methodPointer);
}
/*	Check that no method is maximally marked. A maximal mark is an indication 
	the method has been scanned to increase the usage count of its referent 
	methods.  */
/* Cogit>>#noCogMethodsMaximallyMarked */
static sqInt
noCogMethodsMaximallyMarked(void)
{
	CogMethod *_cogMethod;

	_cogMethod = ((CogMethod *) methodZoneBase );
	while (_cogMethod < (limitZony())) {
		if ((((_cogMethod->cmType)) != CMFree) && (((_cogMethod->cmUsageCount)) == CMMaxUsageCount)) {
			return 0;
		}
		_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
	}
	return 1;
}
/*	Answer if all targets in the PIC are in-use methods. */
/* Cogit>>#noTargetsFreeInClosedPIC: */
static sqInt NoDbgRegParms
noTargetsFreeInClosedPIC(CogMethod *_cPIC)
{
	return !(cPICHasFreedTargets(_cPIC));
}
/*	Store the generated machine code, answering the last address */
/* Cogit>>#outputInstructionsAt: */
static sqInt NoDbgRegParms
outputInstructionsAt(sqInt _startAddress)
{
	sqInt _absoluteAddress;
	AbstractInstruction *_abstractInstruction;
	sqInt _i;
	sqInt _j;

	_absoluteAddress = _startAddress;
	for (_i = 0; _i < opcodeIndex; _i += 1) {
		_abstractInstruction = abstractInstructionAt(_i);
		assert(((_abstractInstruction->address)) == _absoluteAddress);
		/* begin outputMachineCodeAt: */
		for (_j = 0; _j < ((_abstractInstruction->machineCodeSize)); _j += 4) {
			uint32AtPointerput(_absoluteAddress + _j, (_abstractInstruction->machineCode)[_j / 4]);
		}
		/* end outputMachineCodeAt: */
		_absoluteAddress += (_abstractInstruction->machineCodeSize);
	}
	return _absoluteAddress;
}
/*	Output instructions generated for one of the generated run-time routines, 
	a trampoline, etc */
/* Cogit>>#outputInstructionsForGeneratedRuntimeAt: */
static sqInt NoDbgRegParms
outputInstructionsForGeneratedRuntimeAt(sqInt _startAddress)
{
	sqInt _endAddress;
	sqInt _size;

	computeMaximumSizes();
	(methodLabel->address = _startAddress);
	_size = generateInstructionsAt(_startAddress);
	_endAddress = outputInstructionsAt(_startAddress);
	assert((_startAddress + _size) == _endAddress);
	methodZoneBase = alignUptoRoutineBoundary(_endAddress);
	stopsFromto(backEnd, _endAddress, methodZoneBase - 1);
	return _startAddress;
}
/* Cogit>>#PushCw: */
static AbstractInstruction * NoDbgRegParms
gPushCw(sqInt _wordConstant)
{
	/* begin gen:literal: */
	return checkLiteralforInstruction(_wordConstant, genoperand(PushCw, _wordConstant));
	/* end gen:literal: */
}
/*	Code entry PIC full or miss to an instance of a young class or to a young 
	target method. 
	Attempt to patch the send site to an megamorphic PIC. 
	Answer if the attempt succeeded; in fact it will 
	 
	Only return if the attempt failed. 
	The stack looks like: 
	receiver 
	args 
	sp=>	sender return address */
/* Cogit>>#patchToMegamorphicICFor:numArgs:receiver: */
sqInt
patchToMegamorphicICFornumArgsreceiver(sqInt _selector, sqInt _numArgs, sqInt _receiver)
{
	sqInt _extent;
	CogMethod *_oPIC;
	sqInt _outerReturn;

	_outerReturn = stackTop();
	_oPIC = openPICWithSelector(_selector);
	if (!_oPIC) {
		/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
		/* begin enableCodeZoneWrite */
		if (jitCodeZoneWriteEnabled) {
			error("Code zone writing is not reentrant");
		}
		
#    if READ_ONLY_CODE_ZONE
		{
			
#      if __APPLE__
			{
				pthread_jit_write_protect_np(0);
			}
#      else /* __APPLE__ */
			{
				sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
			}
#      endif /* __APPLE__ */
		}
#    endif /* READ_ONLY_CODE_ZONE */
		jitCodeZoneWriteEnabled = 1;
		/* end enableCodeZoneWrite */
		{
			_oPIC = cogOpenPICSelectornumArgs(_selector, _numArgs);
		}
		/* begin disableCodeZoneWrite */
		
#    if READ_ONLY_CODE_ZONE
		{
			
#      if __APPLE__
			{
				pthread_jit_write_protect_np(1);
			}
#      else /* __APPLE__ */
			{
				sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
			}
#      endif /* __APPLE__ */
		}
#    endif /* READ_ONLY_CODE_ZONE */
		jitCodeZoneWriteEnabled = 0;
		/* end disableCodeZoneWrite */
		{
			if (!((((sqInt) _oPIC ) >= MaxNegativeErrorCode) && (((sqInt) _oPIC ) <= -1))) {
				flushICacheFromto(((usqInt) _oPIC ), ((usqInt) _oPIC ) + openPICSize);
			}
		}
		/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	}
	if ((((sqInt) _oPIC ) >= MaxNegativeErrorCode) && (((sqInt) _oPIC ) <= -1)) {
		if (((sqInt) _oPIC ) == InsufficientCodeSpace) {
			callForCogCompiledCodeCompaction();
		}
		return 0;
	}
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		_extent = rewriteInlineCacheAttagtarget(backEnd, _outerReturn, inlineCacheValueForSelectorinat(_selector, mframeHomeMethodExport(), _outerReturn), ((sqInt) _oPIC ) + cmEntryOffset);
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
		flushICacheFromto(((usqInt) _outerReturn ) - _extent, ((usqInt) _outerReturn ));
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	executeCogMethodfromLinkedSendWithReceiver(_oPIC, _receiver);
	return (assert(0), null);
}
/*	The PIC starts with a header of meta-data followed by machine code. 
	The first thing in the machine code stream is the abort section. */
/* Cogit>>#picAbortAddress: */
static usqIntptr_t NoDbgRegParms
picAbortAddress(CogMethod *_cPIC)
{
	return ((sqInt) _cPIC ) + (sizeof(CogMethod));
}
/*	Answer the start of the abort sequence for invoking the interpreter in a 
	closed PIC. */
/* Cogit>>#picInterpretAbortOffset */
static sqInt
picInterpretAbortOffset(void)
{
	return (interpretOffset()) - ((pushLinkRegisterByteSize(backEnd)) + (callInstructionByteSize(backEnd)));
}
/* Cogit>>#printCogMethodFor: */
void
printCogMethodFor(void *_address)
{
	CogMethod *_cogMethod;

	_cogMethod = methodFor(_address);
	if (_cogMethod == 0) {
		if ((codeEntryFor(_address)) == null) {
			{
				print("not a method");
				cr();
			}
		} else {
			{
				print("trampoline ");
				print(codeEntryNameFor(_address));
				cr();
			}
		}
	} else {
		printCogMethod(_cogMethod);
	}
}
/* Cogit>>#printTrampolineTable */
void
printTrampolineTable(void)
{
	sqInt _i;

	for (_i = 0; _i < trampolineTableIndex; _i += 2) {
		{
			printHex(((sqInt) (trampolineAddresses[_i + 1]) ));
			print(": ");
			print(((char *) (trampolineAddresses[_i]) ));
			cr();
		}
	}
}
/* Cogit>>#printWhereIs: */
void
printWhereIs(void *_address)
{
	CogMethod *_cogMethod;
	sqInt _s;
	char * _trampAddr;

	_cogMethod = methodFor(_address);
	if (_cogMethod == 0) {
		_trampAddr = codeEntryFor(_address);
		if (_trampAddr == null) {
			{
				printHex(((sqInt) _address ));
				print(" not in the code zone");
				cr();
			}
		} else {
			{
				printHex(((sqInt) _address ));
				print(" in trampoline ");
				print(codeEntryNameFor(_address));
				print(" (starting at address ");
				printHexnp(_trampAddr);
				print(")");
				cr();
			}
		}
	} else {
		{
			printHex(((sqInt) _address ));
			print(" in cog method ");
		}
		if (((_cogMethod->selector)) == (nilObject())) {
			if ((((_cogMethod->cmType)) == CMMethod) && (((_s = maybeSelectorOfMethod((_cogMethod->methodObject)))) != null)) {
				{
					print("(nil: ");
					printStringOf(_s);
					print(")");
				}
			} else {
				print("(nil)");
			}
		} else {
			printStringOf((_cogMethod->selector));
		}
		{
			print(" (starting at address ");
			printHexnp(((sqInt) _cogMethod ));
			print(")");
			cr();
		}
	}
}
/* Cogit>>#processorHasDivQuoRemAndMClassIsSmallInteger */
static sqInt
processorHasDivQuoRemAndMClassIsSmallInteger(void)
{
	return mclassIsSmallInteger();
}
/* Cogit>>#processorHasDoublePrecisionFloatingPointSupport */
static sqInt
processorHasDoublePrecisionFloatingPointSupport(void)
{
	/* begin hasDoublePrecisionFloatingPointSupport */
	return 1;
	/* end hasDoublePrecisionFloatingPointSupport */
}
/* Cogit>>#processorHasMultiplyAndMClassIsSmallInteger */
static sqInt
processorHasMultiplyAndMClassIsSmallInteger(void)
{
	return mclassIsSmallInteger();
}
/* Cogit>>#recordGeneratedRunTime:address: */
static void NoDbgRegParms
recordGeneratedRunTimeaddress(char *_aString, sqInt _address)
{
	{
		trampolineAddresses[trampolineTableIndex] = _aString;
		trampolineAddresses[trampolineTableIndex + 1] = ((char *) _address );
	}
	trampolineTableIndex += 2;
}
/*	This one for C support code. */
/* Cogit>>#recordPrimTraceFunc */
sqInt
recordPrimTraceFunc(void)
{
	return recordPrimTrace();
}
/* Cogit>>#recordRunTimeObjectReferences */
static void
recordRunTimeObjectReferences(void)
{
	sqInt _i;
	AbstractInstruction *_instruction;

	for (_i = 0; _i < opcodeIndex; _i += 1) {
		_instruction = abstractInstructionAt(_i);
		if (((_instruction->annotation)) == IsObjectReference) {
			assert(runtimeObjectRefIndex < NumObjRefsInRuntime);
			assert(!hasYoungReferent);
			if (hasYoungReferent) {
				error("attempt to generate run-time routine containing young object reference.  Cannot initialize Cogit run-time.");
			}
			objectReferencesInRuntime[runtimeObjectRefIndex] = ((usqInt) (((((_instruction->opcode)) == Literal)
				 ? (_instruction->address)
				 : ((_instruction->address)) + ((_instruction->machineCodeSize)))) );
			runtimeObjectRefIndex += 1;
		}
	}
}
/* Cogit>>#registerMaskFor: */
static sqInt NoDbgRegParms
registerMaskFor(sqInt _reg)
{
	return 1U << _reg;
}
/* Cogit>>#relocateCallsAndSelfReferencesInMethod: */
static void NoDbgRegParms
relocateCallsAndSelfReferencesInMethod(CogMethod *_cogMethod)
{
	sqInt _annotation;
	sqInt _callDelta;
	usqInt _map;
	sqInt _mapByte;
	sqInt _mcpc;
	sqLong _refDelta;
	sqInt _result;

	_refDelta = (_cogMethod->objectHeader);
	_callDelta = _refDelta;
	assert((((_cogMethod->cmType)) == CMMethod) || (((_cogMethod->cmType)) == CMMegamorphicIC));
	assert((callTargetFromReturnAddress(backEnd, ((sqInt) _cogMethod ) + missOffset)) == (((((_cogMethod->cmType)) == CMMethod)
		 ? methodAbortTrampolineFor((_cogMethod->cmNumArgs))
		 : picAbortTrampolineFor((_cogMethod->cmNumArgs)))));
	relocateCallBeforeReturnPCby(backEnd, ((sqInt) _cogMethod ) + missOffset, -_callDelta);
	/* begin mapFor:performUntil:arg: */
	/* begin firstMappedPCFor: */
	_mcpc = (((_cogMethod->cpicHasMNUCaseOrCMIsFullBlock))
		 ? ((usqInt) _cogMethod ) + cbNoSwitchEntryOffset
		 : ((usqInt) _cogMethod ) + cmNoCheckEntryOffset);
	/* end firstMappedPCFor: */
	_map = (((usqInt) _cogMethod ) + ((_cogMethod->blockSize))) - 1;
	while (((_mapByte = byteAt(_map))) != MapEnd) {
		if (_mapByte >= FirstAnnotation) {
			_mcpc += (_mapByte & DisplacementMask) * 4;
			if ((((_annotation = ((usqInt) _mapByte ) >> AnnotationShift)) == IsSendCall) && ((((usqInt) ((_mapByte = byteAt(_map - 1))) ) >> AnnotationShift) == IsAnnotationExtension)) {
				_annotation += _mapByte & DisplacementMask;
				_map -= 1;
			}
			_result = relocateIfCallOrMethodReferencemcpcdelta(_annotation, ((char *) _mcpc ), _refDelta);
			if (_result != 0) {
				goto l3;
			}
		} else {
			if (_mapByte < ((int) (((usqInt) IsAnnotationExtension ) << AnnotationShift) )) {
				_mcpc += ((sqInt) (((usqInt) (_mapByte - DisplacementX2N) ) << AnnotationShift) ) * 4;
			}
		}
		_map -= 1;
	}
	l3:
	;
	/* end mapFor:performUntil:arg: */
}
/* Cogit>>#relocateCallsInClosedPIC: */
static void NoDbgRegParms
relocateCallsInClosedPIC(CogMethod *_cPIC)
{
	sqInt _callDelta;
	sqInt _entryPoint;
	sqInt _i;
	sqInt _pc;
	sqLong _refDelta;
	CogMethod *_targetMethod;

	_refDelta = (_cPIC->objectHeader);
	_callDelta = _refDelta;
	assert((callTargetFromReturnAddress(backEnd, ((sqInt) _cPIC ) + missOffset)) == (picAbortTrampolineFor((_cPIC->cmNumArgs))));
	relocateCallBeforeReturnPCby(backEnd, ((sqInt) _cPIC ) + missOffset, -_callDelta);
	_pc = ((sqInt) _cPIC ) + firstCPICCaseOffset;
	for (_i = 1; _i <= ((_cPIC->cPICNumCases)); _i += 1) {
		_pc = addressOfEndOfCaseinCPIC(_i, _cPIC);
		if (_i == 1) {
			_entryPoint = jumpLongTargetBeforeFollowingAddress(backEnd, _pc);
		} else {
			/* begin jumpLongConditionalTargetBeforeFollowingAddress: */
			_entryPoint = jumpLongTargetBeforeFollowingAddress(((AbstractInstruction *) backEnd ), _pc);
			/* end jumpLongConditionalTargetBeforeFollowingAddress: */
		}
		if ((((usqInt) _cPIC ) <= ((usqInt) _entryPoint )) && ((((usqInt) _cPIC ) + ((_cPIC->blockSize))) >= ((usqInt) _entryPoint ))) {
		} else {
			_targetMethod = ((CogMethod *) (_entryPoint - cmNoCheckEntryOffset) );
			assert(((_targetMethod->cmType)) == CMMethod);
			if (_i == 1) {
				relocateJumpLongBeforeFollowingAddressby(backEnd, _pc, -(_callDelta - ((_targetMethod->objectHeader))));
			}
 else {
				relocateJumpLongConditionalBeforeFollowingAddressby(backEnd, _pc, -(_callDelta - ((_targetMethod->objectHeader))));
			}
		}
	}
	assert(((_cPIC->cPICNumCases)) > 0);
	relocateMethodReferenceBeforeAddressby(backEnd, (addressOfEndOfCaseinCPIC(2, _cPIC)) + (loadPICLiteralByteSize(backEnd)), _refDelta);
	relocateJumpLongBeforeFollowingAddressby(backEnd, ((sqInt) _cPIC ) + cPICEndOfCodeOffset, -_callDelta);
}
/* Cogit>>#relocateIfCallOrMethodReference:mcpc:delta: */
static sqInt NoDbgRegParms
relocateIfCallOrMethodReferencemcpcdelta(sqInt _annotation, char *_mcpc, sqInt _refDelta)
{
	sqInt _callDelta;
	sqInt _entryPoint;
	sqInt _offset2;
	sqInt *_sendTable2;
	CogMethod *_targetMethod;
	sqInt _unlinkedRoutine;

	_callDelta = _refDelta;
	if (_annotation >= IsSendCall) {
		_entryPoint = callTargetFromReturnAddress(backEnd, ((sqInt) _mcpc ));
		if (_entryPoint <= methodZoneBase) {
			relocateCallBeforeReturnPCby(backEnd, ((sqInt) _mcpc ), -_callDelta);
			return 0;
		}
		/* begin offsetAndSendTableFor:annotation:into: */
		if (_annotation == IsSendCall) {
			_offset2 = cmEntryOffset;
			_sendTable2 = ordinarySendTrampolines;
		} else {
			if (_annotation == IsDirectedSuperSend) {
				_offset2 = cmNoCheckEntryOffset;
				_sendTable2 = directedSuperSendTrampolines;
			} else {
				if (_annotation == IsDirectedSuperBindingSend) {
					_offset2 = cmNoCheckEntryOffset;
					_sendTable2 = directedSuperBindingSendTrampolines;
				} else {
					assert(_annotation == IsSuperSend);
					_offset2 = cmNoCheckEntryOffset;
					_sendTable2 = superSendTrampolines;
				}
			}
		}
		{
			_targetMethod = ((CogMethod *) (_entryPoint - _offset2) );
			if (((_targetMethod->cmType)) != CMFree) {
				relocateCallBeforeReturnPCby(backEnd, ((sqInt) _mcpc ), -(_callDelta - ((_targetMethod->objectHeader))));
				return 0;
			}
			_unlinkedRoutine = _sendTable2[((((_targetMethod->cmNumArgs)) < (NumSendTrampolines - 1)) ? (_targetMethod->cmNumArgs) : NumSendTrampolines - 1)];
			rewriteInlineCacheAttagtarget(backEnd, ((sqInt) _mcpc ), (_targetMethod->selector), _unlinkedRoutine - _callDelta);
			return 0;
		}
		/* end offsetAndSendTableFor:annotation:into: */
	}
	if (_annotation == IsRelativeCall) {
		relocateCallBeforeReturnPCby(backEnd, ((sqInt) _mcpc ), -_callDelta);
		return 0;
	}
	if (_annotation == IsAbsPCReference) {
		relocateMethodReferenceBeforeAddressby(backEnd, ((sqInt) _mcpc ), _refDelta);
		return 0;
	}
	return 0;
}
/* Cogit>>#remapIfObjectRef:pc:hasYoung: */
static sqInt NoDbgRegParms
remapIfObjectRefpchasYoung(sqInt _annotation, char *_mcpc, sqInt _hasYoungPtr)
{
	usqInt _cacheTag2;
	sqInt _callSiteReturnAddress;
	sqInt _entryPoint2;
	sqInt _literal;
	sqInt _mappedCacheTag;
	sqInt _mappedLiteral;
	sqInt _offset2;
	sqInt _tagCouldBeObj2;
	CogMethod * _targetCogCode;

	if (_annotation == IsObjectReference) {
		_literal = unsignedLongAt(((usqInt) _mcpc ));
		if (couldBeObject(_literal)) {
			_mappedLiteral = remapObject(_literal);
			if (_literal != _mappedLiteral) {
				/* begin storeLiteral:atAnnotatedAddress:using: */
				unsignedLongAtput(((usqInt) _mcpc ), _mappedLiteral);
				/* end storeLiteral:atAnnotatedAddress:using: */
				codeModified = 1;
			}
			if ((_hasYoungPtr != 0) && (isYoung(_mappedLiteral))) {
				(((sqInt *) _hasYoungPtr ))[0] = 1;
			}
		}
	}
	if (_annotation >= IsSendCall) {
		/* begin entryCacheTagAndCouldBeObjectAt:annotation:into: */
		_cacheTag2 = inlineCacheTagAt(backEnd, ((sqInt) _mcpc ));
		_entryPoint2 = callTargetFromReturnAddress(backEnd, ((sqInt) _mcpc ));
		_tagCouldBeObj2 = cacheTagIsSelectorForAnnotationandEntryPoint(_annotation, _entryPoint2);
		{
			if (_tagCouldBeObj2 && (couldBeObject(_cacheTag2))) {
				_mappedCacheTag = remapObject(_cacheTag2);
				if (_cacheTag2 != _mappedCacheTag) {
					/* begin rewriteInlineCacheTag:at: */
					_callSiteReturnAddress = ((usqInt) _mcpc );
					longAtput(pcRelativeAddressAt(((AbstractInstruction *) backEnd ), _callSiteReturnAddress - 8), _mappedCacheTag);
					/* end rewriteInlineCacheTag:at: */
					codeModified = 1;
				}
				if ((_hasYoungPtr != 0) && (isYoung(_mappedCacheTag))) {
					(((sqInt *) _hasYoungPtr ))[0] = 1;
				}
			}
			if (_hasYoungPtr != 0) {
				if (_entryPoint2 > methodZoneBase) {
					/* begin targetMethodAndSendTableFor:annotation:into: */
					/* begin offsetAndSendTableFor:annotation:into: */
					if (_annotation == IsSendCall) {
						_offset2 = cmEntryOffset;
					} else {
						if (_annotation == IsDirectedSuperSend) {
							_offset2 = cmNoCheckEntryOffset;
						} else {
							if (_annotation == IsDirectedSuperBindingSend) {
								_offset2 = cmNoCheckEntryOffset;
							} else {
								assert(_annotation == IsSuperSend);
								_offset2 = cmNoCheckEntryOffset;
							}
						}
					}
					{
						_targetCogCode = ((CogMethod *) (_entryPoint2 - _offset2) );
						{
							if (isYoung((_targetCogCode->selector))) {
								(((sqInt *) _hasYoungPtr ))[0] = 1;
							}
						}
					}
					/* end offsetAndSendTableFor:annotation:into: */
					/* end targetMethodAndSendTableFor:annotation:into: */
				}
			}
		}
		/* end entryCacheTagAndCouldBeObjectAt:annotation:into: */
	}
	return 0;
}
/*	Remap a potential object reference from a closed PIC. 
	This may be an object reference, an inline cache tag or null. 
	Answer if the updated literal is young. 
	mcpc is the address of the next instruction following either 
	the load of the method literal or the compare of the class tag. */
/* Cogit>>#remapMaybeObjRefInClosedPICAt: */
static sqInt NoDbgRegParms
remapMaybeObjRefInClosedPICAt(sqInt _mcpc)
{
	sqInt _object;
	sqInt _subject;

	_object = literalBeforeFollowingAddress(backEnd, _mcpc);
	if (!(couldBeObject(_object))) {
		return 0;
	}
	_subject = remapOop(_object);
	if (_object != _subject) {
		storeLiteralbeforeFollowingAddress(backEnd, _subject, _mcpc);
		codeModified = 1;
	}
	return isYoungObject(getMemoryMap(), _subject);
}
/*	Rewrite the three values involved in a CPIC case. Used by the initialize & 
	extend CPICs. 
	c.f. expectedClosedPICPrototype:write the obj ref/operand via the second ldr */
/* Cogit>>#rewritePICCaseAt:tag:objRef:target: */
static void NoDbgRegParms
rewritePICCaseAttagobjReftarget(sqInt _followingAddress, sqInt _newTag, sqInt _newObjRef, sqInt _newTarget)
{
	sqInt _classTagPC;
	sqInt _methodObjPC;

	_methodObjPC = (_followingAddress - (jumpLongConditionalByteSize(backEnd))) - (cmpC32RTempByteSize(backEnd));
	storeLiteralbeforeFollowingAddress(backEnd, _newObjRef, _methodObjPC);
	_classTagPC = _followingAddress - (jumpLongConditionalByteSize(backEnd));
	/* begin storeLiteral32:beforeFollowingAddress: */
	storeLiteralbeforeFollowingAddress(((AbstractInstruction *) backEnd ), _newTag, _classTagPC);
	/* end storeLiteral32:beforeFollowingAddress: */
	rewriteJumpLongAttarget(backEnd, _followingAddress, _newTarget);
}
/* Cogit>>#St1S:Vr:R:Mw: */
static AbstractInstruction * NoDbgRegParms
gSt1SVrRMw(sqInt _aSize, sqInt _aVectorRegister, sqInt _aMemoryRegister, sqInt _anOffset)
{
	return genoperandoperandoperandoperand(St1VrRMw, _aSize, _aVectorRegister, _aMemoryRegister, _anOffset);
}
/* Cogit>>#SubCw:R: */
static AbstractInstruction * NoDbgRegParms
gSubCwR(sqInt _wordConstant, sqInt _reg)
{
	/* begin gen:literal:operand: */
	return checkLiteralforInstruction(_wordConstant, genoperandoperand(SubCwR, _wordConstant, _reg));
	/* end gen:literal:operand: */
}
/*	Free the method as paremeter taking care of enabling/disabling the code 
	zone. To be used by the interpreter and by usages that are not already 
	enabling code zone writing */
/* Cogit>>#safeFreeMethod: */
void
safeFreeMethod(sqInt _cogMethod)
{
	/* begin enableCodeZoneWriteDuring: */
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		freeMethod(_cogMethod);
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	/* end enableCodeZoneWriteDuring: */
}
/*	Change a JIT'ed method's header, enabling code zone wrote. */
/* Cogit>>#setHeaderOopOf:to: */
void
setHeaderOopOfto(CogMethod *_cogMethod, sqInt _aMethodHeaderOop)
{
	assert(((_cogMethod->cmType)) == CMMethod);
	/* begin enableCodeZoneWriteDuring: */
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		(_cogMethod->methodHeader = _aMethodHeaderOop);
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	/* end enableCodeZoneWriteDuring: */
}
/* Cogit>>#setPostCompileHook: */
void
setPostCompileHook(void (*_aFunction)(CogMethod *))
{
	postCompileHook = _aFunction;
}
/*	If a method is compiled to machine code via a block entry it won't have a 
	selector. A subsequent send can find the method and hence fill in the 
	selector.  */
/* Cogit>>#setSelectorOf:to: */
void
setSelectorOfto(CogMethod *_cogMethod, sqInt _aSelectorOop)
{
	assert(((_cogMethod->cmType)) == CMMethod);
	/* begin enableCodeZoneWriteDuring: */
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		(_cogMethod->selector = _aSelectorOop);
		if (isYoung(_aSelectorOop)) {
			ensureInYoungReferrers(_cogMethod);
		}
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	/* end enableCodeZoneWriteDuring: */
}
/* Cogit>>#sizeOfTrampoline: */
int
sizeOfTrampoline(char *_address)
{
	sqInt _i;

	for (_i = 0; _i <= (trampolineTableIndex - 3); _i += 2) {
		if (_address == (trampolineAddresses[_i + 1])) {
			if (((_i + 3) > NumTrampolines) * 2) {
				return (methodZoneBase()) - ((sqInt) (trampolineAddresses[_i + 1]) );
			}
			return ((sqInt) (trampolineAddresses[_i + 3]) ) - ((sqInt) (trampolineAddresses[_i + 1]) );
		}
	}
	return 0;
}
/*	Answer a fake value for the method oop in other than the first case in the 
	PIC prototype. 
	Since we use MoveUniqueCw:R: it must not be confused with a 
	method-relative address. */
/* Cogit>>#subsequentPrototypeMethodOop */
static sqInt
subsequentPrototypeMethodOop(void)
{
	return (((((usqInt) 195929424 ) >= ((methodLabel->address))) && (((usqInt) 195929424 ) < (youngReferrers())))
		 ? 233496237
		 : 195929424);
}
/* Cogit>>#traceLinkedSendOffset */
sqInt
traceLinkedSendOffset(void)
{
	return (cmNoCheckEntryOffset + (callInstructionByteSize(backEnd))) + (pushLinkRegisterByteSize(backEnd));
}
/*	Encode true and false and 0 to N such that they can't be confused for 
	register numbers (including NoReg) 
	and can be tested for by isTrampolineArgConstant: and decoded by 
	trampolineArgValue:  */
/* Cogit>>#trampolineArgConstant: */
static sqInt NoDbgRegParms
trampolineArgConstant(sqInt _booleanOrInteger)
{
	assert(_booleanOrInteger >= 0);
	return -2 - _booleanOrInteger;
}
/* Cogit>>#trampolineName:numArgs: */
static char * NoDbgRegParms
trampolineNamenumArgs(char *_routinePrefix, sqInt _numArgs)
{
	char *_theString;

	/* begin trampolineName:numArgs:limit: */
	_theString = malloc((strlen(_routinePrefix)) + 6);
	sprintf(_theString, "%s%cArgs", _routinePrefix, ((_numArgs <= (NumSendTrampolines - 2))
		 ? '0' + _numArgs
		 : 'N'));
	return _theString;
	/* end trampolineName:numArgs:limit: */
}
/*	Malloc a string with the contents for the trampoline table */
/* Cogit>>#trampolineName:numArgs:limit: */
static char * NoDbgRegParms
trampolineNamenumArgslimit(char *_routinePrefix, int _numArgs, sqInt _argsLimit)
{
	char *_theString;

	_theString = malloc((strlen(_routinePrefix)) + 6);
	sprintf(_theString, "%s%cArgs", _routinePrefix, ((_numArgs <= _argsLimit)
		 ? '0' + _numArgs
		 : 'N'));
	return _theString;
}
/* Cogit>>#trampolineName:numRegArgs: */
static char * NoDbgRegParms
trampolineNamenumRegArgs(char *_routinePrefix, sqInt _numArgs)
{
	sqInt _argsLimit;
	char *_theString;

	/* begin trampolineName:numArgs:limit: */
	_argsLimit = 2;
	_theString = malloc((strlen(_routinePrefix)) + 6);
	sprintf(_theString, "%s%cArgs", _routinePrefix, ((_numArgs <= _argsLimit)
		 ? '0' + _numArgs
		 : 'N'));
	return _theString;
	/* end trampolineName:numArgs:limit: */
}
/* Cogit>>#unknownBytecode */
static sqInt
unknownBytecode(void)
{
	return EncounteredUnknownBytecode;
}
/*	Unlink all sends in cog methods. */
/* Cogit>>#unlinkAllSends */
void
unlinkAllSends(void)
{
	sqInt _annotation;
	CogMethod *_cogMethod;
	usqInt _map;
	sqInt _mapByte;
	sqInt _mcpc;
	sqInt _result;

	if (!methodZoneBase) {
		return;
	}
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		_cogMethod = ((CogMethod *) methodZoneBase );
		voidOpenPICList();
		while (_cogMethod < (limitZony())) {
			if (((_cogMethod->cmType)) == CMMethod) {
				/* begin mapFor:performUntil:arg: */
				/* begin firstMappedPCFor: */
				_mcpc = (((_cogMethod->cpicHasMNUCaseOrCMIsFullBlock))
					 ? ((usqInt) _cogMethod ) + cbNoSwitchEntryOffset
					 : ((usqInt) _cogMethod ) + cmNoCheckEntryOffset);
				/* end firstMappedPCFor: */
				_map = (((usqInt) _cogMethod ) + ((_cogMethod->blockSize))) - 1;
				while (((_mapByte = byteAt(_map))) != MapEnd) {
					if (_mapByte >= FirstAnnotation) {
						_mcpc += (_mapByte & DisplacementMask) * 4;
						if ((((_annotation = ((usqInt) _mapByte ) >> AnnotationShift)) == IsSendCall) && ((((usqInt) ((_mapByte = byteAt(_map - 1))) ) >> AnnotationShift) == IsAnnotationExtension)) {
							_annotation += _mapByte & DisplacementMask;
							_map -= 1;
						}
						_result = unlinkIfLinkedSendpcignored(_annotation, ((char *) _mcpc ), 0);
						if (_result != 0) {
							goto l4;
						}
					} else {
						if (_mapByte < ((int) (((usqInt) IsAnnotationExtension ) << AnnotationShift) )) {
							_mcpc += ((sqInt) (((usqInt) (_mapByte - DisplacementX2N) ) << AnnotationShift) ) * 4;
						}
					}
					_map -= 1;
				}
				l4:
				;
				/* end mapFor:performUntil:arg: */
			} else {
				if (((_cogMethod->cmType)) != CMFree) {
					freeMethod(_cogMethod);
				}
			}
			_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
		}
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
		if (((usqInt) methodZoneBase ) < ((usqInt) (limitZony()) )) {
			flushICacheFromto(((usqInt) methodZoneBase ), ((usqInt) (limitZony()) ));
		}
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
}
/* Cogit>>#unlinkIfFreeOrLinkedSend:pc:of: */
static sqInt NoDbgRegParms
unlinkIfFreeOrLinkedSendpcof(sqInt _annotation, char *_mcpc, sqInt _theSelector)
{
	sqInt _entryPoint;
	sqInt _offset2;
	sqInt *_sendTable2;
	CogMethod * _targetCogCode;
	sqInt _unlinkedRoutine;

	if (_annotation >= IsSendCall) {
		_entryPoint = callTargetFromReturnAddress(backEnd, ((sqInt) _mcpc ));
		if (_entryPoint > methodZoneBase) {
			/* begin targetMethodAndSendTableFor:annotation:into: */
			/* begin offsetAndSendTableFor:annotation:into: */
			if (_annotation == IsSendCall) {
				_offset2 = cmEntryOffset;
				_sendTable2 = ordinarySendTrampolines;
			} else {
				if (_annotation == IsDirectedSuperSend) {
					_offset2 = cmNoCheckEntryOffset;
					_sendTable2 = directedSuperSendTrampolines;
				} else {
					if (_annotation == IsDirectedSuperBindingSend) {
						_offset2 = cmNoCheckEntryOffset;
						_sendTable2 = directedSuperBindingSendTrampolines;
					} else {
						assert(_annotation == IsSuperSend);
						_offset2 = cmNoCheckEntryOffset;
						_sendTable2 = superSendTrampolines;
					}
				}
			}
			{
				_targetCogCode = ((CogMethod *) (_entryPoint - _offset2) );
				{
					if ((((_targetCogCode->cmType)) == CMFree) || (((_targetCogCode->selector)) == _theSelector)) {
						/* begin unlinkSendAt:targetMethod:sendTable: */
						_unlinkedRoutine = _sendTable2[((((_targetCogCode->cmNumArgs)) < (NumSendTrampolines - 1)) ? (_targetCogCode->cmNumArgs) : NumSendTrampolines - 1)];
						rewriteInlineCacheAttagtarget(backEnd, ((sqInt) _mcpc ), inlineCacheValueForSelectorinat((_targetCogCode->selector), enumeratingCogMethod, _mcpc), _unlinkedRoutine);
						codeModified = 1;
						/* end unlinkSendAt:targetMethod:sendTable: */
					}
				}
			}
			/* end offsetAndSendTableFor:annotation:into: */
			/* end targetMethodAndSendTableFor:annotation:into: */
		}
	}
	return 0;
}
/* Cogit>>#unlinkIfInvalidClassSend:pc:ignored: */
static sqInt NoDbgRegParms
unlinkIfInvalidClassSendpcignored(sqInt _annotation, char *_mcpc, sqInt superfluity)
{
	sqInt _entryPoint;
	sqInt _offset2;
	sqInt *_sendTable2;
	CogMethod * _targetCogCode;
	sqInt _unlinkedRoutine;

	if (_annotation >= IsSendCall) {
		_entryPoint = callTargetFromReturnAddress(backEnd, ((sqInt) _mcpc ));
		if (_entryPoint > methodZoneBase) {
			/* begin targetMethodAndSendTableFor:annotation:into: */
			/* begin offsetAndSendTableFor:annotation:into: */
			if (_annotation == IsSendCall) {
				_offset2 = cmEntryOffset;
				_sendTable2 = ordinarySendTrampolines;
			} else {
				if (_annotation == IsDirectedSuperSend) {
					_offset2 = cmNoCheckEntryOffset;
					_sendTable2 = directedSuperSendTrampolines;
				} else {
					if (_annotation == IsDirectedSuperBindingSend) {
						_offset2 = cmNoCheckEntryOffset;
						_sendTable2 = directedSuperBindingSendTrampolines;
					} else {
						assert(_annotation == IsSuperSend);
						_offset2 = cmNoCheckEntryOffset;
						_sendTable2 = superSendTrampolines;
					}
				}
			}
			{
				_targetCogCode = ((CogMethod *) (_entryPoint - _offset2) );
				{
					if (!(((_annotation == IsSuperSend) || ((_annotation >= IsDirectedSuperSend) && (_annotation <= IsDirectedSuperBindingSend))) || (((_targetCogCode->cmType)) == CMMegamorphicIC))) {
						if (!(isValidClassTag(inlineCacheTagAt(backEnd, ((sqInt) _mcpc ))))) {
							/* begin unlinkSendAt:targetMethod:sendTable: */
							_unlinkedRoutine = _sendTable2[((((_targetCogCode->cmNumArgs)) < (NumSendTrampolines - 1)) ? (_targetCogCode->cmNumArgs) : NumSendTrampolines - 1)];
							rewriteInlineCacheAttagtarget(backEnd, ((sqInt) _mcpc ), inlineCacheValueForSelectorinat((_targetCogCode->selector), enumeratingCogMethod, _mcpc), _unlinkedRoutine);
							codeModified = 1;
							/* end unlinkSendAt:targetMethod:sendTable: */
						}
					}
				}
			}
			/* end offsetAndSendTableFor:annotation:into: */
			/* end targetMethodAndSendTableFor:annotation:into: */
		}
	}
	return 0;
}
/* Cogit>>#unlinkIfLinkedSendToFree:pc:ignored: */
static sqInt NoDbgRegParms
unlinkIfLinkedSendToFreepcignored(sqInt _annotation, char *_mcpc, sqInt superfluity)
{
	sqInt _entryPoint;
	sqInt _offset2;
	sqInt *_sendTable2;
	CogMethod * _targetCogCode;
	sqInt _unlinkedRoutine;

	if (_annotation >= IsSendCall) {
		_entryPoint = callTargetFromReturnAddress(backEnd, ((sqInt) _mcpc ));
		if (_entryPoint > methodZoneBase) {
			/* begin targetMethodAndSendTableFor:annotation:into: */
			/* begin offsetAndSendTableFor:annotation:into: */
			if (_annotation == IsSendCall) {
				_offset2 = cmEntryOffset;
				_sendTable2 = ordinarySendTrampolines;
			} else {
				if (_annotation == IsDirectedSuperSend) {
					_offset2 = cmNoCheckEntryOffset;
					_sendTable2 = directedSuperSendTrampolines;
				} else {
					if (_annotation == IsDirectedSuperBindingSend) {
						_offset2 = cmNoCheckEntryOffset;
						_sendTable2 = directedSuperBindingSendTrampolines;
					} else {
						assert(_annotation == IsSuperSend);
						_offset2 = cmNoCheckEntryOffset;
						_sendTable2 = superSendTrampolines;
					}
				}
			}
			{
				_targetCogCode = ((CogMethod *) (_entryPoint - _offset2) );
				{
					if (((_targetCogCode->cmType)) == CMFree) {
						/* begin unlinkSendAt:targetMethod:sendTable: */
						_unlinkedRoutine = _sendTable2[((((_targetCogCode->cmNumArgs)) < (NumSendTrampolines - 1)) ? (_targetCogCode->cmNumArgs) : NumSendTrampolines - 1)];
						rewriteInlineCacheAttagtarget(backEnd, ((sqInt) _mcpc ), inlineCacheValueForSelectorinat((_targetCogCode->selector), enumeratingCogMethod, _mcpc), _unlinkedRoutine);
						codeModified = 1;
						/* end unlinkSendAt:targetMethod:sendTable: */
					}
				}
			}
			/* end offsetAndSendTableFor:annotation:into: */
			/* end targetMethodAndSendTableFor:annotation:into: */
		}
	}
	return 0;
}
/* Cogit>>#unlinkIfLinkedSend:pc:ignored: */
static sqInt NoDbgRegParms
unlinkIfLinkedSendpcignored(sqInt _annotation, char *_mcpc, sqInt superfluity)
{
	sqInt _entryPoint;
	sqInt _offset2;
	sqInt *_sendTable2;
	CogMethod * _targetCogCode;
	sqInt _unlinkedRoutine;

	if (_annotation >= IsSendCall) {
		_entryPoint = callTargetFromReturnAddress(backEnd, ((sqInt) _mcpc ));
		if (_entryPoint > methodZoneBase) {
			/* begin targetMethodAndSendTableFor:annotation:into: */
			/* begin offsetAndSendTableFor:annotation:into: */
			if (_annotation == IsSendCall) {
				_offset2 = cmEntryOffset;
				_sendTable2 = ordinarySendTrampolines;
			} else {
				if (_annotation == IsDirectedSuperSend) {
					_offset2 = cmNoCheckEntryOffset;
					_sendTable2 = directedSuperSendTrampolines;
				} else {
					if (_annotation == IsDirectedSuperBindingSend) {
						_offset2 = cmNoCheckEntryOffset;
						_sendTable2 = directedSuperBindingSendTrampolines;
					} else {
						assert(_annotation == IsSuperSend);
						_offset2 = cmNoCheckEntryOffset;
						_sendTable2 = superSendTrampolines;
					}
				}
			}
			{
				_targetCogCode = ((CogMethod *) (_entryPoint - _offset2) );
				{
					/* begin unlinkSendAt:targetMethod:sendTable: */
					_unlinkedRoutine = _sendTable2[((((_targetCogCode->cmNumArgs)) < (NumSendTrampolines - 1)) ? (_targetCogCode->cmNumArgs) : NumSendTrampolines - 1)];
					rewriteInlineCacheAttagtarget(backEnd, ((sqInt) _mcpc ), inlineCacheValueForSelectorinat((_targetCogCode->selector), enumeratingCogMethod, _mcpc), _unlinkedRoutine);
					codeModified = 1;
					/* end unlinkSendAt:targetMethod:sendTable: */
				}
			}
			/* end offsetAndSendTableFor:annotation:into: */
			/* end targetMethodAndSendTableFor:annotation:into: */
		}
	}
	return 0;
}
/* Cogit>>#unlinkIfLinkedSend:pc:to: */
static sqInt NoDbgRegParms
unlinkIfLinkedSendpcto(sqInt _annotation, char *_mcpc, sqInt _theCogMethod)
{
	sqInt _entryPoint;
	sqInt _offset2;
	sqInt *_sendTable2;
	CogMethod * _targetCogCode;
	sqInt _unlinkedRoutine;

	if (_annotation >= IsSendCall) {
		_entryPoint = callTargetFromReturnAddress(backEnd, ((sqInt) _mcpc ));
		if (_entryPoint > methodZoneBase) {
			/* begin targetMethodAndSendTableFor:annotation:into: */
			/* begin offsetAndSendTableFor:annotation:into: */
			if (_annotation == IsSendCall) {
				_offset2 = cmEntryOffset;
				_sendTable2 = ordinarySendTrampolines;
			} else {
				if (_annotation == IsDirectedSuperSend) {
					_offset2 = cmNoCheckEntryOffset;
					_sendTable2 = directedSuperSendTrampolines;
				} else {
					if (_annotation == IsDirectedSuperBindingSend) {
						_offset2 = cmNoCheckEntryOffset;
						_sendTable2 = directedSuperBindingSendTrampolines;
					} else {
						assert(_annotation == IsSuperSend);
						_offset2 = cmNoCheckEntryOffset;
						_sendTable2 = superSendTrampolines;
					}
				}
			}
			{
				_targetCogCode = ((CogMethod *) (_entryPoint - _offset2) );
				{
					if (((sqInt) _targetCogCode ) == _theCogMethod) {
						/* begin unlinkSendAt:targetMethod:sendTable: */
						_unlinkedRoutine = _sendTable2[((((_targetCogCode->cmNumArgs)) < (NumSendTrampolines - 1)) ? (_targetCogCode->cmNumArgs) : NumSendTrampolines - 1)];
						rewriteInlineCacheAttagtarget(backEnd, ((sqInt) _mcpc ), inlineCacheValueForSelectorinat((_targetCogCode->selector), enumeratingCogMethod, _mcpc), _unlinkedRoutine);
						codeModified = 1;
						/* end unlinkSendAt:targetMethod:sendTable: */
					}
				}
			}
			/* end offsetAndSendTableFor:annotation:into: */
			/* end targetMethodAndSendTableFor:annotation:into: */
		}
	}
	return 0;
}
/*	Unlink all sends in cog methods whose class tag is that of a forwarded 
	class.  */
/* Cogit>>#unlinkSendsLinkedForInvalidClasses */
void
unlinkSendsLinkedForInvalidClasses(void)
{
	sqInt _annotation;
	CogMethod *_cogMethod;
	int _freedPIC;
	usqInt _map;
	sqInt _mapByte;
	sqInt _mcpc;
	sqInt _result;

	if (!methodZoneBase) {
		return;
	}
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		_cogMethod = ((CogMethod *) methodZoneBase );
		codeModified = (_freedPIC = 0);
		while (_cogMethod < (limitZony())) {
			if (((_cogMethod->cmType)) == CMMethod) {
				/* begin mapFor:performUntil:arg: */
				/* begin firstMappedPCFor: */
				_mcpc = (((_cogMethod->cpicHasMNUCaseOrCMIsFullBlock))
					 ? ((usqInt) _cogMethod ) + cbNoSwitchEntryOffset
					 : ((usqInt) _cogMethod ) + cmNoCheckEntryOffset);
				/* end firstMappedPCFor: */
				_map = (((usqInt) _cogMethod ) + ((_cogMethod->blockSize))) - 1;
				while (((_mapByte = byteAt(_map))) != MapEnd) {
					if (_mapByte >= FirstAnnotation) {
						_mcpc += (_mapByte & DisplacementMask) * 4;
						if ((((_annotation = ((usqInt) _mapByte ) >> AnnotationShift)) == IsSendCall) && ((((usqInt) ((_mapByte = byteAt(_map - 1))) ) >> AnnotationShift) == IsAnnotationExtension)) {
							_annotation += _mapByte & DisplacementMask;
							_map -= 1;
						}
						_result = unlinkIfInvalidClassSendpcignored(_annotation, ((char *) _mcpc ), 0);
						if (_result != 0) {
							goto l4;
						}
					} else {
						if (_mapByte < ((int) (((usqInt) IsAnnotationExtension ) << AnnotationShift) )) {
							_mcpc += ((sqInt) (((usqInt) (_mapByte - DisplacementX2N) ) << AnnotationShift) ) * 4;
						}
					}
					_map -= 1;
				}
				l4:
				;
				/* end mapFor:performUntil:arg: */
			} else {
				if ((((_cogMethod->cmType)) == CMPolymorphicIC) && (cPICHasForwardedClass(_cogMethod))) {
					freeMethod(_cogMethod);
					_freedPIC = 1;
				}
			}
			_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
		}
		if (_freedPIC) {
			unlinkSendsToFree();
		}
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
		if (codeModified) {
			flushICacheFromto(((usqInt) methodZoneBase ), ((usqInt) (limitZony()) ));
		}
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
}
/*	Unlink all sends in cog methods. Free all Closed PICs with the selector, 
	or with an MNU case if isMNUSelector. First check if any method actually 
	has the selector; if not there can't be any linked send to it. This 
	routine (including descendents) is performance critical. It contributes 
	perhaps 30% of entire execution time in Compiler recompileAll. */
/* Cogit>>#unlinkSendsOf:isMNUSelector: */
void
unlinkSendsOfisMNUSelector(sqInt _selector, sqInt _isMNUSelector)
{
	sqInt _annotation;
	CogMethod *_cogMethod;
	usqInt _map;
	sqInt _mapByte;
	sqInt _mcpc;
	int _mustScanAndUnlink;
	sqInt _result;

	if (!methodZoneBase) {
		return;
	}
	/* begin enableCodeZoneWriteDuring: */
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		_cogMethod = ((CogMethod *) methodZoneBase );
		_mustScanAndUnlink = 0;
		if (_isMNUSelector) {
			while (_cogMethod < (limitZony())) {
				if (((_cogMethod->cmType)) != CMFree) {
					if (((_cogMethod->cpicHasMNUCaseOrCMIsFullBlock)) && (((_cogMethod->cmType)) == CMPolymorphicIC)) {
						assert(((_cogMethod->cmType)) == CMPolymorphicIC);
						freeMethod(_cogMethod);
						_mustScanAndUnlink = 1;
					} else {
						if (((_cogMethod->selector)) == _selector) {
							_mustScanAndUnlink = 1;
							if (((_cogMethod->cmType)) == CMPolymorphicIC) {
								freeMethod(_cogMethod);
							}
						}
					}
				}
				_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
			}
		}
 else {
			while (_cogMethod < (limitZony())) {
				if ((((_cogMethod->cmType)) != CMFree) && (((_cogMethod->selector)) == _selector)) {
					_mustScanAndUnlink = 1;
					if (((_cogMethod->cmType)) == CMPolymorphicIC) {
						freeMethod(_cogMethod);
					}
				}
				_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
			}
		}
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	/* end enableCodeZoneWriteDuring: */
	if (!_mustScanAndUnlink) {
		return;
	}
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		codeModified = 0;
		_cogMethod = ((CogMethod *) methodZoneBase );
		while (_cogMethod < (limitZony())) {
			if (((_cogMethod->cmType)) == CMMethod) {
				/* begin mapFor:performUntil:arg: */
				/* begin firstMappedPCFor: */
				_mcpc = (((_cogMethod->cpicHasMNUCaseOrCMIsFullBlock))
					 ? ((usqInt) _cogMethod ) + cbNoSwitchEntryOffset
					 : ((usqInt) _cogMethod ) + cmNoCheckEntryOffset);
				/* end firstMappedPCFor: */
				_map = (((usqInt) _cogMethod ) + ((_cogMethod->blockSize))) - 1;
				while (((_mapByte = byteAt(_map))) != MapEnd) {
					if (_mapByte >= FirstAnnotation) {
						_mcpc += (_mapByte & DisplacementMask) * 4;
						if ((((_annotation = ((usqInt) _mapByte ) >> AnnotationShift)) == IsSendCall) && ((((usqInt) ((_mapByte = byteAt(_map - 1))) ) >> AnnotationShift) == IsAnnotationExtension)) {
							_annotation += _mapByte & DisplacementMask;
							_map -= 1;
						}
						_result = unlinkIfFreeOrLinkedSendpcof(_annotation, ((char *) _mcpc ), _selector);
						if (_result != 0) {
							goto l4;
						}
					} else {
						if (_mapByte < ((int) (((usqInt) IsAnnotationExtension ) << AnnotationShift) )) {
							_mcpc += ((sqInt) (((usqInt) (_mapByte - DisplacementX2N) ) << AnnotationShift) ) * 4;
						}
					}
					_map -= 1;
				}
				l4:
				;
				/* end mapFor:performUntil:arg: */
			}
			_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
		}
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
		if (codeModified) {
			flushICacheFromto(((usqInt) methodZoneBase ), ((usqInt) (limitZony()) ));
		}
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
}
/*	Unlink all sends in cog methods to free methods and/or pics. */
/* Cogit>>#unlinkSendsToFree */
void
unlinkSendsToFree(void)
{
	sqInt _annotation;
	CogMethod *_cogMethod;
	usqInt _map;
	sqInt _mapByte;
	sqInt _mcpc;
	sqInt _result;

	if (!methodZoneBase) {
		return;
	}
	codeModified = 0;
	_cogMethod = ((CogMethod *) methodZoneBase );
	while (_cogMethod < (limitZony())) {
		if (((_cogMethod->cmType)) == CMMethod) {
			/* begin mapFor:performUntil:arg: */
			/* begin firstMappedPCFor: */
			_mcpc = (((_cogMethod->cpicHasMNUCaseOrCMIsFullBlock))
				 ? ((usqInt) _cogMethod ) + cbNoSwitchEntryOffset
				 : ((usqInt) _cogMethod ) + cmNoCheckEntryOffset);
			/* end firstMappedPCFor: */
			_map = (((usqInt) _cogMethod ) + ((_cogMethod->blockSize))) - 1;
			while (((_mapByte = byteAt(_map))) != MapEnd) {
				if (_mapByte >= FirstAnnotation) {
					_mcpc += (_mapByte & DisplacementMask) * 4;
					if ((((_annotation = ((usqInt) _mapByte ) >> AnnotationShift)) == IsSendCall) && ((((usqInt) ((_mapByte = byteAt(_map - 1))) ) >> AnnotationShift) == IsAnnotationExtension)) {
						_annotation += _mapByte & DisplacementMask;
						_map -= 1;
					}
					_result = unlinkIfLinkedSendToFreepcignored(_annotation, ((char *) _mcpc ), 0);
					if (_result != 0) {
						goto l3;
					}
				} else {
					if (_mapByte < ((int) (((usqInt) IsAnnotationExtension ) << AnnotationShift) )) {
						_mcpc += ((sqInt) (((usqInt) (_mapByte - DisplacementX2N) ) << AnnotationShift) ) * 4;
					}
				}
				_map -= 1;
			}
			l3:
			;
			/* end mapFor:performUntil:arg: */
		} else {
			if (((_cogMethod->cmType)) == CMPolymorphicIC) {
				assert(noTargetsFreeInClosedPIC(_cogMethod));
			}
		}
		_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
	}
}
/*	Unlink all sends in cog methods to a particular target method. 
	If targetMethodObject isn't actually a method (perhaps being 
	used via invokeAsMethod) then there's nothing to do. */
/* Cogit>>#unlinkSendsTo:andFreeIf: */
void
unlinkSendsToandFreeIf(sqInt _targetMethodObject, sqInt _freeIfTrue)
{
	sqInt _annotation;
	CogMethod *_cogMethod;
	int _freedPIC;
	usqInt _map;
	sqInt _mapByte;
	sqInt _mcpc;
	sqInt _result;
	CogMethod *_targetMethod;

	if (!((isOopCompiledMethod(_targetMethodObject)) && (methodHasCogMethod(_targetMethodObject)))) {
		return;
	}
	_targetMethod = cogMethodOf(_targetMethodObject);
	if (!methodZoneBase) {
		return;
	}
	codeModified = (_freedPIC = 0);
	_cogMethod = ((CogMethod *) methodZoneBase );
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		while (_cogMethod < (limitZony())) {
			if (((_cogMethod->cmType)) == CMMethod) {
				/* begin mapFor:performUntil:arg: */
				/* begin firstMappedPCFor: */
				_mcpc = (((_cogMethod->cpicHasMNUCaseOrCMIsFullBlock))
					 ? ((usqInt) _cogMethod ) + cbNoSwitchEntryOffset
					 : ((usqInt) _cogMethod ) + cmNoCheckEntryOffset);
				/* end firstMappedPCFor: */
				_map = (((usqInt) _cogMethod ) + ((_cogMethod->blockSize))) - 1;
				while (((_mapByte = byteAt(_map))) != MapEnd) {
					if (_mapByte >= FirstAnnotation) {
						_mcpc += (_mapByte & DisplacementMask) * 4;
						if ((((_annotation = ((usqInt) _mapByte ) >> AnnotationShift)) == IsSendCall) && ((((usqInt) ((_mapByte = byteAt(_map - 1))) ) >> AnnotationShift) == IsAnnotationExtension)) {
							_annotation += _mapByte & DisplacementMask;
							_map -= 1;
						}
						_result = unlinkIfLinkedSendpcto(_annotation, ((char *) _mcpc ), ((sqInt) _targetMethod ));
						if (_result != 0) {
							goto l4;
						}
					} else {
						if (_mapByte < ((int) (((usqInt) IsAnnotationExtension ) << AnnotationShift) )) {
							_mcpc += ((sqInt) (((usqInt) (_mapByte - DisplacementX2N) ) << AnnotationShift) ) * 4;
						}
					}
					_map -= 1;
				}
				l4:
				;
				/* end mapFor:performUntil:arg: */
			} else {
				if ((((_cogMethod->cmType)) == CMPolymorphicIC) && (cPICHasTarget(_cogMethod, _targetMethod))) {
					freeMethod(_cogMethod);
					_freedPIC = 1;
				}
			}
			_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
		}
		if (_freeIfTrue) {
			freeMethod(_targetMethod);
		}
		if (_freedPIC) {
			unlinkSendsToFree();
		}
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
		if (!_freedPIC && codeModified) {
			flushICacheFromto(((usqInt) methodZoneBase ), ((usqInt) (limitZony()) ));
		}
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
}
/* Cogit>>#XorCw:R: */
static AbstractInstruction * NoDbgRegParms
gXorCwR(sqInt _wordConstant, sqInt _reg)
{
	/* begin gen:literal:operand: */
	return checkLiteralforInstruction(_wordConstant, genoperandoperand(XorCwR, _wordConstant, _reg));
	/* end gen:literal:operand: */
}
/*	Access for the object representations when they need to prepend code to 
	trampolines. Eliminate stale dependent info. */
/* Cogit>>#zeroOpcodeIndex */
static void
zeroOpcodeIndex(void)
{
	sqInt _i;

	for (_i = 0; _i < opcodeIndex; _i += 1) {
		((abstractOpcodes[_i]).dependent = null);
	}
	zeroOpcodeIndexForNewOpcodes();
}
/*	Access for the object representations when they need to prepend code to 
	trampolines.  */
/* Cogit>>#zeroOpcodeIndexForNewOpcodes */
static void
zeroOpcodeIndexForNewOpcodes(void)
{
	opcodeIndex = 0;
	/* begin resetLiterals */
	firstOpcodeIndex = 1U << 16;
	nextLiteralIndex = (lastDumpedLiteralIndex = 0);
	/* end resetLiterals */
}
/* CogMethod>>#counters */
static sqInt NoDbgRegParms
counters(CogMethod * self_in_counters)
{
	return 0;
}
/* CogMethodZone>>#addAllToYoungReferrers */
void
addAllToYoungReferrers(void)
{
	CogMethod *_cogMethod;

	/* begin enableCodeZoneWriteDuring: */
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		_cogMethod = ((CogMethod *) baseAddress );
		while (_cogMethod < (limitZony())) {
			if ((((_cogMethod->cmType)) == CMMethod) || (((_cogMethod->cmType)) == CMMegamorphicIC)) {
				ensureInYoungReferrers(_cogMethod);
			}
			_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
		}
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	/* end enableCodeZoneWriteDuring: */
}
/* CogMethodZone>>#addToMegamorphicICList: */
static void NoDbgRegParms
addToMegamorphicICList(CogMethod *_anOpenPIC)
{
	assert(((_anOpenPIC->cmType)) == CMMegamorphicIC);
	assert((openPICList == null) || (((openPICList->cmType)) == CMMegamorphicIC));
	(_anOpenPIC->nextOpenPIC = ((usqInt) openPICList ));
	openPICList = _anOpenPIC;
}
/* CogMethodZone>>#addToYoungReferrers: */
static void NoDbgRegParms
addToYoungReferrers(CogMethod *_cogMethod)
{
	assert(youngReferrers <= limitAddress);
	assert((occurrencesInYoungReferrers(_cogMethod)) == 0);
	assert((_cogMethod->cmRefersToYoung));
	assert((youngReferrers <= limitAddress) && (youngReferrers >= (limitAddress - (methodCount * BytesPerWord))));
	if (!(asserta((limitAddress - (methodCount * BytesPerWord)) >= mzFreeStart))) {
		error("no room on youngReferrers list");
	}
	youngReferrers -= BytesPerWord;
	longAtput(youngReferrers, ((usqInt) _cogMethod ));
}
/* CogMethodZone>>#allocate: */
static usqInt NoDbgRegParms
allocate(sqInt _numBytes)
{
	usqInt _allocation;
	sqInt _roundedBytes;

	_roundedBytes = (_numBytes + 7) & -8;
	if ((mzFreeStart + _roundedBytes) >= (limitAddress - (methodCount * BytesPerWord))) {
		return 0;
	}
	_allocation = mzFreeStart;
	mzFreeStart += _roundedBytes;
	methodCount += 1;
	return _allocation;
}
/*	Free all methods */
/* CogMethodZone>>#clearCogCompiledCode */
static void
clearCogCompiledCode(void)
{
	CogMethod *_cogMethod;

	/* begin enableCodeZoneWriteDuring: */
	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		_cogMethod = ((CogMethod *) baseAddress );
		while (((usqInt) _cogMethod ) < mzFreeStart) {
			if (((_cogMethod->cmType)) == CMMethod) {
				freeMethod(_cogMethod);
			}
			_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
		}
		manageFromto(baseAddress, limitAddress);
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
	/* end enableCodeZoneWriteDuring: */
}
/* CogMethodZone>>#compactCompiledCode */
static void
compactCompiledCode(void)
{
	unsigned short _byteSize;
	CogMethod *_dest;
	sqLong _objectHeaderValue;
	CogMethod *_source;

	compactionInProgress = 1;
	_objectHeaderValue = nullHeaderForMachineCodeMethod();
	_source = ((CogMethod *) baseAddress );
	voidOpenPICList();
	methodCount = 0;
	while ((_source < (limitZony())) && (((_source->cmType)) != CMFree)) {
		assert((cogMethodDoesntLookKosher(_source)) == 0);
		(_source->objectHeader = _objectHeaderValue);
		if (((_source->cmUsageCount)) > 0) {
			(_source->cmUsageCount = ((_source->cmUsageCount)) / 2);
		}
		if (((_source->cmType)) == CMMegamorphicIC) {
			addToMegamorphicICList(_source);
		}
		methodCount += 1;
		_source = ((CogMethod *) (roundUpLength(((sqInt) _source ) + ((_source->blockSize)))) );
	}
	if (_source >= (limitZony())) {
		{
			haltmsg("no free methods; cannot compact.");
			return;
		}
	}
	_dest = _source;
	while (_source < (limitZony())) {
		assert((maybeFreeCogMethodDoesntLookKosher(_source)) == 0);
		_byteSize = (_source->blockSize);
		if (((_source->cmType)) != CMFree) {
			methodCount += 1;
			memmove(_dest, _source, _byteSize);
			(_dest->objectHeader = _objectHeaderValue);
			if (((_dest->cmType)) == CMMethod) {
				if (((sqInt) (rawHeaderOf((_dest->methodObject))) ) == ((sqInt) _source )) {
					rawHeaderOfput((_dest->methodObject), ((sqInt) _dest ));
				}
 else {
					assert((noAssertMethodClassAssociationOf((_dest->methodObject))) == (nilObject()));
				}
			} else {
				if (((_dest->cmType)) == CMMegamorphicIC) {
					addToMegamorphicICList(_dest);
				}
			}
			if (((_dest->cmUsageCount)) > 0) {
				(_dest->cmUsageCount = ((_dest->cmUsageCount)) / 2);
			}
			_dest = ((CogMethod *) (roundUpLength(((sqInt) _dest ) + ((_dest->blockSize)))) );
		}
		_source = ((CogMethod *) (roundUpLength(((sqInt) _source ) + _byteSize)) );
	}
	mzFreeStart = ((usqInt) _dest );
	methodBytesFreedSinceLastCompaction = 0;
	compactionInProgress = 0;
}
/* CogMethodZone>>#ensureInYoungReferrers: */
static void NoDbgRegParms
ensureInYoungReferrers(CogMethod *_cogMethod)
{
	if (!((_cogMethod->cmRefersToYoung))) {
		assert((occurrencesInYoungReferrers(_cogMethod)) == 0);
		(_cogMethod->cmRefersToYoung = 1);
		addToYoungReferrers(_cogMethod);
	}
}
/* CogMethodZone>>#followForwardedLiteralsInOpenPICList */
static void
followForwardedLiteralsInOpenPICList(void)
{
	CogMethod *_openPIC;

	_openPIC = openPICList;
	while (_openPIC != null) {
		followForwardedLiteralsIn(_openPIC);
		_openPIC = ((CogMethod *) ((_openPIC->nextOpenPIC)) );
	}
}
/* CogMethodZone>>#freeMethod: */
void
freeMethod(CogMethod *_cogMethod)
{
	assert(((_cogMethod->cmType)) != CMFree);
	assert((cogMethodDoesntLookKosher(_cogMethod)) == 0);
	if (((_cogMethod->cmType)) == CMMethod) {
		if (((sqInt) (rawHeaderOf((_cogMethod->methodObject))) ) == ((sqInt) _cogMethod )) {
			rawHeaderOfput((_cogMethod->methodObject), (_cogMethod->methodHeader));
		}
 else {
			assert((noAssertMethodClassAssociationOf((_cogMethod->methodObject))) == (nilObject()));
		}
	}
	if (((_cogMethod->cmType)) == CMMegamorphicIC) {
		removeFromOpenPICList(_cogMethod);
	}
	(_cogMethod->cmRefersToYoung = 0);
	(_cogMethod->cmType = CMFree);
	methodBytesFreedSinceLastCompaction += (_cogMethod->blockSize);
}
/*	Free methods, preferring older methods for compaction, up to some 
	fraction, currently a quarter. */
/* CogMethodZone>>#freeOlderMethodsForCompaction */
static void
freeOlderMethodsForCompaction(void)
{
	sqInt _amountToFree;
	CogMethod *_cogMethod;
	int _freeableUsage;
	sqInt _freedSoFar;
	sqInt _initialFreeSpace;
	sqInt _zoneSize;

	_zoneSize = limitAddress - baseAddress;
	_initialFreeSpace = (limitAddress - mzFreeStart) + methodBytesFreedSinceLastCompaction;
	_freedSoFar = _initialFreeSpace;
	_amountToFree = _zoneSize / 4;
	_freeableUsage = 0;
	do {
		_cogMethod = ((CogMethod *) baseAddress );
		while ((((usqInt) _cogMethod ) < mzFreeStart) && (_freedSoFar < _amountToFree)) {
			if ((((_cogMethod->cmType)) != CMFree) && (((_cogMethod->cmUsageCount)) <= _freeableUsage)) {
				freeMethod(_cogMethod);
				_freedSoFar += (_cogMethod->blockSize);
			}
			_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
		}
	} while ((_freedSoFar < _amountToFree) && (((_freeableUsage += 1)) < CMMaxUsageCount));
}
/*	Answer that all entries in youngReferrers are in-use and have the 
	cmRefersToYoung flag set. 
	Used to check that the youngreferrers pruning routines work correctly. */
/* CogMethodZone>>#kosherYoungReferrers */
static sqInt
kosherYoungReferrers(void)
{
	CogMethod *_cogMethod;
	usqInt _pointer;

	if ((youngReferrers > limitAddress) || (youngReferrers < mzFreeStart)) {
		return 0;
	}
	_pointer = youngReferrers;
	while (_pointer < limitAddress) {
		_cogMethod = ((CogMethod *) (longAt(_pointer)) );
		if (!((((_cogMethod->cmType)) != CMFree) && ((_cogMethod->cmRefersToYoung)))) {
			return 0;
		}
		_pointer += BytesPerWord;
	}
	return 1;
}
/* CogMethodZone>>#manageFrom:to: */
static void NoDbgRegParms
manageFromto(sqInt _theStartAddress, sqInt _theLimitAddress)
{
	mzFreeStart = (baseAddress = _theStartAddress);
	youngReferrers = (limitAddress = _theLimitAddress);
	openPICList = null;
	methodBytesFreedSinceLastCompaction = 0;
	methodCount = 0;
}
/* CogMethodZone>>#methodFor: */
CogMethod *
methodFor(void *_address)
{
	CogMethod *_cogMethod;
	CogMethod *_nextMethod;

	_cogMethod = ((CogMethod *) baseAddress );
	while ((_cogMethod < (limitZony())) && (((usqInt) _cogMethod ) <= ((usqInt) _address ))) {
		/* begin methodAfter: */
		_nextMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
		/* end methodAfter: */
		if (_nextMethod == _cogMethod) {
			return 0;
		}
		if ((((usqInt) _address ) >= ((usqInt) _cogMethod )) && (((usqInt) _address ) < ((usqInt) _nextMethod ))) {
			return _cogMethod;
		}
		_cogMethod = _nextMethod;
	}
	return 0;
}
/* CogMethodZone>>#methodsCompiledToMachineCodeInto: */
sqInt
methodsCompiledToMachineCodeInto(sqInt _arrayObj)
{
	CogMethod *_cogMethod;
	int _methodIndex;

	_methodIndex = 0;
	_cogMethod = ((CogMethod *) baseAddress );
	while (_cogMethod < (limitZony())) {
		if (((_cogMethod->cmType)) == CMMethod) {
			storePointerUncheckedofObjectwithValue(_methodIndex, _arrayObj, (_cogMethod->methodObject));
			_methodIndex += 1;
		}
		/* begin methodAfter: */
		_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
		/* end methodAfter: */
	}
	return _methodIndex;
}
/* CogMethodZone>>#numMethods */
sqInt
numMethods(void)
{
	return methodCount;
}
/* CogMethodZone>>#numMethodsOfType: */
sqInt
numMethodsOfType(sqInt _cogMethodType)
{
	CogMethod *_cogMethod;
	int _n;

	_n = 0;
	_cogMethod = ((CogMethod *) baseAddress );
	while (_cogMethod < (limitZony())) {
		if (((_cogMethod->cmType)) == _cogMethodType) {
			_n += 1;
		}
		/* begin methodAfter: */
		_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
		/* end methodAfter: */
	}
	return _n;
}
/* CogMethodZone>>#occurrencesInYoungReferrers: */
static sqInt NoDbgRegParms
occurrencesInYoungReferrers(CogMethod *_cogMethod)
{
	int _count;
	usqInt _pointer;

	assert(youngReferrers <= limitAddress);
	_count = 0;
	_pointer = youngReferrers;
	while (_pointer < limitAddress) {
		if (((sqInt) _cogMethod ) == (longAt(_pointer))) {
			_count += 1;
		}
		_pointer += BytesPerWord;
	}
	return _count;
}
/* CogMethodZone>>#openPICWithSelector: */
static CogMethod * NoDbgRegParms
openPICWithSelector(sqInt _aSelector)
{
	CogMethod *_openPIC;

	_openPIC = openPICList;
	do {
		if ((_openPIC == null) || (((_openPIC->selector)) == _aSelector)) {
			return _openPIC;
		}
		_openPIC = ((CogMethod *) ((_openPIC->nextOpenPIC)) );
	} while (1);
	return 0;
}
/*	Some methods have been freed. Compute how much each survivor needs to 
	move during the ensuing compaction and record it in the objectHeader 
	field.  
	For Sista, where we want PICs to last so they can be observed, we need to 
	keep PICs unless 
	they are definitely unused. So we need to identify unused PICs. So in 
	planCompact, zero the 
	usage counts of all PICs, saving the actual usage count in 
	blockEntryOffset. Then in 
	relocateMethodsPreCompaction (actually in 
	relocateIfCallOrMethodReference:mcpc:delta:) restore the usage counts of 
	used PICs. Finally in compactCompiledCode, clear the blockEntryOffset 
	of the unused PICs; they will then have a zero count and be reclaimed in 
	the next code compaction. */
/* CogMethodZone>>#planCompaction */
static void
planCompaction(void)
{
	CogMethod *_cogMethod;
	int _delta;

	_delta = 0;
	_cogMethod = ((CogMethod *) baseAddress );
	while (((usqInt) _cogMethod ) < mzFreeStart) {
		if (((_cogMethod->cmType)) == CMFree) {
			_delta -= (_cogMethod->blockSize);
		} else {
			assert((cogMethodDoesntLookKosher(_cogMethod)) == 0);
			(_cogMethod->objectHeader = _delta);
		}
		/* begin methodAfter: */
		_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
		/* end methodAfter: */
	}
}
/* CogMethodZone>>#printCogMethods */
void
printCogMethods(void)
{
	CogMethod *_cogMethod;
	sqInt _nc;
	sqInt _nf;
	sqInt _nm;
	sqInt _no;
	int _nu;

	_nm = (_nc = (_no = (_nf = (_nu = 0))));
	_cogMethod = ((CogMethod *) baseAddress );
	while (_cogMethod < (limitZony())) {
		printCogMethod(_cogMethod);
		switch ((_cogMethod->cmType)) {
			case CMFree:
			{
				_nf += 1;
			}
			break;
			case CMMethod:
			{
				_nm += 1;
			}
			break;
			case CMPolymorphicIC:
			{
				_nc += 1;
			}
			break;
			case CMMegamorphicIC:
			{
				_no += 1;
			}
			break;
			default:
			{
				_nu += 1;
			}
		}
		/* begin methodAfter: */
		_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
		/* end methodAfter: */
	}
	{
		print("CMMethod ");
		printNum(_nm);
		print(" CMClosedPIC ");
		printNum(_nc);
		print(" CMOpenPIC ");
		printNum(_no);
		print(" CMFree ");
		printNum(_nf);
	}
	if (_nu > 0) {
		{
			print(" UNKNOWN ");
			printNum(_nu);
		}
	}
	{
		print(" total ");
		printNum((((_nm + _nc) + _no) + _nf) + _nu);
		cr();
	}
}
/* CogMethodZone>>#printCogMethodsOfType: */
void
printCogMethodsOfType(sqInt _cmType)
{
	CogMethod *_cogMethod;

	_cogMethod = ((CogMethod *) baseAddress );
	while (_cogMethod < (limitZony())) {
		if (((_cogMethod->cmType)) == _cmType) {
			printCogMethod(_cogMethod);
		}
		/* begin methodAfter: */
		_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
		/* end methodAfter: */
	}
}
/* CogMethodZone>>#printCogMethodsWithMethod: */
void
printCogMethodsWithMethod(sqInt _methodOop)
{
	CogMethod *_cogMethod;

	_cogMethod = ((CogMethod *) baseAddress );
	while (_cogMethod < (limitZony())) {
		if ((((_cogMethod->cmType)) != CMFree) && (((_cogMethod->methodObject)) == _methodOop)) {
			printCogMethod(_cogMethod);
		}
		/* begin methodAfter: */
		_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
		/* end methodAfter: */
	}
}
/* CogMethodZone>>#printCogMethodsWithPrimitive: */
void
printCogMethodsWithPrimitive(sqInt _primIdx)
{
	CogMethod *_cogMethod;

	_cogMethod = ((CogMethod *) baseAddress );
	while (_cogMethod < (limitZony())) {
		if ((((_cogMethod->cmType)) == CMMethod) && (_primIdx == (primitiveIndexOfMethodheader((_cogMethod->methodObject), (_cogMethod->methodHeader))))) {
			printCogMethod(_cogMethod);
		}
		/* begin methodAfter: */
		_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
		/* end methodAfter: */
	}
}
/* CogMethodZone>>#printCogMethodsWithSelector: */
void
printCogMethodsWithSelector(sqInt _selectorOop)
{
	CogMethod *_cogMethod;

	_cogMethod = ((CogMethod *) baseAddress );
	while (_cogMethod < (limitZony())) {
		if ((((_cogMethod->cmType)) != CMFree) && (((_cogMethod->selector)) == _selectorOop)) {
			printCogMethod(_cogMethod);
		}
		/* begin methodAfter: */
		_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
		/* end methodAfter: */
	}
}
/* CogMethodZone>>#printCogYoungReferrers */
void
printCogYoungReferrers(void)
{
	CogMethod *_cogMethod;
	usqInt _pointer;

	_pointer = youngReferrers;
	while (_pointer < limitAddress) {
		_cogMethod = ((CogMethod *) (longAt(_pointer)) );
		if (!((_cogMethod->cmRefersToYoung))) {
			print("*");
		}
		if (((_cogMethod->cmType)) == CMFree) {
			print("!");
		}
		if (!(((_cogMethod->cmRefersToYoung)) && (((_cogMethod->cmType)) != CMFree))) {
			print(" ");
		}
		printCogMethod(_cogMethod);
		_pointer += BytesPerWord;
	}
}
/* CogMethodZone>>#printOpenPICList */
sqInt
printOpenPICList(void)
{
	int _n;
	CogMethod *_openPIC;

	_n = 0;
	_openPIC = openPICList;
	while (!(_openPIC == null)) {
		_n += 1;
		printCogMethod(_openPIC);
		_openPIC = ((CogMethod *) ((_openPIC->nextOpenPIC)) );
	}
	return _n;
}
/* CogMethodZone>>#pruneYoungReferrers */
static sqInt
pruneYoungReferrers(void)
{
	usqInt _dest;
	usqInt _next;
	usqInt _source;

	assert(youngReferrers <= limitAddress);
	if (youngReferrers == limitAddress) {
		return null;
	}
	_dest = limitAddress;
	while (1) {
		_next = _dest - BytesPerWord;
		if (!((_next >= youngReferrers) && (((((CogMethod *) (longAt(_next)) ))->cmRefersToYoung)))) 
			break;
		_dest = _next;
	}
	assert(_dest >= youngReferrers);
	_source = _dest - BytesPerWord;
	while (_source >= youngReferrers) {
		if (((((CogMethod *) (longAt(_source)) ))->cmRefersToYoung)) {
			assert(_source < (_dest - BytesPerWord));
			longAtput((_dest -= BytesPerWord), longAt(_source));
		}
		_source -= BytesPerWord;
	}
	youngReferrers = _dest;
	assert(kosherYoungReferrers());
	return 0;
}
/*	This method compacts the young referrers array, and updates the references 
	to the methods were moved.Young referrers is an array that holds references to CogMethods that 
	references objects that are in the new space. 
	The young referrers array is stored at the end of the code cache, it grows 
	towards lower addresses. 
	The variable youngReferrers points to the lowest entry in the array, and 
	it spans up to the limitAddress */
/* CogMethodZone>>#relocateAndPruneYoungReferrers */
static sqInt
relocateAndPruneYoungReferrers(void)
{
	CogMethod *_cogMethod;
	usqInt _dest;
	usqInt _next;
	usqInt _source;

	assert(youngReferrers <= limitAddress);
	if (youngReferrers == limitAddress) {
		return null;
	}
	_dest = limitAddress;
	while (1) {
		_next = _dest - BytesPerWord;
		if (!((_next >= youngReferrers) && ((((((_cogMethod = ((CogMethod *) (longAt(_next)) )))->cmType)) != CMFree) && ((_cogMethod->cmRefersToYoung))))) 
			break;
		if (((_cogMethod->objectHeader)) != 0) {
			longAtput(_next, ((sqInt) _cogMethod ) + ((_cogMethod->objectHeader)));
		}
		_dest = _next;
	}
	assert(_dest >= youngReferrers);
	_source = _dest - BytesPerWord;
	while (_source >= youngReferrers) {
		_cogMethod = ((CogMethod *) (longAt(_source)) );
		if ((((_cogMethod->cmType)) != CMFree) && ((_cogMethod->cmRefersToYoung))) {
			assert(_source < (_dest - BytesPerWord));
			if (((_cogMethod->objectHeader)) != 0) {
				_cogMethod = ((CogMethod *) (((sqInt) _cogMethod ) + ((sqInt) ((_cogMethod->objectHeader)) )) );
			}
			longAtput((_dest -= BytesPerWord), ((sqInt) _cogMethod ));
		}
		_source -= BytesPerWord;
	}
	youngReferrers = _dest;
	return 0;
}
/*	All surviving methods have had the amount they are going to relocate by 
	stored in their objectHeader fields. Relocate all relative calls so that 
	after the compaction of both the method containing each call and the call 
	target the calls invoke the same target. */
/* CogMethodZone>>#relocateMethodsPreCompaction */
static sqInt
relocateMethodsPreCompaction(void)
{
	CogMethod *_cogMethod;

	_cogMethod = ((CogMethod *) baseAddress );
	while (((usqInt) _cogMethod ) < mzFreeStart) {
		if (((_cogMethod->cmType)) != CMFree) {
			if (((_cogMethod->cmType)) == CMPolymorphicIC) {
				relocateCallsInClosedPIC(_cogMethod);
			}
 else {
				relocateCallsAndSelfReferencesInMethod(_cogMethod);
			}
		}
		/* begin methodAfter: */
		_cogMethod = ((CogMethod *) (roundUpLength(((sqInt) _cogMethod ) + ((_cogMethod->blockSize)))) );
		/* end methodAfter: */
	}
	relocateAndPruneYoungReferrers();
	return 1;
}
/* CogMethodZone>>#removeFromOpenPICList: */
static sqInt NoDbgRegParms
removeFromOpenPICList(CogMethod *_anOpenPIC)
{
	CogMethod *_prevPIC;

	assert(((_anOpenPIC->cmType)) == CMMegamorphicIC);
	if (!openPICList) {
		return null;
	}
	assert((((openPICList->cmType)) == CMMegamorphicIC) && ((((openPICList->nextOpenPIC)) == null) || ((((((CogMethod *) ((openPICList->nextOpenPIC)) ))->cmType)) == CMMegamorphicIC)));
	if (_anOpenPIC == openPICList) {
		openPICList = ((CogMethod *) ((_anOpenPIC->nextOpenPIC)) );
		return null;
	}
	_prevPIC = openPICList;
	do {
		assert((_prevPIC != null) && (((_prevPIC->cmType)) == CMMegamorphicIC));
		if (((_prevPIC->nextOpenPIC)) == ((usqInt) _anOpenPIC )) {
			(_prevPIC->nextOpenPIC = (_anOpenPIC->nextOpenPIC));
			return null;
		}
		_prevPIC = ((CogMethod *) ((_prevPIC->nextOpenPIC)) );
	} while (1);
	return 0;
}
/* CogMethodZone>>#voidOpenPICList */
static void
voidOpenPICList(void)
{
	openPICList = null;
}
/* CogMethodZone>>#voidYoungReferrersPostTenureAll */
static void
voidYoungReferrersPostTenureAll(void)
{
	CogMethod *_cogMethod;
	usqInt _pointer;

	assert(youngReferrers <= limitAddress);
	_pointer = youngReferrers;
	while (_pointer < limitAddress) {
		_cogMethod = ((CogMethod *) (longAt(_pointer)) );
		if (((_cogMethod->cmType)) != CMFree) {
			(_cogMethod->cmRefersToYoung = 0);
		}
		_pointer += BytesPerWord;
	}
	youngReferrers = limitAddress;
}
/* CogMethodZone>>#whereIsMaybeCodeThing: */
char *
whereIsMaybeCodeThing(sqInt _anOop)
{
	if (oopisGreaterThanOrEqualToandLessThan(_anOop, codeBase, limitAddress)) {
		if (oopisLessThan(_anOop, methodZoneBase)) {
			return " is in generated runtime";
		}
		if (oopisLessThan(_anOop, mzFreeStart)) {
			return " is in generated methods";
		}
		if (oopisLessThan(_anOop, youngReferrers)) {
			return " is in code zone";
		}
		return " is in young referrers";
	}
	return null;
}
/* CogObjectRepresentation>>#checkValidObjectReference: */
static sqInt NoDbgRegParms
checkValidObjectReference(sqInt _anOop)
{
	return (!(isImmediate(_anOop))) && ((heapMapAtWord(pointerForOop(_anOop))) != 0);
}
/* CogObjectRepresentation>>#genCmpClassFloatCompactIndexR: */
static AbstractInstruction * NoDbgRegParms
genCmpClassFloatCompactIndexR(sqInt _reg)
{
	AbstractInstruction *_anInstruction;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(CmpCqR, ClassFloatCompactIndex, _reg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(ClassFloatCompactIndex));
	}
	return _anInstruction;
	/* end checkQuickConstant:forInstruction: */
}
/* CogObjectRepresentation>>#genDoubleArithmetic:preOpCheck: */
static sqInt NoDbgRegParms
genDoubleArithmeticpreOpCheck(sqInt _arithmeticOperator, AbstractInstruction *(*_preOpCheckOrNil)(int rcvrReg, int argReg))
{
	AbstractInstruction *_doOp;
	AbstractInstruction *_jumpFailAlloc;
	AbstractInstruction *_jumpFailCheck;
	AbstractInstruction *_jumpFailClass;
	AbstractInstruction *_jumpImmediate;
	AbstractInstruction *_jumpNonInt;

	_jumpFailCheck = ((AbstractInstruction *) 0 );
	_jumpNonInt = ((AbstractInstruction *) 0 );
	if (!(processorHasDoublePrecisionFloatingPointSupport())) {
		return UnimplementedPrimitive;
	}
	/* begin genLoadArgAtDepth:into: */
	assert(0 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	genGetDoubleValueOfinto(ReceiverResultReg, DPFPReg0);
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg0Reg, ClassReg);
	/* end MoveR:R: */
	_jumpImmediate = genJumpImmediate(Arg0Reg);
	genGetCompactClassIndexNonImmOfinto(Arg0Reg, SendNumArgsReg);
	genCmpClassFloatCompactIndexR(SendNumArgsReg);
	/* begin JumpNonZero: */
	_jumpFailClass = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
	genGetDoubleValueOfinto(Arg0Reg, DPFPReg1);
	/* begin Label */
	_doOp = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
	/* end Label */
	if (_preOpCheckOrNil) {
		_jumpFailCheck = _preOpCheckOrNil(DPFPReg0, DPFPReg1);
	}
	genoperandoperand(_arithmeticOperator, DPFPReg1, DPFPReg0);
	_jumpFailAlloc = genAllocFloatValueintoscratchRegscratchReg(DPFPReg0, SendNumArgsReg, ClassReg, TempReg);
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, SendNumArgsReg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpImmediate, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	maybeGenConvertIfSmallFloatInscratchRegintoandJumpTo(Arg0Reg, TempReg, DPFPReg1, _doOp);
	{
		/* begin genJumpNotSmallInteger:scratchReg: */
		_jumpNonInt = genJumpNotSmallInteger(Arg0Reg);
		/* end genJumpNotSmallInteger:scratchReg: */
	}
	genConvertSmallIntegerToIntegerInReg(ClassReg);
	/* begin ConvertR:Rd: */
	genoperandoperand(ConvertRRd, ClassReg, DPFPReg1);
	/* end ConvertR:Rd: */
	/* begin Jump: */
	genoperand(Jump, ((sqInt) _doOp ));
	/* end Jump: */
	jmpTarget(_jumpFailAlloc, jmpTarget(_jumpFailClass, genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
	{
		jmpTarget(_jumpNonInt, ((AbstractInstruction *) ((_jumpFailClass->operands)[0]) ));
	}
	if (_preOpCheckOrNil) {
		jmpTarget(_jumpFailCheck, ((AbstractInstruction *) ((_jumpFailClass->operands)[0]) ));
	}
	return 0;
}
/* CogObjectRepresentation>>#genDoubleComparison:invert: */
static sqInt NoDbgRegParms
genDoubleComparisoninvert(AbstractInstruction * NoDbgRegParms (*_jumpOpcodeGenerator)(void *), sqInt _invertComparison)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_compare;
	sqInt _constant;
	AbstractInstruction *_jumpCond;
	AbstractInstruction *_jumpFail;
	AbstractInstruction *_jumpImmediate;
	AbstractInstruction *_jumpNonInt;

	_jumpNonInt = ((AbstractInstruction *) 0 );
	if (!(processorHasDoublePrecisionFloatingPointSupport())) {
		return UnimplementedPrimitive;
	}
	/* begin genLoadArgAtDepth:into: */
	assert(0 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	genGetDoubleValueOfinto(ReceiverResultReg, DPFPReg0);
	_jumpImmediate = genJumpImmediate(Arg0Reg);
	genGetCompactClassIndexNonImmOfinto(Arg0Reg, SendNumArgsReg);
	genCmpClassFloatCompactIndexR(SendNumArgsReg);
	/* begin JumpNonZero: */
	_jumpFail = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
	genGetDoubleValueOfinto(Arg0Reg, DPFPReg1);
	if (_invertComparison) {
		/* begin CmpRd:Rd: */
		_compare = genoperandoperand(CmpRdRd, DPFPReg0, DPFPReg1);
		/* end CmpRd:Rd: */
	}
 else {
		/* begin CmpRd:Rd: */
		_compare = genoperandoperand(CmpRdRd, DPFPReg1, DPFPReg0);
		/* end CmpRd:Rd: */
	}
	_jumpCond = _jumpOpcodeGenerator(0);
	/* begin genMoveConstant:R: */
	_constant = falseObject();
	if (shouldAnnotateObjectReference(_constant)) {
		annotateobjRef(gMoveCwR(_constant, ReceiverResultReg), _constant);
	} else {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(MoveCqR, _constant, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_constant));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* end genMoveConstant:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpCond, genMoveConstantR(trueObject(), ReceiverResultReg));
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpImmediate, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	maybeGenConvertIfSmallFloatInscratchRegintoandJumpTo(Arg0Reg, TempReg, DPFPReg1, _compare);
	{
		/* begin genJumpNotSmallInteger:scratchReg: */
		_jumpNonInt = genJumpNotSmallInteger(Arg0Reg);
		/* end genJumpNotSmallInteger:scratchReg: */
	}
	genConvertSmallIntegerToIntegerInReg(Arg0Reg);
	/* begin ConvertR:Rd: */
	genoperandoperand(ConvertRRd, Arg0Reg, DPFPReg1);
	/* end ConvertR:Rd: */
	/* begin Jump: */
	genoperand(Jump, ((sqInt) _compare ));
	/* end Jump: */
	jmpTarget(_jumpFail, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	{
		jmpTarget(_jumpNonInt, ((AbstractInstruction *) ((_jumpFail->operands)[0]) ));
	}
	return CompletePrimitive;
}
/*	Get the method header (first word) of a CompiledMethod into headerReg. 
	Deal with the method possibly being cogged. */
/* CogObjectRepresentation>>#genGetMethodHeaderOf:into:scratch: */
static sqInt NoDbgRegParms
genGetMethodHeaderOfintoscratch(sqInt _methodReg, sqInt _headerReg, sqInt _scratchReg)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_jumpNotCogged;
	sqInt _offset;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperandoperand(MoveMwrR, BaseHeaderSize, _methodReg, _headerReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	_jumpNotCogged = genJumpSmallInteger(_headerReg);
	/* begin MoveMw:r:R: */
	_offset = offsetof(CogMethod, methodHeader);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperandoperand(MoveMwrR, _offset, _headerReg, _headerReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_offset));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end MoveMw:r:R: */
	jmpTarget(_jumpNotCogged, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	return 0;
}
/* CogObjectRepresentation>>#genLoadSlot:sourceReg:destReg: */
static sqInt NoDbgRegParms
genLoadSlotsourceRegdestReg(sqInt _index, sqInt _sourceReg, sqInt _destReg)
{
	AbstractInstruction *_anInstruction;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperandoperand(MoveMwrR, (_index * BytesPerWord) + BaseHeaderSize, _sourceReg, _destReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral((_index * BytesPerWord) + BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	return 0;
}
/*	Primitive generator used to mark primitives that have no machine code 
	implementation This works as a null pattern. 
	Then primitive generation will just compile a call to the 
	interpreter-version of the primitive 
	 */
/* CogObjectRepresentation>>#genNonImplementedPrimitive */
static sqInt
genNonImplementedPrimitive(void)
{
	return UnimplementedPrimitive;
}
/* CogObjectRepresentation>>#genPrimitiveAdd */
static sqInt
genPrimitiveAdd(void)
{
	AbstractInstruction *_jumpNotSI;
	AbstractInstruction *_jumpOvfl;

	if (!(mclassIsSmallInteger())) {
		return UnimplementedPrimitive;
	}
	/* begin genLoadArgAtDepth:into: */
	assert(0 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg0Reg, ClassReg);
	/* end MoveR:R: */
	/* begin genJumpNotSmallInteger:scratchReg: */
	_jumpNotSI = genJumpNotSmallInteger(Arg0Reg);
	/* end genJumpNotSmallInteger:scratchReg: */
	genRemoveSmallIntegerTagsInScratchReg(ClassReg);
	/* begin AddR:R: */
	genoperandoperand(AddRR, ReceiverResultReg, ClassReg);
	/* end AddR:R: */
	/* begin JumpOverflow: */
	_jumpOvfl = genConditionalBranchoperand(JumpOverflow, ((sqInt) 0 ));
	/* end JumpOverflow: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, ClassReg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpOvfl, jmpTarget(_jumpNotSI, genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
	return CompletePrimitive;
}
/* CogObjectRepresentation>>#genPrimitiveAsFloat */
static sqInt
genPrimitiveAsFloat(void)
{
	AbstractInstruction *_jumpFailAlloc;

	if (!(mclassIsSmallInteger())) {
		return UnimplementedPrimitive;
	}
	if (!(processorHasDoublePrecisionFloatingPointSupport())) {
		return UnimplementedPrimitive;
	}
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, ReceiverResultReg, TempReg);
	/* end MoveR:R: */
	genConvertSmallIntegerToIntegerInReg(TempReg);
	/* begin ConvertR:Rd: */
	genoperandoperand(ConvertRRd, TempReg, DPFPReg0);
	/* end ConvertR:Rd: */
	_jumpFailAlloc = genAllocFloatValueintoscratchRegscratchReg(DPFPReg0, SendNumArgsReg, ClassReg, TempReg);
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, SendNumArgsReg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpFailAlloc, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	return 0;
}
/* CogObjectRepresentation>>#genPrimitiveBitAnd */
static sqInt
genPrimitiveBitAnd(void)
{
	AbstractInstruction *_jumpNotSI;

	if (!(mclassIsSmallInteger())) {
		return UnimplementedPrimitive;
	}
	/* begin genLoadArgAtDepth:into: */
	assert(0 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	/* begin genJumpNotSmallInteger:scratchReg: */
	_jumpNotSI = genJumpNotSmallInteger(Arg0Reg);
	/* end genJumpNotSmallInteger:scratchReg: */
	/* begin AndR:R: */
	genoperandoperand(AndRR, Arg0Reg, ReceiverResultReg);
	/* end AndR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpNotSI, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	return CompletePrimitive;
}
/* CogObjectRepresentation>>#genPrimitiveBitOr */
static sqInt
genPrimitiveBitOr(void)
{
	AbstractInstruction *_jumpNotSI;

	if (!(mclassIsSmallInteger())) {
		return UnimplementedPrimitive;
	}
	/* begin genLoadArgAtDepth:into: */
	assert(0 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	/* begin genJumpNotSmallInteger:scratchReg: */
	_jumpNotSI = genJumpNotSmallInteger(Arg0Reg);
	/* end genJumpNotSmallInteger:scratchReg: */
	/* begin OrR:R: */
	genoperandoperand(OrRR, Arg0Reg, ReceiverResultReg);
	/* end OrR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpNotSI, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	return CompletePrimitive;
}
/*	rTemp := rArg0 
	rClass := tTemp 
	rTemp := rTemp & 1 
	jz nonInt 
	rClass >>= 1 
	cmp 0,rClass 
	jge neg 
	cmp 31,rClass // numSmallIntegerBits, jge for sign 
	jge tooBig 
	rTemp := rReceiver 
	rTemp <<= rClass 
	rTemp >>= rClass (arithmetic) 
	cmp rTemp,rReceiver 
	jnz ovfl 
	rReceiver := rReceiver - 1 
	rReceiver := rReceiver <<= rClass 
	rReceiver := rReceiver + 1 
	ret 
	neg: 
	rClass := 0 - rClass 
	cmp 31,rClass // numSmallIntegerBits 
	jge inRange 
	rClass := 31 
	inRange 
	rReceiver := rReceiver >>= rClass. 
	rReceiver := rReceiver | smallIntegerTags. 
	ret 
	ovfl 
	tooBig 
	nonInt: 
	fail */
/* CogObjectRepresentation>>#genPrimitiveBitShift */
static sqInt
genPrimitiveBitShift(void)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_jumpInRange;
	AbstractInstruction *_jumpNegative;
	AbstractInstruction *_jumpNotSI;
	AbstractInstruction *_jumpOvfl;
	AbstractInstruction *_jumpTooBig;
	sqInt _quickConstant;
	sqInt _quickConstant2;
	sqInt _quickConstant3;

	if (!(mclassIsSmallInteger())) {
		return UnimplementedPrimitive;
	}
	/* begin genLoadArgAtDepth:into: */
	assert(0 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg0Reg, ClassReg);
	/* end MoveR:R: */
	/* begin genJumpNotSmallInteger:scratchReg: */
	_jumpNotSI = genJumpNotSmallInteger(Arg0Reg);
	/* end genJumpNotSmallInteger:scratchReg: */
	genConvertSmallIntegerToIntegerInReg(ClassReg);
	if (!(setsConditionCodesFor(lastOpcode(), JumpNegative))) {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(CmpCqR, 0, ClassReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(0));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* begin JumpNegative: */
	_jumpNegative = genConditionalBranchoperand(JumpNegative, ((sqInt) 0 ));
	/* end JumpNegative: */
	/* begin CmpCq:R: */
	_quickConstant = numSmallIntegerBits();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(CmpCqR, _quickConstant, ClassReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpGreaterOrEqual: */
	_jumpTooBig = genConditionalBranchoperand(JumpGreaterOrEqual, ((sqInt) 0 ));
	/* end JumpGreaterOrEqual: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, ReceiverResultReg, TempReg);
	/* end MoveR:R: */
	/* begin LogicalShiftLeftR:R: */
	genoperandoperand(LogicalShiftLeftRR, ClassReg, TempReg);
	/* end LogicalShiftLeftR:R: */
	/* begin ArithmeticShiftRightR:R: */
	genoperandoperand(ArithmeticShiftRightRR, ClassReg, TempReg);
	/* end ArithmeticShiftRightR:R: */
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, TempReg, ReceiverResultReg);
	/* end CmpR:R: */
	/* begin JumpNonZero: */
	_jumpOvfl = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
	genRemoveSmallIntegerTagsInScratchReg(ReceiverResultReg);
	/* begin LogicalShiftLeftR:R: */
	genoperandoperand(LogicalShiftLeftRR, ClassReg, ReceiverResultReg);
	/* end LogicalShiftLeftR:R: */
	genAddSmallIntegerTagsTo(ReceiverResultReg);
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpNegative, genoperand(NegateR, ClassReg));
	/* begin CmpCq:R: */
	_quickConstant2 = numSmallIntegerBits();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction3 = genoperandoperand(CmpCqR, _quickConstant2, ClassReg);
	if (usesOutOfLineLiteral(_anInstruction3)) {
		(_anInstruction3->dependent = locateLiteral(_quickConstant2));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpLessOrEqual: */
	_jumpInRange = genConditionalBranchoperand(JumpLessOrEqual, ((sqInt) 0 ));
	/* end JumpLessOrEqual: */
	/* begin MoveCq:R: */
	_quickConstant3 = numSmallIntegerBits();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction4 = genoperandoperand(MoveCqR, _quickConstant3, ClassReg);
	if (usesOutOfLineLiteral(_anInstruction4)) {
		(_anInstruction4->dependent = locateLiteral(_quickConstant3));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end MoveCq:R: */
	jmpTarget(_jumpInRange, genoperandoperand(ArithmeticShiftRightRR, ClassReg, ReceiverResultReg));
	genClearAndSetSmallIntegerTagsIn(ReceiverResultReg);
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpNotSI, jmpTarget(_jumpTooBig, jmpTarget(_jumpOvfl, genoperandoperand(Label, (labelCounter += 1), bytecodePC))));
	return CompletePrimitive;
}
/* CogObjectRepresentation>>#genPrimitiveBitXor */
static sqInt
genPrimitiveBitXor(void)
{
	AbstractInstruction *_jumpNotSI;

	if (!(mclassIsSmallInteger())) {
		return UnimplementedPrimitive;
	}
	/* begin genLoadArgAtDepth:into: */
	assert(0 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	/* begin genJumpNotSmallInteger:scratchReg: */
	_jumpNotSI = genJumpNotSmallInteger(Arg0Reg);
	/* end genJumpNotSmallInteger:scratchReg: */
	genRemoveSmallIntegerTagsInScratchReg(Arg0Reg);
	/* begin XorR:R: */
	genoperandoperand(XorRR, Arg0Reg, ReceiverResultReg);
	/* end XorR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpNotSI, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	return CompletePrimitive;
}
/* CogObjectRepresentation>>#genPrimitiveClass */
static sqInt
genPrimitiveClass(void)
{
	sqInt reg;
	sqInt _reg;

	_reg = ReceiverResultReg;
	if (methodOrBlockNumArgs > 0) {
		if (methodOrBlockNumArgs > 1) {
			return UnimplementedPrimitive;
		}
		/* begin genLoadArgAtDepth:into: */
		reg = (_reg = Arg0Reg);
		assert(0 < (numRegArgs()));
		/* end genLoadArgAtDepth:into: */
	}
	if ((genGetClassObjectOfintoscratchReginstRegIsReceiver(_reg, ReceiverResultReg, TempReg, _reg == ReceiverResultReg)) == BadRegisterSet) {
		genGetClassObjectOfintoscratchReginstRegIsReceiver(_reg, ClassReg, TempReg, _reg == ReceiverResultReg);
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, ClassReg, ReceiverResultReg);
		/* end MoveR:R: */
	}
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	return UnfailingPrimitive;
}
/* CogObjectRepresentation>>#genPrimitiveDiv */
static sqInt
genPrimitiveDiv(void)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_convert;
	AbstractInstruction *_jumpExact;
	AbstractInstruction *_jumpIsSI;
	AbstractInstruction *_jumpNotSI;
	AbstractInstruction *_jumpSameSign;
	AbstractInstruction *_jumpZero;

	if (!(processorHasDivQuoRemAndMClassIsSmallInteger())) {
		return UnimplementedPrimitive;
	}
	/* begin genLoadArgAtDepth:into: */
	assert(0 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg0Reg, ClassReg);
	/* end MoveR:R: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg0Reg, Arg1Reg);
	/* end MoveR:R: */
	/* begin genJumpNotSmallInteger:scratchReg: */
	_jumpNotSI = genJumpNotSmallInteger(Arg0Reg);
	/* end genJumpNotSmallInteger:scratchReg: */
	genConvertSmallIntegerToIntegerInReg(ClassReg);
	if (!(setsConditionCodesFor(lastOpcode(), JumpZero))) {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(CmpCqR, 0, ClassReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(0));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* begin JumpZero: */
	_jumpZero = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, ReceiverResultReg, TempReg);
	/* end MoveR:R: */
	genConvertSmallIntegerToIntegerInReg(TempReg);
	gDivRRQuoRem(ClassReg, TempReg, TempReg, ClassReg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction3 = genoperandoperand(CmpCqR, 0, ClassReg);
	if (usesOutOfLineLiteral(_anInstruction3)) {
		(_anInstruction3->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpZero: */
	_jumpExact = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	/* begin XorR:R: */
	genoperandoperand(XorRR, ClassReg, Arg1Reg);
	/* end XorR:R: */
	if (!(setsConditionCodesFor(lastOpcode(), JumpZero))) {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction2 = genoperandoperand(CmpCqR, 0, Arg1Reg);
		if (usesOutOfLineLiteral(_anInstruction2)) {
			(_anInstruction2->dependent = locateLiteral(0));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* begin JumpGreaterOrEqual: */
	_jumpSameSign = genConditionalBranchoperand(JumpGreaterOrEqual, ((sqInt) 0 ));
	/* end JumpGreaterOrEqual: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction4 = genoperandoperand(SubCqR, 1, TempReg);
	if (usesOutOfLineLiteral(_anInstruction4)) {
		(_anInstruction4->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	jmpTarget(_jumpSameSign, (_convert = genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
	genConvertIntegerToSmallIntegerInReg(TempReg);
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, TempReg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpExact, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	_jumpIsSI = genJumpIsSmallIntegerValuescratch(TempReg, Arg1Reg);
	jmpTarget(_jumpIsSI, _convert);
	jmpTarget(_jumpZero, jmpTarget(_jumpNotSI, genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
	return CompletePrimitive;
}
/* CogObjectRepresentation>>#genPrimitiveDivide */
static sqInt
genPrimitiveDivide(void)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_jumpInexact;
	AbstractInstruction *_jumpNotSI;
	AbstractInstruction *_jumpOverflow;
	AbstractInstruction *_jumpZero;

	if (!(processorHasDivQuoRemAndMClassIsSmallInteger())) {
		return UnimplementedPrimitive;
	}
	/* begin genLoadArgAtDepth:into: */
	assert(0 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg0Reg, ClassReg);
	/* end MoveR:R: */
	/* begin genJumpNotSmallInteger:scratchReg: */
	_jumpNotSI = genJumpNotSmallInteger(Arg0Reg);
	/* end genJumpNotSmallInteger:scratchReg: */
	genConvertSmallIntegerToIntegerInReg(ClassReg);
	/* begin JumpZero: */
	_jumpZero = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, ReceiverResultReg, TempReg);
	/* end MoveR:R: */
	genConvertSmallIntegerToIntegerInReg(TempReg);
	gDivRRQuoRem(ClassReg, TempReg, TempReg, ClassReg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(CmpCqR, 0, ClassReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpNonZero: */
	_jumpInexact = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
	_jumpOverflow = genJumpNotSmallIntegerValuescratch(TempReg, Arg1Reg);
	genConvertIntegerToSmallIntegerInReg(TempReg);
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, TempReg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpOverflow, jmpTarget(_jumpInexact, jmpTarget(_jumpZero, jmpTarget(_jumpNotSI, genoperandoperand(Label, (labelCounter += 1), bytecodePC)))));
	return CompletePrimitive;
}
/* CogObjectRepresentation>>#genPrimitiveEqual */
static sqInt
genPrimitiveEqual(void)
{
	return genSmallIntegerComparisonorDoubleComparisoninvert(JumpZero, gJumpFPEqual, 0);
}
/* CogObjectRepresentation>>#genPrimitiveFloatAdd */
static sqInt
genPrimitiveFloatAdd(void)
{
	return genDoubleArithmeticpreOpCheck(AddRdRd, null);
}
/* CogObjectRepresentation>>#genPrimitiveFloatDivide */
static sqInt
genPrimitiveFloatDivide(void)
{
	return genDoubleArithmeticpreOpCheck(DivRdRd, genDoubleFailIfZeroArgRcvrarg);
}
/* CogObjectRepresentation>>#genPrimitiveFloatEqual */
static sqInt
genPrimitiveFloatEqual(void)
{
	return genDoubleComparisoninvert(gJumpFPEqual, 0);
}
/* CogObjectRepresentation>>#genPrimitiveFloatGreaterOrEqual */
static sqInt
genPrimitiveFloatGreaterOrEqual(void)
{
	return genDoubleComparisoninvert(gJumpFPGreaterOrEqual, 0);
}
/* CogObjectRepresentation>>#genPrimitiveFloatGreaterThan */
static sqInt
genPrimitiveFloatGreaterThan(void)
{
	return genDoubleComparisoninvert(gJumpFPGreater, 0);
}
/* CogObjectRepresentation>>#genPrimitiveFloatLessOrEqual */
static sqInt
genPrimitiveFloatLessOrEqual(void)
{
	return genDoubleComparisoninvert(gJumpFPGreaterOrEqual, 1);
}
/* CogObjectRepresentation>>#genPrimitiveFloatLessThan */
static sqInt
genPrimitiveFloatLessThan(void)
{
	return genDoubleComparisoninvert(gJumpFPGreater, 1);
}
/* CogObjectRepresentation>>#genPrimitiveFloatMultiply */
static sqInt
genPrimitiveFloatMultiply(void)
{
	return genDoubleArithmeticpreOpCheck(MulRdRd, null);
}
/* CogObjectRepresentation>>#genPrimitiveFloatNotEqual */
static sqInt
genPrimitiveFloatNotEqual(void)
{
	return genDoubleComparisoninvert(gJumpFPNotEqual, 0);
}
/* CogObjectRepresentation>>#genPrimitiveFloatSquareRoot */
static sqInt
genPrimitiveFloatSquareRoot(void)
{
	AbstractInstruction *_jumpFailAlloc;

	if (!(processorHasDoublePrecisionFloatingPointSupport())) {
		return UnimplementedPrimitive;
	}
	genGetDoubleValueOfinto(ReceiverResultReg, DPFPReg0);
	/* begin SqrtRd: */
	genoperand(SqrtRd, DPFPReg0);
	/* end SqrtRd: */
	_jumpFailAlloc = genAllocFloatValueintoscratchRegscratchReg(DPFPReg0, SendNumArgsReg, ClassReg, TempReg);
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, SendNumArgsReg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpFailAlloc, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	return 0;
}
/* CogObjectRepresentation>>#genPrimitiveFloatSubtract */
static sqInt
genPrimitiveFloatSubtract(void)
{
	return genDoubleArithmeticpreOpCheck(SubRdRd, null);
}
/* CogObjectRepresentation>>#genPrimitiveGreaterOrEqual */
static sqInt
genPrimitiveGreaterOrEqual(void)
{
	return genSmallIntegerComparisonorDoubleComparisoninvert(JumpGreaterOrEqual, gJumpFPGreaterOrEqual, 0);
}
/* CogObjectRepresentation>>#genPrimitiveGreaterThan */
static sqInt
genPrimitiveGreaterThan(void)
{
	return genSmallIntegerComparisonorDoubleComparisoninvert(JumpGreater, gJumpFPGreater, 0);
}
/* CogObjectRepresentation>>#genPrimitiveIdentical */
static sqInt
genPrimitiveIdentical(void)
{
	return genPrimitiveIdenticalOrNotIf(0);
}
/* CogObjectRepresentation>>#genPrimitiveLessOrEqual */
static sqInt
genPrimitiveLessOrEqual(void)
{
	return genSmallIntegerComparisonorDoubleComparisoninvert(JumpLessOrEqual, gJumpFPGreaterOrEqual, 1);
}
/* CogObjectRepresentation>>#genPrimitiveLessThan */
static sqInt
genPrimitiveLessThan(void)
{
	return genSmallIntegerComparisonorDoubleComparisoninvert(JumpLess, gJumpFPGreater, 1);
}
/* CogObjectRepresentation>>#genPrimitiveMod */
static sqInt
genPrimitiveMod(void)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_jumpExact;
	AbstractInstruction *_jumpNotSI;
	AbstractInstruction *_jumpSameSign;
	AbstractInstruction *_jumpZero;

	if (!(processorHasDivQuoRemAndMClassIsSmallInteger())) {
		return UnimplementedPrimitive;
	}
	/* begin genLoadArgAtDepth:into: */
	assert(0 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg0Reg, ClassReg);
	/* end MoveR:R: */
	/* begin genJumpNotSmallInteger:scratchReg: */
	_jumpNotSI = genJumpNotSmallInteger(Arg0Reg);
	/* end genJumpNotSmallInteger:scratchReg: */
	genRemoveSmallIntegerTagsInScratchReg(ClassReg);
	/* begin JumpZero: */
	_jumpZero = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, ClassReg, Arg1Reg);
	/* end MoveR:R: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, ReceiverResultReg, TempReg);
	/* end MoveR:R: */
	genRemoveSmallIntegerTagsInScratchReg(TempReg);
	gDivRRQuoRem(ClassReg, TempReg, TempReg, ClassReg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(CmpCqR, 0, ClassReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpZero: */
	_jumpExact = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	/* begin XorR:R: */
	genoperandoperand(XorRR, ClassReg, Arg1Reg);
	/* end XorR:R: */
	if (!(setsConditionCodesFor(lastOpcode(), JumpZero))) {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(CmpCqR, 0, Arg1Reg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(0));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* begin JumpGreaterOrEqual: */
	_jumpSameSign = genConditionalBranchoperand(JumpGreaterOrEqual, ((sqInt) 0 ));
	/* end JumpGreaterOrEqual: */
	/* begin XorR:R: */
	genoperandoperand(XorRR, ClassReg, Arg1Reg);
	/* end XorR:R: */
	/* begin AddR:R: */
	genoperandoperand(AddRR, Arg1Reg, ClassReg);
	/* end AddR:R: */
	jmpTarget(_jumpSameSign, jmpTarget(_jumpExact, genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
	genSetSmallIntegerTagsIn(ClassReg);
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, ClassReg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpZero, jmpTarget(_jumpNotSI, genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
	return CompletePrimitive;
}
/* CogObjectRepresentation>>#genPrimitiveMultiply */
static sqInt
genPrimitiveMultiply(void)
{
	AbstractInstruction *_jumpNotSI;
	AbstractInstruction *_jumpOvfl;

	if (!(processorHasMultiplyAndMClassIsSmallInteger())) {
		return UnimplementedPrimitive;
	}
	/* begin genLoadArgAtDepth:into: */
	assert(0 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg0Reg, ClassReg);
	/* end MoveR:R: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, ReceiverResultReg, Arg1Reg);
	/* end MoveR:R: */
	/* begin genJumpNotSmallInteger:scratchReg: */
	_jumpNotSI = genJumpNotSmallInteger(Arg0Reg);
	/* end genJumpNotSmallInteger:scratchReg: */
	genConvertSmallIntegerToIntegerInReg(ClassReg);
	genRemoveSmallIntegerTagsInScratchReg(Arg1Reg);
	/* begin MulR:R: */
	genMulRR(backEnd, Arg1Reg, ClassReg);
	/* end MulR:R: */
	/* begin JumpMultiplyOverflow: */
	/* begin genJumpMultiplyOverflow: */
	_jumpOvfl = genConditionalBranchoperand(JumpOverflow, ((sqInt) 0 ));
	/* end genJumpMultiplyOverflow: */
	/* end JumpMultiplyOverflow: */
	genSetSmallIntegerTagsIn(ClassReg);
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, ClassReg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpOvfl, jmpTarget(_jumpNotSI, genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
	return CompletePrimitive;
}
/*	subclasses override if they can */
/* CogObjectRepresentation>>#genPrimitiveNewMethod */
static sqInt
genPrimitiveNewMethod(void)
{
	return UnimplementedPrimitive;
}
/* CogObjectRepresentation>>#genPrimitiveNotEqual */
static sqInt
genPrimitiveNotEqual(void)
{
	return genSmallIntegerComparisonorDoubleComparisoninvert(JumpNonZero, gJumpFPNotEqual, 0);
}
/* CogObjectRepresentation>>#genPrimitiveNotIdentical */
static sqInt
genPrimitiveNotIdentical(void)
{
	return genPrimitiveIdenticalOrNotIf(1);
}
/* CogObjectRepresentation>>#genPrimitiveQuo */
static sqInt
genPrimitiveQuo(void)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_convert;
	AbstractInstruction *_jumpExact;
	AbstractInstruction *_jumpIsSI;
	AbstractInstruction *_jumpNotSI;
	AbstractInstruction *_jumpZero;

	if (!(processorHasDivQuoRemAndMClassIsSmallInteger())) {
		return UnimplementedPrimitive;
	}
	/* begin genLoadArgAtDepth:into: */
	assert(0 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg0Reg, ClassReg);
	/* end MoveR:R: */
	/* begin genJumpNotSmallInteger:scratchReg: */
	_jumpNotSI = genJumpNotSmallInteger(Arg0Reg);
	/* end genJumpNotSmallInteger:scratchReg: */
	genConvertSmallIntegerToIntegerInReg(ClassReg);
	if (!(setsConditionCodesFor(lastOpcode(), JumpZero))) {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(CmpCqR, 0, ClassReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(0));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* begin JumpZero: */
	_jumpZero = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, ReceiverResultReg, TempReg);
	/* end MoveR:R: */
	genConvertSmallIntegerToIntegerInReg(TempReg);
	gDivRRQuoRem(ClassReg, TempReg, TempReg, ClassReg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(CmpCqR, 0, ClassReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpZero: */
	_jumpExact = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	/* begin Label */
	_convert = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
	/* end Label */
	genConvertIntegerToSmallIntegerInReg(TempReg);
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, TempReg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpExact, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	_jumpIsSI = genJumpIsSmallIntegerValuescratch(TempReg, Arg1Reg);
	jmpTarget(_jumpIsSI, _convert);
	jmpTarget(_jumpZero, jmpTarget(_jumpNotSI, genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
	return CompletePrimitive;
}
/* CogObjectRepresentation>>#genPrimitiveSubtract */
static sqInt
genPrimitiveSubtract(void)
{
	AbstractInstruction *_jumpNotSI;
	AbstractInstruction *_jumpOvfl;

	if (!(mclassIsSmallInteger())) {
		return UnimplementedPrimitive;
	}
	/* begin genLoadArgAtDepth:into: */
	assert(0 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	/* begin genJumpNotSmallInteger:scratchReg: */
	_jumpNotSI = genJumpNotSmallInteger(Arg0Reg);
	/* end genJumpNotSmallInteger:scratchReg: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, ReceiverResultReg, TempReg);
	/* end MoveR:R: */
	/* begin SubR:R: */
	genoperandoperand(SubRR, Arg0Reg, TempReg);
	/* end SubR:R: */
	/* begin JumpOverflow: */
	_jumpOvfl = genConditionalBranchoperand(JumpOverflow, ((sqInt) 0 ));
	/* end JumpOverflow: */
	genAddSmallIntegerTagsTo(TempReg);
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, TempReg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpOvfl, jmpTarget(_jumpNotSI, genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
	return CompletePrimitive;
}
/* CogObjectRepresentation>>#genSmallIntegerComparison: */
static sqInt NoDbgRegParms
genSmallIntegerComparison(sqInt _jumpOpcode)
{
	AbstractInstruction *_anInstruction;
	sqInt _constant;
	AbstractInstruction *_jumpFail;
	AbstractInstruction *_jumpTrue;

	if (!(mclassIsSmallInteger())) {
		return UnimplementedPrimitive;
	}
	/* begin genLoadArgAtDepth:into: */
	assert(0 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	/* begin genJumpNotSmallInteger:scratchReg: */
	_jumpFail = genJumpNotSmallInteger(Arg0Reg);
	/* end genJumpNotSmallInteger:scratchReg: */
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, Arg0Reg, ReceiverResultReg);
	/* end CmpR:R: */
	_jumpTrue = genConditionalBranchoperand(_jumpOpcode, 0);
	/* begin genMoveConstant:R: */
	_constant = falseObject();
	if (shouldAnnotateObjectReference(_constant)) {
		annotateobjRef(gMoveCwR(_constant, ReceiverResultReg), _constant);
	} else {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(MoveCqR, _constant, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_constant));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* end genMoveConstant:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpTrue, genMoveConstantR(trueObject(), ReceiverResultReg));
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpFail, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	return CompletePrimitive;
}
/*	Stack looks like 
	return address */
/* CogObjectRepresentation>>#genSmallIntegerComparison:orDoubleComparison:invert: */
static sqInt NoDbgRegParms
genSmallIntegerComparisonorDoubleComparisoninvert(sqInt _jumpOpcode, AbstractInstruction * NoDbgRegParms (*_jumpFPOpcodeGenerator)(void *), sqInt _invertComparison)
{
	AbstractInstruction *_anInstruction;
	sqInt _constant;
	AbstractInstruction *_jumpCond;
	AbstractInstruction *_jumpFail;
	AbstractInstruction *_jumpNonInt;
	sqInt _r;

	_jumpNonInt = ((AbstractInstruction *) 0 );
	_r = genSmallIntegerComparison(_jumpOpcode);
	if (_r < 0) {
		return _r;
	}
	
#  if defined(DPFPReg0)
	{
		{
			_jumpNonInt = genJumpImmediate(Arg0Reg);
		}
		genGetCompactClassIndexNonImmOfinto(Arg0Reg, SendNumArgsReg);
		genCmpClassFloatCompactIndexR(SendNumArgsReg);
		/* begin JumpNonZero: */
		_jumpFail = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
		/* end JumpNonZero: */
		genConvertSmallIntegerToIntegerInReg(ReceiverResultReg);
		/* begin ConvertR:Rd: */
		genoperandoperand(ConvertRRd, ReceiverResultReg, DPFPReg0);
		/* end ConvertR:Rd: */
		genGetDoubleValueOfinto(Arg0Reg, DPFPReg1);
		if (_invertComparison) {
			/* begin CmpRd:Rd: */
			genoperandoperand(CmpRdRd, DPFPReg0, DPFPReg1);
			/* end CmpRd:Rd: */
		}
 else {
			/* begin CmpRd:Rd: */
			genoperandoperand(CmpRdRd, DPFPReg1, DPFPReg0);
			/* end CmpRd:Rd: */
		}
		_jumpCond = _jumpFPOpcodeGenerator(0);
		/* begin genMoveConstant:R: */
		_constant = falseObject();
		if (shouldAnnotateObjectReference(_constant)) {
			annotateobjRef(gMoveCwR(_constant, ReceiverResultReg), _constant);
		} else {
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction = genoperandoperand(MoveCqR, _constant, ReceiverResultReg);
			if (usesOutOfLineLiteral(_anInstruction)) {
				(_anInstruction->dependent = locateLiteral(_constant));
			}
			/* end checkQuickConstant:forInstruction: */
		}
		/* end genMoveConstant:R: */
		if (methodOrBlockNumArgs <= 2) {
			/* begin RetN: */
			genoperand(RetN, 0);
			/* end RetN: */
		} else {
			{
				/* begin RetN: */
				genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
				/* end RetN: */
			}
		}
		jmpTarget(_jumpCond, genMoveConstantR(trueObject(), ReceiverResultReg));
		if (methodOrBlockNumArgs <= 2) {
			/* begin RetN: */
			genoperand(RetN, 0);
			/* end RetN: */
		} else {
			{
				/* begin RetN: */
				genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
				/* end RetN: */
			}
		}
		{
			jmpTarget(_jumpNonInt, jmpTarget(_jumpFail, genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
		}
	}
#  endif /* defined(DPFPReg0) */
	return CompletePrimitive;
}
/* CogObjectRepresentation>>#isUnannotatableConstant: */
static sqInt NoDbgRegParms
isUnannotatableConstant(CogSimStackEntry *_simStackEntry)
{
	return (((_simStackEntry->type)) == SSConstant) && ((isImmediate((_simStackEntry->constant))) || (!(shouldAnnotateObjectReference((_simStackEntry->constant)))));
}
/*	If the receiver supports immediate floats then generate a test for a 
	smallFloat in oopReg, 
	converting it to the float value in dpReg and jumping to targetInst. 
	Otherwise do nothing. */
/* CogObjectRepresentation>>#maybeGenConvertIfSmallFloatIn:scratchReg:into:andJumpTo: */
static sqInt NoDbgRegParms
maybeGenConvertIfSmallFloatInscratchRegintoandJumpTo(sqInt oopReg, sqInt scratch, sqInt dpReg, AbstractInstruction *targetInst)
{
	return 0;
}
/*	Character gets mapped to zero. See inlineCacheTagForInstance:. */
/* CogObjectRepresentationFor32BitSpur>>#classForInlineCacheTag: */
static sqInt NoDbgRegParms
classForInlineCacheTag(sqInt _inlineCacheTag)
{
	return classOrNilAtIndex(((_inlineCacheTag == 0)
		 ? characterTag()
		 : _inlineCacheTag));
}
/* CogObjectRepresentationFor32BitSpur>>#genAddSmallIntegerTagsTo: */
static sqInt NoDbgRegParms
genAddSmallIntegerTagsTo(sqInt _aRegister)
{
	AbstractInstruction *_anInstruction;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(AddCqR, 1, _aRegister);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	return 0;
}
/*	Set the SmallInteger tag bits when the tag bits may be filled with 
	garbage.  */
/* CogObjectRepresentationFor32BitSpur>>#genClearAndSetSmallIntegerTagsIn: */
static sqInt NoDbgRegParms
genClearAndSetSmallIntegerTagsIn(sqInt _scratchReg)
{
	return genSetSmallIntegerTagsIn(_scratchReg);
}
/*	Convert the Character in reg to a SmallInteger, assuming 
	the Character's value is a valid character.self assume: objectMemory smallIntegerTag = 1 */
/* CogObjectRepresentationFor32BitSpur>>#genConvertCharacterToSmallIntegerInReg: */
static void NoDbgRegParms
genConvertCharacterToSmallIntegerInReg(sqInt _reg)
{
	assert(((numCharacterBits()) + 1) == (numSmallIntegerBits()));
	/* begin LogicalShiftRightCq:R: */
	genoperandoperand(LogicalShiftRightCqR, 1, _reg);
	/* end LogicalShiftRightCq:R: */
}
/* CogObjectRepresentationFor32BitSpur>>#genConvertIntegerToSmallIntegerInReg: */
static sqInt NoDbgRegParms
genConvertIntegerToSmallIntegerInReg(sqInt _reg)
{
	AbstractInstruction *_anInstruction;

	/* begin LogicalShiftLeftCq:R: */
	genoperandoperand(LogicalShiftLeftCqR, 1, _reg);
	/* end LogicalShiftLeftCq:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(AddCqR, 1, _reg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	return 0;
}
/*	Convert the SmallInteger in reg to a Character, assuming 
	the SmallInteger's value is a valid character.self assume: objectMemory smallIntegerTag = 1 */
/* CogObjectRepresentationFor32BitSpur>>#genConvertSmallIntegerToCharacterInReg: */
static void NoDbgRegParms
genConvertSmallIntegerToCharacterInReg(sqInt _reg)
{
	assert(((numCharacterBits()) + 1) == (numSmallIntegerBits()));
	/* begin LogicalShiftLeftCq:R: */
	genoperandoperand(LogicalShiftLeftCqR, 1, _reg);
	/* end LogicalShiftLeftCq:R: */
}
/* CogObjectRepresentationFor32BitSpur>>#genConvertSmallIntegerToIntegerInReg: */
static sqInt NoDbgRegParms
genConvertSmallIntegerToIntegerInReg(sqInt _reg)
{
	/* begin ArithmeticShiftRightCq:R: */
	genoperandoperand(ArithmeticShiftRightCqR, 1, _reg);
	/* end ArithmeticShiftRightCq:R: */
	return 0;
}
/*	Fetch the instance's identity hash into destReg, encoded as a 
	SmallInteger. Get header word in scratchReg */
/* CogObjectRepresentationFor32BitSpur>>#genGetHashFieldNonImmOf:asSmallIntegerInto: */
static sqInt NoDbgRegParms
genGetHashFieldNonImmOfasSmallIntegerInto(sqInt _instReg, sqInt _destReg)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	sqInt _quickConstant;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperandoperand(MoveMwrR, 4, _instReg, _destReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(4));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin AndCq:R: */
	_quickConstant = identityHashHalfWordMask();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(AndCqR, _quickConstant, _destReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AndCq:R: */
	genConvertIntegerToSmallIntegerInReg(_destReg);
	return 0;
}
/*	Fetch the instance's identity hash into destReg, unencoded. */
/* CogObjectRepresentationFor32BitSpur>>#genGetHashFieldNonImmOf:into: */
static sqInt NoDbgRegParms
genGetHashFieldNonImmOfinto(sqInt _instReg, sqInt _destReg)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	sqInt _quickConstant;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperandoperand(MoveMwrR, 4, _instReg, _destReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(4));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin AndCq:R: */
	_quickConstant = identityHashHalfWordMask();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(AndCqR, _quickConstant, _destReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AndCq:R: */
	return 0;
}
/*	Extract the inline cache tag for the object in sourceReg into destReg. The 
	inline cache tag for a given object is the value loaded in inline caches 
	to distinguish 
	objects of different classes. In Spur this is either the tags for 
	immediates, (with 
	1 & 3 collapsed to 1 for SmallIntegers, and 2 collapsed to 0 for 
	Characters), or 
	the receiver's classIndex. 
	Generate something like the following: 
	Lentry: 
	movl rSource, rDest 
	andl $0x3, rDest 
	jz LnotImm 
	andl $1, rDest 
	j Lcmp 
	LnotImm: 
	movl 0(%edx), rDest 
	andl $0x3fffff, rDest 
	Lcmp: 
	But we expect most SmallInteger arithmetic to be performed in-line and so 
	prefer the 
	version that is faster for non-immediates (because it branches for 
	immediates only). */
/* CogObjectRepresentationFor32BitSpur>>#genGetInlineCacheClassTagFrom:into: */
static AbstractInstruction * NoDbgRegParms
genGetInlineCacheClassTagFrominto(sqInt _sourceReg, sqInt _destReg)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_entryLabel;
	AbstractInstruction *_jumpCompare;
	AbstractInstruction *_jumpNotImm;

	/* begin Label */
	_entryLabel = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
	/* end Label */
	gAndCqRR(tagMask(), _sourceReg, _destReg);
	/* begin JumpZero: */
	_jumpNotImm = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(AndCqR, 1, _destReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin Jump: */
	_jumpCompare = genoperand(Jump, ((sqInt) 0 ));
	/* end Jump: */
	flag("endianness");
	jmpTarget(_jumpNotImm, checkQuickConstantforInstruction(0, genoperandoperandoperand(MoveMwrR, 0, _sourceReg, _destReg)));
	jmpTarget(_jumpCompare, gAndCqR(classIndexMask(), _destReg));
	return _entryLabel;
}
/*	Get the size in byte-sized slots of the object in srcReg into destReg. 
	srcReg may equal destReg. 
	destReg <- numSlots << self shiftForWord - (fmt bitAnd: 3). 
	Assumes the object in srcReg has a byte format, i.e. 16 to 23 or 24 to 31 */
/* CogObjectRepresentationFor32BitSpur>>#genGetNumBytesOf:into: */
static sqInt NoDbgRegParms
genGetNumBytesOfinto(sqInt _srcReg, sqInt _destReg)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_jmp;
	sqInt _quickConstant;

	genGetRawSlotSizeOfNonImminto(_srcReg, _destReg);
	/* begin CmpCq:R: */
	_quickConstant = numSlotsMask();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(CmpCqR, _quickConstant, _destReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpLess: */
	_jmp = genConditionalBranchoperand(JumpLess, ((sqInt) 0 ));
	/* end JumpLess: */
	genGetOverflowSlotsOfinto(_srcReg, _destReg);
	jmpTarget(_jmp, gLogicalShiftLeftCqR(shiftForWord(), _destReg));
	genGetBitsofFormatByteOfinto(3, _srcReg, TempReg);
	/* begin SubR:R: */
	genoperandoperand(SubRR, TempReg, _destReg);
	/* end SubR:R: */
	return 0;
}
/* CogObjectRepresentationFor32BitSpur>>#genGetOverflowSlotsOf:into: */
static sqInt NoDbgRegParms
genGetOverflowSlotsOfinto(sqInt _srcReg, sqInt _destReg)
{
	AbstractInstruction *_anInstruction;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperandoperand(MoveMwrR, -BaseHeaderSize, _srcReg, _destReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(-BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	return 0;
}
/*	Generate a test for aRegister containing an integer value in the 
	SmallInteger range, and a jump if so, answering the jump. 
	c.f. Spur32BitMemoryManager>>isIntegerValue: */
/* CogObjectRepresentationFor32BitSpur>>#genJumpIsSmallIntegerValue:scratch: */
static AbstractInstruction * NoDbgRegParms
genJumpIsSmallIntegerValuescratch(sqInt _aRegister, sqInt _scratchReg)
{
	return (/* begin MoveR:R: */ genoperandoperand(MoveRR, _aRegister, _scratchReg) /* end MoveR:R: */, /* begin LogicalShiftLeftCq:R: */ genoperandoperand(LogicalShiftLeftCqR, 1, _scratchReg) /* end LogicalShiftLeftCq:R: */, /* begin XorR:R: */ genoperandoperand(XorRR, _aRegister, _scratchReg) /* end XorR:R: */, /* begin JumpGreaterOrEqual: */ genConditionalBranchoperand(JumpGreaterOrEqual, ((sqInt) 0 )) /* end JumpGreaterOrEqual: */);
}
/* CogObjectRepresentationFor32BitSpur>>#genJumpNotSmallIntegerInScratchReg: */
static AbstractInstruction * NoDbgRegParms
genJumpNotSmallIntegerInScratchReg(sqInt _aRegister)
{
	AbstractInstruction *_anInstruction;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(AndCqR, 1, _aRegister);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpZero: */
	return genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
}
/*	Generate a test for aRegister containing an integer value outside the 
	SmallInteger range, and a jump if so, answering the jump. 
	c.f. Spur32BitMemoryManager>>isIntegerValue: */
/* CogObjectRepresentationFor32BitSpur>>#genJumpNotSmallIntegerValue:scratch: */
static AbstractInstruction * NoDbgRegParms
genJumpNotSmallIntegerValuescratch(sqInt _aRegister, sqInt _scratchReg)
{
	return (/* begin MoveR:R: */ genoperandoperand(MoveRR, _aRegister, _scratchReg) /* end MoveR:R: */, /* begin LogicalShiftLeftCq:R: */ genoperandoperand(LogicalShiftLeftCqR, 1, _scratchReg) /* end LogicalShiftLeftCq:R: */, /* begin XorR:R: */ genoperandoperand(XorRR, _aRegister, _scratchReg) /* end XorR:R: */, /* begin JumpLess: */ genConditionalBranchoperand(JumpLess, ((sqInt) 0 )) /* end JumpLess: */);
}
/* CogObjectRepresentationFor32BitSpur>>#genJumpNotSmallInteger: */
static AbstractInstruction * NoDbgRegParms
genJumpNotSmallInteger(sqInt _aRegister)
{
	AbstractInstruction *_anInstruction;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(TstCqR, 1, _aRegister);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpZero: */
	return genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
}
/* CogObjectRepresentationFor32BitSpur>>#genJumpSmallInteger: */
static AbstractInstruction * NoDbgRegParms
genJumpSmallInteger(sqInt _aRegister)
{
	AbstractInstruction *_anInstruction;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(TstCqR, 1, _aRegister);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpNonZero: */
	return genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
}
/*	c.f. StackInterpreter>>stSizeOf: SpurMemoryManager>>lengthOf:format: 
	fixedFieldsOf:format:length:  */
/* CogObjectRepresentationFor32BitSpur>>#genPrimitiveAtPut */
static sqInt
genPrimitiveAtPut(void)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction10;
	AbstractInstruction *_anInstruction11;
	AbstractInstruction *_anInstruction12;
	AbstractInstruction *_anInstruction13;
	AbstractInstruction *_anInstruction14;
	AbstractInstruction *_anInstruction15;
	AbstractInstruction *_anInstruction16;
	AbstractInstruction *_anInstruction17;
	AbstractInstruction *_anInstruction18;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction5;
	AbstractInstruction *_anInstruction6;
	AbstractInstruction *_anInstruction7;
	AbstractInstruction *_anInstruction8;
	AbstractInstruction *_anInstruction9;
	sqInt _formatReg;
	AbstractInstruction *_jumpArrayOutOfBounds;
	AbstractInstruction *_jumpBadIndex;
	AbstractInstruction *_jumpBytesOutOfBounds;
	AbstractInstruction *_jumpBytesOutOfRange;
	AbstractInstruction * _jumpFixedFieldsOutOfBounds;
	AbstractInstruction *_jumpHasFixedFields;
	AbstractInstruction *_jumpImmediate;
	AbstractInstruction * _jumpImmutable;
	AbstractInstruction *_jumpIsBytes;
	AbstractInstruction * _jumpIsCompiledMethod;
	AbstractInstruction *_jumpIsContext;
	AbstractInstruction *_jumpIsShorts;
	AbstractInstruction * _jumpNonSmallIntegerValue;
	AbstractInstruction *_jumpNotIndexableBits;
	AbstractInstruction *_jumpNotIndexablePointers;
	AbstractInstruction * _jumpNotPointers;
	AbstractInstruction *_jumpShortsOutOfBounds;
	AbstractInstruction *_jumpShortsOutOfRange;
	AbstractInstruction *_jumpWordsOutOfBounds;
	AbstractInstruction *_jumpWordsOutOfRange;
	AbstractInstruction *_methodInBounds;
	sqInt _nSlotsOrBytesReg;
	sqInt _quickConstant;
	sqInt _quickConstant10;
	sqInt _quickConstant11;
	sqInt _quickConstant2;
	sqInt _quickConstant3;
	sqInt _quickConstant4;
	sqInt _quickConstant5;
	sqInt _quickConstant6;
	sqInt _quickConstant7;
	sqInt _quickConstant8;
	sqInt _quickConstant9;

	_jumpImmutable = ((AbstractInstruction *) 0 );
	_nSlotsOrBytesReg = ClassReg;
	/* begin genLoadArgAtDepth:into: */
	assert(1 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	/* begin genLoadArgAtDepth:into: */
	assert(0 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	_jumpImmediate = genJumpImmediate(ReceiverResultReg);
	/* begin genJumpNotSmallInteger:scratchReg: */
	_jumpBadIndex = genJumpNotSmallInteger(Arg0Reg);
	/* end genJumpNotSmallInteger:scratchReg: */
	genConvertSmallIntegerToIntegerInReg(Arg0Reg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(SubCqR, 1, Arg0Reg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	
#  if IMMUTABILITY
	{
		genGetFormatOfintoleastSignificantHalfOfBaseHeaderIntoScratch(ReceiverResultReg, (_formatReg = SendNumArgsReg), TempReg);
		/* begin genJumpBaseHeaderImmutable: */
		/* begin TstCq:R: */
		_quickConstant11 = immutableBitMask();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction18 = genoperandoperand(TstCqR, _quickConstant11, TempReg);
		if (usesOutOfLineLiteral(_anInstruction18)) {
			(_anInstruction18->dependent = locateLiteral(_quickConstant11));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end TstCq:R: */
		/* begin JumpNonZero: */
		_jumpImmutable = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
		/* end JumpNonZero: */
		/* end genJumpBaseHeaderImmutable: */
	}
#  else /* IMMUTABILITY */
	{
		genGetFormatOfintoleastSignificantHalfOfBaseHeaderIntoScratch(ReceiverResultReg, (_formatReg = SendNumArgsReg), NoReg);
	}
#  endif /* IMMUTABILITY */
	genGetNumSlotsOfinto(ReceiverResultReg, _nSlotsOrBytesReg);
	/* begin CmpCq:R: */
	_quickConstant = weakArrayFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction3 = genoperandoperand(CmpCqR, _quickConstant, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction3)) {
		(_anInstruction3->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAbove: */
	_jumpNotPointers = genConditionalBranchoperand(JumpAbove, ((sqInt) 0 ));
	/* end JumpAbove: */
	genStoreCheckReceiverRegvalueRegscratchReginFrame(ReceiverResultReg, Arg1Reg, TempReg, 0);
	/* begin CmpCq:R: */
	_quickConstant2 = arrayFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction4 = genoperandoperand(CmpCqR, _quickConstant2, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction4)) {
		(_anInstruction4->dependent = locateLiteral(_quickConstant2));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpBelow: */
	_jumpNotIndexablePointers = genConditionalBranchoperand(JumpBelow, ((sqInt) 0 ));
	/* end JumpBelow: */
	/* begin JumpNonZero: */
	_jumpHasFixedFields = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, Arg0Reg, _nSlotsOrBytesReg);
	/* end CmpR:R: */
	/* begin JumpBelowOrEqual: */
	_jumpArrayOutOfBounds = genConditionalBranchoperand(JumpBelowOrEqual, ((sqInt) 0 ));
	/* end JumpBelowOrEqual: */
	/* begin AddCq:R: */
	_quickConstant3 = ((usqInt) BaseHeaderSize ) >> (shiftForWord());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction5 = genoperandoperand(AddCqR, _quickConstant3, Arg0Reg);
	if (usesOutOfLineLiteral(_anInstruction5)) {
		(_anInstruction5->dependent = locateLiteral(_quickConstant3));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AddCq:R: */
	/* begin MoveR:Xwr:R: */
	genoperandoperandoperand(MoveRXwrR, Arg1Reg, Arg0Reg, ReceiverResultReg);
	/* end MoveR:Xwr:R: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg1Reg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpHasFixedFields, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	genGetClassIndexOfNonImminto(ReceiverResultReg, _formatReg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction6 = genoperandoperand(CmpCqR, ClassMethodContextCompactIndex, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction6)) {
		(_anInstruction6->dependent = locateLiteral(ClassMethodContextCompactIndex));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpZero: */
	_jumpIsContext = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	/* begin PushR: */
	genoperand(PushR, _nSlotsOrBytesReg);
	/* end PushR: */
	genGetClassObjectOfClassIndexintoscratchReg(_formatReg, _nSlotsOrBytesReg, TempReg);
	genLoadSlotsourceRegdestReg(InstanceSpecificationIndex, _nSlotsOrBytesReg, _formatReg);
	/* begin PopR: */
	genoperand(PopR, _nSlotsOrBytesReg);
	/* end PopR: */
	genConvertSmallIntegerToIntegerInReg(_formatReg);
	/* begin AndCq:R: */
	_quickConstant4 = fixedFieldsOfClassFormatMask();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction7 = genoperandoperand(AndCqR, _quickConstant4, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction7)) {
		(_anInstruction7->dependent = locateLiteral(_quickConstant4));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AndCq:R: */
	/* begin SubR:R: */
	genoperandoperand(SubRR, _formatReg, _nSlotsOrBytesReg);
	/* end SubR:R: */
	/* begin AddCq:R: */
	_quickConstant5 = ((usqInt) BaseHeaderSize ) >> (shiftForWord());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction8 = genoperandoperand(AddCqR, _quickConstant5, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction8)) {
		(_anInstruction8->dependent = locateLiteral(_quickConstant5));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AddCq:R: */
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, Arg0Reg, _nSlotsOrBytesReg);
	/* end CmpR:R: */
	/* begin JumpBelowOrEqual: */
	_jumpFixedFieldsOutOfBounds = genConditionalBranchoperand(JumpBelowOrEqual, ((sqInt) 0 ));
	/* end JumpBelowOrEqual: */
	/* begin AddR:R: */
	genoperandoperand(AddRR, _formatReg, Arg0Reg);
	/* end AddR:R: */
	/* begin MoveR:Xwr:R: */
	genoperandoperandoperand(MoveRXwrR, Arg1Reg, Arg0Reg, ReceiverResultReg);
	/* end MoveR:Xwr:R: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg1Reg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpNotPointers, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	/* begin genJumpNotSmallInteger:scratchReg: */
	_jumpNonSmallIntegerValue = genJumpNotSmallInteger(Arg1Reg);
	/* end genJumpNotSmallInteger:scratchReg: */
	/* begin CmpCq:R: */
	_quickConstant6 = firstByteFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction9 = genoperandoperand(CmpCqR, _quickConstant6, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction9)) {
		(_anInstruction9->dependent = locateLiteral(_quickConstant6));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_jumpIsBytes = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	/* begin CmpCq:R: */
	_quickConstant7 = firstShortFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction10 = genoperandoperand(CmpCqR, _quickConstant7, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction10)) {
		(_anInstruction10->dependent = locateLiteral(_quickConstant7));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_jumpIsShorts = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	/* begin CmpCq:R: */
	_quickConstant8 = firstLongFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction11 = genoperandoperand(CmpCqR, _quickConstant8, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction11)) {
		(_anInstruction11->dependent = locateLiteral(_quickConstant8));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpBelow: */
	_jumpNotIndexableBits = genConditionalBranchoperand(JumpBelow, ((sqInt) 0 ));
	/* end JumpBelow: */
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, Arg0Reg, _nSlotsOrBytesReg);
	/* end CmpR:R: */
	/* begin JumpBelowOrEqual: */
	_jumpWordsOutOfBounds = genConditionalBranchoperand(JumpBelowOrEqual, ((sqInt) 0 ));
	/* end JumpBelowOrEqual: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg1Reg, TempReg);
	/* end MoveR:R: */
	genConvertSmallIntegerToIntegerInReg(TempReg);
	if (!(setsConditionCodesFor(lastOpcode(), JumpLess))) {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(CmpCqR, 0, TempReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(0));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* begin JumpLess: */
	_jumpWordsOutOfRange = genConditionalBranchoperand(JumpLess, ((sqInt) 0 ));
	/* end JumpLess: */
	/* begin AddCq:R: */
	_quickConstant9 = ((usqInt) BaseHeaderSize ) >> (shiftForWord());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction12 = genoperandoperand(AddCqR, _quickConstant9, Arg0Reg);
	if (usesOutOfLineLiteral(_anInstruction12)) {
		(_anInstruction12->dependent = locateLiteral(_quickConstant9));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AddCq:R: */
	/* begin MoveR:Xwr:R: */
	genoperandoperandoperand(MoveRXwrR, TempReg, Arg0Reg, ReceiverResultReg);
	/* end MoveR:Xwr:R: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg1Reg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpIsBytes, checkQuickConstantforInstruction(((((usqInt) 0xFF ) << 1) | 1), genoperandoperand(CmpCqR, ((((usqInt) 0xFF ) << 1) | 1), Arg1Reg)));
	/* begin JumpAbove: */
	_jumpBytesOutOfRange = genConditionalBranchoperand(JumpAbove, ((sqInt) 0 ));
	/* end JumpAbove: */
	/* begin LogicalShiftLeftCq:R: */
	genoperandoperand(LogicalShiftLeftCqR, shiftForWord(), _nSlotsOrBytesReg);
	/* end LogicalShiftLeftCq:R: */
	gAndCqRR(BytesPerWord - 1, _formatReg, TempReg);
	/* begin SubR:R: */
	genoperandoperand(SubRR, TempReg, _nSlotsOrBytesReg);
	/* end SubR:R: */
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, Arg0Reg, _nSlotsOrBytesReg);
	/* end CmpR:R: */
	/* begin JumpBelowOrEqual: */
	_jumpBytesOutOfBounds = genConditionalBranchoperand(JumpBelowOrEqual, ((sqInt) 0 ));
	/* end JumpBelowOrEqual: */
	/* begin CmpCq:R: */
	_quickConstant10 = firstCompiledMethodFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction13 = genoperandoperand(CmpCqR, _quickConstant10, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction13)) {
		(_anInstruction13->dependent = locateLiteral(_quickConstant10));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_jumpIsCompiledMethod = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	/* begin MoveR:R: */
	_methodInBounds = genoperandoperand(MoveRR, Arg1Reg, TempReg);
	/* end MoveR:R: */
	genConvertSmallIntegerToIntegerInReg(TempReg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction14 = genoperandoperand(AddCqR, BaseHeaderSize, Arg0Reg);
	if (usesOutOfLineLiteral(_anInstruction14)) {
		(_anInstruction14->dependent = locateLiteral(BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin MoveR:Xbr:R: */
	genoperandoperandoperand(MoveRXbrR, TempReg, Arg0Reg, ReceiverResultReg);
	/* end MoveR:Xbr:R: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg1Reg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpIsShorts, checkQuickConstantforInstruction(((((usqInt) 0xFFFF ) << 1) | 1), genoperandoperand(CmpCqR, ((((usqInt) 0xFFFF ) << 1) | 1), Arg1Reg)));
	/* begin JumpAbove: */
	_jumpShortsOutOfRange = genConditionalBranchoperand(JumpAbove, ((sqInt) 0 ));
	/* end JumpAbove: */
	/* begin LogicalShiftLeftCq:R: */
	genoperandoperand(LogicalShiftLeftCqR, (shiftForWord()) - 1, _nSlotsOrBytesReg);
	/* end LogicalShiftLeftCq:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction15 = genoperandoperand(AndCqR, (BytesPerWord / 2) - 1, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction15)) {
		(_anInstruction15->dependent = locateLiteral((BytesPerWord / 2) - 1));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin SubR:R: */
	genoperandoperand(SubRR, _formatReg, _nSlotsOrBytesReg);
	/* end SubR:R: */
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, Arg0Reg, _nSlotsOrBytesReg);
	/* end CmpR:R: */
	/* begin JumpBelowOrEqual: */
	_jumpShortsOutOfBounds = genConditionalBranchoperand(JumpBelowOrEqual, ((sqInt) 0 ));
	/* end JumpBelowOrEqual: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg1Reg, TempReg);
	/* end MoveR:R: */
	genConvertSmallIntegerToIntegerInReg(TempReg);
	/* begin AddR:R: */
	genoperandoperand(AddRR, Arg0Reg, ReceiverResultReg);
	/* end AddR:R: */
	/* begin AddR:R: */
	genoperandoperand(AddRR, Arg0Reg, ReceiverResultReg);
	/* end AddR:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction16 = genoperandoperandoperand(MoveRM16r, TempReg, BaseHeaderSize, ReceiverResultReg);
	if (usesOutOfLineLiteral(_anInstruction16)) {
		(_anInstruction16->dependent = locateLiteral(BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg1Reg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpIsCompiledMethod, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	getLiteralCountOfplusOneinBytesintoscratch(ReceiverResultReg, 1, 1, _nSlotsOrBytesReg, TempReg);
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, Arg0Reg, _nSlotsOrBytesReg);
	/* end CmpR:R: */
	/* begin JumpBelow: */
	genConditionalBranchoperand(JumpBelow, ((sqInt) _methodInBounds ));
	/* end JumpBelow: */
	jmpTarget(_jumpIsContext, jmpTarget(_jumpNotIndexableBits, jmpTarget(_jumpBytesOutOfRange, jmpTarget(_jumpWordsOutOfRange, jmpTarget(_jumpShortsOutOfRange, jmpTarget(_jumpIsCompiledMethod, jmpTarget(_jumpArrayOutOfBounds, jmpTarget(_jumpBytesOutOfBounds, jmpTarget(_jumpShortsOutOfBounds, jmpTarget(_jumpWordsOutOfBounds, jmpTarget(_jumpNotIndexablePointers, jmpTarget(_jumpNonSmallIntegerValue, jmpTarget(_jumpFixedFieldsOutOfBounds, genoperandoperand(Label, (labelCounter += 1), bytecodePC))))))))))))));
	
#  if IMMUTABILITY
	{
		jmpTarget(_jumpImmutable, ((AbstractInstruction *) ((_jumpIsContext->operands)[0]) ));
	}
#  endif /* IMMUTABILITY */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction17 = genoperandoperand(AddCqR, 1, Arg0Reg);
	if (usesOutOfLineLiteral(_anInstruction17)) {
		(_anInstruction17->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	genConvertIntegerToSmallIntegerInReg(Arg0Reg);
	jmpTarget(_jumpBadIndex, jmpTarget(_jumpImmediate, genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
	return 0;
}
/*	Generate the code for primitives 61 & 165, at:put:/basicAt:put: & 
	integerAt:put:. If signedVersion is true 
	then generate signed accesses to the bits classes (a la 164 & 165). If 
	signedVersion is false, 
	generate unsigned accesses (a la 60, 61, 63 & 64).c.f. StackInterpreter>>stSizeOf: SpurMemoryManager>>lengthOf:format: 
	fixedFieldsOf:format:length:  */
/* CogObjectRepresentationFor32BitSpur>>#genPrimitiveAtPutSigned: */
static sqInt NoDbgRegParms
genPrimitiveAtPutSigned(sqInt _signedVersion)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction10;
	AbstractInstruction *_anInstruction11;
	AbstractInstruction *_anInstruction12;
	AbstractInstruction *_anInstruction13;
	AbstractInstruction *_anInstruction14;
	AbstractInstruction *_anInstruction15;
	AbstractInstruction *_anInstruction16;
	AbstractInstruction *_anInstruction17;
	AbstractInstruction *_anInstruction18;
	AbstractInstruction *_anInstruction19;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction20;
	AbstractInstruction *_anInstruction21;
	AbstractInstruction *_anInstruction22;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction5;
	AbstractInstruction *_anInstruction6;
	AbstractInstruction *_anInstruction7;
	AbstractInstruction *_anInstruction8;
	AbstractInstruction *_anInstruction9;
	sqInt _formatReg;
	AbstractInstruction * _jumpArrayOutOfBounds;
	AbstractInstruction * _jumpBadIndex;
	AbstractInstruction * _jumpBytesOutOfBounds;
	AbstractInstruction * _jumpBytesOutOfRange;
	AbstractInstruction * _jumpFixedFieldsOutOfBounds;
	AbstractInstruction * _jumpHasFixedFields;
	AbstractInstruction * _jumpImmediate;
	AbstractInstruction * _jumpImmutable;
	AbstractInstruction * _jumpIsBytes;
	AbstractInstruction * _jumpIsCompiledMethod;
	AbstractInstruction * _jumpIsContext;
	AbstractInstruction * _jumpIsShorts;
	AbstractInstruction * _jumpNonSmallIntegerValue;
	AbstractInstruction * _jumpNotIndexableBits;
	AbstractInstruction * _jumpNotIndexablePointers;
	AbstractInstruction * _jumpNotPointers;
	AbstractInstruction * _jumpShortsOutOfBounds;
	AbstractInstruction * _jumpShortsOutOfRange;
	AbstractInstruction * _jumpWordsOutOfBounds;
	AbstractInstruction * _jumpWordsOutOfRange;
	AbstractInstruction * _methodInBounds;
	sqInt _nSlotsOrBytesReg;
	sqInt _quickConstant;
	sqInt _quickConstant10;
	sqInt _quickConstant11;
	sqInt _quickConstant2;
	sqInt _quickConstant3;
	sqInt _quickConstant4;
	sqInt _quickConstant5;
	sqInt _quickConstant6;
	sqInt _quickConstant7;
	sqInt _quickConstant8;
	sqInt _quickConstant9;

	_jumpImmutable = ((AbstractInstruction *) 0 );
	_jumpWordsOutOfRange = ((AbstractInstruction *) 0 );
	_nSlotsOrBytesReg = ClassReg;
	/* begin genLoadArgAtDepth:into: */
	assert(1 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	/* begin genLoadArgAtDepth:into: */
	assert(0 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	_jumpImmediate = genJumpImmediate(ReceiverResultReg);
	/* begin genJumpNotSmallInteger:scratchReg: */
	_jumpBadIndex = genJumpNotSmallInteger(Arg0Reg);
	/* end genJumpNotSmallInteger:scratchReg: */
	genConvertSmallIntegerToIntegerInReg(Arg0Reg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction6 = genoperandoperand(SubCqR, 1, Arg0Reg);
	if (usesOutOfLineLiteral(_anInstruction6)) {
		(_anInstruction6->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	
#  if IMMUTABILITY
	{
		genGetFormatOfintoleastSignificantHalfOfBaseHeaderIntoScratch(ReceiverResultReg, (_formatReg = SendNumArgsReg), TempReg);
		/* begin genJumpBaseHeaderImmutable: */
		/* begin TstCq:R: */
		_quickConstant11 = immutableBitMask();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction22 = genoperandoperand(TstCqR, _quickConstant11, TempReg);
		if (usesOutOfLineLiteral(_anInstruction22)) {
			(_anInstruction22->dependent = locateLiteral(_quickConstant11));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end TstCq:R: */
		/* begin JumpNonZero: */
		_jumpImmutable = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
		/* end JumpNonZero: */
		/* end genJumpBaseHeaderImmutable: */
	}
#  else /* IMMUTABILITY */
	{
		genGetFormatOfintoleastSignificantHalfOfBaseHeaderIntoScratch(ReceiverResultReg, (_formatReg = SendNumArgsReg), NoReg);
	}
#  endif /* IMMUTABILITY */
	genGetNumSlotsOfinto(ReceiverResultReg, _nSlotsOrBytesReg);
	/* begin CmpCq:R: */
	_quickConstant = weakArrayFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction7 = genoperandoperand(CmpCqR, _quickConstant, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction7)) {
		(_anInstruction7->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAbove: */
	_jumpNotPointers = genConditionalBranchoperand(JumpAbove, ((sqInt) 0 ));
	/* end JumpAbove: */
	genStoreCheckReceiverRegvalueRegscratchReginFrame(ReceiverResultReg, Arg1Reg, TempReg, 0);
	/* begin CmpCq:R: */
	_quickConstant2 = arrayFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction8 = genoperandoperand(CmpCqR, _quickConstant2, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction8)) {
		(_anInstruction8->dependent = locateLiteral(_quickConstant2));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpBelow: */
	_jumpNotIndexablePointers = genConditionalBranchoperand(JumpBelow, ((sqInt) 0 ));
	/* end JumpBelow: */
	/* begin JumpNonZero: */
	_jumpHasFixedFields = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, Arg0Reg, _nSlotsOrBytesReg);
	/* end CmpR:R: */
	/* begin JumpBelowOrEqual: */
	_jumpArrayOutOfBounds = genConditionalBranchoperand(JumpBelowOrEqual, ((sqInt) 0 ));
	/* end JumpBelowOrEqual: */
	/* begin AddCq:R: */
	_quickConstant3 = ((usqInt) BaseHeaderSize ) >> (shiftForWord());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction9 = genoperandoperand(AddCqR, _quickConstant3, Arg0Reg);
	if (usesOutOfLineLiteral(_anInstruction9)) {
		(_anInstruction9->dependent = locateLiteral(_quickConstant3));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AddCq:R: */
	/* begin MoveR:Xwr:R: */
	genoperandoperandoperand(MoveRXwrR, Arg1Reg, Arg0Reg, ReceiverResultReg);
	/* end MoveR:Xwr:R: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg1Reg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpHasFixedFields, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	genGetClassIndexOfNonImminto(ReceiverResultReg, _formatReg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction10 = genoperandoperand(CmpCqR, ClassMethodContextCompactIndex, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction10)) {
		(_anInstruction10->dependent = locateLiteral(ClassMethodContextCompactIndex));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpZero: */
	_jumpIsContext = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	/* begin PushR: */
	genoperand(PushR, _nSlotsOrBytesReg);
	/* end PushR: */
	genGetClassObjectOfClassIndexintoscratchReg(_formatReg, _nSlotsOrBytesReg, TempReg);
	genLoadSlotsourceRegdestReg(InstanceSpecificationIndex, _nSlotsOrBytesReg, _formatReg);
	/* begin PopR: */
	genoperand(PopR, _nSlotsOrBytesReg);
	/* end PopR: */
	genConvertSmallIntegerToIntegerInReg(_formatReg);
	/* begin AndCq:R: */
	_quickConstant4 = fixedFieldsOfClassFormatMask();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction11 = genoperandoperand(AndCqR, _quickConstant4, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction11)) {
		(_anInstruction11->dependent = locateLiteral(_quickConstant4));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AndCq:R: */
	/* begin SubR:R: */
	genoperandoperand(SubRR, _formatReg, _nSlotsOrBytesReg);
	/* end SubR:R: */
	/* begin AddCq:R: */
	_quickConstant5 = ((usqInt) BaseHeaderSize ) >> (shiftForWord());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction12 = genoperandoperand(AddCqR, _quickConstant5, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction12)) {
		(_anInstruction12->dependent = locateLiteral(_quickConstant5));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AddCq:R: */
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, Arg0Reg, _nSlotsOrBytesReg);
	/* end CmpR:R: */
	/* begin JumpBelowOrEqual: */
	_jumpFixedFieldsOutOfBounds = genConditionalBranchoperand(JumpBelowOrEqual, ((sqInt) 0 ));
	/* end JumpBelowOrEqual: */
	/* begin AddR:R: */
	genoperandoperand(AddRR, _formatReg, Arg0Reg);
	/* end AddR:R: */
	/* begin MoveR:Xwr:R: */
	genoperandoperandoperand(MoveRXwrR, Arg1Reg, Arg0Reg, ReceiverResultReg);
	/* end MoveR:Xwr:R: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg1Reg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpNotPointers, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	/* begin genJumpNotSmallInteger:scratchReg: */
	_jumpNonSmallIntegerValue = genJumpNotSmallInteger(Arg1Reg);
	/* end genJumpNotSmallInteger:scratchReg: */
	/* begin CmpCq:R: */
	_quickConstant6 = firstByteFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction13 = genoperandoperand(CmpCqR, _quickConstant6, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction13)) {
		(_anInstruction13->dependent = locateLiteral(_quickConstant6));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_jumpIsBytes = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	/* begin CmpCq:R: */
	_quickConstant7 = firstShortFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction14 = genoperandoperand(CmpCqR, _quickConstant7, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction14)) {
		(_anInstruction14->dependent = locateLiteral(_quickConstant7));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_jumpIsShorts = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	/* begin CmpCq:R: */
	_quickConstant8 = firstLongFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction15 = genoperandoperand(CmpCqR, _quickConstant8, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction15)) {
		(_anInstruction15->dependent = locateLiteral(_quickConstant8));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpBelow: */
	_jumpNotIndexableBits = genConditionalBranchoperand(JumpBelow, ((sqInt) 0 ));
	/* end JumpBelow: */
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, Arg0Reg, _nSlotsOrBytesReg);
	/* end CmpR:R: */
	/* begin JumpBelowOrEqual: */
	_jumpWordsOutOfBounds = genConditionalBranchoperand(JumpBelowOrEqual, ((sqInt) 0 ));
	/* end JumpBelowOrEqual: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg1Reg, TempReg);
	/* end MoveR:R: */
	genConvertSmallIntegerToIntegerInReg(TempReg);
	if (!_signedVersion) {
		if (!(setsConditionCodesFor(lastOpcode(), JumpLess))) {
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction = genoperandoperand(CmpCqR, 0, TempReg);
			if (usesOutOfLineLiteral(_anInstruction)) {
				(_anInstruction->dependent = locateLiteral(0));
			}
			/* end checkQuickConstant:forInstruction: */
		}
		/* begin JumpLess: */
		_jumpWordsOutOfRange = genConditionalBranchoperand(JumpLess, ((sqInt) 0 ));
		/* end JumpLess: */
	}
	/* begin AddCq:R: */
	_quickConstant9 = ((usqInt) BaseHeaderSize ) >> (shiftForWord());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction16 = genoperandoperand(AddCqR, _quickConstant9, Arg0Reg);
	if (usesOutOfLineLiteral(_anInstruction16)) {
		(_anInstruction16->dependent = locateLiteral(_quickConstant9));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AddCq:R: */
	/* begin MoveR:Xwr:R: */
	genoperandoperandoperand(MoveRXwrR, TempReg, Arg0Reg, ReceiverResultReg);
	/* end MoveR:Xwr:R: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg1Reg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	if (_signedVersion) {
		jmpTarget(_jumpIsBytes, genoperandoperand(MoveRR, SendNumArgsReg, TempReg));
		/* begin ArithmeticShiftRightCq:R: */
		genoperandoperand(ArithmeticShiftRightCqR, 7, TempReg);
		/* end ArithmeticShiftRightCq:R: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction2 = genoperandoperand(AddCqR, 1, TempReg);
		if (usesOutOfLineLiteral(_anInstruction2)) {
			(_anInstruction2->dependent = locateLiteral(1));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction3 = genoperandoperand(CmpCqR, 1, TempReg);
		if (usesOutOfLineLiteral(_anInstruction3)) {
			(_anInstruction3->dependent = locateLiteral(1));
		}
		/* end checkQuickConstant:forInstruction: */
	} else {
		jmpTarget(_jumpIsBytes, checkQuickConstantforInstruction(((((usqInt) 0xFF ) << 1) | 1), genoperandoperand(CmpCqR, ((((usqInt) 0xFF ) << 1) | 1), Arg1Reg)));
	}
	/* begin JumpAbove: */
	_jumpBytesOutOfRange = genConditionalBranchoperand(JumpAbove, ((sqInt) 0 ));
	/* end JumpAbove: */
	/* begin LogicalShiftLeftCq:R: */
	genoperandoperand(LogicalShiftLeftCqR, shiftForWord(), _nSlotsOrBytesReg);
	/* end LogicalShiftLeftCq:R: */
	gAndCqRR(BytesPerWord - 1, _formatReg, TempReg);
	/* begin SubR:R: */
	genoperandoperand(SubRR, TempReg, _nSlotsOrBytesReg);
	/* end SubR:R: */
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, Arg0Reg, _nSlotsOrBytesReg);
	/* end CmpR:R: */
	/* begin JumpBelowOrEqual: */
	_jumpBytesOutOfBounds = genConditionalBranchoperand(JumpBelowOrEqual, ((sqInt) 0 ));
	/* end JumpBelowOrEqual: */
	/* begin CmpCq:R: */
	_quickConstant10 = firstCompiledMethodFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction17 = genoperandoperand(CmpCqR, _quickConstant10, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction17)) {
		(_anInstruction17->dependent = locateLiteral(_quickConstant10));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_jumpIsCompiledMethod = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	/* begin MoveR:R: */
	_methodInBounds = genoperandoperand(MoveRR, Arg1Reg, TempReg);
	/* end MoveR:R: */
	genConvertSmallIntegerToIntegerInReg(TempReg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction18 = genoperandoperand(AddCqR, BaseHeaderSize, Arg0Reg);
	if (usesOutOfLineLiteral(_anInstruction18)) {
		(_anInstruction18->dependent = locateLiteral(BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin MoveR:Xbr:R: */
	genoperandoperandoperand(MoveRXbrR, TempReg, Arg0Reg, ReceiverResultReg);
	/* end MoveR:Xbr:R: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg1Reg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	if (_signedVersion) {
		jmpTarget(_jumpIsShorts, genoperandoperand(MoveRR, SendNumArgsReg, TempReg));
		/* begin ArithmeticShiftRightCq:R: */
		genoperandoperand(ArithmeticShiftRightCqR, 15, TempReg);
		/* end ArithmeticShiftRightCq:R: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction4 = genoperandoperand(AddCqR, 1, TempReg);
		if (usesOutOfLineLiteral(_anInstruction4)) {
			(_anInstruction4->dependent = locateLiteral(1));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction5 = genoperandoperand(CmpCqR, 1, TempReg);
		if (usesOutOfLineLiteral(_anInstruction5)) {
			(_anInstruction5->dependent = locateLiteral(1));
		}
		/* end checkQuickConstant:forInstruction: */
	} else {
		jmpTarget(_jumpIsShorts, checkQuickConstantforInstruction(((((usqInt) 0xFFFF ) << 1) | 1), genoperandoperand(CmpCqR, ((((usqInt) 0xFFFF ) << 1) | 1), Arg1Reg)));
	}
	/* begin JumpAbove: */
	_jumpShortsOutOfRange = genConditionalBranchoperand(JumpAbove, ((sqInt) 0 ));
	/* end JumpAbove: */
	/* begin LogicalShiftLeftCq:R: */
	genoperandoperand(LogicalShiftLeftCqR, (shiftForWord()) - 1, _nSlotsOrBytesReg);
	/* end LogicalShiftLeftCq:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction19 = genoperandoperand(AndCqR, (BytesPerWord / 2) - 1, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction19)) {
		(_anInstruction19->dependent = locateLiteral((BytesPerWord / 2) - 1));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin SubR:R: */
	genoperandoperand(SubRR, _formatReg, _nSlotsOrBytesReg);
	/* end SubR:R: */
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, Arg0Reg, _nSlotsOrBytesReg);
	/* end CmpR:R: */
	/* begin JumpBelowOrEqual: */
	_jumpShortsOutOfBounds = genConditionalBranchoperand(JumpBelowOrEqual, ((sqInt) 0 ));
	/* end JumpBelowOrEqual: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg1Reg, TempReg);
	/* end MoveR:R: */
	genConvertSmallIntegerToIntegerInReg(TempReg);
	/* begin AddR:R: */
	genoperandoperand(AddRR, Arg0Reg, ReceiverResultReg);
	/* end AddR:R: */
	/* begin AddR:R: */
	genoperandoperand(AddRR, Arg0Reg, ReceiverResultReg);
	/* end AddR:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction20 = genoperandoperandoperand(MoveRM16r, TempReg, BaseHeaderSize, ReceiverResultReg);
	if (usesOutOfLineLiteral(_anInstruction20)) {
		(_anInstruction20->dependent = locateLiteral(BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg1Reg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpIsCompiledMethod, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	getLiteralCountOfplusOneinBytesintoscratch(ReceiverResultReg, 1, 1, _nSlotsOrBytesReg, TempReg);
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, Arg0Reg, _nSlotsOrBytesReg);
	/* end CmpR:R: */
	/* begin JumpBelow: */
	genConditionalBranchoperand(JumpBelow, ((sqInt) _methodInBounds ));
	/* end JumpBelow: */
	jmpTarget(_jumpIsContext, jmpTarget(_jumpNotIndexableBits, jmpTarget(_jumpBytesOutOfRange, jmpTarget(_jumpShortsOutOfRange, jmpTarget(_jumpIsCompiledMethod, jmpTarget(_jumpArrayOutOfBounds, jmpTarget(_jumpBytesOutOfBounds, jmpTarget(_jumpShortsOutOfBounds, jmpTarget(_jumpWordsOutOfBounds, jmpTarget(_jumpNotIndexablePointers, jmpTarget(_jumpNonSmallIntegerValue, jmpTarget(_jumpFixedFieldsOutOfBounds, genoperandoperand(Label, (labelCounter += 1), bytecodePC)))))))))))));
	if (!_signedVersion) {
		jmpTarget(_jumpWordsOutOfRange, ((AbstractInstruction *) ((_jumpIsContext->operands)[0]) ));
	}
	
#  if IMMUTABILITY
	{
		jmpTarget(_jumpImmutable, ((AbstractInstruction *) ((_jumpIsContext->operands)[0]) ));
	}
#  endif /* IMMUTABILITY */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction21 = genoperandoperand(AddCqR, 1, Arg0Reg);
	if (usesOutOfLineLiteral(_anInstruction21)) {
		(_anInstruction21->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	genConvertIntegerToSmallIntegerInReg(Arg0Reg);
	jmpTarget(_jumpBadIndex, jmpTarget(_jumpImmediate, genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
	return 0;
}
/*	Generate the code for primitives 60 & 164, at:/basicAt: & integerAt:. If 
	signedVersion is true 
	then generate signed accesses to the bits classes (a la 164 & 165). If 
	signedVersion is false, 
	generate unsigned accesses (a la 60, 61, 63 & 64).c.f. StackInterpreter>>stSizeOf: SpurMemoryManager>>lengthOf:format: 
	fixedFieldsOf:format:length:  */
/* CogObjectRepresentationFor32BitSpur>>#genPrimitiveAtSigned: */
static sqInt NoDbgRegParms
genPrimitiveAtSigned(sqInt _signedVersion)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction10;
	AbstractInstruction *_anInstruction11;
	AbstractInstruction *_anInstruction12;
	AbstractInstruction *_anInstruction13;
	AbstractInstruction *_anInstruction14;
	AbstractInstruction *_anInstruction15;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction5;
	AbstractInstruction *_anInstruction6;
	AbstractInstruction *_anInstruction7;
	AbstractInstruction *_anInstruction8;
	AbstractInstruction *_anInstruction9;
	AbstractInstruction * _convertToIntAndReturn;
	AbstractInstruction * _first;
	AbstractInstruction * _first2;
	sqInt _formatReg;
	AbstractInstruction * _jumpArrayOutOfBounds;
	AbstractInstruction * _jumpBadIndex;
	AbstractInstruction * _jumpBytesOutOfBounds;
	AbstractInstruction * _jumpFixedFieldsOutOfBounds;
	AbstractInstruction * _jumpHasFixedFields;
	AbstractInstruction * _jumpImmediate;
	AbstractInstruction * _jumpIsArray;
	AbstractInstruction * _jumpIsBytes;
	AbstractInstruction * _jumpIsContext;
	AbstractInstruction * _jumpIsMethod;
	AbstractInstruction * _jumpIsShorts;
	AbstractInstruction * _jumpIsWords;
	AbstractInstruction * _jumpNotIndexable;
	AbstractInstruction * _jumpShortsOutOfBounds;
	AbstractInstruction * _jumpWordsOutOfBounds;
	AbstractInstruction * _jumpWordTooBig;
	AbstractInstruction * _methodInBounds;
	sqInt _nSlotsOrBytesReg;
	sqInt _quickConstant;
	sqInt _quickConstant10;
	sqInt _quickConstant2;
	sqInt _quickConstant3;
	sqInt _quickConstant4;
	sqInt _quickConstant5;
	sqInt _quickConstant6;
	sqInt _quickConstant7;
	sqInt _quickConstant8;
	sqInt _quickConstant9;

	_nSlotsOrBytesReg = ClassReg;
	/* begin genLoadArgAtDepth:into: */
	assert(0 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	_jumpImmediate = genJumpImmediate(ReceiverResultReg);
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg0Reg, Arg1Reg);
	/* end MoveR:R: */
	/* begin genJumpNotSmallInteger:scratchReg: */
	_jumpBadIndex = genJumpNotSmallInteger(Arg0Reg);
	/* end genJumpNotSmallInteger:scratchReg: */
	genConvertSmallIntegerToIntegerInReg(Arg1Reg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(SubCqR, 1, Arg1Reg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	genGetFormatOfintoleastSignificantHalfOfBaseHeaderIntoScratch(ReceiverResultReg, (_formatReg = SendNumArgsReg), TempReg);
	genGetNumSlotsOfinto(ReceiverResultReg, _nSlotsOrBytesReg);
	/* begin CmpCq:R: */
	_quickConstant2 = firstByteFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction3 = genoperandoperand(CmpCqR, _quickConstant2, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction3)) {
		(_anInstruction3->dependent = locateLiteral(_quickConstant2));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_jumpIsBytes = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	/* begin CmpCq:R: */
	_quickConstant3 = arrayFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction4 = genoperandoperand(CmpCqR, _quickConstant3, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction4)) {
		(_anInstruction4->dependent = locateLiteral(_quickConstant3));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpZero: */
	_jumpIsArray = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	/* begin JumpBelow: */
	_jumpNotIndexable = genConditionalBranchoperand(JumpBelow, ((sqInt) 0 ));
	/* end JumpBelow: */
	/* begin CmpCq:R: */
	_quickConstant4 = weakArrayFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction5 = genoperandoperand(CmpCqR, _quickConstant4, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction5)) {
		(_anInstruction5->dependent = locateLiteral(_quickConstant4));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpBelowOrEqual: */
	_jumpHasFixedFields = genConditionalBranchoperand(JumpBelowOrEqual, ((sqInt) 0 ));
	/* end JumpBelowOrEqual: */
	/* begin CmpCq:R: */
	_quickConstant5 = firstShortFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction6 = genoperandoperand(CmpCqR, _quickConstant5, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction6)) {
		(_anInstruction6->dependent = locateLiteral(_quickConstant5));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_jumpIsShorts = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	/* begin CmpCq:R: */
	_quickConstant6 = firstLongFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction7 = genoperandoperand(CmpCqR, _quickConstant6, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction7)) {
		(_anInstruction7->dependent = locateLiteral(_quickConstant6));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_jumpIsWords = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	jmpTarget(_jumpNotIndexable, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	/* begin Jump: */
	_jumpNotIndexable = genoperand(Jump, ((sqInt) 0 ));
	/* end Jump: */
	jmpTarget(_jumpIsArray, genoperandoperand(CmpRR, Arg1Reg, _nSlotsOrBytesReg));
	/* begin JumpBelowOrEqual: */
	_jumpArrayOutOfBounds = genConditionalBranchoperand(JumpBelowOrEqual, ((sqInt) 0 ));
	/* end JumpBelowOrEqual: */
	/* begin AddCq:R: */
	_quickConstant7 = ((usqInt) BaseHeaderSize ) >> (shiftForWord());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction8 = genoperandoperand(AddCqR, _quickConstant7, Arg1Reg);
	if (usesOutOfLineLiteral(_anInstruction8)) {
		(_anInstruction8->dependent = locateLiteral(_quickConstant7));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AddCq:R: */
	/* begin MoveXwr:R:R: */
	genoperandoperandoperand(MoveXwrRR, Arg1Reg, ReceiverResultReg, ReceiverResultReg);
	/* end MoveXwr:R:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpIsBytes, gLogicalShiftLeftCqR(shiftForWord(), _nSlotsOrBytesReg));
	gAndCqRR(BytesPerWord - 1, _formatReg, TempReg);
	{
		/* begin SubR:R: */
		genoperandoperand(SubRR, TempReg, _nSlotsOrBytesReg);
		/* end SubR:R: */
		/* begin CmpR:R: */
		genoperandoperand(CmpRR, Arg1Reg, _nSlotsOrBytesReg);
		/* end CmpR:R: */
	}
	/* begin JumpBelowOrEqual: */
	_jumpBytesOutOfBounds = genConditionalBranchoperand(JumpBelowOrEqual, ((sqInt) 0 ));
	/* end JumpBelowOrEqual: */
	/* begin CmpCq:R: */
	_quickConstant8 = firstCompiledMethodFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction9 = genoperandoperand(CmpCqR, _quickConstant8, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction9)) {
		(_anInstruction9->dependent = locateLiteral(_quickConstant8));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_jumpIsMethod = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction10 = genoperandoperand(AddCqR, BaseHeaderSize, Arg1Reg);
	if (usesOutOfLineLiteral(_anInstruction10)) {
		(_anInstruction10->dependent = locateLiteral(BaseHeaderSize));
	}
	_methodInBounds = _anInstruction10;
	/* end checkQuickConstant:forInstruction: */
	{
		/* begin MoveXbr:R:R: */
		genoperandoperandoperand(MoveXbrRR, Arg1Reg, ReceiverResultReg, ReceiverResultReg);
		/* end MoveXbr:R:R: */
	}
	if (_signedVersion) {
		/* begin SignExtend8R:R: */
		{
			{
				/* begin LogicalShiftLeftCq:R: */
				_first = genoperandoperand(LogicalShiftLeftCqR, (BytesPerWord * 8) - 8, ReceiverResultReg);
				/* end LogicalShiftLeftCq:R: */
			}
			/* begin ArithmeticShiftRightCq:R: */
			genoperandoperand(ArithmeticShiftRightCqR, (BytesPerWord * 8) - 8, ReceiverResultReg);
			/* end ArithmeticShiftRightCq:R: */
			goto l11;
		}
		l11:
		;
		/* end SignExtend8R:R: */
	}
	/* begin Label */
	_convertToIntAndReturn = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
	/* end Label */
	genConvertIntegerToSmallIntegerInReg(ReceiverResultReg);
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpIsShorts, gLogicalShiftLeftCqR((shiftForWord()) - 1, _nSlotsOrBytesReg));
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction11 = genoperandoperand(AndCqR, 1, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction11)) {
		(_anInstruction11->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	{
		/* begin SubR:R: */
		genoperandoperand(SubRR, _formatReg, _nSlotsOrBytesReg);
		/* end SubR:R: */
		/* begin CmpR:R: */
		genoperandoperand(CmpRR, Arg1Reg, _nSlotsOrBytesReg);
		/* end CmpR:R: */
	}
	/* begin JumpBelowOrEqual: */
	_jumpShortsOutOfBounds = genConditionalBranchoperand(JumpBelowOrEqual, ((sqInt) 0 ));
	/* end JumpBelowOrEqual: */
	/* begin AddR:R: */
	genoperandoperand(AddRR, Arg1Reg, ReceiverResultReg);
	/* end AddR:R: */
	/* begin AddR:R: */
	genoperandoperand(AddRR, Arg1Reg, ReceiverResultReg);
	/* end AddR:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction12 = genoperandoperandoperand(MoveM16rR, BaseHeaderSize, ReceiverResultReg, ReceiverResultReg);
	if (usesOutOfLineLiteral(_anInstruction12)) {
		(_anInstruction12->dependent = locateLiteral(BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	if (_signedVersion) {
		/* begin SignExtend16R:R: */
		{
			{
				/* begin LogicalShiftLeftCq:R: */
				_first2 = genoperandoperand(LogicalShiftLeftCqR, (BytesPerWord * 8) - 16, ReceiverResultReg);
				/* end LogicalShiftLeftCq:R: */
			}
			/* begin ArithmeticShiftRightCq:R: */
			genoperandoperand(ArithmeticShiftRightCqR, (BytesPerWord * 8) - 16, ReceiverResultReg);
			/* end ArithmeticShiftRightCq:R: */
			goto l18;
		}
		l18:
		;
		/* end SignExtend16R:R: */
	}
	/* begin Jump: */
	genoperand(Jump, ((sqInt) _convertToIntAndReturn ));
	/* end Jump: */
	jmpTarget(_jumpIsWords, genoperandoperand(CmpRR, Arg1Reg, _nSlotsOrBytesReg));
	/* begin JumpBelowOrEqual: */
	_jumpWordsOutOfBounds = genConditionalBranchoperand(JumpBelowOrEqual, ((sqInt) 0 ));
	/* end JumpBelowOrEqual: */
	/* begin AddCq:R: */
	_quickConstant9 = ((usqInt) BaseHeaderSize ) >> (shiftForWord());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction13 = genoperandoperand(AddCqR, _quickConstant9, Arg1Reg);
	if (usesOutOfLineLiteral(_anInstruction13)) {
		(_anInstruction13->dependent = locateLiteral(_quickConstant9));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AddCq:R: */
	/* begin MoveXwr:R:R: */
	genoperandoperandoperand(MoveXwrRR, Arg1Reg, ReceiverResultReg, TempReg);
	/* end MoveXwr:R:R: */
	_jumpWordTooBig = jumpNotSmallIntegerUnsignedValueInRegister(TempReg);
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, TempReg, ReceiverResultReg);
	/* end MoveR:R: */
	/* begin Jump: */
	genoperand(Jump, ((sqInt) _convertToIntAndReturn ));
	/* end Jump: */
	jmpTarget(_jumpHasFixedFields, gAndCqR(classIndexMask(), TempReg));
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, TempReg, _formatReg);
	/* end MoveR:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction14 = genoperandoperand(CmpCqR, ClassMethodContextCompactIndex, TempReg);
	if (usesOutOfLineLiteral(_anInstruction14)) {
		(_anInstruction14->dependent = locateLiteral(ClassMethodContextCompactIndex));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpZero: */
	_jumpIsContext = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	/* begin PushR: */
	genoperand(PushR, _nSlotsOrBytesReg);
	/* end PushR: */
	genGetClassObjectOfClassIndexintoscratchReg(_formatReg, _nSlotsOrBytesReg, TempReg);
	genLoadSlotsourceRegdestReg(InstanceSpecificationIndex, _nSlotsOrBytesReg, _formatReg);
	/* begin PopR: */
	genoperand(PopR, _nSlotsOrBytesReg);
	/* end PopR: */
	genConvertSmallIntegerToIntegerInReg(_formatReg);
	{
		/* begin AndCq:R: */
		_quickConstant = fixedFieldsOfClassFormatMask();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(AndCqR, _quickConstant, _formatReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_quickConstant));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end AndCq:R: */
		/* begin SubR:R: */
		genoperandoperand(SubRR, _formatReg, _nSlotsOrBytesReg);
		/* end SubR:R: */
		/* begin CmpR:R: */
		genoperandoperand(CmpRR, Arg1Reg, _nSlotsOrBytesReg);
		/* end CmpR:R: */
	}
	/* begin JumpBelowOrEqual: */
	_jumpFixedFieldsOutOfBounds = genConditionalBranchoperand(JumpBelowOrEqual, ((sqInt) 0 ));
	/* end JumpBelowOrEqual: */
	/* begin AddR:R: */
	genoperandoperand(AddRR, _formatReg, Arg1Reg);
	/* end AddR:R: */
	/* begin AddCq:R: */
	_quickConstant10 = ((usqInt) BaseHeaderSize ) >> (shiftForWord());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction15 = genoperandoperand(AddCqR, _quickConstant10, Arg1Reg);
	if (usesOutOfLineLiteral(_anInstruction15)) {
		(_anInstruction15->dependent = locateLiteral(_quickConstant10));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AddCq:R: */
	/* begin MoveXwr:R:R: */
	genoperandoperandoperand(MoveXwrRR, Arg1Reg, ReceiverResultReg, ReceiverResultReg);
	/* end MoveXwr:R:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpIsMethod, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	getLiteralCountOfplusOneinBytesintoscratch(ReceiverResultReg, 1, 1, _nSlotsOrBytesReg, TempReg);
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, Arg1Reg, _nSlotsOrBytesReg);
	/* end CmpR:R: */
	/* begin JumpBelow: */
	genConditionalBranchoperand(JumpBelow, ((sqInt) _methodInBounds ));
	/* end JumpBelow: */
	jmpTarget(_jumpWordTooBig, jmpTarget(_jumpFixedFieldsOutOfBounds, jmpTarget(_jumpArrayOutOfBounds, jmpTarget(_jumpBytesOutOfBounds, jmpTarget(_jumpShortsOutOfBounds, jmpTarget(_jumpWordsOutOfBounds, jmpTarget(_jumpNotIndexable, jmpTarget(_jumpIsContext, jmpTarget(_jumpBadIndex, jmpTarget(_jumpImmediate, genoperandoperand(Label, (labelCounter += 1), bytecodePC)))))))))));
	return 0;
}
/*	Arguably we should fail for immediates, but so far no one has complained, 
	so...  */
/* CogObjectRepresentationFor32BitSpur>>#genPrimitiveIdentityHash */
static sqInt
genPrimitiveIdentityHash(void)
{
	AbstractInstruction *_abstractInstruction;
	AbstractInstruction *_anInstruction;
	AbstractInstruction * _inst;
	AbstractInstruction *_jumpImm;
	AbstractInstruction *_jumpNotSet;
	AbstractInstruction *_jumpSI;
	AbstractInstruction * _ret;

	_jumpImm = genJumpImmediate(ReceiverResultReg);
	genGetHashFieldNonImmOfasSmallIntegerInto(ReceiverResultReg, TempReg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(CmpCqR, ConstZero, TempReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(ConstZero));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpZero: */
	_jumpNotSet = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, TempReg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		_ret = genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			_ret = genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpImm, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	_jumpSI = genJumpSmallInteger(ReceiverResultReg);
	jmpTarget(_jumpSI, _ret);
	genConvertCharacterToSmallIntegerInReg(ReceiverResultReg);
	/* begin Jump: */
	genoperand(Jump, ((sqInt) _ret ));
	/* end Jump: */
	jmpTarget(_jumpNotSet, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	if (!(primitiveIndex == 75)) {
		return 0;
	}
	/* begin saveAndRestoreLinkRegAround: */
	_inst = genoperand(PushR, LinkReg);
	{
		/* begin CallRT: */
		/* begin annotateCall: */
		_abstractInstruction = genoperand(Call, ceNewHashTrampoline);
		(_abstractInstruction->annotation = IsRelativeCall);
		/* end annotateCall: */
		/* end CallRT: */
	}
	genoperand(PopR, LinkReg);
	/* end saveAndRestoreLinkRegAround: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	return UnfailingPrimitive;
}
/*	:Assume the receiuver is never a SmallInteger. One would use ^self for 
	that.  */
/* CogObjectRepresentationFor32BitSpur>>#genPrimitiveImmediateAsInteger */
static sqInt
genPrimitiveImmediateAsInteger(void)
{
	genConvertCharacterToSmallIntegerInReg(ReceiverResultReg);
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	return UnfailingPrimitive;
}
/*	Implement primitiveNew for convenient cases: 
	- the receiver has a hash 
	- the receiver is fixed size (excluding ephemerons to save instructions & 
	miniscule time) 
	- single word header/num slots < numSlotsMask 
	- the result fits in eden (actually below scavengeThreshold) */
/* CogObjectRepresentationFor32BitSpur>>#genPrimitiveNew */
static sqInt
genPrimitiveNew(void)
{
	sqInt _address;
	sqInt _address2;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction10;
	AbstractInstruction *_anInstruction11;
	AbstractInstruction *_anInstruction12;
	AbstractInstruction *_anInstruction13;
	AbstractInstruction *_anInstruction14;
	AbstractInstruction *_anInstruction15;
	AbstractInstruction *_anInstruction16;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction5;
	AbstractInstruction *_anInstruction6;
	AbstractInstruction *_anInstruction7;
	AbstractInstruction *_anInstruction8;
	AbstractInstruction *_anInstruction9;
	sqInt _byteSizeReg;
	AbstractInstruction *_fillLoop;
	sqInt _fillReg;
	sqInt _halfHeaderReg;
	sqInt _instSpecReg;
	AbstractInstruction *_jumpHasSlots;
	AbstractInstruction *_jumpNoSpace;
	AbstractInstruction *_jumpTooBig;
	AbstractInstruction *_jumpUnhashed;
	AbstractInstruction *_jumpVariableOrEphemeron;
	sqInt _quickConstant;
	sqInt _quickConstant2;
	sqInt _quickConstant3;
	sqInt _quickConstant4;
	sqInt _quickConstant5;
	sqInt _quickConstant6;
	sqInt _quickConstant7;
	sqInt _quickConstant8;
	AbstractInstruction *_skip;

	if (methodOrBlockNumArgs != 0) {
		return UnimplementedPrimitive;
	}
	_halfHeaderReg = (_fillReg = SendNumArgsReg);
	_instSpecReg = (_byteSizeReg = ClassReg);
	/* begin MoveAw:R: */
	_address = freeStartAddress();
	/* begin gen:literal:operand: */
	checkLiteralforInstruction(_address, genoperandoperand(MoveAwR, _address, Arg1Reg));
	/* end gen:literal:operand: */
	/* end MoveAw:R: */
	genGetHashFieldNonImmOfinto(ReceiverResultReg, _halfHeaderReg);
	/* begin JumpZero: */
	_jumpUnhashed = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	genLoadSlotsourceRegdestReg(InstanceSpecificationIndex, ReceiverResultReg, TempReg);
	genConvertSmallIntegerToIntegerInReg(TempReg);
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, TempReg, _instSpecReg);
	/* end MoveR:R: */
	/* begin LogicalShiftRightCq:R: */
	_quickConstant = fixedFieldsFieldWidth();
	genoperandoperand(LogicalShiftRightCqR, _quickConstant, TempReg);
	/* end LogicalShiftRightCq:R: */
	/* begin AndCq:R: */
	_quickConstant3 = formatMask();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(AndCqR, _quickConstant3, TempReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(_quickConstant3));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AndCq:R: */
	/* begin AndCq:R: */
	_quickConstant4 = fixedFieldsOfClassFormatMask();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(AndCqR, _quickConstant4, _instSpecReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_quickConstant4));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AndCq:R: */
	/* begin CmpCq:R: */
	_quickConstant5 = nonIndexablePointerFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction3 = genoperandoperand(CmpCqR, _quickConstant5, TempReg);
	if (usesOutOfLineLiteral(_anInstruction3)) {
		(_anInstruction3->dependent = locateLiteral(_quickConstant5));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAbove: */
	_jumpVariableOrEphemeron = genConditionalBranchoperand(JumpAbove, ((sqInt) 0 ));
	/* end JumpAbove: */
	/* begin CmpCq:R: */
	_quickConstant6 = numSlotsMask();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction4 = genoperandoperand(CmpCqR, _quickConstant6, _instSpecReg);
	if (usesOutOfLineLiteral(_anInstruction4)) {
		(_anInstruction4->dependent = locateLiteral(_quickConstant6));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_jumpTooBig = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	/* begin LogicalShiftLeftCq:R: */
	_quickConstant2 = formatShift();
	genoperandoperand(LogicalShiftLeftCqR, _quickConstant2, TempReg);
	/* end LogicalShiftLeftCq:R: */
	/* begin AddR:R: */
	genoperandoperand(AddRR, TempReg, _halfHeaderReg);
	/* end AddR:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction5 = genoperandoperandoperand(MoveRMwr, _halfHeaderReg, 0, Arg1Reg);
	if (usesOutOfLineLiteral(_anInstruction5)) {
		(_anInstruction5->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, _instSpecReg, _halfHeaderReg);
	/* end MoveR:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction6 = genoperandoperand(CmpCqR, 0, _byteSizeReg);
	if (usesOutOfLineLiteral(_anInstruction6)) {
		(_anInstruction6->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpNonZero: */
	_jumpHasSlots = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction7 = genoperandoperand(MoveCqR, BaseHeaderSize * 2, _byteSizeReg);
	if (usesOutOfLineLiteral(_anInstruction7)) {
		(_anInstruction7->dependent = locateLiteral(BaseHeaderSize * 2));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin Jump: */
	_skip = genoperand(Jump, ((sqInt) 0 ));
	/* end Jump: */
	jmpTarget(_jumpHasSlots, genoperandoperand(MoveRR, _byteSizeReg, TempReg));
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction8 = genoperandoperand(AndCqR, 1, TempReg);
	if (usesOutOfLineLiteral(_anInstruction8)) {
		(_anInstruction8->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin AddR:R: */
	genoperandoperand(AddRR, TempReg, _byteSizeReg);
	/* end AddR:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction9 = genoperandoperand(AddCqR, BaseHeaderSize / BytesPerWord, _byteSizeReg);
	if (usesOutOfLineLiteral(_anInstruction9)) {
		(_anInstruction9->dependent = locateLiteral(BaseHeaderSize / BytesPerWord));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin LogicalShiftLeftCq:R: */
	genoperandoperand(LogicalShiftLeftCqR, shiftForWord(), _byteSizeReg);
	/* end LogicalShiftLeftCq:R: */
	jmpTarget(_skip, gLogicalShiftLeftCqR(numSlotsHalfShift(), _halfHeaderReg));
	/* begin AddR:R: */
	genoperandoperand(AddRR, Arg1Reg, _byteSizeReg);
	/* end AddR:R: */
	/* begin CmpCq:R: */
	_quickConstant7 = getScavengeThreshold();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction10 = genoperandoperand(CmpCqR, _quickConstant7, _byteSizeReg);
	if (usesOutOfLineLiteral(_anInstruction10)) {
		(_anInstruction10->dependent = locateLiteral(_quickConstant7));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_jumpNoSpace = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	/* begin MoveR:Aw: */
	_address2 = freeStartAddress();
	/* begin gen:operand:literal: */
	checkLiteralforInstruction(_address2, genoperandoperand(MoveRAw, _byteSizeReg, _address2));
	/* end gen:operand:literal: */
	/* end MoveR:Aw: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg1Reg, ReceiverResultReg);
	/* end MoveR:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction11 = genoperandoperandoperand(MoveRMwr, _halfHeaderReg, 4, Arg1Reg);
	if (usesOutOfLineLiteral(_anInstruction11)) {
		(_anInstruction11->dependent = locateLiteral(4));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction12 = genoperandoperandoperand(LoadEffectiveAddressMwrR, BaseHeaderSize, ReceiverResultReg, Arg1Reg);
	if (usesOutOfLineLiteral(_anInstruction12)) {
		(_anInstruction12->dependent = locateLiteral(BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin MoveCq:R: */
	_quickConstant8 = nilObject();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction13 = genoperandoperand(MoveCqR, _quickConstant8, _fillReg);
	if (usesOutOfLineLiteral(_anInstruction13)) {
		(_anInstruction13->dependent = locateLiteral(_quickConstant8));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end MoveCq:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction14 = genoperandoperandoperand(MoveRMwr, _fillReg, 0, Arg1Reg);
	if (usesOutOfLineLiteral(_anInstruction14)) {
		(_anInstruction14->dependent = locateLiteral(0));
	}
	_fillLoop = _anInstruction14;
	/* end checkQuickConstant:forInstruction: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction15 = genoperandoperandoperand(MoveRMwr, _fillReg, 4, Arg1Reg);
	if (usesOutOfLineLiteral(_anInstruction15)) {
		(_anInstruction15->dependent = locateLiteral(4));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction16 = genoperandoperand(AddCqR, 8, Arg1Reg);
	if (usesOutOfLineLiteral(_anInstruction16)) {
		(_anInstruction16->dependent = locateLiteral(8));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, Arg1Reg, _byteSizeReg);
	/* end CmpR:R: */
	/* begin JumpAbove: */
	genConditionalBranchoperand(JumpAbove, ((sqInt) _fillLoop ));
	/* end JumpAbove: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpUnhashed, jmpTarget(_jumpVariableOrEphemeron, jmpTarget(_jumpTooBig, jmpTarget(_jumpNoSpace, genoperandoperand(Label, (labelCounter += 1), bytecodePC)))));
	return 0;
}
/*	Implement primitiveNewWithArg for convenient cases: 
	- the receiver has a hash 
	- the receiver is variable and not compiled method 
	- single word header/num slots < numSlotsMask 
	- the result fits in eden 
	See superclass method for dynamic frequencies of formats. 
	For the moment we implement only arrayFormat, firstByteFormat & 
	firstLongFormat  */
/* CogObjectRepresentationFor32BitSpur>>#genPrimitiveNewWithArg */
static sqInt
genPrimitiveNewWithArg(void)
{
	sqInt _address;
	sqInt _address2;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction10;
	AbstractInstruction *_anInstruction11;
	AbstractInstruction *_anInstruction12;
	AbstractInstruction *_anInstruction13;
	AbstractInstruction *_anInstruction14;
	AbstractInstruction *_anInstruction15;
	AbstractInstruction *_anInstruction16;
	AbstractInstruction *_anInstruction17;
	AbstractInstruction *_anInstruction18;
	AbstractInstruction *_anInstruction19;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction20;
	AbstractInstruction *_anInstruction21;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction5;
	AbstractInstruction *_anInstruction6;
	AbstractInstruction *_anInstruction7;
	AbstractInstruction *_anInstruction8;
	AbstractInstruction *_anInstruction9;
	sqInt _byteSizeReg;
	AbstractInstruction *_fillLoop;
	sqInt _fillReg;
	sqInt _halfHeaderReg;
	sqInt _instSpecReg;
	AbstractInstruction *_jumpArrayFormat;
	AbstractInstruction *_jumpArrayTooBig;
	AbstractInstruction *_jumpByteFormat;
	AbstractInstruction *_jumpBytePrepDone;
	AbstractInstruction *_jumpByteTooBig;
	AbstractInstruction *_jumpFailCuzFixed;
	AbstractInstruction *_jumpHasSlots;
	AbstractInstruction *_jumpLongPrepDone;
	AbstractInstruction *_jumpLongTooBig;
	AbstractInstruction *_jumpNElementsNonInt;
	AbstractInstruction *_jumpNoSpace;
	AbstractInstruction *_jumpUnhashed;
	sqInt _literal;
	sqInt _maxSlots;
	sqInt _quickConstant;
	sqInt _quickConstant2;
	sqInt _quickConstant3;
	sqInt _quickConstant4;
	sqInt _quickConstant5;
	sqInt _quickConstant6;
	sqInt _quickConstant7;
	sqInt _quickConstant8;
	AbstractInstruction *_skip;
	sqInt _wordConstant;

	if (methodOrBlockNumArgs != 1) {
		return UnimplementedPrimitive;
	}
	/* begin genLoadArgAtDepth:into: */
	assert(0 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	_halfHeaderReg = (_fillReg = SendNumArgsReg);
	_instSpecReg = (_byteSizeReg = ClassReg);
	_maxSlots = (numSlotsMask()) - 1;
	/* begin MoveAw:R: */
	_address = freeStartAddress();
	/* begin gen:literal:operand: */
	checkLiteralforInstruction(_address, genoperandoperand(MoveAwR, _address, Arg1Reg));
	/* end gen:literal:operand: */
	/* end MoveAw:R: */
	genGetHashFieldNonImmOfinto(ReceiverResultReg, _halfHeaderReg);
	/* begin JumpZero: */
	_jumpUnhashed = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	_jumpNElementsNonInt = genJumpNotSmallInteger(Arg0Reg);
	genLoadSlotsourceRegdestReg(InstanceSpecificationIndex, ReceiverResultReg, _instSpecReg);
	/* begin LogicalShiftRightCq:R: */
	_quickConstant = (fixedFieldsFieldWidth()) + 1;
	genoperandoperand(LogicalShiftRightCqR, _quickConstant, _instSpecReg);
	/* end LogicalShiftRightCq:R: */
	/* begin AndCq:R: */
	_quickConstant4 = formatMask();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(AndCqR, _quickConstant4, _instSpecReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(_quickConstant4));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AndCq:R: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, _instSpecReg, TempReg);
	/* end MoveR:R: */
	/* begin LogicalShiftLeftCq:R: */
	_quickConstant2 = formatShift();
	genoperandoperand(LogicalShiftLeftCqR, _quickConstant2, TempReg);
	/* end LogicalShiftLeftCq:R: */
	/* begin AddR:R: */
	genoperandoperand(AddRR, TempReg, _halfHeaderReg);
	/* end AddR:R: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg0Reg, TempReg);
	/* end MoveR:R: */
	genConvertSmallIntegerToIntegerInReg(TempReg);
	/* begin CmpCq:R: */
	_quickConstant5 = arrayFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(CmpCqR, _quickConstant5, _instSpecReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_quickConstant5));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpZero: */
	_jumpArrayFormat = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	/* begin CmpCq:R: */
	_quickConstant6 = firstByteFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction3 = genoperandoperand(CmpCqR, _quickConstant6, _instSpecReg);
	if (usesOutOfLineLiteral(_anInstruction3)) {
		(_anInstruction3->dependent = locateLiteral(_quickConstant6));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpZero: */
	_jumpByteFormat = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	/* begin CmpCq:R: */
	_quickConstant7 = firstLongFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction4 = genoperandoperand(CmpCqR, _quickConstant7, _instSpecReg);
	if (usesOutOfLineLiteral(_anInstruction4)) {
		(_anInstruction4->dependent = locateLiteral(_quickConstant7));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpNonZero: */
	_jumpFailCuzFixed = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
	/* begin checkQuickConstant:forInstruction: */
	_literal = ((((usqInt) _maxSlots ) << 1) | 1);
	_anInstruction5 = genoperandoperand(CmpCqR, ((((usqInt) _maxSlots ) << 1) | 1), Arg0Reg);
	if (usesOutOfLineLiteral(_anInstruction5)) {
		(_anInstruction5->dependent = locateLiteral(_literal));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpAbove: */
	_jumpLongTooBig = genConditionalBranchoperand(JumpAbove, ((sqInt) 0 ));
	/* end JumpAbove: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, TempReg, _instSpecReg);
	/* end MoveR:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction6 = genoperand(PushCq, 0);
	if (usesOutOfLineLiteral(_anInstruction6)) {
		(_anInstruction6->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin Jump: */
	_jumpLongPrepDone = genoperand(Jump, ((sqInt) 0 ));
	/* end Jump: */
	jmpTarget(_jumpByteFormat, checkQuickConstantforInstruction(((((usqInt) (_maxSlots * BytesPerWord) ) << 1) | 1), genoperandoperand(CmpCqR, ((((usqInt) (_maxSlots * BytesPerWord) ) << 1) | 1), Arg0Reg)));
	/* begin JumpAbove: */
	_jumpByteTooBig = genConditionalBranchoperand(JumpAbove, ((sqInt) 0 ));
	/* end JumpAbove: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, TempReg, _instSpecReg);
	/* end MoveR:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction7 = genoperandoperand(MoveCqR, BytesPerWord, TempReg);
	if (usesOutOfLineLiteral(_anInstruction7)) {
		(_anInstruction7->dependent = locateLiteral(BytesPerWord));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin SubR:R: */
	genoperandoperand(SubRR, _instSpecReg, TempReg);
	/* end SubR:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction8 = genoperandoperand(AndCqR, BytesPerWord - 1, TempReg);
	if (usesOutOfLineLiteral(_anInstruction8)) {
		(_anInstruction8->dependent = locateLiteral(BytesPerWord - 1));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin LogicalShiftLeftCq:R: */
	_quickConstant3 = formatShift();
	genoperandoperand(LogicalShiftLeftCqR, _quickConstant3, TempReg);
	/* end LogicalShiftLeftCq:R: */
	/* begin AddR:R: */
	genoperandoperand(AddRR, TempReg, _halfHeaderReg);
	/* end AddR:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction9 = genoperandoperand(AddCqR, BytesPerWord - 1, _instSpecReg);
	if (usesOutOfLineLiteral(_anInstruction9)) {
		(_anInstruction9->dependent = locateLiteral(BytesPerWord - 1));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin LogicalShiftRightCq:R: */
	genoperandoperand(LogicalShiftRightCqR, shiftForWord(), _instSpecReg);
	/* end LogicalShiftRightCq:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction10 = genoperand(PushCq, 0);
	if (usesOutOfLineLiteral(_anInstruction10)) {
		(_anInstruction10->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin Jump: */
	_jumpBytePrepDone = genoperand(Jump, ((sqInt) 0 ));
	/* end Jump: */
	jmpTarget(_jumpArrayFormat, checkQuickConstantforInstruction(((((usqInt) _maxSlots ) << 1) | 1), genoperandoperand(CmpCqR, ((((usqInt) _maxSlots ) << 1) | 1), Arg0Reg)));
	/* begin JumpAbove: */
	_jumpArrayTooBig = genConditionalBranchoperand(JumpAbove, ((sqInt) 0 ));
	/* end JumpAbove: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, TempReg, _instSpecReg);
	/* end MoveR:R: */
	/* begin PushCw: */
	_wordConstant = nilObject();
	/* begin gen:literal: */
	checkLiteralforInstruction(_wordConstant, genoperand(PushCw, _wordConstant));
	/* end gen:literal: */
	/* end PushCw: */
	jmpTarget(_jumpBytePrepDone, jmpTarget(_jumpLongPrepDone, genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction11 = genoperandoperandoperand(MoveRMwr, _halfHeaderReg, 0, Arg1Reg);
	if (usesOutOfLineLiteral(_anInstruction11)) {
		(_anInstruction11->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, _instSpecReg, _halfHeaderReg);
	/* end MoveR:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction12 = genoperandoperand(CmpCqR, 0, _byteSizeReg);
	if (usesOutOfLineLiteral(_anInstruction12)) {
		(_anInstruction12->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpNonZero: */
	_jumpHasSlots = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction13 = genoperandoperand(MoveCqR, BaseHeaderSize * 2, _byteSizeReg);
	if (usesOutOfLineLiteral(_anInstruction13)) {
		(_anInstruction13->dependent = locateLiteral(BaseHeaderSize * 2));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin Jump: */
	_skip = genoperand(Jump, ((sqInt) 0 ));
	/* end Jump: */
	jmpTarget(_jumpHasSlots, genoperandoperand(MoveRR, _byteSizeReg, TempReg));
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction14 = genoperandoperand(AndCqR, 1, TempReg);
	if (usesOutOfLineLiteral(_anInstruction14)) {
		(_anInstruction14->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin AddR:R: */
	genoperandoperand(AddRR, TempReg, _byteSizeReg);
	/* end AddR:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction15 = genoperandoperand(AddCqR, BaseHeaderSize / BytesPerWord, _byteSizeReg);
	if (usesOutOfLineLiteral(_anInstruction15)) {
		(_anInstruction15->dependent = locateLiteral(BaseHeaderSize / BytesPerWord));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin LogicalShiftLeftCq:R: */
	genoperandoperand(LogicalShiftLeftCqR, shiftForWord(), _byteSizeReg);
	/* end LogicalShiftLeftCq:R: */
	jmpTarget(_skip, gLogicalShiftLeftCqR(numSlotsHalfShift(), _halfHeaderReg));
	/* begin AddR:R: */
	genoperandoperand(AddRR, Arg1Reg, _byteSizeReg);
	/* end AddR:R: */
	/* begin CmpCq:R: */
	_quickConstant8 = getScavengeThreshold();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction16 = genoperandoperand(CmpCqR, _quickConstant8, _byteSizeReg);
	if (usesOutOfLineLiteral(_anInstruction16)) {
		(_anInstruction16->dependent = locateLiteral(_quickConstant8));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_jumpNoSpace = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg1Reg, ReceiverResultReg);
	/* end MoveR:R: */
	/* begin MoveR:Aw: */
	_address2 = freeStartAddress();
	/* begin gen:operand:literal: */
	checkLiteralforInstruction(_address2, genoperandoperand(MoveRAw, _byteSizeReg, _address2));
	/* end gen:operand:literal: */
	/* end MoveR:Aw: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction17 = genoperandoperandoperand(MoveRMwr, _halfHeaderReg, 4, ReceiverResultReg);
	if (usesOutOfLineLiteral(_anInstruction17)) {
		(_anInstruction17->dependent = locateLiteral(4));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin PopR: */
	genoperand(PopR, _fillReg);
	/* end PopR: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction18 = genoperandoperandoperand(LoadEffectiveAddressMwrR, BaseHeaderSize, ReceiverResultReg, Arg1Reg);
	if (usesOutOfLineLiteral(_anInstruction18)) {
		(_anInstruction18->dependent = locateLiteral(BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction19 = genoperandoperandoperand(MoveRMwr, _fillReg, 0, Arg1Reg);
	if (usesOutOfLineLiteral(_anInstruction19)) {
		(_anInstruction19->dependent = locateLiteral(0));
	}
	_fillLoop = _anInstruction19;
	/* end checkQuickConstant:forInstruction: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction20 = genoperandoperandoperand(MoveRMwr, _fillReg, 4, Arg1Reg);
	if (usesOutOfLineLiteral(_anInstruction20)) {
		(_anInstruction20->dependent = locateLiteral(4));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction21 = genoperandoperand(AddCqR, 8, Arg1Reg);
	if (usesOutOfLineLiteral(_anInstruction21)) {
		(_anInstruction21->dependent = locateLiteral(8));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, Arg1Reg, _byteSizeReg);
	/* end CmpR:R: */
	/* begin JumpAbove: */
	genConditionalBranchoperand(JumpAbove, ((sqInt) _fillLoop ));
	/* end JumpAbove: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpNoSpace, genoperand(PopR, TempReg));
	jmpTarget(_jumpUnhashed, jmpTarget(_jumpFailCuzFixed, jmpTarget(_jumpArrayTooBig, jmpTarget(_jumpByteTooBig, jmpTarget(_jumpLongTooBig, jmpTarget(_jumpNElementsNonInt, genoperandoperand(Label, (labelCounter += 1), bytecodePC)))))));
	return 0;
}
/*	Implement primitiveShallowCopy/primitiveClone for convenient cases: 
	- the receiver is not a context 
	- the receiver is not a compiled method 
	- the result fits in eden (actually below scavengeThreshold) */
/* CogObjectRepresentationFor32BitSpur>>#genPrimitiveShallowCopy */
static sqInt
genPrimitiveShallowCopy(void)
{
	sqInt _address;
	sqInt _address2;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction10;
	AbstractInstruction *_anInstruction11;
	AbstractInstruction *_anInstruction12;
	AbstractInstruction *_anInstruction13;
	AbstractInstruction *_anInstruction14;
	AbstractInstruction *_anInstruction15;
	AbstractInstruction *_anInstruction16;
	AbstractInstruction *_anInstruction17;
	AbstractInstruction *_anInstruction18;
	AbstractInstruction *_anInstruction19;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction20;
	AbstractInstruction *_anInstruction21;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction5;
	AbstractInstruction *_anInstruction6;
	AbstractInstruction *_anInstruction7;
	AbstractInstruction *_anInstruction8;
	AbstractInstruction *_anInstruction9;
	AbstractInstruction *_continuance;
	AbstractInstruction *_copyLoop;
	sqInt _formatReg;
	AbstractInstruction * _jumpEmpty;
	AbstractInstruction *_jumpImmediate;
	AbstractInstruction *_jumpIsMethod;
	AbstractInstruction *_jumpNoSpace;
	AbstractInstruction *_jumpTooBig;
	AbstractInstruction *_jumpVariable;
	sqInt _ptrReg;
	sqInt _quickConstant;
	sqInt _quickConstant2;
	sqInt _quickConstant3;
	sqInt _quickConstant4;
	sqInt _quickConstant5;
	sqInt _quickConstant6;
	sqInt _resultReg;
	sqInt _slotsReg;

	_jumpImmediate = genJumpImmediate(ReceiverResultReg);
	_resultReg = Arg0Reg;
	_slotsReg = Arg1Reg;
	/* begin MoveAw:R: */
	_address2 = freeStartAddress();
	/* begin gen:literal:operand: */
	checkLiteralforInstruction(_address2, genoperandoperand(MoveAwR, _address2, _resultReg));
	/* end gen:literal:operand: */
	/* end MoveAw:R: */
	genGetFormatOfintoleastSignificantHalfOfBaseHeaderIntoScratch(ReceiverResultReg, (_ptrReg = (_formatReg = SendNumArgsReg)), NoReg);
	/* begin CmpCq:R: */
	_quickConstant4 = firstCompiledMethodFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction18 = genoperandoperand(CmpCqR, _quickConstant4, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction18)) {
		(_anInstruction18->dependent = locateLiteral(_quickConstant4));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_jumpIsMethod = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	/* begin CmpCq:R: */
	_quickConstant5 = indexablePointersFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction19 = genoperandoperand(CmpCqR, _quickConstant5, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction19)) {
		(_anInstruction19->dependent = locateLiteral(_quickConstant5));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpZero: */
	_jumpVariable = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	/* begin Label */
	_continuance = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
	/* end Label */
	genGetRawSlotSizeOfNonImminto(ReceiverResultReg, _slotsReg);
	/* begin CmpCq:R: */
	_quickConstant6 = numSlotsMask();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction20 = genoperandoperand(CmpCqR, _quickConstant6, _slotsReg);
	if (usesOutOfLineLiteral(_anInstruction20)) {
		(_anInstruction20->dependent = locateLiteral(_quickConstant6));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpZero: */
	_jumpTooBig = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction21 = genoperandoperand(CmpCqR, 0, _slotsReg);
	if (usesOutOfLineLiteral(_anInstruction21)) {
		(_anInstruction21->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpZero: */
	_jumpEmpty = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	{
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, _slotsReg, TempReg);
		/* end MoveR:R: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(AndCqR, 1, TempReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(1));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin AddR:R: */
		genoperandoperand(AddRR, TempReg, _slotsReg);
		/* end AddR:R: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction2 = genoperandoperand(AddCqR, BaseHeaderSize / BytesPerWord, _slotsReg);
		if (usesOutOfLineLiteral(_anInstruction2)) {
			(_anInstruction2->dependent = locateLiteral(BaseHeaderSize / BytesPerWord));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin LogicalShiftLeftCq:R: */
		genoperandoperand(LogicalShiftLeftCqR, shiftForWord(), _slotsReg);
		/* end LogicalShiftLeftCq:R: */
		/* begin AddR:R: */
		genoperandoperand(AddRR, _resultReg, _slotsReg);
		/* end AddR:R: */
		/* begin CmpCq:R: */
		_quickConstant = getScavengeThreshold();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction3 = genoperandoperand(CmpCqR, _quickConstant, _slotsReg);
		if (usesOutOfLineLiteral(_anInstruction3)) {
			(_anInstruction3->dependent = locateLiteral(_quickConstant));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end CmpCq:R: */
	}
	/* begin JumpAboveOrEqual: */
	_jumpNoSpace = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	{
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, _resultReg, _ptrReg);
		/* end MoveR:R: */
		/* begin MoveR:Aw: */
		_address = freeStartAddress();
		/* begin gen:operand:literal: */
		checkLiteralforInstruction(_address, genoperandoperand(MoveRAw, _slotsReg, _address));
		/* end gen:operand:literal: */
		/* end MoveR:Aw: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction4 = genoperandoperand(SubCqR, BytesPerWord * 2, _slotsReg);
		if (usesOutOfLineLiteral(_anInstruction4)) {
			(_anInstruction4->dependent = locateLiteral(BytesPerWord * 2));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction5 = genoperandoperandoperand(MoveMwrR, 0, ReceiverResultReg, TempReg);
		if (usesOutOfLineLiteral(_anInstruction5)) {
			(_anInstruction5->dependent = locateLiteral(0));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin AndCq:R: */
		_quickConstant2 = ((sqInt) (((usqInt) (formatMask()) ) << (formatShift())) ) + (classIndexMask());
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction6 = genoperandoperand(AndCqR, _quickConstant2, TempReg);
		if (usesOutOfLineLiteral(_anInstruction6)) {
			(_anInstruction6->dependent = locateLiteral(_quickConstant2));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end AndCq:R: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction7 = genoperandoperandoperand(MoveRMwr, TempReg, 0, _resultReg);
		if (usesOutOfLineLiteral(_anInstruction7)) {
			(_anInstruction7->dependent = locateLiteral(0));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction8 = genoperandoperandoperand(MoveMwrR, BytesPerWord, ReceiverResultReg, TempReg);
		if (usesOutOfLineLiteral(_anInstruction8)) {
			(_anInstruction8->dependent = locateLiteral(BytesPerWord));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin AndCq:R: */
		_quickConstant3 = ((sqInt) (((usqInt) (numSlotsMask()) ) << (numSlotsHalfShift())) );
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction9 = genoperandoperand(AndCqR, _quickConstant3, TempReg);
		if (usesOutOfLineLiteral(_anInstruction9)) {
			(_anInstruction9->dependent = locateLiteral(_quickConstant3));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end AndCq:R: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction10 = genoperandoperandoperand(MoveRMwr, TempReg, BytesPerWord, _resultReg);
		if (usesOutOfLineLiteral(_anInstruction10)) {
			(_anInstruction10->dependent = locateLiteral(BytesPerWord));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* begin Label */
	_copyLoop = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
	/* end Label */
	{
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction11 = genoperandoperand(AddCqR, BytesPerWord * 2, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction11)) {
			(_anInstruction11->dependent = locateLiteral(BytesPerWord * 2));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction12 = genoperandoperand(AddCqR, BytesPerWord * 2, _ptrReg);
		if (usesOutOfLineLiteral(_anInstruction12)) {
			(_anInstruction12->dependent = locateLiteral(BytesPerWord * 2));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction13 = genoperandoperandoperand(MoveMwrR, 0, ReceiverResultReg, TempReg);
		if (usesOutOfLineLiteral(_anInstruction13)) {
			(_anInstruction13->dependent = locateLiteral(0));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction14 = genoperandoperandoperand(MoveRMwr, TempReg, 0, _ptrReg);
		if (usesOutOfLineLiteral(_anInstruction14)) {
			(_anInstruction14->dependent = locateLiteral(0));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction15 = genoperandoperandoperand(MoveMwrR, BytesPerWord, ReceiverResultReg, TempReg);
		if (usesOutOfLineLiteral(_anInstruction15)) {
			(_anInstruction15->dependent = locateLiteral(BytesPerWord));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction16 = genoperandoperandoperand(MoveRMwr, TempReg, BytesPerWord, _ptrReg);
		if (usesOutOfLineLiteral(_anInstruction16)) {
			(_anInstruction16->dependent = locateLiteral(BytesPerWord));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin CmpR:R: */
		genoperandoperand(CmpRR, _ptrReg, _slotsReg);
		/* end CmpR:R: */
		/* begin JumpAbove: */
		genConditionalBranchoperand(JumpAbove, ((sqInt) _copyLoop ));
		/* end JumpAbove: */
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, _resultReg, ReceiverResultReg);
		/* end MoveR:R: */
		if (methodOrBlockNumArgs <= 2) {
			/* begin RetN: */
			genoperand(RetN, 0);
			/* end RetN: */
		} else {
			{
				/* begin RetN: */
				genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
				/* end RetN: */
			}
		}
	}
	jmpTarget(_jumpVariable, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	genGetClassIndexOfNonImminto(ReceiverResultReg, ClassReg);
	{
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction17 = genoperandoperand(CmpCqR, ClassMethodContextCompactIndex, ClassReg);
		if (usesOutOfLineLiteral(_anInstruction17)) {
			(_anInstruction17->dependent = locateLiteral(ClassMethodContextCompactIndex));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin JumpNonZero: */
		genConditionalBranchoperand(JumpNonZero, ((sqInt) _continuance ));
		/* end JumpNonZero: */
	}
	jmpTarget(_jumpImmediate, jmpTarget(_jumpNoSpace, jmpTarget(_jumpIsMethod, jmpTarget(_jumpTooBig, jmpTarget(_jumpEmpty, genoperandoperand(Label, (labelCounter += 1), bytecodePC))))));
	return 0;
}
/*	c.f. StackInterpreter>>stSizeOf: SpurMemoryManager>>lengthOf:format: 
	fixedFieldsOf:format:length:  */
/* CogObjectRepresentationFor32BitSpur>>#genPrimitiveStringAt */
static sqInt
genPrimitiveStringAt(void)
{
	AbstractInstruction *_anInstruction10;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction5;
	AbstractInstruction *_anInstruction6;
	AbstractInstruction *_anInstruction7;
	AbstractInstruction *_anInstruction8;
	AbstractInstruction *_anInstruction9;
	AbstractInstruction *_done;
	sqInt _formatReg;
	AbstractInstruction *_jumpBadIndex;
	AbstractInstruction *_jumpBytesOutOfBounds;
	AbstractInstruction *_jumpIsBytes;
	AbstractInstruction *_jumpIsShorts;
	AbstractInstruction *_jumpNotIndexable;
	AbstractInstruction *_jumpShortsOutOfBounds;
	AbstractInstruction *_jumpWordsDone;
	AbstractInstruction *_jumpWordsOutOfBounds;
	AbstractInstruction *_jumpWordTooBig;
	sqInt _quickConstant;
	sqInt _quickConstant2;
	sqInt _quickConstant3;
	sqInt _quickConstant4;

	/* begin genLoadArgAtDepth:into: */
	assert(0 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg0Reg, Arg1Reg);
	/* end MoveR:R: */
	/* begin genJumpNotSmallInteger:scratchReg: */
	_jumpBadIndex = genJumpNotSmallInteger(Arg0Reg);
	/* end genJumpNotSmallInteger:scratchReg: */
	genConvertSmallIntegerToIntegerInReg(Arg1Reg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(SubCqR, 1, Arg1Reg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	genGetFormatOfintoleastSignificantHalfOfBaseHeaderIntoScratch(ReceiverResultReg, (_formatReg = SendNumArgsReg), NoReg);
	genGetNumSlotsOfinto(ReceiverResultReg, ClassReg);
	/* begin CmpCq:R: */
	_quickConstant = firstByteFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction3 = genoperandoperand(CmpCqR, _quickConstant, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction3)) {
		(_anInstruction3->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpGreaterOrEqual: */
	_jumpIsBytes = genConditionalBranchoperand(JumpGreaterOrEqual, ((sqInt) 0 ));
	/* end JumpGreaterOrEqual: */
	/* begin CmpCq:R: */
	_quickConstant2 = firstShortFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction4 = genoperandoperand(CmpCqR, _quickConstant2, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction4)) {
		(_anInstruction4->dependent = locateLiteral(_quickConstant2));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpGreaterOrEqual: */
	_jumpIsShorts = genConditionalBranchoperand(JumpGreaterOrEqual, ((sqInt) 0 ));
	/* end JumpGreaterOrEqual: */
	/* begin CmpCq:R: */
	_quickConstant3 = firstLongFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction5 = genoperandoperand(CmpCqR, _quickConstant3, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction5)) {
		(_anInstruction5->dependent = locateLiteral(_quickConstant3));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpLess: */
	_jumpNotIndexable = genConditionalBranchoperand(JumpLess, ((sqInt) 0 ));
	/* end JumpLess: */
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, Arg1Reg, ClassReg);
	/* end CmpR:R: */
	/* begin JumpBelowOrEqual: */
	_jumpWordsOutOfBounds = genConditionalBranchoperand(JumpBelowOrEqual, ((sqInt) 0 ));
	/* end JumpBelowOrEqual: */
	/* begin AddCq:R: */
	_quickConstant4 = ((usqInt) BaseHeaderSize ) >> (shiftForWord());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction6 = genoperandoperand(AddCqR, _quickConstant4, Arg1Reg);
	if (usesOutOfLineLiteral(_anInstruction6)) {
		(_anInstruction6->dependent = locateLiteral(_quickConstant4));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AddCq:R: */
	/* begin MoveXwr:R:R: */
	genoperandoperandoperand(MoveXwrRR, Arg1Reg, ReceiverResultReg, TempReg);
	/* end MoveXwr:R:R: */
	_jumpWordTooBig = jumpNotCharacterUnsignedValueInRegister(TempReg);
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, TempReg, ReceiverResultReg);
	/* end MoveR:R: */
	/* begin Jump: */
	_jumpWordsDone = genoperand(Jump, ((sqInt) 0 ));
	/* end Jump: */
	jmpTarget(_jumpIsBytes, gLogicalShiftLeftCqR(shiftForWord(), ClassReg));
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction7 = genoperandoperand(AndCqR, BytesPerWord - 1, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction7)) {
		(_anInstruction7->dependent = locateLiteral(BytesPerWord - 1));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin SubR:R: */
	genoperandoperand(SubRR, _formatReg, ClassReg);
	/* end SubR:R: */
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, Arg1Reg, ClassReg);
	/* end CmpR:R: */
	/* begin JumpBelowOrEqual: */
	_jumpBytesOutOfBounds = genConditionalBranchoperand(JumpBelowOrEqual, ((sqInt) 0 ));
	/* end JumpBelowOrEqual: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction8 = genoperandoperand(AddCqR, BaseHeaderSize, Arg1Reg);
	if (usesOutOfLineLiteral(_anInstruction8)) {
		(_anInstruction8->dependent = locateLiteral(BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin MoveXbr:R:R: */
	genoperandoperandoperand(MoveXbrRR, Arg1Reg, ReceiverResultReg, ReceiverResultReg);
	/* end MoveXbr:R:R: */
	jmpTarget(_jumpWordsDone, (_done = genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
	genConvertIntegerToCharacterInReg(ReceiverResultReg);
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpIsShorts, gLogicalShiftLeftCqR((shiftForWord()) - 1, ClassReg));
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction9 = genoperandoperand(AndCqR, (BytesPerWord / 1) - 1, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction9)) {
		(_anInstruction9->dependent = locateLiteral((BytesPerWord / 1) - 1));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin SubR:R: */
	genoperandoperand(SubRR, _formatReg, ClassReg);
	/* end SubR:R: */
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, Arg1Reg, ClassReg);
	/* end CmpR:R: */
	/* begin JumpBelowOrEqual: */
	_jumpShortsOutOfBounds = genConditionalBranchoperand(JumpBelowOrEqual, ((sqInt) 0 ));
	/* end JumpBelowOrEqual: */
	/* begin AddR:R: */
	genoperandoperand(AddRR, Arg1Reg, ReceiverResultReg);
	/* end AddR:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction10 = genoperandoperandoperand(MoveM16rR, BaseHeaderSize, ReceiverResultReg, ReceiverResultReg);
	if (usesOutOfLineLiteral(_anInstruction10)) {
		(_anInstruction10->dependent = locateLiteral(BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin Jump: */
	genoperand(Jump, ((sqInt) _done ));
	/* end Jump: */
	jmpTarget(_jumpWordTooBig, jmpTarget(_jumpBytesOutOfBounds, jmpTarget(_jumpShortsOutOfBounds, jmpTarget(_jumpWordsOutOfBounds, jmpTarget(_jumpNotIndexable, jmpTarget(_jumpBadIndex, genoperandoperand(Label, (labelCounter += 1), bytecodePC)))))));
	return CompletePrimitive;
}
/*	c.f. StackInterpreter>>stSizeOf: SpurMemoryManager>>lengthOf:format: 
	fixedFieldsOf:format:length:  */
/* CogObjectRepresentationFor32BitSpur>>#genPrimitiveStringAtPut */
static sqInt
genPrimitiveStringAtPut(void)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction10;
	AbstractInstruction *_anInstruction11;
	AbstractInstruction *_anInstruction12;
	AbstractInstruction *_anInstruction13;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction5;
	AbstractInstruction *_anInstruction6;
	AbstractInstruction *_anInstruction7;
	AbstractInstruction *_anInstruction8;
	AbstractInstruction *_anInstruction9;
	sqInt _formatReg;
	AbstractInstruction *_jumpBadArg;
	AbstractInstruction *_jumpBadIndex;
	AbstractInstruction *_jumpBytesOutOfBounds;
	AbstractInstruction *_jumpBytesOutOfRange;
	AbstractInstruction * _jumpImmutable;
	AbstractInstruction *_jumpIsBytes;
	AbstractInstruction * _jumpIsCompiledMethod;
	AbstractInstruction *_jumpIsShorts;
	AbstractInstruction * _jumpNotString;
	AbstractInstruction *_jumpShortsOutOfBounds;
	AbstractInstruction *_jumpShortsOutOfRange;
	AbstractInstruction *_jumpWordsOutOfBounds;
	AbstractInstruction *_jumpWordsOutOfRange;
	sqInt _quickConstant;
	sqInt _quickConstant2;
	sqInt _quickConstant3;
	sqInt _quickConstant4;
	sqInt _quickConstant5;
	sqInt _quickConstant6;

	/* begin genLoadArgAtDepth:into: */
	assert(1 < (numRegArgs()));
	_jumpImmutable = ((AbstractInstruction *) 0 );
	/* end genLoadArgAtDepth:into: */
	/* begin genLoadArgAtDepth:into: */
	assert(0 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	_jumpBadIndex = genJumpNotSmallInteger(Arg0Reg);
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg1Reg, TempReg);
	/* end MoveR:R: */
	_jumpBadArg = genJumpNotCharacterInScratchReg(TempReg);
	genConvertSmallIntegerToIntegerInReg(Arg0Reg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(SubCqR, 1, Arg0Reg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	
#  if IMMUTABILITY
	{
		genGetFormatOfintoleastSignificantHalfOfBaseHeaderIntoScratch(ReceiverResultReg, (_formatReg = SendNumArgsReg), TempReg);
		/* begin genJumpBaseHeaderImmutable: */
		/* begin TstCq:R: */
		_quickConstant6 = immutableBitMask();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction13 = genoperandoperand(TstCqR, _quickConstant6, TempReg);
		if (usesOutOfLineLiteral(_anInstruction13)) {
			(_anInstruction13->dependent = locateLiteral(_quickConstant6));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end TstCq:R: */
		/* begin JumpNonZero: */
		_jumpImmutable = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
		/* end JumpNonZero: */
		/* end genJumpBaseHeaderImmutable: */
	}
#  else /* IMMUTABILITY */
	{
		genGetFormatOfintoleastSignificantHalfOfBaseHeaderIntoScratch(ReceiverResultReg, (_formatReg = SendNumArgsReg), NoReg);
	}
#  endif /* IMMUTABILITY */
	genGetNumSlotsOfinto(ReceiverResultReg, ClassReg);
	/* begin CmpCq:R: */
	_quickConstant = firstLongFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(CmpCqR, _quickConstant, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpBelow: */
	_jumpNotString = genConditionalBranchoperand(JumpBelow, ((sqInt) 0 ));
	/* end JumpBelow: */
	/* begin CmpCq:R: */
	_quickConstant2 = firstCompiledMethodFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction3 = genoperandoperand(CmpCqR, _quickConstant2, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction3)) {
		(_anInstruction3->dependent = locateLiteral(_quickConstant2));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_jumpIsCompiledMethod = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	/* begin CmpCq:R: */
	_quickConstant3 = firstByteFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction4 = genoperandoperand(CmpCqR, _quickConstant3, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction4)) {
		(_anInstruction4->dependent = locateLiteral(_quickConstant3));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_jumpIsBytes = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	/* begin CmpCq:R: */
	_quickConstant4 = firstShortFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction5 = genoperandoperand(CmpCqR, _quickConstant4, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction5)) {
		(_anInstruction5->dependent = locateLiteral(_quickConstant4));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_jumpIsShorts = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction6 = genoperandoperand(CmpCqR, 0, Arg1Reg);
	if (usesOutOfLineLiteral(_anInstruction6)) {
		(_anInstruction6->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpLess: */
	_jumpWordsOutOfRange = genConditionalBranchoperand(JumpLess, ((sqInt) 0 ));
	/* end JumpLess: */
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, Arg0Reg, ClassReg);
	/* end CmpR:R: */
	/* begin JumpBelowOrEqual: */
	_jumpWordsOutOfBounds = genConditionalBranchoperand(JumpBelowOrEqual, ((sqInt) 0 ));
	/* end JumpBelowOrEqual: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg1Reg, TempReg);
	/* end MoveR:R: */
	genConvertCharacterToCodeInReg(TempReg);
	/* begin AddCq:R: */
	_quickConstant5 = ((usqInt) BaseHeaderSize ) >> (shiftForWord());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction7 = genoperandoperand(AddCqR, _quickConstant5, Arg0Reg);
	if (usesOutOfLineLiteral(_anInstruction7)) {
		(_anInstruction7->dependent = locateLiteral(_quickConstant5));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AddCq:R: */
	/* begin MoveR:Xwr:R: */
	genoperandoperandoperand(MoveRXwrR, TempReg, Arg0Reg, ReceiverResultReg);
	/* end MoveR:Xwr:R: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg1Reg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpIsShorts, gCmpCqR(characterObjectOf(0xFFFF), Arg1Reg));
	/* begin JumpAbove: */
	_jumpShortsOutOfRange = genConditionalBranchoperand(JumpAbove, ((sqInt) 0 ));
	/* end JumpAbove: */
	/* begin LogicalShiftLeftCq:R: */
	genoperandoperand(LogicalShiftLeftCqR, (shiftForWord()) - 1, ClassReg);
	/* end LogicalShiftLeftCq:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction8 = genoperandoperand(AndCqR, (BytesPerWord / 2) - 1, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction8)) {
		(_anInstruction8->dependent = locateLiteral((BytesPerWord / 2) - 1));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin SubR:R: */
	genoperandoperand(SubRR, _formatReg, ClassReg);
	/* end SubR:R: */
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, Arg0Reg, ClassReg);
	/* end CmpR:R: */
	/* begin JumpBelowOrEqual: */
	_jumpShortsOutOfBounds = genConditionalBranchoperand(JumpBelowOrEqual, ((sqInt) 0 ));
	/* end JumpBelowOrEqual: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg1Reg, TempReg);
	/* end MoveR:R: */
	genConvertCharacterToCodeInReg(TempReg);
	/* begin AddR:R: */
	genoperandoperand(AddRR, Arg0Reg, ReceiverResultReg);
	/* end AddR:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction9 = genoperandoperandoperand(MoveRM16r, TempReg, BaseHeaderSize, ReceiverResultReg);
	if (usesOutOfLineLiteral(_anInstruction9)) {
		(_anInstruction9->dependent = locateLiteral(BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg1Reg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpIsBytes, gCmpCqR(characterObjectOf(0xFF), Arg1Reg));
	/* begin JumpAbove: */
	_jumpBytesOutOfRange = genConditionalBranchoperand(JumpAbove, ((sqInt) 0 ));
	/* end JumpAbove: */
	/* begin LogicalShiftLeftCq:R: */
	genoperandoperand(LogicalShiftLeftCqR, shiftForWord(), ClassReg);
	/* end LogicalShiftLeftCq:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction10 = genoperandoperand(AndCqR, BytesPerWord - 1, _formatReg);
	if (usesOutOfLineLiteral(_anInstruction10)) {
		(_anInstruction10->dependent = locateLiteral(BytesPerWord - 1));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin SubR:R: */
	genoperandoperand(SubRR, _formatReg, ClassReg);
	/* end SubR:R: */
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, Arg0Reg, ClassReg);
	/* end CmpR:R: */
	/* begin JumpBelowOrEqual: */
	_jumpBytesOutOfBounds = genConditionalBranchoperand(JumpBelowOrEqual, ((sqInt) 0 ));
	/* end JumpBelowOrEqual: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg1Reg, TempReg);
	/* end MoveR:R: */
	genConvertCharacterToCodeInReg(TempReg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction11 = genoperandoperand(AddCqR, BaseHeaderSize, Arg0Reg);
	if (usesOutOfLineLiteral(_anInstruction11)) {
		(_anInstruction11->dependent = locateLiteral(BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin MoveR:Xbr:R: */
	genoperandoperandoperand(MoveRXbrR, TempReg, Arg0Reg, ReceiverResultReg);
	/* end MoveR:Xbr:R: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, Arg1Reg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpNotString, jmpTarget(_jumpBytesOutOfRange, jmpTarget(_jumpShortsOutOfRange, jmpTarget(_jumpWordsOutOfRange, jmpTarget(_jumpIsCompiledMethod, jmpTarget(_jumpBytesOutOfBounds, jmpTarget(_jumpShortsOutOfBounds, jmpTarget(_jumpWordsOutOfBounds, genoperandoperand(Label, (labelCounter += 1), bytecodePC)))))))));
	
#  if IMMUTABILITY
	{
		jmpTarget(_jumpImmutable, ((AbstractInstruction *) ((_jumpNotString->operands)[0]) ));
	}
#  endif /* IMMUTABILITY */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction12 = genoperandoperand(AddCqR, 1, Arg0Reg);
	if (usesOutOfLineLiteral(_anInstruction12)) {
		(_anInstruction12->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	genConvertIntegerToSmallIntegerInReg(Arg0Reg);
	jmpTarget(_jumpBadArg, jmpTarget(_jumpBadIndex, genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
	return CompletePrimitive;
}
/* CogObjectRepresentationFor32BitSpur>>#genRemoveSmallIntegerTagsInScratchReg: */
static sqInt NoDbgRegParms
genRemoveSmallIntegerTagsInScratchReg(sqInt _scratchReg)
{
	AbstractInstruction *_anInstruction;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(SubCqR, 1, _scratchReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	return 0;
}
/*	Get the literal count of a CompiledMethod into headerReg, plus one if 
	requested. If inBytes is true, scale the count by the word size. Deal with 
	the possibility of 
	the method being cogged. */
/* CogObjectRepresentationFor32BitSpur>>#getLiteralCountOf:plusOne:inBytes:into:scratch: */
static sqInt NoDbgRegParms
getLiteralCountOfplusOneinBytesintoscratch(sqInt _methodReg, sqInt _plusOne, sqInt _inBytes, sqInt _litCountReg, sqInt _scratchReg)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	sqInt _quickConstant;
	sqInt _quickConstant2;
	sqInt _quickConstant3;

	genGetMethodHeaderOfintoscratch(_methodReg, _litCountReg, _scratchReg);
	if (_inBytes) {
		{
			/* begin AndCq:R: */
			_quickConstant = ((sqInt) (((usqInt) (alternateHeaderNumLiteralsMask()) ) << 1) );
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction = genoperandoperand(AndCqR, _quickConstant, _litCountReg);
			if (usesOutOfLineLiteral(_anInstruction)) {
				(_anInstruction->dependent = locateLiteral(_quickConstant));
			}
			/* end checkQuickConstant:forInstruction: */
			/* end AndCq:R: */
			/* begin LogicalShiftLeftCq:R: */
			genoperandoperand(LogicalShiftLeftCqR, 1, _litCountReg);
			/* end LogicalShiftLeftCq:R: */
		}
	} else {
		{
			/* begin LogicalShiftRightCq:R: */
			genoperandoperand(LogicalShiftRightCqR, 1, _litCountReg);
			/* end LogicalShiftRightCq:R: */
			/* begin AndCq:R: */
			_quickConstant2 = alternateHeaderNumLiteralsMask();
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction2 = genoperandoperand(AndCqR, _quickConstant2, _litCountReg);
			if (usesOutOfLineLiteral(_anInstruction2)) {
				(_anInstruction2->dependent = locateLiteral(_quickConstant2));
			}
			/* end checkQuickConstant:forInstruction: */
			/* end AndCq:R: */
		}
	}
	if (_plusOne) {
		/* begin AddCq:R: */
		_quickConstant3 = ((_inBytes)
			 ? BytesPerWord
			 : 1);
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction3 = genoperandoperand(AddCqR, _quickConstant3, _litCountReg);
		if (usesOutOfLineLiteral(_anInstruction3)) {
			(_anInstruction3->dependent = locateLiteral(_quickConstant3));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end AddCq:R: */
	}
	return 0;
}
/*	Answer the relevant inline cache tag for an instance. 
	c.f. getInlineCacheClassTagFrom:into: & inlineCacheTagForClass: */
/* CogObjectRepresentationFor32BitSpur>>#inlineCacheTagForInstance: */
static sqInt NoDbgRegParms
inlineCacheTagForInstance(sqInt _oop)
{
	return ((isImmediate(_oop))
		 ? _oop & 1
		 : classIndexOf(_oop));
}
/* CogObjectRepresentationFor32BitSpur>>#jumpNotSmallIntegerUnsignedValueInRegister: */
static AbstractInstruction * NoDbgRegParms
jumpNotSmallIntegerUnsignedValueInRegister(sqInt _reg)
{
	AbstractInstruction *_anInstruction;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(CmpCqR, 0x3FFFFFFF, _reg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(0x3FFFFFFF));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpAbove: */
	return genConditionalBranchoperand(JumpAbove, ((sqInt) 0 ));
	/* end JumpAbove: */
}
/*	Mark and trace a literal in an inline cache preceding address in 
	cogMethodOrNil. Answer if code was modified. */
/* CogObjectRepresentationFor32BitSpur>>#markAndTraceCacheTagLiteral:in:atpc: */
static sqInt NoDbgRegParms
markAndTraceCacheTagLiteralinatpc(sqInt _literal, CogMethod *_cogMethodOrNil, usqInt _address)
{
	AbstractInstruction * self_in_rewriteInlineCacheTagat;
	sqInt _objOop;

	if (!(couldBeObject(_literal))) {
		return 0;
	}
	assert(addressCouldBeObj(_literal));
	if (!(isForwarded(_literal))) {
		markAndTrace(_literal);
		return 0;
	}
	_objOop = followForwarded(_literal);
	/* begin rewriteInlineCacheTag:at: */
	self_in_rewriteInlineCacheTagat = ((AbstractInstruction *) (backEnd()) );
	longAtput(pcRelativeAddressAt(self_in_rewriteInlineCacheTagat, _address - 8), _objOop);
	/* end rewriteInlineCacheTag:at: */
	markAndTraceUpdatedLiteralin(_objOop, _cogMethodOrNil);
	return 1;
}
/* CogObjectRepresentationFor32BitSpur>>#numSmallIntegerBits */
static sqInt
numSmallIntegerBits(void)
{
	return 0x1F;
}
/*	The two valid tag patterns are 0 (Character) and 1 (SmallInteger) */
/* CogObjectRepresentationFor32BitSpur>>#validInlineCacheTag: */
static sqInt NoDbgRegParms
validInlineCacheTag(usqInt _classIndexOrTagPattern)
{
	return (_classIndexOrTagPattern <= 1) || ((classAtIndex(_classIndexOrTagPattern)) != null);
}
/*	Answer if the cacheTag is not unmarked, i.e. answer true for compact class 
	indices and immediates; only answer false for unmarked objects. In Spur 
	linked send cache tags are class indices so effectively they're always 
	marked.  */
/* CogObjectRepresentationForSpur>>#cacheTagIsMarked: */
static sqInt NoDbgRegParms
cacheTagIsMarked(sqInt cacheTag)
{
	return 1;
}
/* CogObjectRepresentationForSpur>>#callStoreCheckTrampoline */
static void
callStoreCheckTrampoline(void)
{
	AbstractInstruction *_abstractInstruction;

	/* begin CallRT: */
	/* begin annotateCall: */
	_abstractInstruction = genoperand(Call, ceStoreCheckTrampoline);
	(_abstractInstruction->annotation = IsRelativeCall);
	/* end annotateCall: */
	/* end CallRT: */
}
/* CogObjectRepresentationForSpur>>#checkValidDerivedObjectReference: */
static sqInt NoDbgRegParms
checkValidDerivedObjectReference(sqInt _bodyAddress)
{
	return (heapMapAtWord(pointerForOop(_bodyAddress - BaseHeaderSize))) != 0;
}
/* CogObjectRepresentationForSpur>>#checkValidOopReference: */
static sqInt NoDbgRegParms
checkValidOopReference(sqInt _anOop)
{
	return (isImmediate(_anOop)) || ((heapMapAtWord(pointerForOop(_anOop))) != 0);
}
/* CogObjectRepresentationForSpur>>#couldBeDerivedObject: */
static sqInt NoDbgRegParms
couldBeDerivedObject(sqInt _bodyAddress)
{
	return oopisGreaterThanOrEqualTo(_bodyAddress - BaseHeaderSize, startOfObjectMemory(getMemoryMap()));
}
/* CogObjectRepresentationForSpur>>#couldBeObject: */
static sqInt NoDbgRegParms
couldBeObject(sqInt _literal)
{
	return (isNonImmediate(_literal)) && (oopisGreaterThanOrEqualTo(_literal, startOfObjectMemory(getMemoryMap())));
}
/*	Create a trampoline to answer the active context that will 
	answer it if a frame is already married, and create it otherwise. 
	Assume numArgs is in SendNumArgsReg and ClassReg is free. */
/* CogObjectRepresentationForSpur>>#genActiveContextTrampolineLarge:inBlock:called: */
static sqInt NoDbgRegParms
genActiveContextTrampolineLargeinBlockcalled(sqInt _isLarge, sqInt _isInBlock, char *_aString)
{
	sqInt _startAddress;

	_startAddress = methodZoneBase();
	zeroOpcodeIndex();
	genGetActiveContextLargeinBlock(_isLarge, _isInBlock);
	outputInstructionsForGeneratedRuntimeAt(_startAddress);
	recordGeneratedRunTimeaddress(_aString, _startAddress);
	recordRunTimeObjectReferences();
	return _startAddress;
}
/* CogObjectRepresentationForSpur>>#genAllocFloatValue:into:scratchReg:scratchReg: */
static AbstractInstruction * NoDbgRegParms
genAllocFloatValueintoscratchRegscratchReg(sqInt _dpreg, sqInt _resultReg, sqInt _scratch1, sqInt scratch2)
{
	sqInt _address;
	sqInt _address2;
	usqIntptr_t _allocSize;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction22;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction5;
	AbstractInstruction *_anInstruction6;
	AbstractInstruction *_jumpFail;
	usqLong _newFloatHeader;
	sqInt _quickConstant;
	sqInt _quickConstant2;

	_allocSize = BaseHeaderSize + (sizeof(double));
	_newFloatHeader = headerForSlotsformatclassIndex((sizeof(double)) / BytesPerWord, firstLongFormat(), ClassFloatCompactIndex);
	/* begin MoveAw:R: */
	_address = freeStartAddress();
	/* begin gen:literal:operand: */
	checkLiteralforInstruction(_address, genoperandoperand(MoveAwR, _address, _resultReg));
	/* end gen:literal:operand: */
	/* end MoveAw:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperandoperand(LoadEffectiveAddressMwrR, _allocSize, _resultReg, _scratch1);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(_allocSize));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin CmpCq:R: */
	_quickConstant = getScavengeThreshold();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(CmpCqR, _quickConstant, _scratch1);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_jumpFail = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	/* begin MoveR:Aw: */
	_address2 = freeStartAddress();
	/* begin gen:operand:literal: */
	checkLiteralforInstruction(_address2, genoperandoperand(MoveRAw, _scratch1, _address2));
	/* end gen:operand:literal: */
	/* end MoveR:Aw: */
	/* begin genStoreHeader:intoNewInstance:using: */
	{
		/* begin MoveCq:R: */
		_quickConstant2 = ((usqInt) _newFloatHeader );
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction5 = genoperandoperand(MoveCqR, _quickConstant2, _scratch1);
		if (usesOutOfLineLiteral(_anInstruction5)) {
			(_anInstruction5->dependent = locateLiteral(_quickConstant2));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveCq:R: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction22 = genoperandoperandoperand(MoveRMwr, _scratch1, 0, _resultReg);
		if (usesOutOfLineLiteral(_anInstruction22)) {
			(_anInstruction22->dependent = locateLiteral(0));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction3 = genoperandoperand(MoveCqR, _newFloatHeader >> 32, _scratch1);
		if (usesOutOfLineLiteral(_anInstruction3)) {
			(_anInstruction3->dependent = locateLiteral(_newFloatHeader >> 32));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction4 = genoperandoperandoperand(MoveRMwr, _scratch1, 4, _resultReg);
		if (usesOutOfLineLiteral(_anInstruction4)) {
			(_anInstruction4->dependent = locateLiteral(4));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* end genStoreHeader:intoNewInstance:using: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction6 = genoperandoperandoperand(MoveRdM64r, _dpreg, BaseHeaderSize, _resultReg);
	if (usesOutOfLineLiteral(_anInstruction6)) {
		(_anInstruction6->dependent = locateLiteral(BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	return _jumpFail;
}
/*	Check the remembered bit of the object in objReg; answer the jump taken if 
	the bit is already set. 
	Only need to fetch the byte containing it, which reduces the size of the 
	mask constant. */
/* CogObjectRepresentationForSpur>>#genCheckRememberedBitOf:scratch: */
static AbstractInstruction * NoDbgRegParms
genCheckRememberedBitOfscratch(sqInt _objReg, sqInt _scratchReg)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	int _mask;
	sqInt _rememberedBitByteOffset;

	_rememberedBitByteOffset = (rememberedBitShift()) / 8;
	_mask = 1U << ((rememberedBitShift()) % 8);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperandoperand(MoveMbrR, _rememberedBitByteOffset, _objReg, _scratchReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(_rememberedBitByteOffset));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(TstCqR, _mask, _scratchReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_mask));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpNonZero: */
	return genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
}
/* CogObjectRepresentationForSpur>>#genConvertCharacterToCodeInReg: */
static sqInt NoDbgRegParms
genConvertCharacterToCodeInReg(sqInt _reg)
{
	sqInt _quickConstant;

	/* begin LogicalShiftRightCq:R: */
	_quickConstant = numTagBits();
	genoperandoperand(LogicalShiftRightCqR, _quickConstant, _reg);
	/* end LogicalShiftRightCq:R: */
	return 0;
}
/* CogObjectRepresentationForSpur>>#genConvertIntegerToCharacterInReg: */
static sqInt NoDbgRegParms
genConvertIntegerToCharacterInReg(sqInt _reg)
{
	AbstractInstruction *_anInstruction;
	sqInt _quickConstant;
	sqInt _quickConstant2;

	{
		/* begin LogicalShiftLeftCq:R: */
		_quickConstant = numTagBits();
		genoperandoperand(LogicalShiftLeftCqR, _quickConstant, _reg);
		/* end LogicalShiftLeftCq:R: */
		/* begin AddCq:R: */
		_quickConstant2 = characterTag();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(AddCqR, _quickConstant2, _reg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_quickConstant2));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end AddCq:R: */
	}
	return 0;
}
/*	Create a full closure with the given values. */
/* CogObjectRepresentationForSpur>>#genCreateFullClosure:numArgs:numCopied:ignoreContext:contextNumArgs:large:inBlock: */
static sqInt NoDbgRegParms
genCreateFullClosurenumArgsnumCopiedignoreContextcontextNumArgslargeinBlock(sqInt _compiledBlock, sqInt _numArgs, sqInt _numCopied, sqInt _ignoreContext, sqInt _contextNumArgs, sqInt _contextIsLarge, sqInt _contextIsBlock)
{
	AbstractInstruction *_abstractInstruction;
	sqInt _address;
	sqInt _address2;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction22;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction32;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction42;
	AbstractInstruction *_anInstruction5;
	AbstractInstruction *_anInstruction6;
	AbstractInstruction *_anInstruction7;
	AbstractInstruction *_anInstruction8;
	AbstractInstruction *_anInstruction9;
	usqInt _byteSize;
	sqInt _constant;
	usqLong _header;
	sqInt _literal;
	sqInt _numSlots;
	sqInt _quickConstant;
	sqInt _quickConstant2;
	AbstractInstruction *_skip;

	if (_ignoreContext) {
		/* begin genMoveConstant:R: */
		_constant = nilObject();
		if (shouldAnnotateObjectReference(_constant)) {
			annotateobjRef(gMoveCwR(_constant, ClassReg), _constant);
		} else {
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction9 = genoperandoperand(MoveCqR, _constant, ClassReg);
			if (usesOutOfLineLiteral(_anInstruction9)) {
				(_anInstruction9->dependent = locateLiteral(_constant));
			}
			/* end checkQuickConstant:forInstruction: */
		}
		/* end genMoveConstant:R: */
	} else {
		genGetActiveContextNumArgslargeinBlock(_contextNumArgs, _contextIsLarge, _contextIsBlock);
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, ReceiverResultReg, ClassReg);
		/* end MoveR:R: */
	}
	_numSlots = FullClosureFirstCopiedValueIndex + _numCopied;
	_byteSize = smallObjectBytesForSlots(_numSlots);
	assert(ClassFullBlockClosureCompactIndex != 0);
	_header = headerForSlotsformatclassIndex(_numSlots, indexablePointersFormat(), ClassFullBlockClosureCompactIndex);
	/* begin MoveAw:R: */
	_address2 = freeStartAddress();
	/* begin gen:literal:operand: */
	checkLiteralforInstruction(_address2, genoperandoperand(MoveAwR, _address2, ReceiverResultReg));
	/* end gen:literal:operand: */
	/* end MoveAw:R: */
	/* begin genStoreHeader:intoNewInstance:using: */
	{
		/* begin MoveCq:R: */
		_quickConstant2 = ((usqInt) _header );
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction8 = genoperandoperand(MoveCqR, _quickConstant2, TempReg);
		if (usesOutOfLineLiteral(_anInstruction8)) {
			(_anInstruction8->dependent = locateLiteral(_quickConstant2));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveCq:R: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction22 = genoperandoperandoperand(MoveRMwr, TempReg, 0, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction22)) {
			(_anInstruction22->dependent = locateLiteral(0));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction32 = genoperandoperand(MoveCqR, _header >> 32, TempReg);
		if (usesOutOfLineLiteral(_anInstruction32)) {
			(_anInstruction32->dependent = locateLiteral(_header >> 32));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction42 = genoperandoperandoperand(MoveRMwr, TempReg, 4, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction42)) {
			(_anInstruction42->dependent = locateLiteral(4));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* end genStoreHeader:intoNewInstance:using: */
	{
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperandoperand(LoadEffectiveAddressMwrR, _byteSize, ReceiverResultReg, TempReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_byteSize));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin MoveR:Aw: */
		_address = freeStartAddress();
		/* begin gen:operand:literal: */
		checkLiteralforInstruction(_address, genoperandoperand(MoveRAw, TempReg, _address));
		/* end gen:operand:literal: */
		/* end MoveR:Aw: */
		/* begin CmpCq:R: */
		_quickConstant = getScavengeThreshold();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction2 = genoperandoperand(CmpCqR, _quickConstant, TempReg);
		if (usesOutOfLineLiteral(_anInstruction2)) {
			(_anInstruction2->dependent = locateLiteral(_quickConstant));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end CmpCq:R: */
	}
	/* begin JumpBelow: */
	_skip = genConditionalBranchoperand(JumpBelow, ((sqInt) 0 ));
	/* end JumpBelow: */
	/* begin CallRT: */
	/* begin annotateCall: */
	_abstractInstruction = genoperand(Call, ceScheduleScavengeTrampoline);
	(_abstractInstruction->annotation = IsRelativeCall);
	/* end annotateCall: */
	/* end CallRT: */
	jmpTarget(_skip, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	{
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction4 = genoperandoperandoperand(MoveRMwr, ClassReg, (FullClosureOuterContextIndex * BytesPerOop) + BaseHeaderSize, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction4)) {
			(_anInstruction4->dependent = locateLiteral((FullClosureOuterContextIndex * BytesPerOop) + BaseHeaderSize));
		}
		/* end checkQuickConstant:forInstruction: */
		if (shouldAnnotateObjectReference(_compiledBlock)) {
			annotateobjRef(gMoveCwR(_compiledBlock, TempReg), _compiledBlock);
		} else {
			/* begin MoveCq:R: */
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction3 = genoperandoperand(MoveCqR, _compiledBlock, TempReg);
			if (usesOutOfLineLiteral(_anInstruction3)) {
				(_anInstruction3->dependent = locateLiteral(_compiledBlock));
			}
			/* end checkQuickConstant:forInstruction: */
			/* end MoveCq:R: */
		}
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction5 = genoperandoperandoperand(MoveRMwr, TempReg, (FullClosureCompiledBlockIndex * BytesPerOop) + BaseHeaderSize, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction5)) {
			(_anInstruction5->dependent = locateLiteral((FullClosureCompiledBlockIndex * BytesPerOop) + BaseHeaderSize));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_literal = ((((usqInt) _numArgs ) << 1) | 1);
		_anInstruction6 = genoperandoperand(MoveCqR, ((((usqInt) _numArgs ) << 1) | 1), TempReg);
		if (usesOutOfLineLiteral(_anInstruction6)) {
			(_anInstruction6->dependent = locateLiteral(_literal));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction7 = genoperandoperandoperand(MoveRMwr, TempReg, (FullClosureNumArgsIndex * BytesPerOop) + BaseHeaderSize, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction7)) {
			(_anInstruction7->dependent = locateLiteral((FullClosureNumArgsIndex * BytesPerOop) + BaseHeaderSize));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	return 0;
}
/*	Make sure that the object in reg is not forwarded. This routine assumes 
	the object will 
	never be forwarded to an immediate, as it is used to unforward literal 
	variables (associations).  
	Use the fact that isForwardedObjectClassIndexPun is a power of two to save 
	an instruction. */
/* CogObjectRepresentationForSpur>>#genEnsureObjInRegNotForwarded:scratchReg: */
static sqInt NoDbgRegParms
genEnsureObjInRegNotForwardedscratchReg(sqInt _reg, sqInt _scratch)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_loop;
	AbstractInstruction *_ok;
	sqInt _quickConstant;

	assert(_reg != _scratch);
	/* begin Label */
	_loop = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
	/* end Label */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperandoperand(MoveMwrR, 0, _reg, _scratch);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin AndCq:R: */
	_quickConstant = (classIndexMask()) - (isForwardedObjectClassIndexPun());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(AndCqR, _quickConstant, _scratch);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AndCq:R: */
	/* begin JumpNonZero: */
	_ok = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
	genLoadSlotsourceRegdestReg(0, _reg, _reg);
	/* begin Jump: */
	genoperand(Jump, ((sqInt) _loop ));
	/* end Jump: */
	jmpTarget(_ok, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	return 0;
}
/* CogObjectRepresentationForSpur>>#genEnsureOopInRegNotForwarded:scratchReg: */
static sqInt NoDbgRegParms
genEnsureOopInRegNotForwardedscratchReg(sqInt _reg, sqInt _scratch)
{
	AbstractInstruction *_instruction;

	/* begin genEnsureOopInRegNotForwarded:scratchReg:jumpBackTo: */
	_instruction = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
	return genEnsureOopInRegNotForwardedscratchRegifForwarderifNotForwarder(_reg, _scratch, _instruction, 0);
	/* end genEnsureOopInRegNotForwarded:scratchReg:jumpBackTo: */
}
/*	Make sure that the oop in reg is not forwarded.  
	Use the fact that isForwardedObjectClassIndexPun is a power of two to save 
	an instruction. */
/* CogObjectRepresentationForSpur>>#genEnsureOopInRegNotForwarded:scratchReg:ifForwarder:ifNotForwarder: */
static sqInt NoDbgRegParms
genEnsureOopInRegNotForwardedscratchRegifForwarderifNotForwarder(sqInt _reg, sqInt _scratch, sqInt _fwdJumpTarget, sqInt _nonFwdJumpTargetOrZero)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction * _finished;
	AbstractInstruction * _imm;
	AbstractInstruction * _ok;
	sqInt _quickConstant;

	assert(_reg != _scratch);
	_imm = genJumpImmediate(_reg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperandoperand(MoveMwrR, 0, _reg, _scratch);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin AndCq:R: */
	_quickConstant = (classIndexMask()) - (isForwardedObjectClassIndexPun());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(AndCqR, _quickConstant, _scratch);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AndCq:R: */
	/* begin JumpNonZero: */
	_ok = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
	genLoadSlotsourceRegdestReg(0, _reg, _reg);
	/* begin Jump: */
	genoperand(Jump, ((sqInt) ((void *) _fwdJumpTarget ) ));
	/* end Jump: */
	if (((usqInt) _nonFwdJumpTargetOrZero ) == 0) {
		/* begin Label */
		_finished = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
		/* end Label */
	} else {
		_finished = _nonFwdJumpTargetOrZero;
	}
	jmpTarget(_imm, jmpTarget(_ok, _finished));
	return 0;
}
/*	Make sure that the oop in reg is not forwarded, updating the slot in 
	objReg with the value. */
/* CogObjectRepresentationForSpur>>#genEnsureOopInRegNotForwarded:scratchReg:updatingSlot:in: */
static sqInt NoDbgRegParms
genEnsureOopInRegNotForwardedscratchRegupdatingSlotin(sqInt _reg, sqInt _scratch, sqInt _index, sqInt _objReg)
{
	AbstractInstruction *_abstractInstruction;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_imm;
	AbstractInstruction *_loop;
	AbstractInstruction *_ok;
	sqInt _quickConstant;

	assert((_reg != _scratch) && (_objReg != _scratch));
	/* begin Label */
	_loop = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
	/* end Label */
	_imm = genJumpImmediate(_reg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperandoperand(MoveMwrR, 0, _reg, _scratch);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin AndCq:R: */
	_quickConstant = (classIndexMask()) - (isForwardedObjectClassIndexPun());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(AndCqR, _quickConstant, _scratch);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AndCq:R: */
	/* begin JumpNonZero: */
	_ok = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
	genLoadSlotsourceRegdestReg(0, _reg, _reg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction3 = genoperandoperandoperand(MoveRMwr, _reg, (_index * BytesPerWord) + BaseHeaderSize, _objReg);
	if (usesOutOfLineLiteral(_anInstruction3)) {
		(_anInstruction3->dependent = locateLiteral((_index * BytesPerWord) + BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	assert((_reg == Arg0Reg) && ((_scratch == TempReg) && (_objReg == ReceiverResultReg)));
	/* begin CallRT: */
	/* begin annotateCall: */
	_abstractInstruction = genoperand(Call, ceStoreCheckContextReceiverTrampoline);
	(_abstractInstruction->annotation = IsRelativeCall);
	/* end annotateCall: */
	/* end CallRT: */
	/* begin Jump: */
	genoperand(Jump, ((sqInt) _loop ));
	/* end Jump: */
	jmpTarget(_ok, jmpTarget(_imm, genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
	return 0;
}
/*	Do the store check. Answer the argument for the benefit of the code 
	generator; ReceiverResultReg may be caller-saved and hence smashed by this 
	call. Answering 
	it allows the code generator to reload ReceiverResultReg cheaply. 
	In Spur the only thing we leave to the run-time is adding the receiver to 
	the remembered set and setting its isRemembered bit. */
/* CogObjectRepresentationForSpur>>#generateObjectRepresentationTrampolines */
static void
generateObjectRepresentationTrampolines(void)
{
	sqInt _instVarIndex;
	AbstractInstruction *_jumpSC;

	
#  if IMMUTABILITY
	{
		for (_instVarIndex = 0; _instVarIndex < NumStoreTrampolines; _instVarIndex += 1) {
			ceStoreTrampolines[_instVarIndex] = genStoreTrampolineCalledinstVarIndex(trampolineNamenumArgslimit("ceStoreTrampoline", _instVarIndex, NumStoreTrampolines - 2), _instVarIndex);
		}
	}
#  endif /* IMMUTABILITY */
	ceNewHashTrampoline = genTrampolineForcallednumArgsargargargargregsToSavepushLinkRegresultRegappendOpcodes(ceNewHashOf, "ceNewHash", 1, ReceiverResultReg, null, null, null, (/* begin emptyRegisterMask */ 0 /* end emptyRegisterMask */), 1, ReceiverResultReg, 0);
	/* begin genStoreCheckTrampoline */
	if (CheckRememberedInTrampoline) {
		zeroOpcodeIndex();
		_jumpSC = genCheckRememberedBitOfscratch(ReceiverResultReg, R0);
		assert(((_jumpSC->opcode)) == JumpNonZero);
		(_jumpSC->opcode = JumpZero);
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
		jmpTarget(_jumpSC, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	}
	ceStoreCheckTrampoline = genTrampolineForcallednumArgsargargargargregsToSavepushLinkRegresultRegappendOpcodes(rememberObjInCorrectRememberedSet, "ceStoreCheckTrampoline", 1, ReceiverResultReg, null, null, null, (CallerSavedRegisterMask | (1U << ReceiverResultReg)) - (1U << ReceiverResultReg), 1, ((CallerSavedRegisterMask & (1U << ReceiverResultReg))
		 ? ReceiverResultReg
		 : (/* begin cResultRegister */ R0 /* end cResultRegister */)), CheckRememberedInTrampoline);
	/* end genStoreCheckTrampoline */
	ceStoreCheckContextReceiverTrampoline = genStoreCheckContextReceiverTrampoline();
	ceScheduleScavengeTrampoline = genTrampolineForcalledregsToSave(ceScheduleScavenge, "ceScheduleScavengeTrampoline", CallerSavedRegisterMask);
	ceSmallActiveContextInMethodTrampoline = genActiveContextTrampolineLargeinBlockcalled(0, 0, "ceSmallMethodContext");
	ceSmallActiveContextInFullBlockTrampoline = genActiveContextTrampolineLargeinBlockcalled(0, InFullBlock, "ceSmallFullBlockContext");
	ceLargeActiveContextInMethodTrampoline = genActiveContextTrampolineLargeinBlockcalled(1, 0, "ceLargeMethodContext");
	ceLargeActiveContextInFullBlockTrampoline = genActiveContextTrampolineLargeinBlockcalled(1, InFullBlock, "ceLargeFullBlockContext");
}
/*	Create a trampoline to answer the active context that will 
	answer it if a frame is already married, and create it otherwise. 
	Assume numArgs is in SendNumArgsReg and ClassReg is free. */
/* CogObjectRepresentationForSpur>>#genGetActiveContextLarge:inBlock: */
static sqInt NoDbgRegParms
genGetActiveContextLargeinBlock(sqInt _isLarge, sqInt _isInBlock)
{
	sqInt _address;
	sqInt _address2;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction10;
	AbstractInstruction *_anInstruction11;
	AbstractInstruction *_anInstruction12;
	AbstractInstruction *_anInstruction13;
	AbstractInstruction *_anInstruction14;
	AbstractInstruction *_anInstruction15;
	AbstractInstruction *_anInstruction16;
	AbstractInstruction *_anInstruction17;
	AbstractInstruction *_anInstruction18;
	AbstractInstruction *_anInstruction19;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction20;
	AbstractInstruction *_anInstruction21;
	AbstractInstruction *_anInstruction23;
	AbstractInstruction *_anInstruction24;
	AbstractInstruction *_anInstruction25;
	AbstractInstruction *_anInstruction26;
	AbstractInstruction *_anInstruction27;
	AbstractInstruction *_anInstruction28;
	AbstractInstruction *_anInstruction29;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction30;
	AbstractInstruction *_anInstruction31;
	AbstractInstruction *_anInstruction32;
	AbstractInstruction *_anInstruction33;
	AbstractInstruction *_anInstruction34;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction42;
	AbstractInstruction *_anInstruction5;
	AbstractInstruction *_anInstruction6;
	AbstractInstruction *_anInstruction7;
	AbstractInstruction *_anInstruction8;
	AbstractInstruction *_anInstruction9;
	sqInt _constant;
	AbstractInstruction *_continuation;
	AbstractInstruction *_exit;
	usqLong _header;
	AbstractInstruction * _inst;
	AbstractInstruction *_jumpNeedScavenge;
	AbstractInstruction *_jumpSingle;
	AbstractInstruction *_loopHead;
	sqInt _offset;
	sqInt _quickConstant;
	sqInt _quickConstant2;
	sqInt _quickConstant3;
	sqInt _quickConstant4;
	sqInt _quickConstant5;
	sqInt _quickConstant6;
	sqInt _slotSize;

	{
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperandoperand(MoveMwrR, FoxMethod, FPReg, ClassReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(FoxMethod));
		}
		/* end checkQuickConstant:forInstruction: */
		gAndCqRR(MFMethodFlagHasContextFlag, ClassReg, TempReg);
	}
	/* begin JumpZero: */
	_jumpSingle = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	{
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction2 = genoperandoperandoperand(MoveMwrR, FoxThisContext, FPReg, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction2)) {
			(_anInstruction2->dependent = locateLiteral(FoxThisContext));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	}
	jmpTarget(_jumpSingle, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	{
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction3 = genoperandoperand(OrCqR, MFMethodFlagHasContextFlag, ClassReg);
		if (usesOutOfLineLiteral(_anInstruction3)) {
			(_anInstruction3->dependent = locateLiteral(MFMethodFlagHasContextFlag));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction4 = genoperandoperandoperand(MoveRMwr, ClassReg, FoxMethod, FPReg);
		if (usesOutOfLineLiteral(_anInstruction4)) {
			(_anInstruction4->dependent = locateLiteral(FoxMethod));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	switch (_isInBlock) {
		case InFullBlock:
		{
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction5 = genoperandoperand(SubCqR, 3, ClassReg);
			if (usesOutOfLineLiteral(_anInstruction5)) {
				(_anInstruction5->dependent = locateLiteral(3));
			}
			/* end checkQuickConstant:forInstruction: */
		}
		break;
		case 0:
		{
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction6 = genoperandoperand(SubCqR, 1, ClassReg);
			if (usesOutOfLineLiteral(_anInstruction6)) {
				(_anInstruction6->dependent = locateLiteral(1));
			}
			/* end checkQuickConstant:forInstruction: */
		}
		break;
		default:
		error("Case not found and no otherwise clause");
	}
	_slotSize = ((_isLarge)
		 ? LargeContextSlots
		 : SmallContextSlots);
	_header = headerForSlotsformatclassIndex(_slotSize, indexablePointersFormat(), ClassMethodContextCompactIndex);
	flag("endianness");
	/* begin MoveAw:R: */
	_address2 = freeStartAddress();
	/* begin gen:literal:operand: */
	checkLiteralforInstruction(_address2, genoperandoperand(MoveAwR, _address2, ReceiverResultReg));
	/* end gen:literal:operand: */
	/* end MoveAw:R: */
	/* begin genStoreHeader:intoNewInstance:using: */
	{
		/* begin MoveCq:R: */
		_quickConstant6 = ((usqInt) _header );
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction24 = genoperandoperand(MoveCqR, _quickConstant6, TempReg);
		if (usesOutOfLineLiteral(_anInstruction24)) {
			(_anInstruction24->dependent = locateLiteral(_quickConstant6));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveCq:R: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction25 = genoperandoperandoperand(MoveRMwr, TempReg, 0, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction25)) {
			(_anInstruction25->dependent = locateLiteral(0));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction32 = genoperandoperand(MoveCqR, _header >> 32, TempReg);
		if (usesOutOfLineLiteral(_anInstruction32)) {
			(_anInstruction32->dependent = locateLiteral(_header >> 32));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction42 = genoperandoperandoperand(MoveRMwr, TempReg, 4, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction42)) {
			(_anInstruction42->dependent = locateLiteral(4));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* end genStoreHeader:intoNewInstance:using: */
	{
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, ReceiverResultReg, TempReg);
		/* end MoveR:R: */
		/* begin AddCq:R: */
		_quickConstant2 = smallObjectBytesForSlots(_slotSize);
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction7 = genoperandoperand(AddCqR, _quickConstant2, TempReg);
		if (usesOutOfLineLiteral(_anInstruction7)) {
			(_anInstruction7->dependent = locateLiteral(_quickConstant2));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end AddCq:R: */
		/* begin MoveR:Aw: */
		_address = freeStartAddress();
		/* begin gen:operand:literal: */
		checkLiteralforInstruction(_address, genoperandoperand(MoveRAw, TempReg, _address));
		/* end gen:operand:literal: */
		/* end MoveR:Aw: */
		/* begin CmpCq:R: */
		_quickConstant3 = getScavengeThreshold();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction8 = genoperandoperand(CmpCqR, _quickConstant3, TempReg);
		if (usesOutOfLineLiteral(_anInstruction8)) {
			(_anInstruction8->dependent = locateLiteral(_quickConstant3));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end CmpCq:R: */
	}
	/* begin JumpAboveOrEqual: */
	_jumpNeedScavenge = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	/* begin MoveR:R: */
	_continuation = genoperandoperand(MoveRR, FPReg, TempReg);
	/* end MoveR:R: */
	genSetSmallIntegerTagsIn(TempReg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction26 = genoperandoperandoperand(MoveRMwr, TempReg, BaseHeaderSize + (SenderIndex * BytesPerOop), ReceiverResultReg);
	if (usesOutOfLineLiteral(_anInstruction26)) {
		(_anInstruction26->dependent = locateLiteral(BaseHeaderSize + (SenderIndex * BytesPerOop)));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction27 = genoperandoperandoperand(MoveMwrR, FoxSavedFP, FPReg, TempReg);
	if (usesOutOfLineLiteral(_anInstruction27)) {
		(_anInstruction27->dependent = locateLiteral(FoxSavedFP));
	}
	/* end checkQuickConstant:forInstruction: */
	genSetSmallIntegerTagsIn(TempReg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction28 = genoperandoperandoperand(MoveRMwr, TempReg, BaseHeaderSize + (InstructionPointerIndex * BytesPerOop), ReceiverResultReg);
	if (usesOutOfLineLiteral(_anInstruction28)) {
		(_anInstruction28->dependent = locateLiteral(BaseHeaderSize + (InstructionPointerIndex * BytesPerOop)));
	}
	/* end checkQuickConstant:forInstruction: */
	{
		/* begin MoveMw:r:R: */
		_offset = offsetof(CogMethod, methodObject);
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction9 = genoperandoperandoperand(MoveMwrR, _offset, ClassReg, TempReg);
		if (usesOutOfLineLiteral(_anInstruction9)) {
			(_anInstruction9->dependent = locateLiteral(_offset));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveMw:r:R: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction10 = genoperandoperandoperand(MoveRMwr, TempReg, BaseHeaderSize + (MethodIndex * BytesPerWord), ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction10)) {
			(_anInstruction10->dependent = locateLiteral(BaseHeaderSize + (MethodIndex * BytesPerWord)));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction11 = genoperandoperandoperand(MoveRMwr, ReceiverResultReg, FoxThisContext, FPReg);
		if (usesOutOfLineLiteral(_anInstruction11)) {
			(_anInstruction11->dependent = locateLiteral(FoxThisContext));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	{
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, FPReg, TempReg);
		/* end MoveR:R: */
		/* begin SubR:R: */
		genoperandoperand(SubRR, SPReg, TempReg);
		/* end SubR:R: */
		/* begin LogicalShiftRightCq:R: */
		_quickConstant = 2;
		genoperandoperand(LogicalShiftRightCqR, _quickConstant, TempReg);
		/* end LogicalShiftRightCq:R: */
		/* begin SubCq:R: */
		_quickConstant4 = 3;
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction12 = genoperandoperand(SubCqR, _quickConstant4, TempReg);
		if (usesOutOfLineLiteral(_anInstruction12)) {
			(_anInstruction12->dependent = locateLiteral(_quickConstant4));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end SubCq:R: */
		/* begin AddR:R: */
		genoperandoperand(AddRR, SendNumArgsReg, TempReg);
		/* end AddR:R: */
	}
	genConvertIntegerToSmallIntegerInReg(TempReg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction29 = genoperandoperandoperand(MoveRMwr, TempReg, BaseHeaderSize + (StackPointerIndex * BytesPerOop), ReceiverResultReg);
	if (usesOutOfLineLiteral(_anInstruction29)) {
		(_anInstruction29->dependent = locateLiteral(BaseHeaderSize + (StackPointerIndex * BytesPerOop)));
	}
	/* end checkQuickConstant:forInstruction: */
	if (_isInBlock > 0) {
		{
			/* begin MoveR:R: */
			genoperandoperand(MoveRR, SendNumArgsReg, TempReg);
			/* end MoveR:R: */
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction13 = genoperandoperand(AddCqR, 2, TempReg);
			if (usesOutOfLineLiteral(_anInstruction13)) {
				(_anInstruction13->dependent = locateLiteral(2));
			}
			/* end checkQuickConstant:forInstruction: */
			/* begin MoveXwr:R:R: */
			genoperandoperandoperand(MoveXwrRR, TempReg, FPReg, TempReg);
			/* end MoveXwr:R:R: */
		}
	} else {
		/* begin genMoveConstant:R: */
		_constant = nilObject();
		if (shouldAnnotateObjectReference(_constant)) {
			annotateobjRef(gMoveCwR(_constant, TempReg), _constant);
		} else {
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction34 = genoperandoperand(MoveCqR, _constant, TempReg);
			if (usesOutOfLineLiteral(_anInstruction34)) {
				(_anInstruction34->dependent = locateLiteral(_constant));
			}
			/* end checkQuickConstant:forInstruction: */
		}
		/* end genMoveConstant:R: */
	}
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction30 = genoperandoperandoperand(MoveRMwr, TempReg, BaseHeaderSize + (ClosureIndex * BytesPerOop), ReceiverResultReg);
	if (usesOutOfLineLiteral(_anInstruction30)) {
		(_anInstruction30->dependent = locateLiteral(BaseHeaderSize + (ClosureIndex * BytesPerOop)));
	}
	/* end checkQuickConstant:forInstruction: */
	{
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction14 = genoperandoperandoperand(MoveMwrR, FoxMFReceiver, FPReg, TempReg);
		if (usesOutOfLineLiteral(_anInstruction14)) {
			(_anInstruction14->dependent = locateLiteral(FoxMFReceiver));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction15 = genoperandoperandoperand(MoveRMwr, TempReg, BaseHeaderSize + (ReceiverIndex * BytesPerOop), ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction15)) {
			(_anInstruction15->dependent = locateLiteral(BaseHeaderSize + (ReceiverIndex * BytesPerOop)));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction31 = genoperandoperand(MoveCqR, 1, ClassReg);
	if (usesOutOfLineLiteral(_anInstruction31)) {
		(_anInstruction31->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin CmpR:R: */
	_loopHead = genoperandoperand(CmpRR, SendNumArgsReg, ClassReg);
	/* end CmpR:R: */
	/* begin JumpGreater: */
	_exit = genConditionalBranchoperand(JumpGreater, ((sqInt) 0 ));
	/* end JumpGreater: */
	{
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, SendNumArgsReg, TempReg);
		/* end MoveR:R: */
		/* begin SubR:R: */
		genoperandoperand(SubRR, ClassReg, TempReg);
		/* end SubR:R: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction16 = genoperandoperand(AddCqR, 2, TempReg);
		if (usesOutOfLineLiteral(_anInstruction16)) {
			(_anInstruction16->dependent = locateLiteral(2));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin MoveXwr:R:R: */
		genoperandoperandoperand(MoveXwrRR, TempReg, FPReg, TempReg);
		/* end MoveXwr:R:R: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction17 = genoperandoperand(AddCqR, ReceiverIndex + (BaseHeaderSize / BytesPerWord), ClassReg);
		if (usesOutOfLineLiteral(_anInstruction17)) {
			(_anInstruction17->dependent = locateLiteral(ReceiverIndex + (BaseHeaderSize / BytesPerWord)));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin MoveR:Xwr:R: */
		genoperandoperandoperand(MoveRXwrR, TempReg, ClassReg, ReceiverResultReg);
		/* end MoveR:Xwr:R: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction18 = genoperandoperand(SubCqR, (ReceiverIndex + (BaseHeaderSize / BytesPerWord)) - 1, ClassReg);
		if (usesOutOfLineLiteral(_anInstruction18)) {
			(_anInstruction18->dependent = locateLiteral((ReceiverIndex + (BaseHeaderSize / BytesPerWord)) - 1));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin Jump: */
		genoperand(Jump, ((sqInt) _loopHead ));
		/* end Jump: */
	}
	jmpTarget(_exit, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	{
		/* begin MoveCq:R: */
		_quickConstant5 = nilObject();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction19 = genoperandoperand(MoveCqR, _quickConstant5, TempReg);
		if (usesOutOfLineLiteral(_anInstruction19)) {
			(_anInstruction19->dependent = locateLiteral(_quickConstant5));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveCq:R: */
	}
	{
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, FPReg, ClassReg);
		/* end MoveR:R: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction20 = genoperandoperand(AddCqR, FoxMFReceiver, ClassReg);
		if (usesOutOfLineLiteral(_anInstruction20)) {
			(_anInstruction20->dependent = locateLiteral(FoxMFReceiver));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction21 = genoperandoperand(AddCqR, (ReceiverIndex + 1) + (BaseHeaderSize / BytesPerWord), SendNumArgsReg);
		if (usesOutOfLineLiteral(_anInstruction21)) {
			(_anInstruction21->dependent = locateLiteral((ReceiverIndex + 1) + (BaseHeaderSize / BytesPerWord)));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction33 = genoperandoperand(SubCqR, BytesPerWord, ClassReg);
	if (usesOutOfLineLiteral(_anInstruction33)) {
		(_anInstruction33->dependent = locateLiteral(BytesPerWord));
	}
	_loopHead = _anInstruction33;
	/* end checkQuickConstant:forInstruction: */
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, SPReg, ClassReg);
	/* end CmpR:R: */
	{
		/* begin JumpBelow: */
		_exit = genConditionalBranchoperand(JumpBelow, ((sqInt) 0 ));
		/* end JumpBelow: */
	}
	{
		/* begin MoveR:Xwr:R: */
		genoperandoperandoperand(MoveRXwrR, TempReg, SendNumArgsReg, ReceiverResultReg);
		/* end MoveR:Xwr:R: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction23 = genoperandoperand(AddCqR, 1, SendNumArgsReg);
		if (usesOutOfLineLiteral(_anInstruction23)) {
			(_anInstruction23->dependent = locateLiteral(1));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin Jump: */
		genoperand(Jump, ((sqInt) _loopHead ));
		/* end Jump: */
	}
	jmpTarget(_exit, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	/* begin RetN: */
	genoperand(RetN, 0);
	/* end RetN: */
	jmpTarget(_jumpNeedScavenge, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	/* begin saveAndRestoreLinkRegAround: */
	_inst = genoperand(PushR, LinkReg);
	{
		CallRTregistersToBeSavedMask(ceScheduleScavengeTrampoline, ((1U << ReceiverResultReg) | (1U << SendNumArgsReg)) | (1U << ClassReg));
	}
	genoperand(PopR, LinkReg);
	/* end saveAndRestoreLinkRegAround: */
	/* begin Jump: */
	genoperand(Jump, ((sqInt) _continuation ));
	/* end Jump: */
	return 0;
}
/*	Get the active context into ReceiverResultReg, creating it if necessary. */
/* CogObjectRepresentationForSpur>>#genGetActiveContextNumArgs:large:inBlock: */
static sqInt NoDbgRegParms
genGetActiveContextNumArgslargeinBlock(sqInt _numArgs, sqInt _isLargeContext, sqInt _isInBlock)
{
	AbstractInstruction *_abstractInstruction;
	AbstractInstruction *_anInstruction;
	sqInt _routine;

	if (_isLargeContext) {
		switch (_isInBlock) {
			case 0:
			{
				_routine = ceLargeActiveContextInMethodTrampoline;
			}
			break;
			case InFullBlock:
			{
				_routine = ceLargeActiveContextInFullBlockTrampoline;
			}
			break;
			default:
			error("Case not found and no otherwise clause");
			_routine = -1;
		}
	}
 else {
		switch (_isInBlock) {
			case 0:
			{
				_routine = ceSmallActiveContextInMethodTrampoline;
			}
			break;
			case InFullBlock:
			{
				_routine = ceSmallActiveContextInFullBlockTrampoline;
			}
			break;
			default:
			error("Case not found and no otherwise clause");
			_routine = -1;
		}
	}
	{
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(MoveCqR, _numArgs, SendNumArgsReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_numArgs));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin CallRT: */
		/* begin annotateCall: */
		_abstractInstruction = genoperand(Call, _routine);
		(_abstractInstruction->annotation = IsRelativeCall);
		/* end annotateCall: */
		/* end CallRT: */
	}
	return 0;
}
/* CogObjectRepresentationForSpur>>#genGetBits:ofFormatByteOf:into: */
static sqInt NoDbgRegParms
genGetBitsofFormatByteOfinto(sqInt _mask, sqInt _sourceReg, sqInt _destReg)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;

	flag("endianness");
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperandoperand(MoveMbrR, 3, _sourceReg, _destReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(3));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(AndCqR, _mask, _destReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_mask));
	}
	/* end checkQuickConstant:forInstruction: */
	return 0;
}
/*	Fetch the instance's class index into destReg. */
/* CogObjectRepresentationForSpur>>#genGetClassIndexOfNonImm:into: */
static sqInt NoDbgRegParms
genGetClassIndexOfNonImminto(sqInt _sourceReg, sqInt _destReg)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	sqInt _quickConstant;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperandoperand(MoveMwrR, 0, _sourceReg, _destReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin AndCq:R: */
	_quickConstant = classIndexMask();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(AndCqR, _quickConstant, _destReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AndCq:R: */
	return 0;
}
/*	Fetch the class object whose index is in instReg into destReg. 
	It is non-obvious, but the Cogit assumes loading a class does not involve 
	a runtime call, so do not call classAtIndex: */
/* CogObjectRepresentationForSpur>>#genGetClassObjectOfClassIndex:into:scratchReg: */
static sqInt NoDbgRegParms
genGetClassObjectOfClassIndexintoscratchReg(sqInt _classIndexRegister, sqInt _destReg, sqInt _scratchReg)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction5;
	sqInt _offset;
	sqInt _quickConstant;
	sqInt _quickConstant3;
	sqInt _quickConstant4;

	assert(_classIndexRegister != _destReg);
	assert(_classIndexRegister != _scratchReg);
	assert(_destReg != _scratchReg);
	{
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, _classIndexRegister, _scratchReg);
		/* end MoveR:R: */
		/* begin LogicalShiftRightCq:R: */
		_quickConstant = classTableMajorIndexShift();
		genoperandoperand(LogicalShiftRightCqR, _quickConstant, _scratchReg);
		/* end LogicalShiftRightCq:R: */
		/* begin LogicalShiftLeftCq:R: */
		genoperandoperand(LogicalShiftLeftCqR, shiftForWord(), _scratchReg);
		/* end LogicalShiftLeftCq:R: */
	}
	assert(!(shouldAnnotateObjectReference(classTableRootObj())));
	{
		/* begin MoveMw:r:R: */
		_offset = (classTableRootObj()) + BaseHeaderSize;
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperandoperand(MoveMwrR, _offset, _scratchReg, _destReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_offset));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveMw:r:R: */
	}
	{
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, _classIndexRegister, _scratchReg);
		/* end MoveR:R: */
		/* begin AndCq:R: */
		_quickConstant3 = classTableMinorIndexMask();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction4 = genoperandoperand(AndCqR, _quickConstant3, _scratchReg);
		if (usesOutOfLineLiteral(_anInstruction4)) {
			(_anInstruction4->dependent = locateLiteral(_quickConstant3));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end AndCq:R: */
		/* begin AddCq:R: */
		_quickConstant4 = ((usqInt) BaseHeaderSize ) >> (shiftForWord());
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction5 = genoperandoperand(AddCqR, _quickConstant4, _scratchReg);
		if (usesOutOfLineLiteral(_anInstruction5)) {
			(_anInstruction5->dependent = locateLiteral(_quickConstant4));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end AddCq:R: */
		/* begin MoveXwr:R:R: */
		genoperandoperandoperand(MoveXwrRR, _scratchReg, _destReg, _destReg);
		/* end MoveXwr:R:R: */
	}
	return 0;
}
/*	Fetch the instance's class into destReg. If the instance is not the 
	receiver and is forwarded, follow forwarding. */
/* CogObjectRepresentationForSpur>>#genGetClassObjectOf:into:scratchReg:instRegIsReceiver: */
static sqInt NoDbgRegParms
genGetClassObjectOfintoscratchReginstRegIsReceiver(sqInt _instReg, sqInt _destReg, sqInt _scratchReg, sqInt _instRegIsReceiver)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction5;
	AbstractInstruction *_jumpIsImm;
	AbstractInstruction *_jumpNotForwarded;
	AbstractInstruction *_loop;
	sqInt _quickConstant;
	sqInt _quickConstant2;
	sqInt _quickConstant3;

	if ((_instReg == _destReg) || ((_instReg == _scratchReg) || (_destReg == _scratchReg))) {
		return BadRegisterSet;
	}
	/* begin MoveR:R: */
	_loop = genoperandoperand(MoveRR, _instReg, _scratchReg);
	/* end MoveR:R: */
	/* begin AndCq:R: */
	_quickConstant2 = tagMask();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction3 = genoperandoperand(AndCqR, _quickConstant2, _scratchReg);
	if (usesOutOfLineLiteral(_anInstruction3)) {
		(_anInstruction3->dependent = locateLiteral(_quickConstant2));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AndCq:R: */
	/* begin JumpNonZero: */
	_jumpIsImm = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
	flag("endianness");
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction4 = genoperandoperandoperand(MoveMwrR, 0, _instReg, _scratchReg);
	if (usesOutOfLineLiteral(_anInstruction4)) {
		(_anInstruction4->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin AndCq:R: */
	_quickConstant3 = classIndexMask();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction5 = genoperandoperand(AndCqR, _quickConstant3, _scratchReg);
	if (usesOutOfLineLiteral(_anInstruction5)) {
		(_anInstruction5->dependent = locateLiteral(_quickConstant3));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AndCq:R: */
	if (!_instRegIsReceiver) {
		/* begin CmpCq:R: */
		_quickConstant = isForwardedObjectClassIndexPun();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(CmpCqR, _quickConstant, _scratchReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_quickConstant));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end CmpCq:R: */
		/* begin JumpNonZero: */
		_jumpNotForwarded = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
		/* end JumpNonZero: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction2 = genoperandoperandoperand(MoveMwrR, BaseHeaderSize, _instReg, _instReg);
		if (usesOutOfLineLiteral(_anInstruction2)) {
			(_anInstruction2->dependent = locateLiteral(BaseHeaderSize));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin Jump: */
		genoperand(Jump, ((sqInt) _loop ));
		/* end Jump: */
		jmpTarget(_jumpNotForwarded, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	}
	jmpTarget(_jumpIsImm, genoperandoperand(MoveRR, _scratchReg, _destReg));
	if (_scratchReg == TempReg) {
		/* begin PushR: */
		genoperand(PushR, _instReg);
		/* end PushR: */
		genGetClassObjectOfClassIndexintoscratchReg(_destReg, _instReg, TempReg);
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, _instReg, _destReg);
		/* end MoveR:R: */
		/* begin PopR: */
		genoperand(PopR, _instReg);
		/* end PopR: */
	} else {
		genGetClassObjectOfClassIndexintoscratchReg(_destReg, _scratchReg, TempReg);
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, _scratchReg, _destReg);
		/* end MoveR:R: */
	}
	return 0;
}
/* CogObjectRepresentationForSpur>>#genGetClassTagOf:into:scratchReg: */
static AbstractInstruction * NoDbgRegParms
genGetClassTagOfintoscratchReg(sqInt _instReg, sqInt _destReg, sqInt scratchReg)
{
	return genGetInlineCacheClassTagFrominto(_instReg, _destReg);
}
/*	Fetch the instance's class index into destReg. */
/* CogObjectRepresentationForSpur>>#genGetCompactClassIndexNonImmOf:into: */
static sqInt NoDbgRegParms
genGetCompactClassIndexNonImmOfinto(sqInt _instReg, sqInt _destReg)
{
	return genGetClassIndexOfNonImminto(_instReg, _destReg);
}
/* CogObjectRepresentationForSpur>>#genGetDoubleValueOf:into: */
static sqInt NoDbgRegParms
genGetDoubleValueOfinto(sqInt _srcReg, sqInt _destFPReg)
{
	AbstractInstruction *_anInstruction;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperandoperand(MoveM64rRd, BaseHeaderSize, _srcReg, _destFPReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	return 0;
}
/*	Get the format field of the object in srcReg into destReg. 
	srcReg may equal destReg. */
/* CogObjectRepresentationForSpur>>#genGetFormatOf:into: */
static sqInt NoDbgRegParms
genGetFormatOfinto(sqInt _srcReg, sqInt _destReg)
{
	return genGetBitsofFormatByteOfinto(formatMask(), _srcReg, _destReg);
}
/*	Get the format of the object in sourceReg into destReg. If 
	scratchRegOrNone is not NoReg, load at least the least significant 32-bits 
	(64-bits in 64-bits) of the 
	header word, which contains the format, into scratchRegOrNone. */
/* CogObjectRepresentationForSpur>>#genGetFormatOf:into:leastSignificantHalfOfBaseHeaderIntoScratch: */
static sqInt NoDbgRegParms
genGetFormatOfintoleastSignificantHalfOfBaseHeaderIntoScratch(sqInt _sourceReg, sqInt _destReg, sqInt _scratchRegOrNone)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	sqInt _quickConstant;
	sqInt _quickConstant2;

	if (_scratchRegOrNone == NoReg) {
		flag("endianness");
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperandoperand(MoveMbrR, 3, _sourceReg, _destReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(3));
		}
		/* end checkQuickConstant:forInstruction: */
	} else {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction2 = genoperandoperandoperand(MoveMwrR, 0, _sourceReg, _destReg);
		if (usesOutOfLineLiteral(_anInstruction2)) {
			(_anInstruction2->dependent = locateLiteral(0));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, _destReg, _scratchRegOrNone);
		/* end MoveR:R: */
		/* begin LogicalShiftRightCq:R: */
		_quickConstant = formatShift();
		genoperandoperand(LogicalShiftRightCqR, _quickConstant, _destReg);
		/* end LogicalShiftRightCq:R: */
	}
	/* begin AndCq:R: */
	_quickConstant2 = formatMask();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction3 = genoperandoperand(AndCqR, _quickConstant2, _destReg);
	if (usesOutOfLineLiteral(_anInstruction3)) {
		(_anInstruction3->dependent = locateLiteral(_quickConstant2));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AndCq:R: */
	return 0;
}
/*	Get the size in word-sized slots of the object in srcReg into destReg. 
	srcReg may equal destReg. */
/* CogObjectRepresentationForSpur>>#genGetNumSlotsOf:into: */
static sqInt NoDbgRegParms
genGetNumSlotsOfinto(sqInt _srcReg, sqInt _destReg)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_jmp;
	sqInt _quickConstant;

	assert(_srcReg != _destReg);
	genGetRawSlotSizeOfNonImminto(_srcReg, _destReg);
	/* begin CmpCq:R: */
	_quickConstant = numSlotsMask();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(CmpCqR, _quickConstant, _destReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpLess: */
	_jmp = genConditionalBranchoperand(JumpLess, ((sqInt) 0 ));
	/* end JumpLess: */
	genGetOverflowSlotsOfinto(_srcReg, _destReg);
	jmpTarget(_jmp, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	return 0;
}
/*	The raw numSlots field is the most significant byte of the 64-bit header 
	word. MoveMbrR zero-extends. */
/* CogObjectRepresentationForSpur>>#genGetRawSlotSizeOfNonImm:into: */
static sqInt NoDbgRegParms
genGetRawSlotSizeOfNonImminto(sqInt _sourceReg, sqInt _destReg)
{
	AbstractInstruction *_anInstruction2;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperandoperand(MoveMbrR, 7, _sourceReg, _destReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(7));
	}
	/* end checkQuickConstant:forInstruction: */
	return 0;
}
/* CogObjectRepresentationForSpur>>#genJumpImmediate: */
static AbstractInstruction * NoDbgRegParms
genJumpImmediate(sqInt _aRegister)
{
	AbstractInstruction *_anInstruction;
	sqInt _quickConstant;

	/* begin TstCq:R: */
	_quickConstant = tagMask();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(TstCqR, _quickConstant, _aRegister);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end TstCq:R: */
	/* begin JumpNonZero: */
	return genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
}
/* CogObjectRepresentationForSpur>>#genJumpImmutable:scratchReg: */

#if IMMUTABILITY
static AbstractInstruction * NoDbgRegParms
genJumpImmutablescratchReg(sqInt _sourceReg, sqInt _scratchReg)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	sqInt _quickConstant;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperandoperand(MoveMwrR, 0, _sourceReg, _scratchReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin genJumpBaseHeaderImmutable: */
	/* begin TstCq:R: */
	_quickConstant = immutableBitMask();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(TstCqR, _quickConstant, _scratchReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end TstCq:R: */
	/* begin JumpNonZero: */
	return genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
	/* end genJumpBaseHeaderImmutable: */
}
#endif /* IMMUTABILITY */
/* CogObjectRepresentationForSpur>>#genJumpMutable:scratchReg: */

#if IMMUTABILITY
static AbstractInstruction * NoDbgRegParms
genJumpMutablescratchReg(sqInt _sourceReg, sqInt _scratchReg)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	sqInt _quickConstant;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperandoperand(MoveMwrR, 0, _sourceReg, _scratchReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin genJumpBaseHeaderMutable: */
	/* begin TstCq:R: */
	_quickConstant = immutableBitMask();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(TstCqR, _quickConstant, _scratchReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end TstCq:R: */
	/* begin JumpZero: */
	return genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	/* end genJumpBaseHeaderMutable: */
}
#endif /* IMMUTABILITY */
/* CogObjectRepresentationForSpur>>#genJumpNotCharacterInScratchReg: */
static AbstractInstruction * NoDbgRegParms
genJumpNotCharacterInScratchReg(sqInt _reg)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	sqInt _quickConstant;
	sqInt _quickConstant2;

	/* begin AndCq:R: */
	_quickConstant = tagMask();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(AndCqR, _quickConstant, _reg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AndCq:R: */
	/* begin CmpCq:R: */
	_quickConstant2 = characterTag();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(CmpCqR, _quickConstant2, _reg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_quickConstant2));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpNonZero: */
	return genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
}
/*	Generate a call to code that allocates a new Array of size. 
	The Array should be initialized with nils iff initialized is true. 
	The size arg is passed in SendNumArgsReg, the result 
	must come back in ReceiverResultReg. */
/* CogObjectRepresentationForSpur>>#genNewArrayOfSize:initialized: */
static sqInt NoDbgRegParms
genNewArrayOfSizeinitialized(sqInt _size, sqInt _initialized)
{
	AbstractInstruction *_abstractInstruction;
	sqInt _address;
	sqInt _address2;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction22;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction32;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction5;
	AbstractInstruction *_anInstruction6;
	sqInt _constant;
	usqLong _header;
	sqInt _i;
	sqInt _offset;
	sqInt _quickConstant;
	sqInt _quickConstant2;
	AbstractInstruction *_skip;

	assert(_size < (numSlotsMask()));
	_header = headerForSlotsformatclassIndex(_size, arrayFormat(), ClassArrayCompactIndex);
	/* begin MoveAw:R: */
	_address2 = freeStartAddress();
	/* begin gen:literal:operand: */
	checkLiteralforInstruction(_address2, genoperandoperand(MoveAwR, _address2, ReceiverResultReg));
	/* end gen:literal:operand: */
	/* end MoveAw:R: */
	/* begin genStoreHeader:intoNewInstance:using: */
	{
		/* begin MoveCq:R: */
		_quickConstant2 = ((usqInt) _header );
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction5 = genoperandoperand(MoveCqR, _quickConstant2, TempReg);
		if (usesOutOfLineLiteral(_anInstruction5)) {
			(_anInstruction5->dependent = locateLiteral(_quickConstant2));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveCq:R: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction22 = genoperandoperandoperand(MoveRMwr, TempReg, 0, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction22)) {
			(_anInstruction22->dependent = locateLiteral(0));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction32 = genoperandoperand(MoveCqR, _header >> 32, TempReg);
		if (usesOutOfLineLiteral(_anInstruction32)) {
			(_anInstruction32->dependent = locateLiteral(_header >> 32));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction4 = genoperandoperandoperand(MoveRMwr, TempReg, 4, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction4)) {
			(_anInstruction4->dependent = locateLiteral(4));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* end genStoreHeader:intoNewInstance:using: */
	if (_initialized && (_size > 0)) {
		/* begin genMoveConstant:R: */
		_constant = nilObject();
		if (shouldAnnotateObjectReference(_constant)) {
			annotateobjRef(gMoveCwR(_constant, TempReg), _constant);
		} else {
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction6 = genoperandoperand(MoveCqR, _constant, TempReg);
			if (usesOutOfLineLiteral(_anInstruction6)) {
				(_anInstruction6->dependent = locateLiteral(_constant));
			}
			/* end checkQuickConstant:forInstruction: */
		}
		/* end genMoveConstant:R: */
		for (_i = 0; _i < _size; _i += 1) {
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction = genoperandoperandoperand(MoveRMwr, TempReg, (_i * BytesPerWord) + BaseHeaderSize, ReceiverResultReg);
			if (usesOutOfLineLiteral(_anInstruction)) {
				(_anInstruction->dependent = locateLiteral((_i * BytesPerWord) + BaseHeaderSize));
			}
			/* end checkQuickConstant:forInstruction: */
		}
	}
	{
		/* begin LoadEffectiveAddressMw:r:R: */
		_offset = smallObjectBytesForSlots(_size);
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction2 = genoperandoperandoperand(LoadEffectiveAddressMwrR, _offset, ReceiverResultReg, TempReg);
		if (usesOutOfLineLiteral(_anInstruction2)) {
			(_anInstruction2->dependent = locateLiteral(_offset));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end LoadEffectiveAddressMw:r:R: */
		/* begin MoveR:Aw: */
		_address = freeStartAddress();
		/* begin gen:operand:literal: */
		checkLiteralforInstruction(_address, genoperandoperand(MoveRAw, TempReg, _address));
		/* end gen:operand:literal: */
		/* end MoveR:Aw: */
		/* begin CmpCq:R: */
		_quickConstant = getScavengeThreshold();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction3 = genoperandoperand(CmpCqR, _quickConstant, TempReg);
		if (usesOutOfLineLiteral(_anInstruction3)) {
			(_anInstruction3->dependent = locateLiteral(_quickConstant));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end CmpCq:R: */
	}
	/* begin JumpBelow: */
	_skip = genConditionalBranchoperand(JumpBelow, ((sqInt) 0 ));
	/* end JumpBelow: */
	/* begin CallRT: */
	/* begin annotateCall: */
	_abstractInstruction = genoperand(Call, ceScheduleScavengeTrampoline);
	(_abstractInstruction->annotation = IsRelativeCall);
	/* end annotateCall: */
	/* end CallRT: */
	jmpTarget(_skip, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	return 0;
}
/* CogObjectRepresentationForSpur>>#genPrimitiveAsCharacter */
static sqInt
genPrimitiveAsCharacter(void)
{
	AbstractInstruction *_jumpNotInt;
	AbstractInstruction *_jumpOutOfRange;
	sqInt _reg;

	_jumpNotInt = ((AbstractInstruction *) 0 );
	if (methodOrBlockNumArgs == 0) {
		_reg = ReceiverResultReg;
	} else {
		if (methodOrBlockNumArgs > 1) {
			return UnimplementedPrimitive;
		}
		_reg = Arg0Reg;
		/* begin genLoadArgAtDepth:into: */
		assert(0 < (numRegArgs()));
		/* end genLoadArgAtDepth:into: */
		/* begin genJumpNotSmallInteger:scratchReg: */
		_jumpNotInt = genJumpNotSmallInteger(_reg);
		/* end genJumpNotSmallInteger:scratchReg: */
	}
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, _reg, TempReg);
	/* end MoveR:R: */
	genConvertSmallIntegerToIntegerInReg(TempReg);
	_jumpOutOfRange = jumpNotCharacterUnsignedValueInRegister(TempReg);
	genConvertSmallIntegerToCharacterInReg(_reg);
	if (_reg != ReceiverResultReg) {
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, _reg, ReceiverResultReg);
		/* end MoveR:R: */
	}
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpOutOfRange, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	if (_reg != ReceiverResultReg) {
		jmpTarget(_jumpNotInt, ((AbstractInstruction *) ((_jumpOutOfRange->operands)[0]) ));
	}
	return CompletePrimitive;
}
/*	Generate primitive 60, at: with unsigned access for pure bits classes. */
/* CogObjectRepresentationForSpur>>#genPrimitiveAt */
static sqInt
genPrimitiveAt(void)
{
	return genPrimitiveAtSigned(0);
}
/* CogObjectRepresentationForSpur>>#genPrimitiveIdenticalOrNotIf: */
static sqInt NoDbgRegParms
genPrimitiveIdenticalOrNotIf(sqInt _orNot)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_comp;
	sqInt _constant;
	sqInt _constant2;
	AbstractInstruction *_jumpCmp;

	/* begin genLoadArgAtDepth:into: */
	assert(0 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	/* begin CmpR:R: */
	_comp = genoperandoperand(CmpRR, Arg0Reg, ReceiverResultReg);
	/* end CmpR:R: */
	if (_orNot) {
		/* begin JumpZero: */
		_jumpCmp = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
		/* end JumpZero: */
		/* begin genEnsureOopInRegNotForwarded:scratchReg:jumpBackTo: */
		genEnsureOopInRegNotForwardedscratchRegifForwarderifNotForwarder(Arg0Reg, TempReg, _comp, 0);
		/* end genEnsureOopInRegNotForwarded:scratchReg:jumpBackTo: */
	} else {
		/* begin JumpNonZero: */
		_jumpCmp = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
		/* end JumpNonZero: */
	}
	/* begin genMoveConstant:R: */
	_constant = trueObject();
	if (shouldAnnotateObjectReference(_constant)) {
		annotateobjRef(gMoveCwR(_constant, ReceiverResultReg), _constant);
	} else {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(MoveCqR, _constant, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_constant));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* end genMoveConstant:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpCmp, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	if (!_orNot) {
		/* begin genEnsureOopInRegNotForwarded:scratchReg:jumpBackTo: */
		genEnsureOopInRegNotForwardedscratchRegifForwarderifNotForwarder(Arg0Reg, TempReg, _comp, 0);
		/* end genEnsureOopInRegNotForwarded:scratchReg:jumpBackTo: */
	}
	/* begin genMoveConstant:R: */
	_constant2 = falseObject();
	if (shouldAnnotateObjectReference(_constant2)) {
		annotateobjRef(gMoveCwR(_constant2, ReceiverResultReg), _constant2);
	} else {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction2 = genoperandoperand(MoveCqR, _constant2, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction2)) {
			(_anInstruction2->dependent = locateLiteral(_constant2));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* end genMoveConstant:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	return UnfailingPrimitive;
}
/*	Generate primitive 164, at: with signed access for pure bits classes. */
/* CogObjectRepresentationForSpur>>#genPrimitiveIntegerAt */
static sqInt
genPrimitiveIntegerAt(void)
{
	return genPrimitiveAtSigned(1);
}
/*	Generate primitive 165, at:put: with signed access for pure bits classes. */
/* CogObjectRepresentationForSpur>>#genPrimitiveIntegerAtPut */
static sqInt
genPrimitiveIntegerAtPut(void)
{
	return genPrimitiveAtPutSigned(1);
}
/* CogObjectRepresentationForSpur>>#genPrimitiveObjectAt */
static sqInt
genPrimitiveObjectAt(void)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	sqInt _headerReg;
	AbstractInstruction *_jumpBadIndex;
	AbstractInstruction *_jumpBounds;
	AbstractInstruction *_jumpNotHeaderIndex;
	sqInt _literal;
	sqInt _quickConstant;
	sqInt _quickConstant2;

	/* begin genLoadArgAtDepth:into: */
	assert(0 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	/* begin genJumpNotSmallInteger:scratchReg: */
	_jumpBadIndex = genJumpNotSmallInteger(Arg0Reg);
	/* end genJumpNotSmallInteger:scratchReg: */
	genGetMethodHeaderOfintoscratch(ReceiverResultReg, (_headerReg = Arg1Reg), TempReg);
	/* begin checkQuickConstant:forInstruction: */
	_literal = ((((usqInt) 1 ) << 1) | 1);
	_anInstruction3 = genoperandoperand(CmpCqR, ((((usqInt) 1 ) << 1) | 1), Arg0Reg);
	if (usesOutOfLineLiteral(_anInstruction3)) {
		(_anInstruction3->dependent = locateLiteral(_literal));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpNonZero: */
	_jumpNotHeaderIndex = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
	{
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, _headerReg, ReceiverResultReg);
		/* end MoveR:R: */
		if (methodOrBlockNumArgs <= 2) {
			/* begin RetN: */
			genoperand(RetN, 0);
			/* end RetN: */
		} else {
			{
				/* begin RetN: */
				genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
				/* end RetN: */
			}
		}
	}
	jmpTarget(_jumpNotHeaderIndex, gAndCqR(((((usqInt) (alternateHeaderNumLiteralsMask()) ) << 1) | 1), _headerReg));
	{
		/* begin SubCq:R: */
		_quickConstant = (((((usqInt) 1 ) << 1) | 1)) - (smallIntegerTag());
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(SubCqR, _quickConstant, Arg0Reg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_quickConstant));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end SubCq:R: */
		/* begin CmpR:R: */
		genoperandoperand(CmpRR, _headerReg, Arg0Reg);
		/* end CmpR:R: */
	}
	/* begin JumpAbove: */
	_jumpBounds = genConditionalBranchoperand(JumpAbove, ((sqInt) 0 ));
	/* end JumpAbove: */
	genConvertSmallIntegerToIntegerInReg(Arg0Reg);
	{
		/* begin AddCq:R: */
		_quickConstant2 = ((usqInt) BaseHeaderSize ) >> (shiftForWord());
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction2 = genoperandoperand(AddCqR, _quickConstant2, Arg0Reg);
		if (usesOutOfLineLiteral(_anInstruction2)) {
			(_anInstruction2->dependent = locateLiteral(_quickConstant2));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end AddCq:R: */
		/* begin MoveXwr:R:R: */
		genoperandoperandoperand(MoveXwrRR, Arg0Reg, ReceiverResultReg, ReceiverResultReg);
		/* end MoveXwr:R:R: */
		if (methodOrBlockNumArgs <= 2) {
			/* begin RetN: */
			genoperand(RetN, 0);
			/* end RetN: */
		} else {
			{
				/* begin RetN: */
				genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
				/* end RetN: */
			}
		}
	}
	jmpTarget(_jumpBounds, gAddCqR((((((usqInt) 1 ) << 1) | 1)) - (smallIntegerTag()), Arg0Reg));
	jmpTarget(_jumpBadIndex, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	return CompletePrimitive;
}
/*	c.f. StackInterpreter>>stSizeOf: lengthOf:baseHeader:format: 
	fixedFieldsOf:format:length:  */
/* CogObjectRepresentationForSpur>>#genPrimitiveSize */
static sqInt
genPrimitiveSize(void)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction10;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction5;
	AbstractInstruction *_anInstruction6;
	AbstractInstruction *_anInstruction7;
	AbstractInstruction *_anInstruction8;
	AbstractInstruction *_anInstruction9;
	AbstractInstruction * _jump32BitLongsDone;
	AbstractInstruction * _jump64BitLongsDone;
	AbstractInstruction * _jumpArrayDone;
	AbstractInstruction * _jumpBytesDone;
	AbstractInstruction * _jumpHasFixedFields;
	AbstractInstruction *_jumpImm;
	AbstractInstruction * _jumpIs64BitLongs;
	AbstractInstruction * _jumpIsBytes;
	AbstractInstruction *_jumpIsContext;
	AbstractInstruction * _jumpIsContext2;
	AbstractInstruction * _jumpIsShorts;
	AbstractInstruction *_jumpNotIndexable;
	AbstractInstruction * _jumpNotIndexable2;
	AbstractInstruction * _jumpShortsDone;
	sqInt _quickConstant;
	sqInt _quickConstant2;
	sqInt _quickConstant3;
	sqInt _quickConstant4;
	sqInt _quickConstant5;
	sqInt _quickConstant6;
	sqInt _quickConstant7;

	_jumpImm = genJumpImmediate(ReceiverResultReg);
	/* begin genGetSizeOf:into:formatReg:scratchReg:abortJumpsInto: */
	genGetFormatOfintoleastSignificantHalfOfBaseHeaderIntoScratch(ReceiverResultReg, SendNumArgsReg, TempReg);
	genGetNumSlotsOfinto(ReceiverResultReg, ClassReg);
	/* begin CmpCq:R: */
	_quickConstant2 = firstByteFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(CmpCqR, _quickConstant2, SendNumArgsReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_quickConstant2));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpGreaterOrEqual: */
	_jumpIsBytes = genConditionalBranchoperand(JumpGreaterOrEqual, ((sqInt) 0 ));
	/* end JumpGreaterOrEqual: */
	/* begin CmpCq:R: */
	_quickConstant3 = arrayFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction3 = genoperandoperand(CmpCqR, _quickConstant3, SendNumArgsReg);
	if (usesOutOfLineLiteral(_anInstruction3)) {
		(_anInstruction3->dependent = locateLiteral(_quickConstant3));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpZero: */
	_jumpArrayDone = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	/* begin JumpLess: */
	_jumpNotIndexable2 = genConditionalBranchoperand(JumpLess, ((sqInt) 0 ));
	/* end JumpLess: */
	/* begin CmpCq:R: */
	_quickConstant4 = weakArrayFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction4 = genoperandoperand(CmpCqR, _quickConstant4, SendNumArgsReg);
	if (usesOutOfLineLiteral(_anInstruction4)) {
		(_anInstruction4->dependent = locateLiteral(_quickConstant4));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpLessOrEqual: */
	_jumpHasFixedFields = genConditionalBranchoperand(JumpLessOrEqual, ((sqInt) 0 ));
	/* end JumpLessOrEqual: */
	/* begin CmpCq:R: */
	_quickConstant5 = firstShortFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction5 = genoperandoperand(CmpCqR, _quickConstant5, SendNumArgsReg);
	if (usesOutOfLineLiteral(_anInstruction5)) {
		(_anInstruction5->dependent = locateLiteral(_quickConstant5));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpGreaterOrEqual: */
	_jumpIsShorts = genConditionalBranchoperand(JumpGreaterOrEqual, ((sqInt) 0 ));
	/* end JumpGreaterOrEqual: */
	/* begin CmpCq:R: */
	_quickConstant6 = firstLongFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction6 = genoperandoperand(CmpCqR, _quickConstant6, SendNumArgsReg);
	if (usesOutOfLineLiteral(_anInstruction6)) {
		(_anInstruction6->dependent = locateLiteral(_quickConstant6));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpGreaterOrEqual: */
	_jump32BitLongsDone = genConditionalBranchoperand(JumpGreaterOrEqual, ((sqInt) 0 ));
	/* end JumpGreaterOrEqual: */
	/* begin CmpCq:R: */
	_quickConstant7 = sixtyFourBitIndexableFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction7 = genoperandoperand(CmpCqR, _quickConstant7, SendNumArgsReg);
	if (usesOutOfLineLiteral(_anInstruction7)) {
		(_anInstruction7->dependent = locateLiteral(_quickConstant7));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpZero: */
	_jumpIs64BitLongs = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	jmpTarget(_jumpNotIndexable2, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	/* begin Jump: */
	_jumpNotIndexable2 = genoperand(Jump, ((sqInt) 0 ));
	/* end Jump: */
	jmpTarget(_jumpIsBytes, gLogicalShiftLeftCqR(shiftForWord(), ClassReg));
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction8 = genoperandoperand(AndCqR, BytesPerWord - 1, SendNumArgsReg);
	if (usesOutOfLineLiteral(_anInstruction8)) {
		(_anInstruction8->dependent = locateLiteral(BytesPerWord - 1));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin SubR:R: */
	genoperandoperand(SubRR, SendNumArgsReg, ClassReg);
	/* end SubR:R: */
	/* begin Jump: */
	_jumpBytesDone = genoperand(Jump, ((sqInt) 0 ));
	/* end Jump: */
	jmpTarget(_jumpIsShorts, gLogicalShiftLeftCqR((shiftForWord()) - 1, ClassReg));
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction9 = genoperandoperand(AndCqR, 1, SendNumArgsReg);
	if (usesOutOfLineLiteral(_anInstruction9)) {
		(_anInstruction9->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin SubR:R: */
	genoperandoperand(SubRR, SendNumArgsReg, ClassReg);
	/* end SubR:R: */
	/* begin Jump: */
	_jumpShortsDone = genoperand(Jump, ((sqInt) 0 ));
	/* end Jump: */
	jmpTarget(_jumpIs64BitLongs, genoperandoperand(LogicalShiftRightCqR, 1, ClassReg));
	/* begin Jump: */
	_jump64BitLongsDone = genoperand(Jump, ((sqInt) 0 ));
	/* end Jump: */
	jmpTarget(_jumpHasFixedFields, gAndCqR(classIndexMask(), TempReg));
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, TempReg, SendNumArgsReg);
	/* end MoveR:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction10 = genoperandoperand(CmpCqR, ClassMethodContextCompactIndex, TempReg);
	if (usesOutOfLineLiteral(_anInstruction10)) {
		(_anInstruction10->dependent = locateLiteral(ClassMethodContextCompactIndex));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpZero: */
	_jumpIsContext2 = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	/* begin PushR: */
	genoperand(PushR, ClassReg);
	/* end PushR: */
	genGetClassObjectOfClassIndexintoscratchReg(SendNumArgsReg, ClassReg, TempReg);
	genLoadSlotsourceRegdestReg(InstanceSpecificationIndex, ClassReg, SendNumArgsReg);
	genConvertSmallIntegerToIntegerInReg(SendNumArgsReg);
	{
		/* begin PopR: */
		genoperand(PopR, ClassReg);
		/* end PopR: */
		/* begin AndCq:R: */
		_quickConstant = fixedFieldsOfClassFormatMask();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(AndCqR, _quickConstant, SendNumArgsReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_quickConstant));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end AndCq:R: */
		/* begin SubR:R: */
		genoperandoperand(SubRR, SendNumArgsReg, ClassReg);
		/* end SubR:R: */
	}
	jmpTarget(_jumpArrayDone, jmpTarget(_jump64BitLongsDone, jmpTarget(_jump32BitLongsDone, jmpTarget(_jumpShortsDone, jmpTarget(_jumpBytesDone, genoperandoperand(Label, (labelCounter += 1), bytecodePC))))));
	{
		_jumpNotIndexable = _jumpNotIndexable2;
		_jumpIsContext = _jumpIsContext2;
	}
	/* end genGetSizeOf:into:formatReg:scratchReg:abortJumpsInto: */
	genConvertIntegerToSmallIntegerInReg(ClassReg);
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, ClassReg, ReceiverResultReg);
	/* end MoveR:R: */
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpImm, jmpTarget(_jumpNotIndexable, jmpTarget(_jumpIsContext, genoperandoperand(Label, (labelCounter += 1), bytecodePC))));
	return CompletePrimitive;
}
/* CogObjectRepresentationForSpur>>#genPrimitiveStringCompareWith */
static sqInt
genPrimitiveStringCompareWith(void)
{
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction5;
	AbstractInstruction *_anInstruction6;
	AbstractInstruction *_anInstruction7;
	AbstractInstruction *_anInstruction8;
	AbstractInstruction *_anInstruction9;
	AbstractInstruction * _instr;
	AbstractInstruction *_jump;
	AbstractInstruction *_jumpAbove;
	AbstractInstruction *_jumpIncorrectFormat1;
	AbstractInstruction *_jumpIncorrectFormat2;
	AbstractInstruction *_jumpIncorrectFormat3;
	AbstractInstruction *_jumpIncorrectFormat4;
	AbstractInstruction *_jumpMidFailure;
	AbstractInstruction *_jumpSuccess;
	sqInt _minSizeReg;
	sqInt _quickConstant;
	sqInt _quickConstant2;
	sqInt _quickConstant3;
	sqInt _quickConstant4;
	sqInt _string1CharOrByteSizeReg;
	sqInt _string1Reg;
	sqInt _string2CharOrByteSizeReg;
	sqInt _string2Reg;

	_string1Reg = ReceiverResultReg;
	_string2Reg = Arg0Reg;
	_string1CharOrByteSizeReg = Arg1Reg;
	_string2CharOrByteSizeReg = ClassReg;
	_minSizeReg = SendNumArgsReg;
	/* begin genLoadArgAtDepth:into: */
	assert(0 < (numRegArgs()));
	/* end genLoadArgAtDepth:into: */
	genGetFormatOfinto(_string1Reg, TempReg);
	/* begin CmpCq:R: */
	_quickConstant = firstByteFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction3 = genoperandoperand(CmpCqR, _quickConstant, TempReg);
	if (usesOutOfLineLiteral(_anInstruction3)) {
		(_anInstruction3->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpLess: */
	_jumpIncorrectFormat1 = genConditionalBranchoperand(JumpLess, ((sqInt) 0 ));
	/* end JumpLess: */
	/* begin CmpCq:R: */
	_quickConstant2 = firstCompiledMethodFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction4 = genoperandoperand(CmpCqR, _quickConstant2, TempReg);
	if (usesOutOfLineLiteral(_anInstruction4)) {
		(_anInstruction4->dependent = locateLiteral(_quickConstant2));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_jumpIncorrectFormat2 = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	genGetNumSlotsOfinto(_string1Reg, _string1CharOrByteSizeReg);
	/* begin LogicalShiftLeftCq:R: */
	genoperandoperand(LogicalShiftLeftCqR, shiftForWord(), _string1CharOrByteSizeReg);
	/* end LogicalShiftLeftCq:R: */
	gAndCqRR(BytesPerWord - 1, TempReg, TempReg);
	/* begin SubR:R: */
	genoperandoperand(SubRR, TempReg, _string1CharOrByteSizeReg);
	/* end SubR:R: */
	genGetFormatOfinto(_string2Reg, TempReg);
	/* begin CmpCq:R: */
	_quickConstant3 = firstByteFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction5 = genoperandoperand(CmpCqR, _quickConstant3, TempReg);
	if (usesOutOfLineLiteral(_anInstruction5)) {
		(_anInstruction5->dependent = locateLiteral(_quickConstant3));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpLess: */
	_jumpIncorrectFormat3 = genConditionalBranchoperand(JumpLess, ((sqInt) 0 ));
	/* end JumpLess: */
	/* begin CmpCq:R: */
	_quickConstant4 = firstCompiledMethodFormat();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction6 = genoperandoperand(CmpCqR, _quickConstant4, TempReg);
	if (usesOutOfLineLiteral(_anInstruction6)) {
		(_anInstruction6->dependent = locateLiteral(_quickConstant4));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_jumpIncorrectFormat4 = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	genGetNumSlotsOfinto(_string2Reg, _string2CharOrByteSizeReg);
	/* begin LogicalShiftLeftCq:R: */
	genoperandoperand(LogicalShiftLeftCqR, shiftForWord(), _string2CharOrByteSizeReg);
	/* end LogicalShiftLeftCq:R: */
	gAndCqRR(BytesPerWord - 1, TempReg, TempReg);
	/* begin SubR:R: */
	genoperandoperand(SubRR, TempReg, _string2CharOrByteSizeReg);
	/* end SubR:R: */
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, _string1CharOrByteSizeReg, _string2CharOrByteSizeReg);
	/* end CmpR:R: */
	/* begin JumpBelow: */
	_jumpAbove = genConditionalBranchoperand(JumpBelow, ((sqInt) 0 ));
	/* end JumpBelow: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, _string1CharOrByteSizeReg, _minSizeReg);
	/* end MoveR:R: */
	/* begin Jump: */
	_jump = genoperand(Jump, ((sqInt) 0 ));
	/* end Jump: */
	jmpTarget(_jumpAbove, genoperandoperand(MoveRR, _string2CharOrByteSizeReg, _minSizeReg));
	jmpTarget(_jump, checkQuickConstantforInstruction(0, genoperandoperand(CmpCqR, 0, _minSizeReg)));
	/* begin JumpZero: */
	_jumpSuccess = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction7 = genoperandoperand(MoveCqR, BaseHeaderSize, TempReg);
	if (usesOutOfLineLiteral(_anInstruction7)) {
		(_anInstruction7->dependent = locateLiteral(BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction8 = genoperandoperand(AddCqR, BaseHeaderSize, _minSizeReg);
	if (usesOutOfLineLiteral(_anInstruction8)) {
		(_anInstruction8->dependent = locateLiteral(BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin MoveXbr:R:R: */
	_instr = genoperandoperandoperand(MoveXbrRR, TempReg, _string1Reg, _string1CharOrByteSizeReg);
	/* end MoveXbr:R:R: */
	/* begin MoveXbr:R:R: */
	genoperandoperandoperand(MoveXbrRR, TempReg, _string2Reg, _string2CharOrByteSizeReg);
	/* end MoveXbr:R:R: */
	/* begin SubR:R: */
	genoperandoperand(SubRR, _string2CharOrByteSizeReg, _string1CharOrByteSizeReg);
	/* end SubR:R: */
	/* begin JumpNonZero: */
	_jumpMidFailure = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction9 = genoperandoperand(AddCqR, 1, TempReg);
	if (usesOutOfLineLiteral(_anInstruction9)) {
		(_anInstruction9->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, TempReg, _minSizeReg);
	/* end CmpR:R: */
	/* begin JumpNonZero: */
	genConditionalBranchoperand(JumpNonZero, ((sqInt) _instr ));
	/* end JumpNonZero: */
	genGetNumBytesOfinto(_string1Reg, _string1CharOrByteSizeReg);
	genGetNumBytesOfinto(_string2Reg, _string2CharOrByteSizeReg);
	jmpTarget(_jumpSuccess, genoperandoperand(SubRR, _string2CharOrByteSizeReg, _string1CharOrByteSizeReg));
	jmpTarget(_jumpMidFailure, genoperandoperand(MoveRR, _string1CharOrByteSizeReg, ReceiverResultReg));
	genConvertIntegerToSmallIntegerInReg(ReceiverResultReg);
	if (methodOrBlockNumArgs <= 2) {
		/* begin RetN: */
		genoperand(RetN, 0);
		/* end RetN: */
	} else {
		{
			/* begin RetN: */
			genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
			/* end RetN: */
		}
	}
	jmpTarget(_jumpIncorrectFormat4, jmpTarget(_jumpIncorrectFormat3, jmpTarget(_jumpIncorrectFormat2, jmpTarget(_jumpIncorrectFormat1, genoperandoperand(Label, (labelCounter += 1), bytecodePC)))));
	return CompletePrimitive;
}
/*	replaceFrom: start to: stop with: replacement startingAt: repStart.  
	 
	The primitive in the JIT tries to deal with two pathological cases, copy 
	of arrays and byteStrings, 
	which often copies only a dozen of fields and where switching to the C 
	runtime cost a lot. 
	 
	Based on heuristics on the method class, I generate a quick array path 
	(typically for Array), 
	a quick byteString path (typically for ByteString, ByteArray and 
	LargeInteger) or no quick  
	path at all (Typically for Bitmap). 
	 
	The many tests to ensure that the primitive won't fail are not super 
	optimised (multiple reloading 
	or stack arguments in registers) but this is still good enough and worth 
	it since we're avoiding  
	the Smalltalk to C stack switch. The tight copying loops are optimised.  
	 
	It is possible to build a bigger version with the 2 different paths but I 
	(Clement) believe this  
	is too big machine code wise to be worth it. */
/* CogObjectRepresentationForSpur>>#genPrimitiveStringReplace */
static sqInt
genPrimitiveStringReplace(void)
{
	sqInt _adjust;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction10;
	AbstractInstruction *_anInstruction11;
	AbstractInstruction *_anInstruction12;
	AbstractInstruction *_anInstruction13;
	AbstractInstruction *_anInstruction14;
	AbstractInstruction *_anInstruction15;
	AbstractInstruction *_anInstruction16;
	AbstractInstruction *_anInstruction17;
	AbstractInstruction *_anInstruction18;
	AbstractInstruction *_anInstruction19;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction20;
	AbstractInstruction *_anInstruction21;
	AbstractInstruction *_anInstruction22;
	AbstractInstruction *_anInstruction23;
	AbstractInstruction *_anInstruction24;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction5;
	AbstractInstruction *_anInstruction6;
	AbstractInstruction *_anInstruction7;
	AbstractInstruction *_anInstruction8;
	AbstractInstruction *_anInstruction9;
	sqInt _arrayReg;
	AbstractInstruction * _inst;
	AbstractInstruction * _instr;
	AbstractInstruction *_jmpAlreadyRemembered;
	AbstractInstruction *_jmpDestYoung;
	AbstractInstruction *_jumpEmpty;
	AbstractInstruction *_jumpImm;
	AbstractInstruction *_jumpImmutable;
	AbstractInstruction *_jumpIncorrectFormat1;
	AbstractInstruction *_jumpIncorrectFormat2;
	AbstractInstruction *_jumpIncorrectFormat3;
	AbstractInstruction *_jumpIncorrectFormat4;
	AbstractInstruction *_jumpNotSmi1;
	AbstractInstruction *_jumpNotSmi2;
	AbstractInstruction *_jumpNotSmi3;
	AbstractInstruction *_jumpOutOfBounds1;
	AbstractInstruction *_jumpOutOfBounds2;
	AbstractInstruction *_jumpOutOfBounds3;
	AbstractInstruction *_jumpOutOfBounds4;
	sqInt _literal;
	sqInt _literal2;
	sqInt _offset;
	sqInt _offset10;
	sqInt _offset2;
	sqInt _offset3;
	sqInt _offset4;
	sqInt _offset5;
	sqInt _offset6;
	sqInt _offset7;
	sqInt _offset8;
	sqInt _offset9;
	sqInt _quickConstant;
	sqInt _quickConstant2;
	sqInt _quickConstant3;
	sqInt _quickConstant4;
	sqInt _quickConstant5;
	sqInt _quickConstant6;
	sqInt _replReg;
	sqInt _repStartReg;
	sqInt _result;
	sqInt _startReg;
	sqInt _stopReg;
	sqInt _wordConstant;

	_jmpAlreadyRemembered = ((AbstractInstruction *) 0 );
	_jumpImmutable = ((AbstractInstruction *) 0 );
	_jumpOutOfBounds3 = ((AbstractInstruction *) 0 );
	_jumpOutOfBounds4 = ((AbstractInstruction *) 0 );
	if (!((seemsToBeInstantiating(arrayFormat())) || (seemsToBeInstantiating(firstByteFormat())))) {
		return UnimplementedPrimitive;
	}
	_arrayReg = ReceiverResultReg;
	_startReg = Arg0Reg;
	_stopReg = Arg1Reg;
	_replReg = ClassReg;
	_repStartReg = SendNumArgsReg;
	/* begin genStackArgAt:into: */
	/* begin MoveMw:r:R: */
	_offset7 = 0 * BytesPerWord;
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction21 = genoperandoperandoperand(MoveMwrR, _offset7, SPReg, _repStartReg);
	if (usesOutOfLineLiteral(_anInstruction21)) {
		(_anInstruction21->dependent = locateLiteral(_offset7));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end MoveMw:r:R: */
	/* end genStackArgAt:into: */
	/* begin genStackArgAt:into: */
	/* begin MoveMw:r:R: */
	_offset8 = 1 * BytesPerWord;
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction22 = genoperandoperandoperand(MoveMwrR, _offset8, SPReg, _replReg);
	if (usesOutOfLineLiteral(_anInstruction22)) {
		(_anInstruction22->dependent = locateLiteral(_offset8));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end MoveMw:r:R: */
	/* end genStackArgAt:into: */
	/* begin genStackArgAt:into: */
	/* begin MoveMw:r:R: */
	_offset9 = 2 * BytesPerWord;
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction23 = genoperandoperandoperand(MoveMwrR, _offset9, SPReg, _stopReg);
	if (usesOutOfLineLiteral(_anInstruction23)) {
		(_anInstruction23->dependent = locateLiteral(_offset9));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end MoveMw:r:R: */
	/* end genStackArgAt:into: */
	/* begin genStackArgAt:into: */
	/* begin MoveMw:r:R: */
	_offset10 = 3 * BytesPerWord;
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction24 = genoperandoperandoperand(MoveMwrR, _offset10, SPReg, _startReg);
	if (usesOutOfLineLiteral(_anInstruction24)) {
		(_anInstruction24->dependent = locateLiteral(_offset10));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end MoveMw:r:R: */
	/* end genStackArgAt:into: */
	/* begin genJumpNotSmallInteger:scratchReg: */
	_jumpNotSmi1 = genJumpNotSmallInteger(_repStartReg);
	/* end genJumpNotSmallInteger:scratchReg: */
	/* begin genJumpNotSmallInteger:scratchReg: */
	_jumpNotSmi2 = genJumpNotSmallInteger(_stopReg);
	/* end genJumpNotSmallInteger:scratchReg: */
	/* begin genJumpNotSmallInteger:scratchReg: */
	_jumpNotSmi3 = genJumpNotSmallInteger(_startReg);
	/* end genJumpNotSmallInteger:scratchReg: */
	_jumpImm = genJumpImmediate(_replReg);
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, _startReg, _stopReg);
	/* end CmpR:R: */
	/* begin JumpLess: */
	_jumpEmpty = genConditionalBranchoperand(JumpLess, ((sqInt) 0 ));
	/* end JumpLess: */
	
#  if IMMUTABILITY
	{
		_jumpImmutable = genJumpImmutablescratchReg(ReceiverResultReg, TempReg);
	}
#  endif /* IMMUTABILITY */
	/* begin checkQuickConstant:forInstruction: */
	_literal = ((((usqInt) 0 ) << 1) | 1);
	_anInstruction13 = genoperandoperand(CmpCqR, ((((usqInt) 0 ) << 1) | 1), _startReg);
	if (usesOutOfLineLiteral(_anInstruction13)) {
		(_anInstruction13->dependent = locateLiteral(_literal));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpLessOrEqual: */
	_jumpOutOfBounds1 = genConditionalBranchoperand(JumpLessOrEqual, ((sqInt) 0 ));
	/* end JumpLessOrEqual: */
	/* begin checkQuickConstant:forInstruction: */
	_literal2 = ((((usqInt) 0 ) << 1) | 1);
	_anInstruction14 = genoperandoperand(CmpCqR, ((((usqInt) 0 ) << 1) | 1), _repStartReg);
	if (usesOutOfLineLiteral(_anInstruction14)) {
		(_anInstruction14->dependent = locateLiteral(_literal2));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpLessOrEqual: */
	_jumpOutOfBounds2 = genConditionalBranchoperand(JumpLessOrEqual, ((sqInt) 0 ));
	/* end JumpLessOrEqual: */
	if (seemsToBeInstantiating(arrayFormat())) {
		genGetFormatOfinto(_arrayReg, TempReg);
		genGetFormatOfinto(_replReg, _startReg);
		/* begin CmpCq:R: */
		_quickConstant = arrayFormat();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction3 = genoperandoperand(CmpCqR, _quickConstant, _startReg);
		if (usesOutOfLineLiteral(_anInstruction3)) {
			(_anInstruction3->dependent = locateLiteral(_quickConstant));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end CmpCq:R: */
		/* begin JumpNonZero: */
		_jumpIncorrectFormat1 = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
		/* end JumpNonZero: */
		/* begin CmpCq:R: */
		_quickConstant2 = arrayFormat();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction4 = genoperandoperand(CmpCqR, _quickConstant2, TempReg);
		if (usesOutOfLineLiteral(_anInstruction4)) {
			(_anInstruction4->dependent = locateLiteral(_quickConstant2));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end CmpCq:R: */
		/* begin JumpNonZero: */
		_jumpIncorrectFormat2 = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
		/* end JumpNonZero: */
		genGetNumSlotsOfinto(_arrayReg, TempReg);
		genConvertSmallIntegerToIntegerInReg(_stopReg);
		/* begin CmpR:R: */
		genoperandoperand(CmpRR, TempReg, _stopReg);
		/* end CmpR:R: */
		/* begin JumpGreater: */
		_jumpOutOfBounds3 = genConditionalBranchoperand(JumpGreater, ((sqInt) 0 ));
		/* end JumpGreater: */
		genGetNumSlotsOfinto(_replReg, TempReg);
		/* begin genStackArgAt:into: */
		/* begin MoveMw:r:R: */
		_offset = 3 * BytesPerWord;
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction15 = genoperandoperandoperand(MoveMwrR, _offset, SPReg, _startReg);
		if (usesOutOfLineLiteral(_anInstruction15)) {
			(_anInstruction15->dependent = locateLiteral(_offset));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveMw:r:R: */
		/* end genStackArgAt:into: */
		genConvertSmallIntegerToIntegerInReg(_startReg);
		genConvertSmallIntegerToIntegerInReg(_repStartReg);
		/* begin SubR:R: */
		genoperandoperand(SubRR, _startReg, _stopReg);
		/* end SubR:R: */
		/* begin AddR:R: */
		genoperandoperand(AddRR, _repStartReg, _stopReg);
		/* end AddR:R: */
		/* begin CmpR:R: */
		genoperandoperand(CmpRR, TempReg, _stopReg);
		/* end CmpR:R: */
		/* begin JumpGreater: */
		_jumpOutOfBounds4 = genConditionalBranchoperand(JumpGreater, ((sqInt) 0 ));
		/* end JumpGreater: */
		/* begin MoveCw:R: */
		_wordConstant = storeCheckBoundary();
		/* begin gen:literal:operand: */
		checkLiteralforInstruction(_wordConstant, genoperandoperand(MoveCwR, _wordConstant, TempReg));
		/* end gen:literal:operand: */
		/* end MoveCw:R: */
		/* begin CmpR:R: */
		genoperandoperand(CmpRR, TempReg, _arrayReg);
		/* end CmpR:R: */
		/* begin JumpBelow: */
		_jmpDestYoung = genConditionalBranchoperand(JumpBelow, ((sqInt) 0 ));
		/* end JumpBelow: */
		if (!CheckRememberedInTrampoline) {
			_jmpAlreadyRemembered = genCheckRememberedBitOfscratch(_arrayReg, TempReg);
		}
		/* begin saveAndRestoreLinkRegAround: */
		_inst = genoperand(PushR, LinkReg);
		{
			callStoreCheckTrampoline();
		}
		genoperand(PopR, LinkReg);
		/* end saveAndRestoreLinkRegAround: */
		jmpTarget(_jmpDestYoung, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
		if (!CheckRememberedInTrampoline) {
			jmpTarget(_jmpAlreadyRemembered, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
		}
		/* begin genStackArgAt:into: */
		/* begin MoveMw:r:R: */
		_offset2 = 2 * BytesPerWord;
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction16 = genoperandoperandoperand(MoveMwrR, _offset2, SPReg, _stopReg);
		if (usesOutOfLineLiteral(_anInstruction16)) {
			(_anInstruction16->dependent = locateLiteral(_offset2));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveMw:r:R: */
		/* end genStackArgAt:into: */
		genConvertSmallIntegerToIntegerInReg(_stopReg);
		/* begin SubR:R: */
		genoperandoperand(SubRR, _startReg, _repStartReg);
		/* end SubR:R: */
		/* begin LogicalShiftLeftCq:R: */
		genoperandoperand(LogicalShiftLeftCqR, shiftForWord(), _repStartReg);
		/* end LogicalShiftLeftCq:R: */
		/* begin AddR:R: */
		genoperandoperand(AddRR, _repStartReg, _replReg);
		/* end AddR:R: */
		_adjust = (((usqInt) BaseHeaderSize ) >> (shiftForWord())) - 1;
		if (_adjust != 0) {
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction = genoperandoperand(AddCqR, _adjust, _startReg);
			if (usesOutOfLineLiteral(_anInstruction)) {
				(_anInstruction->dependent = locateLiteral(_adjust));
			}
			/* end checkQuickConstant:forInstruction: */
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction2 = genoperandoperand(AddCqR, _adjust, _stopReg);
			if (usesOutOfLineLiteral(_anInstruction2)) {
				(_anInstruction2->dependent = locateLiteral(_adjust));
			}
			/* end checkQuickConstant:forInstruction: */
		}
		/* begin MoveXwr:R:R: */
		_instr = genoperandoperandoperand(MoveXwrRR, _startReg, _replReg, TempReg);
		/* end MoveXwr:R:R: */
		/* begin MoveR:Xwr:R: */
		genoperandoperandoperand(MoveRXwrR, TempReg, _startReg, _arrayReg);
		/* end MoveR:Xwr:R: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction5 = genoperandoperand(AddCqR, 1, _startReg);
		if (usesOutOfLineLiteral(_anInstruction5)) {
			(_anInstruction5->dependent = locateLiteral(1));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin CmpR:R: */
		genoperandoperand(CmpRR, _startReg, _stopReg);
		/* end CmpR:R: */
		/* begin JumpAboveOrEqual: */
		genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) _instr ));
		/* end JumpAboveOrEqual: */
		jmpTarget(_jumpEmpty, ((methodOrBlockNumArgs <= 2)
			 ? (/* begin RetN: */ genoperand(RetN, 0) /* end RetN: */)
			 : (/* begin RetN: */ genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord) /* end RetN: */)));
		jmpTarget(_jumpIncorrectFormat1, jmpTarget(_jumpIncorrectFormat2, genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
	}
	if (seemsToBeInstantiating(firstByteFormat())) {
		genGetFormatOfinto(_arrayReg, TempReg);
		genGetFormatOfinto(_replReg, _repStartReg);
		/* begin CmpCq:R: */
		_quickConstant3 = firstByteFormat();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction8 = genoperandoperand(CmpCqR, _quickConstant3, _repStartReg);
		if (usesOutOfLineLiteral(_anInstruction8)) {
			(_anInstruction8->dependent = locateLiteral(_quickConstant3));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end CmpCq:R: */
		/* begin JumpLess: */
		_jumpIncorrectFormat1 = genConditionalBranchoperand(JumpLess, ((sqInt) 0 ));
		/* end JumpLess: */
		/* begin CmpCq:R: */
		_quickConstant4 = firstCompiledMethodFormat();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction9 = genoperandoperand(CmpCqR, _quickConstant4, _repStartReg);
		if (usesOutOfLineLiteral(_anInstruction9)) {
			(_anInstruction9->dependent = locateLiteral(_quickConstant4));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end CmpCq:R: */
		/* begin JumpGreaterOrEqual: */
		_jumpIncorrectFormat2 = genConditionalBranchoperand(JumpGreaterOrEqual, ((sqInt) 0 ));
		/* end JumpGreaterOrEqual: */
		/* begin CmpCq:R: */
		_quickConstant5 = firstByteFormat();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction10 = genoperandoperand(CmpCqR, _quickConstant5, TempReg);
		if (usesOutOfLineLiteral(_anInstruction10)) {
			(_anInstruction10->dependent = locateLiteral(_quickConstant5));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end CmpCq:R: */
		/* begin JumpLess: */
		_jumpIncorrectFormat3 = genConditionalBranchoperand(JumpLess, ((sqInt) 0 ));
		/* end JumpLess: */
		/* begin CmpCq:R: */
		_quickConstant6 = firstCompiledMethodFormat();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction11 = genoperandoperand(CmpCqR, _quickConstant6, TempReg);
		if (usesOutOfLineLiteral(_anInstruction11)) {
			(_anInstruction11->dependent = locateLiteral(_quickConstant6));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end CmpCq:R: */
		/* begin JumpGreaterOrEqual: */
		_jumpIncorrectFormat4 = genConditionalBranchoperand(JumpGreaterOrEqual, ((sqInt) 0 ));
		/* end JumpGreaterOrEqual: */
		genGetNumSlotsOfinto(_arrayReg, _startReg);
		/* begin LogicalShiftLeftCq:R: */
		genoperandoperand(LogicalShiftLeftCqR, shiftForWord(), _startReg);
		/* end LogicalShiftLeftCq:R: */
		gAndCqRR(BytesPerWord - 1, TempReg, TempReg);
		/* begin SubR:R: */
		genoperandoperand(SubRR, TempReg, _startReg);
		/* end SubR:R: */
		genConvertSmallIntegerToIntegerInReg(_stopReg);
		/* begin CmpR:R: */
		genoperandoperand(CmpRR, _startReg, _stopReg);
		/* end CmpR:R: */
		/* begin JumpGreater: */
		_jumpOutOfBounds3 = genConditionalBranchoperand(JumpGreater, ((sqInt) 0 ));
		/* end JumpGreater: */
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, _repStartReg, TempReg);
		/* end MoveR:R: */
		/* begin genStackArgAt:into: */
		/* begin MoveMw:r:R: */
		_offset3 = 0 * BytesPerWord;
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction17 = genoperandoperandoperand(MoveMwrR, _offset3, SPReg, _repStartReg);
		if (usesOutOfLineLiteral(_anInstruction17)) {
			(_anInstruction17->dependent = locateLiteral(_offset3));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveMw:r:R: */
		/* end genStackArgAt:into: */
		/* begin genStackArgAt:into: */
		/* begin MoveMw:r:R: */
		_offset4 = 3 * BytesPerWord;
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction18 = genoperandoperandoperand(MoveMwrR, _offset4, SPReg, _startReg);
		if (usesOutOfLineLiteral(_anInstruction18)) {
			(_anInstruction18->dependent = locateLiteral(_offset4));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveMw:r:R: */
		/* end genStackArgAt:into: */
		genConvertSmallIntegerToIntegerInReg(_startReg);
		genConvertSmallIntegerToIntegerInReg(_repStartReg);
		/* begin SubR:R: */
		genoperandoperand(SubRR, _startReg, _stopReg);
		/* end SubR:R: */
		/* begin AddR:R: */
		genoperandoperand(AddRR, _repStartReg, _stopReg);
		/* end AddR:R: */
		genGetNumSlotsOfinto(_replReg, _startReg);
		/* begin LogicalShiftLeftCq:R: */
		genoperandoperand(LogicalShiftLeftCqR, shiftForWord(), _startReg);
		/* end LogicalShiftLeftCq:R: */
		gAndCqRR(BytesPerWord - 1, TempReg, TempReg);
		/* begin SubR:R: */
		genoperandoperand(SubRR, TempReg, _startReg);
		/* end SubR:R: */
		/* begin CmpR:R: */
		genoperandoperand(CmpRR, _startReg, _stopReg);
		/* end CmpR:R: */
		/* begin JumpGreater: */
		_jumpOutOfBounds4 = genConditionalBranchoperand(JumpGreater, ((sqInt) 0 ));
		/* end JumpGreater: */
		/* begin genStackArgAt:into: */
		/* begin MoveMw:r:R: */
		_offset5 = 3 * BytesPerWord;
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction19 = genoperandoperandoperand(MoveMwrR, _offset5, SPReg, _startReg);
		if (usesOutOfLineLiteral(_anInstruction19)) {
			(_anInstruction19->dependent = locateLiteral(_offset5));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveMw:r:R: */
		/* end genStackArgAt:into: */
		genConvertSmallIntegerToIntegerInReg(_startReg);
		/* begin genStackArgAt:into: */
		/* begin MoveMw:r:R: */
		_offset6 = 2 * BytesPerWord;
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction20 = genoperandoperandoperand(MoveMwrR, _offset6, SPReg, _stopReg);
		if (usesOutOfLineLiteral(_anInstruction20)) {
			(_anInstruction20->dependent = locateLiteral(_offset6));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveMw:r:R: */
		/* end genStackArgAt:into: */
		genConvertSmallIntegerToIntegerInReg(_stopReg);
		/* begin SubR:R: */
		genoperandoperand(SubRR, _startReg, _repStartReg);
		/* end SubR:R: */
		/* begin AddR:R: */
		genoperandoperand(AddRR, _repStartReg, _replReg);
		/* end AddR:R: */
		_adjust = BaseHeaderSize - 1;
		if (_adjust != 0) {
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction6 = genoperandoperand(AddCqR, _adjust, _startReg);
			if (usesOutOfLineLiteral(_anInstruction6)) {
				(_anInstruction6->dependent = locateLiteral(_adjust));
			}
			/* end checkQuickConstant:forInstruction: */
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction7 = genoperandoperand(AddCqR, _adjust, _stopReg);
			if (usesOutOfLineLiteral(_anInstruction7)) {
				(_anInstruction7->dependent = locateLiteral(_adjust));
			}
			/* end checkQuickConstant:forInstruction: */
		}
		/* begin MoveXbr:R:R: */
		_instr = genoperandoperandoperand(MoveXbrRR, _startReg, _replReg, TempReg);
		/* end MoveXbr:R:R: */
		/* begin MoveR:Xbr:R: */
		genoperandoperandoperand(MoveRXbrR, TempReg, _startReg, _arrayReg);
		/* end MoveR:Xbr:R: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction12 = genoperandoperand(AddCqR, 1, _startReg);
		if (usesOutOfLineLiteral(_anInstruction12)) {
			(_anInstruction12->dependent = locateLiteral(1));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin CmpR:R: */
		genoperandoperand(CmpRR, _startReg, _stopReg);
		/* end CmpR:R: */
		/* begin JumpAboveOrEqual: */
		genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) _instr ));
		/* end JumpAboveOrEqual: */
		jmpTarget(_jumpEmpty, ((methodOrBlockNumArgs <= 2)
			 ? (/* begin RetN: */ genoperand(RetN, 0) /* end RetN: */)
			 : (/* begin RetN: */ genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord) /* end RetN: */)));
		jmpTarget(_jumpIncorrectFormat4, jmpTarget(_jumpIncorrectFormat3, jmpTarget(_jumpIncorrectFormat2, jmpTarget(_jumpIncorrectFormat1, genoperandoperand(Label, (labelCounter += 1), bytecodePC)))));
	}
	if (((_result = compileInterpreterPrimitive())) < 0) {
		return _result;
	}
	jmpTarget(_jumpImm, jmpTarget(_jumpNotSmi1, jmpTarget(_jumpNotSmi2, jmpTarget(_jumpNotSmi3, genoperandoperand(Label, (labelCounter += 1), bytecodePC)))));
	jmpTarget(_jumpOutOfBounds1, jmpTarget(_jumpOutOfBounds2, jmpTarget(_jumpOutOfBounds3, jmpTarget(_jumpOutOfBounds4, ((AbstractInstruction *) ((_jumpImm->operands)[0]) )))));
	
#  if IMMUTABILITY
	{
		jmpTarget(_jumpImmutable, ((AbstractInstruction *) ((_jumpImm->operands)[0]) ));
	}
#  endif /* IMMUTABILITY */
	return CompletePrimitive;
}
/* CogObjectRepresentationForSpur>>#genSetSmallIntegerTagsIn: */
static sqInt NoDbgRegParms
genSetSmallIntegerTagsIn(sqInt _scratchReg)
{
	AbstractInstruction *_anInstruction;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(OrCqR, 1, _scratchReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	return 0;
}
/*	Create a trampoline to store-check the update of the receiver in a 
	closure's outerContext in compileBlockFrameBuild:. */
/* CogObjectRepresentationForSpur>>#genStoreCheckContextReceiverTrampoline */
static sqInt
genStoreCheckContextReceiverTrampoline(void)
{
	sqInt _startAddress;

	_startAddress = methodZoneBase();
	zeroOpcodeIndex();
	genStoreCheckReceiverRegvalueRegscratchReginFrame(ReceiverResultReg, Arg0Reg, TempReg, 0);
	/* begin RetN: */
	genoperand(RetN, 0);
	/* end RetN: */
	outputInstructionsForGeneratedRuntimeAt(_startAddress);
	recordGeneratedRunTimeaddress("ceStoreCheckContextReceiver", _startAddress);
	recordRunTimeObjectReferences();
	return _startAddress;
}
/*	Generate the code for a store check of valueReg into destReg. */
/* CogObjectRepresentationForSpur>>#genStoreCheckReceiverReg:valueReg:scratchReg:inFrame: */
static sqInt NoDbgRegParms
genStoreCheckReceiverRegvalueRegscratchReginFrame(sqInt _destReg, sqInt _valueReg, sqInt _scratchReg, sqInt _inFrame)
{
	AbstractInstruction *_abstractInstruction;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction5;
	AbstractInstruction *_exit;
	AbstractInstruction * _inst;
	AbstractInstruction * _isDestYoung2;
	AbstractInstruction * _isOldAndOld2;
	AbstractInstruction * _isPermAndPerm2;
	AbstractInstruction *_jmpAlreadyRemembered;
	AbstractInstruction *_jmpDestYoung;
	AbstractInstruction *_jmpImmediate;
	AbstractInstruction *_jmpIsMachineCode;
	AbstractInstruction *_jmpOldAndOld;
	AbstractInstruction *_jmpPermAndPerm;
	sqInt _quickConstant;
	sqInt _quickConstant2;
	sqInt _quickConstant3;
	sqInt _quickConstant4;
	sqInt _quickConstant5;
	AbstractInstruction *_recvIsPerm;
	AbstractInstruction * _valueIsMachineCode2;

	_jmpAlreadyRemembered = ((AbstractInstruction *) 0 );
	_jmpImmediate = genJumpImmediate(_valueReg);
	/* begin genCheckObjectPosition:scratchReg:valueReg:results: */
	/* begin CmpCq:R: */
	_quickConstant = getNewSpaceStart(getMemoryMap());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(CmpCqR, _quickConstant, _valueReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpBelow: */
	_valueIsMachineCode2 = genConditionalBranchoperand(JumpBelow, ((sqInt) 0 ));
	/* end JumpBelow: */
	/* begin CmpCq:R: */
	_quickConstant2 = fixedPermSpaceStart(getMemoryMap());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(CmpCqR, _quickConstant2, _destReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_quickConstant2));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_recvIsPerm = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	/* begin CmpCq:R: */
	_quickConstant3 = getOldSpaceStart(getMemoryMap());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction3 = genoperandoperand(CmpCqR, _quickConstant3, _destReg);
	if (usesOutOfLineLiteral(_anInstruction3)) {
		(_anInstruction3->dependent = locateLiteral(_quickConstant3));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpBelow: */
	_isDestYoung2 = genConditionalBranchoperand(JumpBelow, ((sqInt) 0 ));
	/* end JumpBelow: */
	/* begin CmpCq:R: */
	_quickConstant4 = getOldSpaceStart(getMemoryMap());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction4 = genoperandoperand(CmpCqR, _quickConstant4, _valueReg);
	if (usesOutOfLineLiteral(_anInstruction4)) {
		(_anInstruction4->dependent = locateLiteral(_quickConstant4));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_isOldAndOld2 = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	/* begin Jump: */
	_exit = genoperand(Jump, ((sqInt) 0 ));
	/* end Jump: */
	jmpTarget(_recvIsPerm, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	/* begin CmpCq:R: */
	_quickConstant5 = fixedPermSpaceStart(getMemoryMap());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction5 = genoperandoperand(CmpCqR, _quickConstant5, _valueReg);
	if (usesOutOfLineLiteral(_anInstruction5)) {
		(_anInstruction5->dependent = locateLiteral(_quickConstant5));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAbove: */
	_isPermAndPerm2 = genConditionalBranchoperand(JumpAbove, ((sqInt) 0 ));
	/* end JumpAbove: */
	jmpTarget(_exit, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	{
		_jmpDestYoung = _isDestYoung2;
		_jmpOldAndOld = _isOldAndOld2;
		_jmpIsMachineCode = _valueIsMachineCode2;
		_jmpPermAndPerm = _isPermAndPerm2;
	}
	/* end genCheckObjectPosition:scratchReg:valueReg:results: */
	if (!CheckRememberedInTrampoline) {
		_jmpAlreadyRemembered = genCheckRememberedBitOfscratch(_destReg, _scratchReg);
	}
	assert(_destReg == ReceiverResultReg);
	/* begin evaluateTrampolineCallBlock:protectLinkRegIfNot: */
	if (_inFrame) {
		{
			/* begin CallRT: */
			/* begin annotateCall: */
			_abstractInstruction = genoperand(Call, ceStoreCheckTrampoline);
			(_abstractInstruction->annotation = IsRelativeCall);
			/* end annotateCall: */
			/* end CallRT: */
		}
	} else {
		/* begin saveAndRestoreLinkRegAround: */
		_inst = genoperand(PushR, LinkReg);
		{
			{
				/* begin CallRT: */
				/* begin annotateCall: */
				_abstractInstruction = genoperand(Call, ceStoreCheckTrampoline);
				(_abstractInstruction->annotation = IsRelativeCall);
				/* end annotateCall: */
				/* end CallRT: */
			}
		}
		genoperand(PopR, LinkReg);
		/* end saveAndRestoreLinkRegAround: */
	}
	/* end evaluateTrampolineCallBlock:protectLinkRegIfNot: */
	jmpTarget(_jmpImmediate, jmpTarget(_jmpDestYoung, jmpTarget(_jmpIsMachineCode, jmpTarget(_jmpOldAndOld, jmpTarget(_jmpPermAndPerm, genoperandoperand(Label, (labelCounter += 1), bytecodePC))))));
	if (!CheckRememberedInTrampoline) {
		jmpTarget(_jmpAlreadyRemembered, ((AbstractInstruction *) ((_jmpOldAndOld->operands)[0]) ));
	}
	return 0;
}
/* CogObjectRepresentationForSpur>>#genStoreSourceReg:slotIndex:destReg:scratchReg:inFrame:needsStoreCheck: */
static sqInt NoDbgRegParms
genStoreSourceRegslotIndexdestRegscratchReginFrameneedsStoreCheck(sqInt _sourceReg, sqInt _index, sqInt _destReg, sqInt _scratchReg, sqInt _inFrame, sqInt _needsStoreCheck)
{
	AbstractInstruction *_abstractInstruction;
	AbstractInstruction *_anInstruction;

	/* begin genTraceStores */
	if (traceStores > 0) {
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, ClassReg, TempReg);
		/* end MoveR:R: */
		/* begin CallRT: */
		/* begin annotateCall: */
		_abstractInstruction = genoperand(Call, ceTraceStoreTrampoline);
		(_abstractInstruction->annotation = IsRelativeCall);
		/* end annotateCall: */
		/* end CallRT: */
	}
	/* end genTraceStores */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperandoperand(MoveRMwr, _sourceReg, (_index * BytesPerWord) + BaseHeaderSize, _destReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral((_index * BytesPerWord) + BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	if (_needsStoreCheck) {
		return genStoreCheckReceiverRegvalueRegscratchReginFrame(_destReg, _sourceReg, _scratchReg, _inFrame);
	}
	return 0;
}
/*	This method is used for unchecked stores in objects after their creation 
	(typically, inlined creation of Array, closures and some temp vectors).  
	Currently there is no need to do the immutability check here */
/* CogObjectRepresentationForSpur>>#genStoreSourceReg:slotIndex:intoNewObjectInDestReg: */
static sqInt NoDbgRegParms
genStoreSourceRegslotIndexintoNewObjectInDestReg(sqInt _sourceReg, sqInt _index, sqInt _destReg)
{
	AbstractInstruction *_anInstruction;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperandoperand(MoveRMwr, _sourceReg, (_index * BytesPerWord) + BaseHeaderSize, _destReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral((_index * BytesPerWord) + BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	return 0;
}
/*	Convention: 
	- RcvrResultReg holds the object mutated. 
	If immutability failure: 
	- TempReg holds the instance variable index mutated  
	if instVarIndex > numDedicatedStoreTrampoline 
	- ClassReg holds the value to store 
	Registers are not lived across this trampoline as the  
	immutability failure may need new stack frames. */
/* CogObjectRepresentationForSpur>>#genStoreTrampolineCalled:instVarIndex: */

#if IMMUTABILITY
static sqInt NoDbgRegParms
genStoreTrampolineCalledinstVarIndex(char *_trampolineName, sqInt _instVarIndex)
{
	AbstractInstruction *_jumpRC;
	AbstractInstruction *_jumpSC;

	zeroOpcodeIndex();
	_jumpSC = genJumpMutablescratchReg(ReceiverResultReg, SendNumArgsReg);
	compileTrampolineFornumArgsargargargargregsToSavepushLinkRegresultReg(ceCannotAssignTowithIndexvalueToAssign, 3, ReceiverResultReg, ((_instVarIndex < (NumStoreTrampolines - 1))
		 ? (/* begin trampolineArgConstant: */ assert(_instVarIndex >= 0), -2 - _instVarIndex /* end trampolineArgConstant: */)
		 : TempReg), ClassReg, null, 0, 1, NoReg);
	jmpTarget(_jumpSC, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	if (CheckRememberedInTrampoline) {
		{
			_jumpRC = genCheckRememberedBitOfscratch(ReceiverResultReg, SendNumArgsReg);
			assert(((_jumpRC->opcode)) == JumpNonZero);
			(_jumpRC->opcode = JumpZero);
			/* begin RetN: */
			genoperand(RetN, 0);
			/* end RetN: */
		}
		jmpTarget(_jumpRC, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	}
	return genTrampolineForcallednumArgsargargargargregsToSavepushLinkRegresultRegappendOpcodes(rememberObjInCorrectRememberedSet, _trampolineName, 1, ReceiverResultReg, null, null, null, 0, 1, NoReg, 1);
}
#endif /* IMMUTABILITY */
/*	Store check code is duplicated to use a single trampoline */
/* CogObjectRepresentationForSpur>>#genStoreWithImmutabilityAndStoreCheckSourceReg:slotIndex:destReg:scratchReg:needRestoreRcvr: */

#if IMMUTABILITY
static sqInt NoDbgRegParms
genStoreWithImmutabilityAndStoreCheckSourceRegslotIndexdestRegscratchRegneedRestoreRcvr(sqInt _sourceReg, sqInt _index, sqInt _destReg, sqInt _scratchReg, sqInt _needRestoreRcvr)
{
	AbstractInstruction *_abstractInstruction;
	AbstractInstruction *_abstractInstruction2;
	AbstractInstruction *_abstractInstruction3;
	AbstractInstruction *_abstractInstruction4;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction5;
	AbstractInstruction *_anInstruction6;
	AbstractInstruction *_anInstruction7;
	AbstractInstruction *_exit;
	AbstractInstruction *_immutableJump;
	AbstractInstruction * _isDestYoung2;
	AbstractInstruction * _isOldAndOld2;
	AbstractInstruction * _isPermAndPerm2;
	AbstractInstruction *_jmpAlreadyRemembered;
	AbstractInstruction *_jmpDestYoung;
	AbstractInstruction *_jmpImmediate;
	AbstractInstruction *_jmpIsMachineCode;
	AbstractInstruction *_jmpOldAndOld;
	AbstractInstruction *_jmpPermAndPerm;
	sqInt _quickConstant;
	sqInt _quickConstant2;
	sqInt _quickConstant3;
	sqInt _quickConstant4;
	sqInt _quickConstant5;
	AbstractInstruction *_recvIsPerm;
	AbstractInstruction * _valueIsMachineCode2;

	_jmpAlreadyRemembered = ((AbstractInstruction *) 0 );
	_immutableJump = genJumpImmutablescratchReg(_destReg, _scratchReg);
	/* begin genTraceStores */
	if (traceStores > 0) {
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, ClassReg, TempReg);
		/* end MoveR:R: */
		/* begin CallRT: */
		/* begin annotateCall: */
		_abstractInstruction = genoperand(Call, ceTraceStoreTrampoline);
		(_abstractInstruction->annotation = IsRelativeCall);
		/* end annotateCall: */
		/* end CallRT: */
	}
	/* end genTraceStores */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperandoperand(MoveRMwr, _sourceReg, (_index * BytesPerWord) + BaseHeaderSize, _destReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral((_index * BytesPerWord) + BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	_jmpImmediate = genJumpImmediate(_sourceReg);
	/* begin genCheckObjectPosition:scratchReg:valueReg:results: */
	/* begin CmpCq:R: */
	_quickConstant = getNewSpaceStart(getMemoryMap());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction6 = genoperandoperand(CmpCqR, _quickConstant, _sourceReg);
	if (usesOutOfLineLiteral(_anInstruction6)) {
		(_anInstruction6->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpBelow: */
	_valueIsMachineCode2 = genConditionalBranchoperand(JumpBelow, ((sqInt) 0 ));
	/* end JumpBelow: */
	/* begin CmpCq:R: */
	_quickConstant2 = fixedPermSpaceStart(getMemoryMap());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(CmpCqR, _quickConstant2, _destReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_quickConstant2));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_recvIsPerm = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	/* begin CmpCq:R: */
	_quickConstant3 = getOldSpaceStart(getMemoryMap());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction3 = genoperandoperand(CmpCqR, _quickConstant3, _destReg);
	if (usesOutOfLineLiteral(_anInstruction3)) {
		(_anInstruction3->dependent = locateLiteral(_quickConstant3));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpBelow: */
	_isDestYoung2 = genConditionalBranchoperand(JumpBelow, ((sqInt) 0 ));
	/* end JumpBelow: */
	/* begin CmpCq:R: */
	_quickConstant4 = getOldSpaceStart(getMemoryMap());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction4 = genoperandoperand(CmpCqR, _quickConstant4, _sourceReg);
	if (usesOutOfLineLiteral(_anInstruction4)) {
		(_anInstruction4->dependent = locateLiteral(_quickConstant4));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAboveOrEqual: */
	_isOldAndOld2 = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
	/* end JumpAboveOrEqual: */
	/* begin Jump: */
	_exit = genoperand(Jump, ((sqInt) 0 ));
	/* end Jump: */
	jmpTarget(_recvIsPerm, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	/* begin CmpCq:R: */
	_quickConstant5 = fixedPermSpaceStart(getMemoryMap());
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction5 = genoperandoperand(CmpCqR, _quickConstant5, _sourceReg);
	if (usesOutOfLineLiteral(_anInstruction5)) {
		(_anInstruction5->dependent = locateLiteral(_quickConstant5));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAbove: */
	_isPermAndPerm2 = genConditionalBranchoperand(JumpAbove, ((sqInt) 0 ));
	/* end JumpAbove: */
	jmpTarget(_exit, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	{
		_jmpDestYoung = _isDestYoung2;
		_jmpOldAndOld = _isOldAndOld2;
		_jmpIsMachineCode = _valueIsMachineCode2;
		_jmpPermAndPerm = _isPermAndPerm2;
	}
	/* end genCheckObjectPosition:scratchReg:valueReg:results: */
	if (!CheckRememberedInTrampoline) {
		_jmpAlreadyRemembered = genCheckRememberedBitOfscratch(_destReg, _scratchReg);
	}
	jmpTarget(_immutableJump, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	/* begin genStoreTrampolineCall: */
	assert(IMMUTABILITY);
	if (_index >= (NumStoreTrampolines - 1)) {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction7 = genoperandoperand(MoveCqR, _index, TempReg);
		if (usesOutOfLineLiteral(_anInstruction7)) {
			(_anInstruction7->dependent = locateLiteral(_index));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin CallRT: */
		/* begin annotateCall: */
		_abstractInstruction4 = genoperand(Call, ceStoreTrampolines[NumStoreTrampolines - 1]);
		(_abstractInstruction4->annotation = IsRelativeCall);
		/* end annotateCall: */
		/* end CallRT: */
	} else {
		/* begin CallRT: */
		/* begin annotateCall: */
		_abstractInstruction2 = genoperand(Call, ceStoreTrampolines[_index]);
		(_abstractInstruction2->annotation = IsRelativeCall);
		/* end annotateCall: */
		/* end CallRT: */
	}
	/* begin annotateBytecode: */
	_abstractInstruction3 = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
	(_abstractInstruction3->annotation = HasBytecodePC);
	/* end annotateBytecode: */
	/* end genStoreTrampolineCall: */
	/* begin voidReceiverOptStatus */
	((simSelf())->liveRegister = NoReg);
	/* end voidReceiverOptStatus */
	if (_needRestoreRcvr) {
		/* begin putSelfInReceiverResultReg */
		copyToReg(simSelf(), ReceiverResultReg);
		/* end putSelfInReceiverResultReg */
	}
	jmpTarget(_jmpImmediate, jmpTarget(_jmpDestYoung, jmpTarget(_jmpOldAndOld, jmpTarget(_jmpIsMachineCode, jmpTarget(_jmpPermAndPerm, genoperandoperand(Label, (labelCounter += 1), bytecodePC))))));
	if (!CheckRememberedInTrampoline) {
		jmpTarget(_jmpAlreadyRemembered, ((AbstractInstruction *) ((_jmpOldAndOld->operands)[0]) ));
	}
	return 0;
}
#endif /* IMMUTABILITY */
/*	Gen an immutability check with no store check (e.g. assigning an immediate 
	literal) imm check has its own trampoline */
/* CogObjectRepresentationForSpur>>#genStoreWithImmutabilityButNoStoreCheckSourceReg:slotIndex:destReg:scratchReg:needRestoreRcvr: */

#if IMMUTABILITY
static sqInt NoDbgRegParms
genStoreWithImmutabilityButNoStoreCheckSourceRegslotIndexdestRegscratchRegneedRestoreRcvr(sqInt _sourceReg, sqInt _index, sqInt _destReg, sqInt _scratchReg, sqInt _needRestoreRcvr)
{
	AbstractInstruction *_abstractInstruction;
	AbstractInstruction *_abstractInstruction2;
	AbstractInstruction *_abstractInstruction3;
	AbstractInstruction *_abstractInstruction4;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_immutabilityFailure;
	AbstractInstruction *_mutableJump;

	_mutableJump = genJumpMutablescratchReg(_destReg, _scratchReg);
	/* begin genStoreTrampolineCall: */
	assert(IMMUTABILITY);
	if (_index >= (NumStoreTrampolines - 1)) {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(MoveCqR, _index, TempReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_index));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin CallRT: */
		/* begin annotateCall: */
		_abstractInstruction = genoperand(Call, ceStoreTrampolines[NumStoreTrampolines - 1]);
		(_abstractInstruction->annotation = IsRelativeCall);
		/* end annotateCall: */
		/* end CallRT: */
	} else {
		/* begin CallRT: */
		/* begin annotateCall: */
		_abstractInstruction2 = genoperand(Call, ceStoreTrampolines[_index]);
		(_abstractInstruction2->annotation = IsRelativeCall);
		/* end annotateCall: */
		/* end CallRT: */
	}
	/* begin annotateBytecode: */
	_abstractInstruction3 = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
	(_abstractInstruction3->annotation = HasBytecodePC);
	/* end annotateBytecode: */
	/* end genStoreTrampolineCall: */
	/* begin voidReceiverOptStatus */
	((simSelf())->liveRegister = NoReg);
	/* end voidReceiverOptStatus */
	if (_needRestoreRcvr) {
		/* begin putSelfInReceiverResultReg */
		copyToReg(simSelf(), ReceiverResultReg);
		/* end putSelfInReceiverResultReg */
	}
	/* begin Jump: */
	_immutabilityFailure = genoperand(Jump, ((sqInt) 0 ));
	/* end Jump: */
	jmpTarget(_mutableJump, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	/* begin genTraceStores */
	if (traceStores > 0) {
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, ClassReg, TempReg);
		/* end MoveR:R: */
		/* begin CallRT: */
		/* begin annotateCall: */
		_abstractInstruction4 = genoperand(Call, ceTraceStoreTrampoline);
		(_abstractInstruction4->annotation = IsRelativeCall);
		/* end annotateCall: */
		/* end CallRT: */
	}
	/* end genTraceStores */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperandoperand(MoveRMwr, _sourceReg, (_index * BytesPerWord) + BaseHeaderSize, _destReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral((_index * BytesPerWord) + BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	jmpTarget(_immutabilityFailure, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	return 0;
}
#endif /* IMMUTABILITY */
/*	We know there is a frame as immutability check requires a frameneedRestoreRcvr has to be true to keep RcvrResultReg live with the 
	receiver in it across the trampolineTrampoline convention... */
/* CogObjectRepresentationForSpur>>#genStoreWithImmutabilityCheckSourceReg:slotIndex:destReg:scratchReg:needsStoreCheck:needRestoreRcvr: */

#if IMMUTABILITY
static sqInt NoDbgRegParms
genStoreWithImmutabilityCheckSourceRegslotIndexdestRegscratchRegneedsStoreCheckneedRestoreRcvr(sqInt _sourceReg, sqInt _index, sqInt _destReg, sqInt _scratchReg, sqInt _needsStoreCheck, sqInt _needRestoreRcvr)
{
	assert(_destReg == ReceiverResultReg);
	assert(_scratchReg == TempReg);
	assert(_sourceReg == ClassReg);
	if (_needsStoreCheck) {
		genStoreWithImmutabilityAndStoreCheckSourceRegslotIndexdestRegscratchRegneedRestoreRcvr(_sourceReg, _index, _destReg, _scratchReg, _needRestoreRcvr);
	}
 else {
		genStoreWithImmutabilityButNoStoreCheckSourceRegslotIndexdestRegscratchRegneedRestoreRcvr(_sourceReg, _index, _destReg, _scratchReg, _needRestoreRcvr);
	}
	return 0;
}
#endif /* IMMUTABILITY */
/* CogObjectRepresentationForSpur>>#jumpNotCharacterUnsignedValueInRegister: */
static AbstractInstruction * NoDbgRegParms
jumpNotCharacterUnsignedValueInRegister(sqInt _reg)
{
	AbstractInstruction *_anInstruction;
	sqInt _quickConstant;

	/* begin CmpCq:R: */
	_quickConstant = (1U << (numCharacterBits())) - 1;
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(CmpCqR, _quickConstant, _reg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpAbove: */
	return genConditionalBranchoperand(JumpAbove, ((sqInt) 0 ));
	/* end JumpAbove: */
}
/*	Mark and trace a literal in a machine code instruction preceding address 
	in cogMethodOrNil. 
	Answer if code was modified. */
/* CogObjectRepresentationForSpur>>#markAndTraceLiteral:in:atpc: */
static sqInt NoDbgRegParms
markAndTraceLiteralinatpc(sqInt _literal, CogMethod *_cogMethodOrNil, usqInt _address)
{
	sqInt _objOop;

	if (!(couldBeObject(_literal))) {
		return 0;
	}
	assert(addressCouldBeObj(_literal));
	if (!(isForwarded(_literal))) {
		markAndTrace(_literal);
		return 0;
	}
	_objOop = followForwarded(_literal);
	/* begin storeLiteral:atAnnotatedAddress: */
	/* begin storeLiteral:atAnnotatedAddress:using: */
	unsignedLongAtput(_address, _objOop);
	/* end storeLiteral:atAnnotatedAddress:using: */
	/* end storeLiteral:atAnnotatedAddress: */
	markAndTraceUpdatedLiteralin(_objOop, _cogMethodOrNil);
	return 1;
}
/*	Mark and trace a literal in a sqInt variable of cogMethod. */
/* CogObjectRepresentationForSpur>>#markAndTraceLiteral:in:at: */
static void NoDbgRegParms
markAndTraceLiteralinat(sqInt _literal, CogMethod *_cogMethod, sqInt *_address)
{
	sqInt _objOop;

	if (!(couldBeObject(_literal))) {
		return;
	}
	assert(addressCouldBeObj(_literal));
	if (!(isForwarded(_literal))) {
		markAndTrace(_literal);
		return;
	}
	_objOop = followForwarded(_literal);
	_address[0] = _objOop;
	markAndTraceUpdatedLiteralin(_objOop, _cogMethod);
}
/*	Common code to mark a literal in cogMethod and add 
	the cogMethod to youngReferrers if the literal is young. */
/* CogObjectRepresentationForSpur>>#markAndTraceUpdatedLiteral:in: */
static void NoDbgRegParms
markAndTraceUpdatedLiteralin(sqInt _objOop, CogMethod *_cogMethodOrNil)
{
	if (isNonImmediate(_objOop)) {
		if ((_cogMethodOrNil != null) && (isYoungObject(getMemoryMap(), _objOop))) {
			ensureInYoungReferrers(_cogMethodOrNil);
		}
		markAndTrace(_objOop);
	}
}
/*	If primIndex has an accessorDepth and fails, or it is external and fails 
	with PrimErrNoMemory, 
	call ceCheckAndMaybeRetryPrimitive if so If ceCheck.... answers true, 
	retry the primitive. */
/* CogObjectRepresentationForSpur>>#maybeCompileRetryOnPrimitiveFail: */
static sqInt NoDbgRegParms
maybeCompileRetryOnPrimitiveFail(sqInt _primIndex)
{
	sqInt _address;
	sqInt _address2;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_jmp;

	if ((accessorDepthForPrimitiveIndex(_primIndex)) >= 0) {
		{
			/* begin MoveAw:R: */
			_address = primFailCodeAddress();
			/* begin gen:literal:operand: */
			checkLiteralforInstruction(_address, genoperandoperand(MoveAwR, _address, TempReg));
			/* end gen:literal:operand: */
			/* end MoveAw:R: */
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction = genoperandoperand(CmpCqR, 0, TempReg);
			if (usesOutOfLineLiteral(_anInstruction)) {
				(_anInstruction->dependent = locateLiteral(0));
			}
			/* end checkQuickConstant:forInstruction: */
			/* begin JumpZero: */
			_jmp = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
			/* end JumpZero: */
		}
	} else {
		if ((primNumberExternalCall()) != _primIndex) {
			return 0;
		}
		{
			/* begin MoveAw:R: */
			_address2 = primFailCodeAddress();
			/* begin gen:literal:operand: */
			checkLiteralforInstruction(_address2, genoperandoperand(MoveAwR, _address2, TempReg));
			/* end gen:literal:operand: */
			/* end MoveAw:R: */
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction2 = genoperandoperand(CmpCqR, PrimErrNoMemory, TempReg);
			if (usesOutOfLineLiteral(_anInstruction2)) {
				(_anInstruction2->dependent = locateLiteral(PrimErrNoMemory));
			}
			/* end checkQuickConstant:forInstruction: */
			/* begin JumpNonZero: */
			_jmp = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
			/* end JumpNonZero: */
		}
	}
	compileCallFornumArgsargargargargresultRegregsToSave(ceCheckAndMaybeRetryPrimitive, 1, trampolineArgConstant(_primIndex), null, null, null, TempReg, 0);
	jmpTarget(_jmp, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	return 0;
}
/*	Generate a shift of the register containing the class tag in a method 
	cache probe. 
	c.f. SpurMemoryManager>>methodCacheHashOf:with: */
/* CogObjectRepresentationForSpur>>#maybeShiftClassTagRegisterForMethodCacheProbe: */
static sqInt NoDbgRegParms
maybeShiftClassTagRegisterForMethodCacheProbe(sqInt _classTagReg)
{
	/* begin LogicalShiftLeftCq:R: */
	genoperandoperand(LogicalShiftLeftCqR, 2, _classTagReg);
	/* end LogicalShiftLeftCq:R: */
	return 0;
}
/* CogObjectRepresentationForSpur>>#numCharacterBits */
static sqInt
numCharacterBits(void)
{
	return 30;
}
/*	Define how many register arguments a StackToRegisterMappingCogit can 
	and should use with the receiver. The value must be 0, 1 or 2. Note that a 
	SimpleStackBasedCogit always has 0 register args (although the receiver is 
	passed in a register). The Spur object representation is simple enough 
	that implementing at:put: is straight-forward and hence 2 register args 
	are worth 
	while. The method must be inlined in CoInterpreter, and dead code 
	eliminated so that the register-popping enilopmarts such as 
	enterRegisterArgCogMethod:- at:receiver: do not have to be implemented in 
	SimpleStackBasedCogit.  */
/* CogObjectRepresentationForSpur>>#numRegArgs */
sqInt
numRegArgs(void)
{
	return 2;
}
/* CogObjectRepresentationForSpur>>#remapObject: */
static sqInt NoDbgRegParms
remapObject(sqInt _objOop)
{
	assert(addressCouldBeObj(_objOop));
	return ((shouldRemapObj(_objOop))
		 ? remapObj(_objOop)
		 : _objOop);
}
/* CogObjectRepresentationForSpur>>#remapOop: */
static sqInt NoDbgRegParms
remapOop(sqInt _objOop)
{
	return ((shouldRemapOop(_objOop))
		 ? remapObj(_objOop)
		 : _objOop);
}
/*	Objects in newSpace or oldSpace except nil, true, false & 
	classTableRootObj need to be annotated. */
/* CogObjectRepresentationForSpur>>#shouldAnnotateObjectReference: */
static sqInt NoDbgRegParms
shouldAnnotateObjectReference(sqInt _anOop)
{
	return (isNonImmediate(_anOop)) && ((oopisGreaterThan(_anOop, classTableRootObj())) || (oopisLessThan(_anOop, nilObject())));
}
/* CogObjectRepresentationForSpur>>#slotOffsetOfInstVarIndex: */
static sqInt NoDbgRegParms
slotOffsetOfInstVarIndex(sqInt _index)
{
	return (_index * BytesPerWord) + BaseHeaderSize;
}
/* CogObjectRepresentationForSpur>>#valueOfAssociation: */
static sqInt NoDbgRegParms
valueOfAssociation(sqInt _associationOop)
{
	sqInt _association;

	_association = _associationOop;
	if (isForwarded(_association)) {
		_association = followForwarded(_association);
	}
	return fetchPointerofObject(ValueIndex, _association);
}
/* CogOutOfLineLiteralsARMCompiler>>#cmpC32RTempByteSize */
static sqInt NoDbgRegParms
cmpC32RTempByteSize(AbstractInstruction * self_in_cmpC32RTempByteSize)
{
	return 8;
}
/*	Generate an out-of-line literal. Copy the value and any annotation from 
	the stand-in in the literals manager. */
/* CogOutOfLineLiteralsARMCompiler>>#concretizeLiteral */
static AbstractInstruction * NoDbgRegParms
concretizeLiteral(AbstractInstruction * self_in_concretizeLiteral)
{
	usqInt _literal;
	AbstractInstruction * _literalAsInstruction;

	_literalAsInstruction = ((AbstractInstruction *) ((self_in_concretizeLiteral->operands)[0]) );
	_literal = (((addressIsInInstructions(_literalAsInstruction)) || (_literalAsInstruction == (methodLabel())))
		 ? (_literalAsInstruction->address)
		 : ((usqInt) _literalAsInstruction ));
	assert((((self_in_concretizeLiteral->dependent)) != null) && (((((self_in_concretizeLiteral->dependent))->opcode)) == Literal));
	if ((((self_in_concretizeLiteral->dependent))->annotation)) {
		assert(((self_in_concretizeLiteral->annotation)) == null);
		(self_in_concretizeLiteral->annotation) = (((self_in_concretizeLiteral->dependent))->annotation);
	}
	if ((((self_in_concretizeLiteral->dependent))->address)) {
		assert(((((self_in_concretizeLiteral->dependent))->address)) == ((self_in_concretizeLiteral->address)));
	}
	(((self_in_concretizeLiteral->dependent))->address = (self_in_concretizeLiteral->address));
	/* begin machineCodeAt:put: */
	(self_in_concretizeLiteral->machineCode)[0 / 4] = _literal;
	/* end machineCodeAt:put: */
	(self_in_concretizeLiteral->machineCodeSize) = 4;
	return self_in_concretizeLiteral;
}
/* CogOutOfLineLiteralsARMCompiler>>#concretizeMovePatcheableC32R */
static usqInt NoDbgRegParms
concretizeMovePatcheableC32R(AbstractInstruction * self_in_concretizeMovePatcheableC32R)
{
	/* begin concretizeMoveCwR */
	return ((self_in_concretizeMovePatcheableC32R->machineCodeSize) = loadCwInto(self_in_concretizeMovePatcheableC32R, (self_in_concretizeMovePatcheableC32R->operands)[1]));
	/* end concretizeMoveCwR */
}
/* CogOutOfLineLiteralsARMCompiler>>#inlineCacheTagAt: */
static usqInt NoDbgRegParms
inlineCacheTagAt(AbstractInstruction * self_in_inlineCacheTagAt, sqInt _callSiteReturnAddress)
{
	return (uint32AtPointer(pcRelativeAddressAt(self_in_inlineCacheTagAt, ((usqInt) (_callSiteReturnAddress - 8) )))) & ((1U << (classIndexFieldWidth())) - 1);
}
/*	Answer if the receiver is a pc-dependent instruction. With out-of-line 
	literals any instruction 
	that refers to a literal depends on the address of the literal, so add 
	them in addition to the jumps. */
/* CogOutOfLineLiteralsARMCompiler>>#isPCDependent */
static sqInt NoDbgRegParms
isPCDependent(AbstractInstruction * self_in_isPCDependent)
{
	return (isJump(self_in_isPCDependent)) || ((((self_in_isPCDependent->opcode)) == AlignmentNops) || ((((self_in_isPCDependent->opcode)) != Literal) && ((((self_in_isPCDependent->dependent)) != null) && (((((self_in_isPCDependent->dependent))->opcode)) == Literal))));
}
/*	Return the literal referenced by the instruction immediately preceding 
	followingAddress.  */
/* CogOutOfLineLiteralsARMCompiler>>#literalBeforeFollowingAddress: */
static sqInt NoDbgRegParms
literalBeforeFollowingAddress(AbstractInstruction * self_in_literalBeforeFollowingAddress, sqInt _followingAddress)
{
	return uint32AtPointer(pcRelativeAddressAt(self_in_literalBeforeFollowingAddress, ((instructionIsLDR(self_in_literalBeforeFollowingAddress, uint32AtPointer(_followingAddress - 4)))
		 ? (/* begin instructionAddressBefore: */ _followingAddress - 4 /* end instructionAddressBefore: */)
		 : (/* begin instructionAddressBefore: */ (_followingAddress - 4) - 4 /* end instructionAddressBefore: */))));
}
/*	Answer the size of a literal load instruction (which does not include the 
	size of the literal). 
	With out-of-line literals this is always a single LDR instruction that 
	refers to the literal. */
/* CogOutOfLineLiteralsARMCompiler>>#literalLoadInstructionBytes */
static sqInt NoDbgRegParms
literalLoadInstructionBytes(AbstractInstruction * self_in_literalLoadInstructionBytes)
{
	return 4;
}
/*	Answer the byte size of a MoveCwR opcode's corresponding machine code. On 
	ARM this is a single instruction pc-relative register load - unless we 
	have made a mistake and not turned on the out of line literals manager */
/* CogOutOfLineLiteralsARMCompiler>>#loadLiteralByteSize */
static sqInt NoDbgRegParms
loadLiteralByteSize(AbstractInstruction * self_in_loadLiteralByteSize)
{
	return 4;
}
/*	The maximum offset in a LDR is (1<<12)-1, or (1<<10)-1 instructions. 
	Be conservative. The issue is that one abstract instruction can emit 
	multiple hardware instructions so we assume a 2 to 1 worst case of 
	hardware instructions to abstract opcodes.. */
/* CogOutOfLineLiteralsARMCompiler>>#outOfLineLiteralOpcodeLimit */
static sqInt NoDbgRegParms
outOfLineLiteralOpcodeLimit(AbstractInstruction * self_in_outOfLineLiteralOpcodeLimit)
{
	return (1U << ((12 - 2) - 1)) - 1;
}
/*	Extract the address of the ldr rX, [pc, #NNN] instruction at address */
/* CogOutOfLineLiteralsARMCompiler>>#pcRelativeAddressAt: */
static sqInt NoDbgRegParms
pcRelativeAddressAt(AbstractInstruction * self_in_pcRelativeAddressAt, sqInt _instrAddress)
{
	sqInt _inst;
	sqInt _offset;

	_inst = uint32AtPointer(_instrAddress);
	assert((_inst & 4284416000U) == (ldrrnplusimm(self_in_pcRelativeAddressAt, 0, PC, 0, 0)));
	_offset = _inst & 0xFFF;
	return (_instrAddress + 8) + (((_inst & (1U << 23))
		 ? _offset
		 : -_offset));
}
/*	If possible we generate the method address using pc-relative addressing. 
	If so we don't need to relocate it in code. So check if pc-relative code 
	was generated, and if not, adjust a load literal. There are two cases, a 
	push or a register load. If a push, then there is a register load, but in 
	the instruction 
	before. */
/* CogOutOfLineLiteralsARMCompiler>>#relocateMethodReferenceBeforeAddress:by: */
static AbstractInstruction * NoDbgRegParms
relocateMethodReferenceBeforeAddressby(AbstractInstruction * self_in_relocateMethodReferenceBeforeAddressby, sqInt _pc, sqInt _delta)
{
	sqInt _litAddr;
	sqInt _pcPrecedingLoad;
	sqInt _reference;

	_pcPrecedingLoad = ((instructionIsPush(self_in_relocateMethodReferenceBeforeAddressby, uint32AtPointer(_pc - 4)))
		 ? _pc - 4
		 : _pc);
	if (!(isPCRelativeValueLoad(self_in_relocateMethodReferenceBeforeAddressby, uint32AtPointer(_pcPrecedingLoad - 4)))) {
		_litAddr = pcRelativeAddressAt(self_in_relocateMethodReferenceBeforeAddressby, _pcPrecedingLoad);
		_reference = longAt(_litAddr);
		longAtput(_litAddr, _reference + _delta);
	}
	return self_in_relocateMethodReferenceBeforeAddressby;
}
/*	Rewrite a CallFull or JumpFull instruction to transfer to a different 
	target. This variant is used to rewrite cached primitive calls where we 
	load the target address into ip 
	and use the 'bx ip' or 'blx ip' instruction for the actual jump or call. 
	Answer the extent 
	of the code change which is used to compute the range of the icache to 
	flush.  */
/* CogOutOfLineLiteralsARMCompiler>>#rewriteFullTransferAt:target:expectedInstruction: */
static sqInt NoDbgRegParms
rewriteFullTransferAttargetexpectedInstruction(AbstractInstruction * self_in_rewriteFullTransferAttargetexpectedInstruction, usqInt _callSiteReturnAddress, usqInt _callTargetAddress, sqInt _expectedInstruction)
{
	assert((instructionBeforeAddress(self_in_rewriteFullTransferAttargetexpectedInstruction, _callSiteReturnAddress)) == _expectedInstruction);
	uint32AtPointerput(pcRelativeAddressAt(self_in_rewriteFullTransferAttargetexpectedInstruction, _callSiteReturnAddress - 8), _callTargetAddress);
	return 0;
}
/*	Rewrite an inline cache to call a different target for a new tag. This 
	variant is used 
	to link unlinked sends in ceSend:to:numArgs: et al. Answer the extent of 
	the code 
	change which is used to compute the range of the icache to flush. */
/* CogOutOfLineLiteralsARMCompiler>>#rewriteInlineCacheAt:tag:target: */
static sqInt NoDbgRegParms
rewriteInlineCacheAttagtarget(AbstractInstruction * self_in_rewriteInlineCacheAttagtarget, usqInt _callSiteReturnAddress, sqInt _cacheTag, usqInt _callTargetAddress)
{
	sqInt _call;
	usqInt _callDistance;

	if (!(_callTargetAddress >= (minCallAddress()))) {
		error("linking callsite to invalid address");
	}
	_callDistance = ((usqInt) (_callTargetAddress - ((_callSiteReturnAddress + 8) - 4)) );
	assert(isInImmediateJumpRange(self_in_rewriteInlineCacheAttagtarget, _callDistance));
	_call = bl(self_in_rewriteInlineCacheAttagtarget, _callDistance);
	{
		unsignedLongAtput(_callSiteReturnAddress - 4, _call);
		unsignedLongAtput(pcRelativeAddressAt(self_in_rewriteInlineCacheAttagtarget, _callSiteReturnAddress - 8), _cacheTag);
	}
	assert((inlineCacheTagAt(self_in_rewriteInlineCacheAttagtarget, _callSiteReturnAddress)) == (((int) _cacheTag ) & ((1U << (classIndexFieldWidth())) - 1)));
	return 4;
}
/*	Size a jump and set its address. The target may be another instruction 
	or an absolute address. On entry the address inst var holds our virtual 
	address. On exit address is set to eventualAbsoluteAddress, which is 
	where this instruction will be output. The span of a jump to a following 
	instruction is therefore between that instruction's address and this 
	instruction's address ((which are both still their virtual addresses), but 
	the span of a jump to a preceding instruction or to an absolute address is 
	between that instruction's address (which by now is its eventual absolute 
	address) or absolute address and eventualAbsoluteAddress. 
	 
	ARM is simple; the 26-bit call/jump range means no short jumps. This 
	routine only has to determine the targets of jumps, not determine sizes. 
	 
	This version also deals with out-of-line literals. If this is the real 
	literal, update the stand-in in literalsManager with the address (because 
	instructions referring to the literal are referring to the stand-in). If 
	this is annotated with 
	IsObjectReference transfer the annotation to the stand-in, whence it will 
	be transferred to the real literal, simplifying update of literals. */
/* CogOutOfLineLiteralsARMCompiler>>#sizePCDependentInstructionAt: */
static usqInt NoDbgRegParms
sizePCDependentInstructionAt(AbstractInstruction * self_in_sizePCDependentInstructionAt, sqInt _eventualAbsoluteAddress)
{
	usqInt _alignment;

	if (((self_in_sizePCDependentInstructionAt->opcode)) == AlignmentNops) {
		(self_in_sizePCDependentInstructionAt->address) = _eventualAbsoluteAddress;
		_alignment = (self_in_sizePCDependentInstructionAt->operands)[0];
		return ((self_in_sizePCDependentInstructionAt->machineCodeSize) = ((_eventualAbsoluteAddress + (_alignment - 1)) & -_alignment) - _eventualAbsoluteAddress);
	}
	assert((isJump(self_in_sizePCDependentInstructionAt)) || ((((self_in_sizePCDependentInstructionAt->opcode)) == Call) || ((((self_in_sizePCDependentInstructionAt->opcode)) == CallFull) || ((((self_in_sizePCDependentInstructionAt->dependent)) != null) && (((((self_in_sizePCDependentInstructionAt->dependent))->opcode)) == Literal)))));
	if (isJump(self_in_sizePCDependentInstructionAt)) {
		resolveJumpTarget(self_in_sizePCDependentInstructionAt);
	}
	(self_in_sizePCDependentInstructionAt->address) = _eventualAbsoluteAddress;
	if ((((self_in_sizePCDependentInstructionAt->dependent)) != null) && (((((self_in_sizePCDependentInstructionAt->dependent))->opcode)) == Literal)) {
		if (((self_in_sizePCDependentInstructionAt->opcode)) == Literal) {
			(((self_in_sizePCDependentInstructionAt->dependent))->address = (self_in_sizePCDependentInstructionAt->address));
		}
		if (((self_in_sizePCDependentInstructionAt->annotation)) == (getIsObjectReference())) {
			(((self_in_sizePCDependentInstructionAt->dependent))->annotation = (self_in_sizePCDependentInstructionAt->annotation));
			(self_in_sizePCDependentInstructionAt->annotation) = null;
		}
	}
	return ((self_in_sizePCDependentInstructionAt->machineCodeSize) = (self_in_sizePCDependentInstructionAt->maxSize));
}
/*	Rewrite the literal in the instruction immediately preceding 
	followingAddress.  */
/* CogOutOfLineLiteralsARMCompiler>>#storeLiteral:beforeFollowingAddress: */
static AbstractInstruction * NoDbgRegParms
storeLiteralbeforeFollowingAddress(AbstractInstruction * self_in_storeLiteralbeforeFollowingAddress, sqInt _literal, sqInt _followingAddress)
{
	unsignedLongAtput(pcRelativeAddressAt(self_in_storeLiteralbeforeFollowingAddress, ((instructionIsLDR(self_in_storeLiteralbeforeFollowingAddress, uint32AtPointer(_followingAddress - 4)))
		 ? (/* begin instructionAddressBefore: */ _followingAddress - 4 /* end instructionAddressBefore: */)
		 : (/* begin instructionAddressBefore: */ (_followingAddress - 4) - 4 /* end instructionAddressBefore: */))), _literal);
	return self_in_storeLiteralbeforeFollowingAddress;
}
/*	Answer if the receiver uses an out-of-line literal. Needs only 
	to work for the opcodes created with gen:literal:operand: et al. */
/* CogOutOfLineLiteralsARMCompiler>>#usesOutOfLineLiteral */
static sqInt NoDbgRegParms
usesOutOfLineLiteral(AbstractInstruction * self_in_usesOutOfLineLiteral)
{
	sqInt _constant;
	sqInt _constant2;
	sqInt _constant3;
	sqInt _constant4;
	sqInt _constant5;
	sqInt _constant6;
	sqInt _i;
	sqInt _i2;
	sqInt _i3;
	sqInt _i4;
	sqInt _value;
	unsigned int _value2;
	unsigned int _value3;

	switch ((self_in_usesOutOfLineLiteral->opcode)) {
		case CallFull:
		case JumpFull:
		case AddCwR:
		case AndCwR:
		case CmpCwR:
		case OrCwR:
		case SubCwR:
		case XorCwR:
		case MovePatcheableC32R:
		{
			return 1;
		}
		case AddCqR:
		case CmpCqR:
		case SubCqR:
		{
			/* begin rotateable8bitSignedImmediate:ifTrue:ifFalse: */
			_constant = (self_in_usesOutOfLineLiteral->operands)[0];
			_value = _constant;
			while (1) {
				if ((_value & 0xFF) == _value) {
					return 0;
				}
				for (_i = 2; _i <= 30; _i += 2) {
					if ((_value & (((0xFFU << _i) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i)))) == _value) {
						return 0;
					}
				}
				if (!((_value == _constant) && (_constant != 0))) 
					break;
				_value = -_constant;
			}
			return 1;
			/* end rotateable8bitSignedImmediate:ifTrue:ifFalse: */
		}
		case AndCqR:
		case AndCqRR:
		{
			/* begin rotateable8bitBitwiseImmediate:ifTrue:ifFalse: */
			_constant2 = (self_in_usesOutOfLineLiteral->operands)[0];
			_value2 = _constant2;
			while (1) {
				if ((_value2 & 0xFF) == _value2) {
					return 0;
				}
				for (_i2 = 2; _i2 <= 30; _i2 += 2) {
					if ((_value2 & (((0xFFU << _i2) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i2)))) == _value2) {
						return 0;
					}
				}
				if (!(_value2 == _constant2)) 
					break;
				_value2 = ((_constant2 < 0)
					 ? -1 - _constant2
					 : ((unsigned int) (~_constant2) ));
			}
			return (1U << (highBit((self_in_usesOutOfLineLiteral->operands)[0]))) != (((self_in_usesOutOfLineLiteral->operands)[0]) + 1);
			/* end rotateable8bitBitwiseImmediate:ifTrue:ifFalse: */
		}
		case OrCqR:
		case TstCqR:
		case LoadEffectiveAddressMwrR:
		case MoveCqR:
		case MoveM16rR:
		case PushCq:
		{
			/* begin rotateable8bitImmediate:ifTrue:ifFalse: */
			_constant3 = (self_in_usesOutOfLineLiteral->operands)[0];
			if ((_constant3 & 0xFF) == _constant3) {
				return 0;
			}
			for (_i3 = 2; _i3 <= 30; _i3 += 2) {
				if ((_constant3 & (((0xFFU << _i3) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i3)))) == _constant3) {
					return 0;
				}
			}
			return 1;
			/* end rotateable8bitImmediate:ifTrue:ifFalse: */
		}
		case XorCqR:
		{
			/* begin rotateable8bitBitwiseImmediate:ifTrue:ifFalse: */
			_constant4 = (self_in_usesOutOfLineLiteral->operands)[0];
			_value3 = _constant4;
			while (1) {
				if ((_value3 & 0xFF) == _value3) {
					return 0;
				}
				for (_i4 = 2; _i4 <= 30; _i4 += 2) {
					if ((_value3 & (((0xFFU << _i4) & 0xFFFFFFFFU) | (((usqInt) 0xFF ) >> (32 - _i4)))) == _value3) {
						return 0;
					}
				}
				if (!(_value3 == _constant4)) 
					break;
				_value3 = ((_constant4 < 0)
					 ? -1 - _constant4
					 : ((unsigned int) (~_constant4) ));
			}
			return 1;
			/* end rotateable8bitBitwiseImmediate:ifTrue:ifFalse: */
		}
		case MoveCwR:
		case PushCw:
		{
			return !(((addressIsInInstructions(((AbstractInstruction *) ((self_in_usesOutOfLineLiteral->operands)[0]) ))) || (((AbstractInstruction *) ((self_in_usesOutOfLineLiteral->operands)[0]) ) == (methodLabel()))) || ((((usqInt) ((self_in_usesOutOfLineLiteral->operands)[0]) ) >= ((methodLabel->address))) && (((usqInt) ((self_in_usesOutOfLineLiteral->operands)[0]) ) < (youngReferrers()))));
		}
		case MoveAwR:
		case MoveAbR:
		case PrefetchAw:
		{
			return (((((self_in_usesOutOfLineLiteral->operands)[0]) != null) && ((((self_in_usesOutOfLineLiteral->operands)[0]) >= (varBaseAddress())) && ((((self_in_usesOutOfLineLiteral->operands)[0]) - (varBaseAddress())) < (1U << 12))))
				 ? 0
				 : 1);
		}
		case MoveRAw:
		case MoveRAb:
		{
			return (((((self_in_usesOutOfLineLiteral->operands)[1]) != null) && ((((self_in_usesOutOfLineLiteral->operands)[1]) >= (varBaseAddress())) && ((((self_in_usesOutOfLineLiteral->operands)[1]) - (varBaseAddress())) < (1U << 12))))
				 ? 0
				 : 1);
		}
		case MoveRMwr:
		case MoveRdM64r:
		case MoveRMbr:
		case MoveRM16r:
		{
			/* begin is12BitValue:ifTrue:ifFalse: */
			_constant5 = (self_in_usesOutOfLineLiteral->operands)[1];
			if ((SQABS(_constant5)) <= 0xFFF) {
				{
					return 0;
				}
			} else {
				return 1;
			}
			/* end is12BitValue:ifTrue:ifFalse: */
		}
		case MoveMbrR:
		case MoveM64rRd:
		case MoveMwrR:
		{
			/* begin is12BitValue:ifTrue:ifFalse: */
			_constant6 = (self_in_usesOutOfLineLiteral->operands)[0];
			if ((SQABS(_constant6)) <= 0xFFF) {
				{
					return 0;
				}
			} else {
				return 1;
			}
			/* end is12BitValue:ifTrue:ifFalse: */
		}
		default:
		{
			assert(0);
		}
	}
	return 0;
}
/*	Copy the value of the current entry to the register argument. 
	Do not touch the stack */
/* CogSimStackEntry>>#copyToReg: */
static SimStackEntry * NoDbgRegParms
copyToReg(SimStackEntry * self_in_copyToReg, sqInt _reg)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	sqInt _literal;
	sqInt _quickConstant;
	sqInt _reg1;

	switch ((self_in_copyToReg->type)) {
		case SSBaseOffset:
		case SSSpill:
		{
			/* begin checkQuickConstant:forInstruction: */
			_literal = (self_in_copyToReg->offset);
			_anInstruction = genoperandoperandoperand(MoveMwrR, (self_in_copyToReg->offset), (self_in_copyToReg->registerr), _reg);
			if (usesOutOfLineLiteral(_anInstruction)) {
				(_anInstruction->dependent = locateLiteral(_literal));
			}
			/* end checkQuickConstant:forInstruction: */
		}
		break;
		case SSConstant:
		{
			if (shouldAnnotateObjectReference((self_in_copyToReg->constant))) {
				annotateobjRef(gMoveCwR((self_in_copyToReg->constant), _reg), (self_in_copyToReg->constant));
			} else {
				/* begin MoveCq:R: */
				_quickConstant = (self_in_copyToReg->constant);
				/* begin checkQuickConstant:forInstruction: */
				_anInstruction2 = genoperandoperand(MoveCqR, _quickConstant, _reg);
				if (usesOutOfLineLiteral(_anInstruction2)) {
					(_anInstruction2->dependent = locateLiteral(_quickConstant));
				}
				/* end checkQuickConstant:forInstruction: */
				/* end MoveCq:R: */
			}
		}
		break;
		case SSRegister:
		{
			if (_reg == ((self_in_copyToReg->registerr))) {
				/* begin Label */
				genoperandoperand(Label, (labelCounter += 1), bytecodePC);
				/* end Label */
			} else {
				/* begin MoveR:R: */
				_reg1 = (self_in_copyToReg->registerr);
				genoperandoperand(MoveRR, _reg1, _reg);
				/* end MoveR:R: */
			}
		}
		break;
		default:
		error("Case not found and no otherwise clause");
	}
	return self_in_copyToReg;
}
/* CogSimStackEntry>>#ensureSpilledAt:from: */
static SimStackEntry * NoDbgRegParms
ensureSpilledAtfrom(SimStackEntry * self_in_ensureSpilledAtfrom, sqInt _baseOffset, sqInt _baseRegister)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_inst;
	sqInt _literal;
	sqInt _reg;
	sqInt _wordConstant;

	if ((self_in_ensureSpilledAtfrom->spilled)) {
		if (((self_in_ensureSpilledAtfrom->type)) == SSSpill) {
			assert(((((self_in_ensureSpilledAtfrom->offset)) == _baseOffset) && (((self_in_ensureSpilledAtfrom->registerr)) == _baseRegister)) || (violatesEnsureSpilledSpillAssert()));
			return self_in_ensureSpilledAtfrom;
		}
	}
	assert(((self_in_ensureSpilledAtfrom->type)) != SSSpill);
	traceSpill(self_in_ensureSpilledAtfrom);
	if (((self_in_ensureSpilledAtfrom->type)) == SSConstant) {
		if (shouldAnnotateObjectReference((self_in_ensureSpilledAtfrom->constant))) {
			_inst = annotateobjRef(gPushCw((self_in_ensureSpilledAtfrom->constant)), (self_in_ensureSpilledAtfrom->constant));
		} else {
			/* begin PushCq: */
			_wordConstant = (self_in_ensureSpilledAtfrom->constant);
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction = genoperand(PushCq, _wordConstant);
			if (usesOutOfLineLiteral(_anInstruction)) {
				(_anInstruction->dependent = locateLiteral(_wordConstant));
			}
			_inst = _anInstruction;
			/* end checkQuickConstant:forInstruction: */
			/* end PushCq: */
		}
	} else {
		if (((self_in_ensureSpilledAtfrom->type)) == SSBaseOffset) {
			/* begin checkQuickConstant:forInstruction: */
			_literal = (self_in_ensureSpilledAtfrom->offset);
			_anInstruction2 = genoperandoperandoperand(MoveMwrR, (self_in_ensureSpilledAtfrom->offset), (self_in_ensureSpilledAtfrom->registerr), TempReg);
			if (usesOutOfLineLiteral(_anInstruction2)) {
				(_anInstruction2->dependent = locateLiteral(_literal));
			}
			/* end checkQuickConstant:forInstruction: */
			/* begin PushR: */
			_inst = genoperand(PushR, TempReg);
			/* end PushR: */
		} else {
			assert(((self_in_ensureSpilledAtfrom->type)) == SSRegister);
			/* begin PushR: */
			_reg = (self_in_ensureSpilledAtfrom->registerr);
			_inst = genoperand(PushR, _reg);
			/* end PushR: */
		}
		(self_in_ensureSpilledAtfrom->type) = SSSpill;
		(self_in_ensureSpilledAtfrom->offset) = _baseOffset;
		(self_in_ensureSpilledAtfrom->registerr) = _baseRegister;
	}
	(self_in_ensureSpilledAtfrom->spilled) = 1;
	return self_in_ensureSpilledAtfrom;
}
/* CogSimStackEntry>>#isSameEntryAs: */
static sqInt NoDbgRegParms
isSameEntryAs(SimStackEntry * self_in_isSameEntryAs, CogSimStackEntry *_ssEntry)
{
	return (((self_in_isSameEntryAs->type)) == ((_ssEntry->type))) && ((((((self_in_isSameEntryAs->type)) == SSBaseOffset) || (((self_in_isSameEntryAs->type)) == SSSpill)) && ((((self_in_isSameEntryAs->offset)) == ((_ssEntry->offset))) && (((self_in_isSameEntryAs->registerr)) == ((_ssEntry->registerr))))) || (((((self_in_isSameEntryAs->type)) == SSRegister) && (((self_in_isSameEntryAs->registerr)) == ((_ssEntry->registerr)))) || ((((self_in_isSameEntryAs->type)) == SSConstant) && (((self_in_isSameEntryAs->constant)) == ((_ssEntry->constant))))));
}
/* CogSimStackEntry>>#moveToVectorReg: */
static SimStackEntry * NoDbgRegParms
moveToVectorReg(SimStackEntry * self_in_moveToVectorReg, sqInt _reg)
{
	assert(((self_in_moveToVectorReg->type)) == SSVectorRegister);
	if ((self_in_moveToVectorReg->spilled)) {
		/* begin notYetImplemented */
		/* begin notYetImplemented: */
		{
			logError("Not Yet Implemented!");
			abort();
		}
		/* end notYetImplemented: */
		/* end notYetImplemented */
	} else {
		switch ((self_in_moveToVectorReg->type)) {
			case SSVectorRegister:
			{
				if (_reg != ((self_in_moveToVectorReg->registerr))) {
					/* begin notYetImplemented */
					/* begin notYetImplemented: */
					{
						logError("Not Yet Implemented!");
						abort();
					}
					/* end notYetImplemented: */
					/* end notYetImplemented */
				} else {
					/* begin Label */
					genoperandoperand(Label, (labelCounter += 1), bytecodePC);
					/* end Label */
				}
			}
			break;
			default:
			error("Case not found and no otherwise clause");
		}
	}
	return self_in_moveToVectorReg;
}
/*	Answer a bit mask for the receiver's register, if any. */
/* CogSimStackEntry>>#registerMask */
static sqInt NoDbgRegParms
registerMask(SimStackEntry * self_in_registerMask)
{
	sqInt _reg;

	return (((((self_in_registerMask->type)) == SSBaseOffset) || ((((self_in_registerMask->type)) == SSRegister) || (((self_in_registerMask->type)) == SSVectorRegister)))
		 ? (/* begin registerMaskFor: */ (_reg = (self_in_registerMask->registerr)), 1U << _reg /* end registerMaskFor: */)
		 : 0);
}
/* CogSimStackEntry>>#registerMaskOrNone */
static sqInt NoDbgRegParms
registerMaskOrNone(SimStackEntry * self_in_registerMaskOrNone)
{
	sqInt _reg;

	return (((((self_in_registerMaskOrNone->type)) == SSRegister) || (((self_in_registerMaskOrNone->type)) == SSVectorRegister))
		 ? (/* begin registerMaskFor: */ (_reg = (self_in_registerMaskOrNone->registerr)), 1U << _reg /* end registerMaskFor: */)
		 : 0);
}
/* CogSimStackEntry>>#registerOrNone */
static signed char NoDbgRegParms
registerOrNone(SimStackEntry * self_in_registerOrNone)
{
	return (((((self_in_registerOrNone->type)) == SSRegister) || (((self_in_registerOrNone->type)) == SSVectorRegister))
		 ? (self_in_registerOrNone->registerr)
		 : NoReg);
}
/* CogSSBytecodeFixup>>#isMergeFixup */
static sqInt NoDbgRegParms
isMergeFixup(BytecodeFixup * self_in_isMergeFixup)
{
	return ((usqInt) ((self_in_isMergeFixup->targetInstruction)) ) == NeedsMergeFixupFlag;
}
/*	Allocate an unsharable Literal instruction for the literal and answer it. */
/* OutOfLineLiteralsManager>>#allocateLiteral: */
static AbstractInstruction * NoDbgRegParms
allocateLiteral(sqInt _aLiteral)
{
	AbstractInstruction *_existingInst;
	sqInt _i;
	sqInt _iLimit;
	sqInt _initialNumLiterals;
	AbstractInstruction *_litInst;
	AbstractInstruction *_newInst;
	AbstractInstruction *_newLiterals;

	if (nextLiteralIndex >= literalsSize) {
		/* begin allocateLiterals: */
		_initialNumLiterals = literalsSize + 8;
		if (_initialNumLiterals > literalsSize) {
			_newLiterals = calloc(_initialNumLiterals, sizeof(CogAbstractInstruction));
			if (literals) {
				for (_i = 0; _i < nextLiteralIndex; _i += 1) {
					_existingInst = literalInstructionAt(_i);
					_newInst = &(_newLiterals[_i]);
					cloneLiteralFrom(_newInst, _existingInst);
					assert(((_existingInst->dependent)) == null);
					(_existingInst->dependent = _newInst);
				}
				for (_i = 0, _iLimit = opcodeIndex - 1; _i <= _iLimit; _i += 1) {
					_existingInst = abstractInstructionAt(_i);
					if ((((_existingInst->dependent)) != null) && (((((_existingInst->dependent))->opcode)) == Literal)) {
						(_existingInst->dependent = (((_existingInst->dependent))->dependent));
					}
				}
			}
			free(literals);
			literals = _newLiterals;
			literalsSize = _initialNumLiterals;
		}
		/* end allocateLiterals: */
	}
	_litInst = literalInstructionAt(nextLiteralIndex);
	initializeUniqueLiteral(_litInst, _aLiteral);
	nextLiteralIndex += 1;
	if (firstOpcodeIndex > opcodeIndex) {
		firstOpcodeIndex = opcodeIndex - 1;
	}
	return _litInst;
}
/* OutOfLineLiteralsManager>>#checkLiteral:forInstruction: */
static AbstractInstruction * NoDbgRegParms
checkLiteralforInstruction(sqInt _literal, AbstractInstruction *_anInstruction)
{
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(_literal));
	}
	return _anInstruction;
}
/* OutOfLineLiteralsManager>>#checkQuickConstant:forInstruction: */
static AbstractInstruction * NoDbgRegParms
checkQuickConstantforInstruction(sqInt _literal, AbstractInstruction *_anInstruction)
{
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(_literal));
	}
	return _anInstruction;
}
/*	Output all pending literal instructions, making the originals dependents 
	of the generated ones 
	so that a later pass will copy the address of each generated literl inst 
	to its original in literals, 
	and hence allow the instruction using the literal to compute the correct 
	address..  */
/* OutOfLineLiteralsManager>>#dumpLiterals: */
static sqInt NoDbgRegParms
dumpLiterals(sqInt _generateBranchAround)
{
	sqInt _alignment;
	sqInt _i;
	sqInt _index;
	AbstractInstruction *_jump;
	AbstractInstruction *_litInst;

	_jump = ((AbstractInstruction *) 0 );
	if (_generateBranchAround) {
		/* begin Jump: */
		_jump = genoperand(Jump, ((sqInt) 0 ));
		/* end Jump: */
	}
	/* begin AlignmentNops: */
	_alignment = BytesPerWord;
	genoperand(AlignmentNops, _alignment);
	/* end AlignmentNops: */
	for (_i = lastDumpedLiteralIndex; _i < nextLiteralIndex; _i += 1) {
		_litInst = literalInstructionAt(_i);
		((genoperand(Literal, (_litInst->operands)[0]))->dependent = _litInst);
		/* begin setLiteralOpcodeIndex: */
		_index = opcodeIndex;
		assert(((_litInst->opcode)) == Literal);
		(_litInst->operands)[2] = _index;
		/* end setLiteralOpcodeIndex: */
	}
	if (_generateBranchAround) {
		jmpTarget(_jump, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	}
	/* begin getOpcodeIndex */
	firstOpcodeIndex = opcodeIndex;
	/* end getOpcodeIndex */
	lastDumpedLiteralIndex = nextLiteralIndex;
	return 0;
}
/*	return the offset need from the cPICEndSize in order to point to just 
	after the last instruction - here that means bytesPerOop * list size */
/* OutOfLineLiteralsManager>>#endSizeOffset */
static sqInt
endSizeOffset(void)
{
	return nextLiteralIndex * BytesPerOop;
}
/*	A literal is in range if its opcode index is within 
	outOfLineLiteralOpcodeLimit, or if its index has yet to be assigned. */
/* OutOfLineLiteralsManager>>#literalInstructionInRange: */
static sqInt NoDbgRegParms
literalInstructionInRange(AbstractInstruction *_litInst)
{
	sqInt _opcodeIdx;

	/* begin literalOpcodeIndex */
	assert(((_litInst->opcode)) == Literal);
	_opcodeIdx = ((sqInt) ((_litInst->operands)[2]) );
	/* end literalOpcodeIndex */
	return (((sqInt) _opcodeIdx ) < 0) || ((assert((getOpcodeIndex()) >= _opcodeIdx), (opcodeIndex - _opcodeIdx) < (outOfLineLiteralOpcodeLimit(backEnd()))));
}
/*	Search for a Literal instruction that is in-range and answer it. Otherwise 
	allocate a new sharable Literal instruction for the literal and answer it. */
/* OutOfLineLiteralsManager>>#locateLiteral: */
static AbstractInstruction * NoDbgRegParms
locateLiteral(sqInt _aLiteral)
{
	AbstractInstruction *_existingInst;
	sqInt _i;
	sqInt _i2;
	sqInt _iLimit;
	sqInt _initialNumLiterals;
	AbstractInstruction *_litInst;
	AbstractInstruction *_newInst;
	AbstractInstruction *_newLiterals;

	for (_i = 0; _i < nextLiteralIndex; _i += 1) {
		_litInst = literalInstructionAt(_i);
		if ((((_litInst->operands)[0]) == _aLiteral) && (((assert(((_litInst->opcode)) == Literal), (_litInst->operands)[1])) && (literalInstructionInRange(_litInst)))) {
			return _litInst;
		}
	}
	if (nextLiteralIndex >= literalsSize) {
		/* begin allocateLiterals: */
		_initialNumLiterals = literalsSize + 8;
		if (_initialNumLiterals > literalsSize) {
			_newLiterals = calloc(_initialNumLiterals, sizeof(CogAbstractInstruction));
			if (literals) {
				for (_i2 = 0; _i2 < nextLiteralIndex; _i2 += 1) {
					_existingInst = literalInstructionAt(_i2);
					_newInst = &(_newLiterals[_i2]);
					cloneLiteralFrom(_newInst, _existingInst);
					assert(((_existingInst->dependent)) == null);
					(_existingInst->dependent = _newInst);
				}
				for (_i2 = 0, _iLimit = opcodeIndex - 1; _i2 <= _iLimit; _i2 += 1) {
					_existingInst = abstractInstructionAt(_i2);
					if ((((_existingInst->dependent)) != null) && (((((_existingInst->dependent))->opcode)) == Literal)) {
						(_existingInst->dependent = (((_existingInst->dependent))->dependent));
					}
				}
			}
			free(literals);
			literals = _newLiterals;
			literalsSize = _initialNumLiterals;
		}
		/* end allocateLiterals: */
	}
	_litInst = literalInstructionAt(nextLiteralIndex);
	initializeSharableLiteral(_litInst, _aLiteral);
	nextLiteralIndex += 1;
	if (firstOpcodeIndex > opcodeIndex) {
		firstOpcodeIndex = opcodeIndex - 1;
	}
	return _litInst;
}
/* OutOfLineLiteralsManager>>#mustDumpLiterals: */
static sqInt NoDbgRegParms
mustDumpLiterals(sqInt _currentOpcodeIndex)
{
	return (_currentOpcodeIndex >= firstOpcodeIndex) && ((_currentOpcodeIndex - firstOpcodeIndex) >= (outOfLineLiteralOpcodeLimit(backEnd())));
}
/*	After pushing the temporaries but before the stack limit check a primitive 
	method needs to fetch the error code, if any. If the primitive has failed, 
	call the trampoline 
	that will assign it to the last temp. */
/* SimpleStackBasedCogit>>#compileGetErrorCode */
static void
compileGetErrorCode(void)
{
	AbstractInstruction *_abstractInstruction;
	sqInt _address;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_jmpNoError;

	/* begin MoveAw:R: */
	_address = primFailCodeAddress();
	/* begin gen:literal:operand: */
	checkLiteralforInstruction(_address, genoperandoperand(MoveAwR, _address, TempReg));
	/* end gen:literal:operand: */
	/* end MoveAw:R: */
	flag("ask concrete code gen if move sets condition codes?");
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(CmpCqR, 0, TempReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpZero: */
	_jmpNoError = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	addDependent(methodLabel, annotateAbsolutePCRef(gMoveCwR(((sqInt) methodLabel ), ClassReg)));
	/* begin CallRT: */
	/* begin annotateCall: */
	_abstractInstruction = genoperand(Call, ceReapAndResetErrorCodeTrampoline);
	(_abstractInstruction->annotation = IsRelativeCall);
	/* end annotateCall: */
	/* end CallRT: */
	jmpTarget(_jmpNoError, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
}
/* SimpleStackBasedCogit>>#compileInterpreterPrimitive */
static sqInt
compileInterpreterPrimitive(void)
{
	void (*_primitiveRoutine)(void);

	_primitiveRoutine = functionPointerForCompiledMethodprimitiveIndex(methodObj, primitiveIndex);
	return compileInterpreterPrimitiveflags(_primitiveRoutine, primitivePropertyFlagsprimitiveDescriptor(primitiveIndex, primitiveDescriptor()));
}
/*	Compile a call to an interpreter primitive. Call the C routine with the 
	usual stack-switching dance, test the primFailCode and then either 
	return on success or continue to the method body. */
/* SimpleStackBasedCogit>>#compileInterpreterPrimitiveMayCallBack:flags: */
static sqInt NoDbgRegParms
compileInterpreterPrimitiveMayCallBackflags(void (*_primitiveRoutine)(void), sqInt _flags)
{
	sqInt _address;
	sqInt _address2;
	sqInt _address4;
	sqInt _address5;
	sqInt _address6;
	sqInt _address7;
	sqInt _address8;
	sqInt _address9;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction5;
	sqInt _arrivingJmp;
	CogPrimitiveCallState *_cogPrimitiveCallState;
	sqInt _offset;
	sqInt _operand2;
	sqInt _retpc;
	sqInt _returningLabel;

	_cogPrimitiveCallState = ((CogPrimitiveCallState*) (alloca(sizeof(CogPrimitiveCallState))) );
	genExternalizePointersForPrimitiveCall();
	genLoadCStackPointersForPrimCall();
	if (_flags & PrimCallCollectsProfileSamples) {
		{
			/* begin MoveAw:R: */
			_address = nextProfileTickAddress();
			/* begin gen:literal:operand: */
			checkLiteralforInstruction(_address, genoperandoperand(MoveAwR, _address, TempReg));
			/* end gen:literal:operand: */
			/* end MoveAw:R: */
			/* begin MoveAw:R: */
			_address2 = (nextProfileTickAddress()) + BytesPerWord;
			/* begin gen:literal:operand: */
			checkLiteralforInstruction(_address2, genoperandoperand(MoveAwR, _address2, ClassReg));
			/* end gen:literal:operand: */
			/* end MoveAw:R: */
			/* begin OrR:R: */
			genoperandoperand(OrRR, TempReg, ClassReg);
			/* end OrR:R: */
		}
		(_cogPrimitiveCallState->jmpSampleNonPrim = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 )));
		(_cogPrimitiveCallState->continuePostSampleNonPrim = genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	}
	if (recordPrimTrace()) {
		genFastPrimTraceUsingand(ClassReg, SendNumArgsReg);
	}
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction5 = genoperandoperand(MoveCqR, 0, TempReg);
	if (usesOutOfLineLiteral(_anInstruction5)) {
		(_anInstruction5->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin MoveR:Aw: */
	_address7 = primFailCodeAddress();
	/* begin gen:operand:literal: */
	checkLiteralforInstruction(_address7, genoperandoperand(MoveRAw, TempReg, _address7));
	/* end gen:operand:literal: */
	/* end MoveR:Aw: */
	if (methodOrBlockNumArgs != 0) {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction2 = genoperandoperand(MoveCqR, methodOrBlockNumArgs, TempReg);
		if (usesOutOfLineLiteral(_anInstruction2)) {
			(_anInstruction2->dependent = locateLiteral(methodOrBlockNumArgs));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* begin MoveR:Aw: */
	_address8 = argumentCountAddress();
	/* begin gen:operand:literal: */
	checkLiteralforInstruction(_address8, genoperandoperand(MoveRAw, TempReg, _address8));
	/* end gen:operand:literal: */
	/* end MoveR:Aw: */
	if (_flags & PrimCallNeedsPrimitiveFunction) {
		/* begin MoveCw:R: */
		/* begin gen:literal:operand: */
		checkLiteralforInstruction(((sqInt) _primitiveRoutine ), genoperandoperand(MoveCwR, ((sqInt) _primitiveRoutine ), TempReg));
		/* end gen:literal:operand: */
		/* end MoveCw:R: */
		/* begin MoveR:Aw: */
		_address4 = primitiveFunctionPointerAddress();
		/* begin gen:operand:literal: */
		primSetFunctionLabel = checkLiteralforInstruction(_address4, genoperandoperand(MoveRAw, TempReg, _address4));
		/* end gen:operand:literal: */
		/* end MoveR:Aw: */
	}
	if (_flags & (PrimCallNeedsNewMethod + PrimCallMayCallBack)) {
		if (_flags & PrimCallMayCallBack) {
			needsFrame = 1;
		}
		addDependent(methodLabel, annotateAbsolutePCRef(gMoveCwR(((sqInt) methodLabel ), ClassReg)));
		/* begin MoveMw:r:R: */
		_offset = offsetof(CogMethod, methodObject);
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction3 = genoperandoperandoperand(MoveMwrR, _offset, ClassReg, TempReg);
		if (usesOutOfLineLiteral(_anInstruction3)) {
			(_anInstruction3->dependent = locateLiteral(_offset));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveMw:r:R: */
		/* begin MoveR:Aw: */
		_address5 = newMethodAddress();
		/* begin gen:operand:literal: */
		checkLiteralforInstruction(_address5, genoperandoperand(MoveRAw, TempReg, _address5));
		/* end gen:operand:literal: */
		/* end MoveR:Aw: */
	}
	/* begin PrefetchAw: */
	_address9 = primFailCodeAddress();
	/* begin gen:literal: */
	checkLiteralforInstruction(_address9, genoperand(PrefetchAw, _address9));
	/* end gen:literal: */
	/* end PrefetchAw: */
	assert(_flags & PrimCallNeedsPrimitiveFunction);
	{
		/* begin genMarshallNArgs:arg:arg:arg:arg: */
		{
			goto l16;
		}
		{
			genoperandoperand(MoveRR, 0, CArg0Reg);
		}
		{
			genoperandoperand(MoveRR, 0, CArg1Reg);
		}
		{
			genoperandoperand(MoveRR, 0, CArg2Reg);
		}
		{
			genoperandoperand(MoveRR, 0, CArg3Reg);
		}
		l16:
		;
		/* end genMarshallNArgs:arg:arg:arg:arg: */
		/* begin genSubstituteReturnAddress: */
		_retpc = ((_flags & PrimCallCollectsProfileSamples)
			 ? cePrimReturnEnterCogCodeProfiling
			 : cePrimReturnEnterCogCode);
		/* begin gen:literal:operand: */
		checkLiteralforInstruction(_retpc, genoperandoperand(MoveCwR, _retpc, LR));
		/* end gen:literal:operand: */
		/* end genSubstituteReturnAddress: */
	}
	{
		/* begin gen:literal: */
		primInvokeInstruction = checkLiteralforInstruction(((sqInt) ((sqInt) _primitiveRoutine ) ), genoperand(JumpFull, ((sqInt) ((sqInt) _primitiveRoutine ) )));
		/* end gen:literal: */
	}
	if (_flags & PrimCallCollectsProfileSamples) {
		/* begin generateCheckProfileTickFromJump:returningTo:beforeCallDo: */
		_arrivingJmp = ((sqInt) ((_cogPrimitiveCallState->jmpSampleNonPrim)) );
		_returningLabel = ((sqInt) ((_cogPrimitiveCallState->continuePostSampleNonPrim)) );
		jmpTarget(_arrivingJmp, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
		{
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction4 = genoperandoperand(MoveCqR, 0, TempReg);
			if (usesOutOfLineLiteral(_anInstruction4)) {
				(_anInstruction4->dependent = locateLiteral(0));
			}
			/* end checkQuickConstant:forInstruction: */
			/* begin MoveR:Aw: */
			_address6 = newMethodAddress();
			/* begin gen:operand:literal: */
			checkLiteralforInstruction(_address6, genoperandoperand(MoveRAw, TempReg, _address6));
			/* end gen:operand:literal: */
			/* end MoveR:Aw: */
		}
		{
			/* begin gen:literal: */
			_operand2 = ((usqIntptr_t) ceCheckProfileTick );
			checkLiteralforInstruction(_operand2, genoperand(CallFull, _operand2));
			/* end gen:literal: */
		}
		/* begin Jump: */
		genoperand(Jump, ((sqInt) ((void *) _returningLabel ) ));
		/* end Jump: */
		/* end generateCheckProfileTickFromJump:returningTo:beforeCallDo: */
	}
	return 0;
}
/*	Compile a call to an interpreter primitive. Call the C routine with the 
	usual stack-switching dance, test the primFailCode and then either 
	return on success or continue to the method body. */
/* SimpleStackBasedCogit>>#compileInterpreterPrimitive:flags: */
static sqInt NoDbgRegParms
compileInterpreterPrimitiveflags(void (*_primitiveRoutine)(void), sqInt _flags)
{
	sqInt _address;
	sqInt _address10;
	sqInt _address11;
	sqInt _address12;
	sqInt _address13;
	sqInt _address14;
	sqInt _address2;
	sqInt _address4;
	sqInt _address5;
	sqInt _address6;
	sqInt _address7;
	sqInt _address9;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction5;
	AbstractInstruction *_anInstruction6;
	AbstractInstruction *_anInstruction7;
	AbstractInstruction *_anInstruction8;
	AbstractInstruction *_anInstruction9;
	sqInt _arrivingJmp;
	sqInt _arrivingJmp2;
	CogPrimitiveCallState *_cogPrimitiveCallState;
	sqInt _offset;
	sqInt _offset2;
	sqInt _offset3;
	sqInt _operand2;
	sqInt _operand22;
	sqInt _reg;
	sqInt _returningLabel;
	sqInt _returningLabel2;

	if (_flags & PrimCallMayCallBack) {
		return compileInterpreterPrimitiveMayCallBackflags(_primitiveRoutine, _flags);
	}
	_cogPrimitiveCallState = ((CogPrimitiveCallState*) (alloca(sizeof(CogPrimitiveCallState))) );
	genExternalizePointersForPrimitiveCall();
	genLoadCStackPointersForPrimCall();
	if (_flags & PrimCallCollectsProfileSamples) {
		{
			/* begin MoveAw:R: */
			_address = nextProfileTickAddress();
			/* begin gen:literal:operand: */
			checkLiteralforInstruction(_address, genoperandoperand(MoveAwR, _address, TempReg));
			/* end gen:literal:operand: */
			/* end MoveAw:R: */
			/* begin MoveAw:R: */
			_address2 = (nextProfileTickAddress()) + BytesPerWord;
			/* begin gen:literal:operand: */
			checkLiteralforInstruction(_address2, genoperandoperand(MoveAwR, _address2, ClassReg));
			/* end gen:literal:operand: */
			/* end MoveAw:R: */
			/* begin OrR:R: */
			genoperandoperand(OrRR, TempReg, ClassReg);
			/* end OrR:R: */
		}
		(_cogPrimitiveCallState->jmpSampleNonPrim = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 )));
		(_cogPrimitiveCallState->continuePostSampleNonPrim = genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	}
	if (recordPrimTrace()) {
		genFastPrimTraceUsingand(ClassReg, SendNumArgsReg);
	}
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction6 = genoperandoperand(MoveCqR, 0, TempReg);
	if (usesOutOfLineLiteral(_anInstruction6)) {
		(_anInstruction6->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin MoveR:Aw: */
	_address10 = primFailCodeAddress();
	/* begin gen:operand:literal: */
	checkLiteralforInstruction(_address10, genoperandoperand(MoveRAw, TempReg, _address10));
	/* end gen:operand:literal: */
	/* end MoveR:Aw: */
	if (methodOrBlockNumArgs != 0) {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction2 = genoperandoperand(MoveCqR, methodOrBlockNumArgs, TempReg);
		if (usesOutOfLineLiteral(_anInstruction2)) {
			(_anInstruction2->dependent = locateLiteral(methodOrBlockNumArgs));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* begin MoveR:Aw: */
	_address11 = argumentCountAddress();
	/* begin gen:operand:literal: */
	checkLiteralforInstruction(_address11, genoperandoperand(MoveRAw, TempReg, _address11));
	/* end gen:operand:literal: */
	/* end MoveR:Aw: */
	if (_flags & PrimCallNeedsPrimitiveFunction) {
		/* begin MoveCw:R: */
		/* begin gen:literal:operand: */
		checkLiteralforInstruction(((sqInt) _primitiveRoutine ), genoperandoperand(MoveCwR, ((sqInt) _primitiveRoutine ), TempReg));
		/* end gen:literal:operand: */
		/* end MoveCw:R: */
		/* begin MoveR:Aw: */
		_address4 = primitiveFunctionPointerAddress();
		/* begin gen:operand:literal: */
		primSetFunctionLabel = checkLiteralforInstruction(_address4, genoperandoperand(MoveRAw, TempReg, _address4));
		/* end gen:operand:literal: */
		/* end MoveR:Aw: */
	}
	if (_flags & (PrimCallNeedsNewMethod + PrimCallMayCallBack)) {
		if (_flags & PrimCallMayCallBack) {
			needsFrame = 1;
		}
		addDependent(methodLabel, annotateAbsolutePCRef(gMoveCwR(((sqInt) methodLabel ), ClassReg)));
		/* begin MoveMw:r:R: */
		_offset = offsetof(CogMethod, methodObject);
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction3 = genoperandoperandoperand(MoveMwrR, _offset, ClassReg, TempReg);
		if (usesOutOfLineLiteral(_anInstruction3)) {
			(_anInstruction3->dependent = locateLiteral(_offset));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveMw:r:R: */
		/* begin MoveR:Aw: */
		_address5 = newMethodAddress();
		/* begin gen:operand:literal: */
		checkLiteralforInstruction(_address5, genoperandoperand(MoveRAw, TempReg, _address5));
		/* end gen:operand:literal: */
		/* end MoveR:Aw: */
	}
	/* begin PrefetchAw: */
	_address12 = primFailCodeAddress();
	/* begin gen:literal: */
	checkLiteralforInstruction(_address12, genoperand(PrefetchAw, _address12));
	/* end gen:literal: */
	/* end PrefetchAw: */
	/* begin genMarshallNArgs:arg:arg:arg:arg: */
	{
		goto l30;
	}
	{
		genoperandoperand(MoveRR, 0, CArg0Reg);
	}
	{
		genoperandoperand(MoveRR, 0, CArg1Reg);
	}
	{
		genoperandoperand(MoveRR, 0, CArg2Reg);
	}
	{
		genoperandoperand(MoveRR, 0, CArg3Reg);
	}
	l30:
	;
	/* end genMarshallNArgs:arg:arg:arg:arg: */
	{
		/* begin gen:literal: */
		primInvokeInstruction = checkLiteralforInstruction(((sqInt) _primitiveRoutine ), genoperand(CallFull, ((sqInt) _primitiveRoutine )));
		/* end gen:literal: */
	}
	/* begin genRemoveNArgsFromStack: */
	assert(0 <= 4);
	/* end genRemoveNArgsFromStack: */
	if (_flags & PrimCallCollectsProfileSamples) {
		assert(_flags & PrimCallNeedsNewMethod);
		{
			/* begin MoveAw:R: */
			_address6 = nextProfileTickAddress();
			/* begin gen:literal:operand: */
			checkLiteralforInstruction(_address6, genoperandoperand(MoveAwR, _address6, TempReg));
			/* end gen:literal:operand: */
			/* end MoveAw:R: */
			/* begin MoveAw:R: */
			_address7 = (nextProfileTickAddress()) + BytesPerWord;
			/* begin gen:literal:operand: */
			checkLiteralforInstruction(_address7, genoperandoperand(MoveAwR, _address7, ClassReg));
			/* end gen:literal:operand: */
			/* end MoveAw:R: */
			/* begin OrR:R: */
			genoperandoperand(OrRR, TempReg, ClassReg);
			/* end OrR:R: */
		}
		(_cogPrimitiveCallState->jmpSamplePrim = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 )));
		(_cogPrimitiveCallState->continuePostSamplePrim = genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	}
	maybeCompileRetryOnPrimitiveFail(primitiveIndex);
	maybeCompileAllocFillerCheck();
	/* begin MoveAw:R: */
	_address13 = instructionPointerAddress();
	_reg = LinkReg;
	/* begin gen:literal:operand: */
	checkLiteralforInstruction(_address13, genoperandoperand(MoveAwR, _address13, _reg));
	/* end gen:literal:operand: */
	/* end MoveAw:R: */
	genLoadStackPointers(backEnd);
	/* begin MoveAw:R: */
	_address14 = primFailCodeAddress();
	/* begin gen:literal:operand: */
	checkLiteralforInstruction(_address14, genoperandoperand(MoveAwR, _address14, TempReg));
	/* end gen:literal:operand: */
	/* end MoveAw:R: */
	flag("ask concrete code gen if move sets condition codes?");
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction7 = genoperandoperand(CmpCqR, 0, TempReg);
	if (usesOutOfLineLiteral(_anInstruction7)) {
		(_anInstruction7->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	(_cogPrimitiveCallState->jmpToFallbackCode = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 )));
	/* begin MoveMw:r:R: */
	_offset2 = 0;
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction8 = genoperandoperandoperand(MoveMwrR, _offset2, SPReg, ReceiverResultReg);
	if (usesOutOfLineLiteral(_anInstruction8)) {
		(_anInstruction8->dependent = locateLiteral(_offset2));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end MoveMw:r:R: */
	/* begin RetN: */
	genoperand(RetN, BytesPerWord);
	/* end RetN: */
	if (_flags & PrimCallCollectsProfileSamples) {
		/* begin generateCheckProfileTickFromJump:returningTo:beforeCallDo: */
		_arrivingJmp = ((sqInt) ((_cogPrimitiveCallState->jmpSamplePrim)) );
		_returningLabel = ((sqInt) ((_cogPrimitiveCallState->continuePostSamplePrim)) );
		jmpTarget(_arrivingJmp, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
		{
		}
		{
			/* begin gen:literal: */
			_operand2 = ((usqIntptr_t) ceCheckProfileTick );
			checkLiteralforInstruction(_operand2, genoperand(CallFull, _operand2));
			/* end gen:literal: */
		}
		/* begin Jump: */
		genoperand(Jump, ((sqInt) ((void *) _returningLabel ) ));
		/* end Jump: */
		/* end generateCheckProfileTickFromJump:returningTo:beforeCallDo: */
		/* begin generateCheckProfileTickFromJump:returningTo:beforeCallDo: */
		_arrivingJmp2 = ((sqInt) ((_cogPrimitiveCallState->jmpSampleNonPrim)) );
		_returningLabel2 = ((sqInt) ((_cogPrimitiveCallState->continuePostSampleNonPrim)) );
		jmpTarget(_arrivingJmp2, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
		{
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction5 = genoperandoperand(MoveCqR, 0, TempReg);
			if (usesOutOfLineLiteral(_anInstruction5)) {
				(_anInstruction5->dependent = locateLiteral(0));
			}
			/* end checkQuickConstant:forInstruction: */
			/* begin MoveR:Aw: */
			_address9 = newMethodAddress();
			/* begin gen:operand:literal: */
			checkLiteralforInstruction(_address9, genoperandoperand(MoveRAw, TempReg, _address9));
			/* end gen:operand:literal: */
			/* end MoveR:Aw: */
		}
		{
			/* begin gen:literal: */
			_operand22 = ((usqIntptr_t) ceCheckProfileTick );
			checkLiteralforInstruction(_operand22, genoperand(CallFull, _operand22));
			/* end gen:literal: */
		}
		/* begin Jump: */
		genoperand(Jump, ((sqInt) ((void *) _returningLabel2 ) ));
		/* end Jump: */
		/* end generateCheckProfileTickFromJump:returningTo:beforeCallDo: */
	}
	jmpTarget((_cogPrimitiveCallState->jmpToFallbackCode), genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	/* begin MoveMw:r:R: */
	_offset3 = BytesPerWord * (methodOrBlockNumArgs + 0);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction9 = genoperandoperandoperand(MoveMwrR, _offset3, SPReg, ReceiverResultReg);
	if (usesOutOfLineLiteral(_anInstruction9)) {
		(_anInstruction9->dependent = locateLiteral(_offset3));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end MoveMw:r:R: */
	return 0;
}
/*	Compile a call to a machine-code convention interpreter primitive. Call 
	the C routine 
	on the Smalltalk stack, assuming it consumes little or no stack space.for now handle functions with less than 4 arguments; our C call 
	marshalling machinery 
	extends up to 4 arguments only, and the first argument of an mcprim is the 
	receiver.  */
/* SimpleStackBasedCogit>>#compileMachineCodeInterpreterPrimitive: */
static sqInt NoDbgRegParms
compileMachineCodeInterpreterPrimitive(void (*_primitiveRoutine)(void))
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction * _jmpFail;
	sqInt _liveRegsMask;
	sqInt _n;
	sqInt _offset;
	sqInt _reg1;

	assert(methodOrBlockNumArgs <= 3);
	if ((methodOrBlockNumArgs > 2) || (methodOrBlockNumArgs == 0)) {
		/* begin registerMaskFor:and: */
		_liveRegsMask = (1U << ReceiverResultReg) | (1U << ClassReg);
		/* end registerMaskFor:and: */
	} else {
		if (methodOrBlockNumArgs > 1) {
			/* begin registerMaskFor:and:and:and: */
			_liveRegsMask = (((1U << ReceiverResultReg) | (1U << Arg0Reg)) | (1U << Arg1Reg)) | (1U << ClassReg);
			/* end registerMaskFor:and:and:and: */
		}
 else {
			/* begin registerMaskFor:and:and: */
			_liveRegsMask = ((1U << ReceiverResultReg) | (1U << Arg0Reg)) | (1U << ClassReg);
			/* end registerMaskFor:and:and: */
		}
	}
	{
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, LinkReg, Extra0Reg);
		/* end MoveR:R: */
	}
	/* begin genSaveRegs: */
	/* begin genPushRegisterMask: */
	if ((_liveRegsMask & CallerSavedRegisterMask) == 0) {
		genoperandoperand(Label, (labelCounter += 1), bytecodePC);
	}
 else {
		genoperand(PushSTM, _liveRegsMask & CallerSavedRegisterMask);
	}
	/* end genPushRegisterMask: */
	/* end genSaveRegs: */
	if (methodOrBlockNumArgs > 2) {
		error("shouldBeImplemented");
	}
	prepareStackToCallCFunctionInSmalltalkStack(backEnd, methodOrBlockNumArgs + 1);
	/* begin genMarshallNArgs:arg:arg:arg:arg: */
	if ((methodOrBlockNumArgs + 1) == 0) {
		goto l15;
	}
	{
		genoperandoperand(MoveRR, ReceiverResultReg, CArg0Reg);
	}
	if ((methodOrBlockNumArgs + 1) == 1) {
		goto l15;
	}
	{
		genoperandoperand(MoveRR, Arg0Reg, CArg1Reg);
	}
	if ((methodOrBlockNumArgs + 1) == 2) {
		goto l15;
	}
	{
		genoperandoperand(MoveRR, Arg1Reg, CArg2Reg);
	}
	if ((methodOrBlockNumArgs + 1) == 3) {
		goto l15;
	}
	{
		genoperandoperand(MoveRR, SendNumArgsReg, CArg3Reg);
	}
	l15:
	;
	/* end genMarshallNArgs:arg:arg:arg:arg: */
	{
		/* begin gen:literal: */
		checkLiteralforInstruction(((sqInt) _primitiveRoutine ), genoperand(CallFull, ((sqInt) _primitiveRoutine )));
		/* end gen:literal: */
	}
	{
		/* begin genRemoveNArgsFromStack: */
		_n = methodOrBlockNumArgs + 1;
		assert(_n <= 4);
		/* end genRemoveNArgsFromStack: */
		returnFromCallCFunctionInSmalltalkStack(backEnd, methodOrBlockNumArgs + 1);
		/* begin genRestoreRegs: */
		/* begin genPopRegisterMask: */
		if ((_liveRegsMask & CallerSavedRegisterMask) == 0) {
			genoperandoperand(Label, (labelCounter += 1), bytecodePC);
		}
 else {
			genoperand(PopLDM, _liveRegsMask & CallerSavedRegisterMask);
		}
		/* end genPopRegisterMask: */
		/* end genRestoreRegs: */
	}
	{
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, Extra0Reg, LinkReg);
		/* end MoveR:R: */
	}
	/* begin CmpCq:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(CmpCqR, 0, R0);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpZero: */
	_jmpFail = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	{
		/* begin MoveR:R: */
		_reg1 = R0;
		genoperandoperand(MoveRR, _reg1, ReceiverResultReg);
		/* end MoveR:R: */
	}
	/* begin RetN: */
	_offset = ((methodOrBlockNumArgs > 2)
		 ? (methodOrBlockNumArgs + 1) * BytesPerWord
		 : 0);
	genoperand(RetN, _offset);
	/* end RetN: */
	jmpTarget(_jmpFail, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	return 0;
}
/*	Compile one method cache probe in an OpenPIC's lookup of selector. 
	Answer the jump taken if the selector probe fails. 
	The class tag of the receiver must be in SendNumArgsReg. ClassReg and 
	TempReg are used as scratch registers. 
	On a hit, the offset of the entry is in ClassReg. */
/* SimpleStackBasedCogit>>#compileOpenPICMethodCacheProbeFor:withShift:baseRegOrNone: */
static AbstractInstruction * NoDbgRegParms
compileOpenPICMethodCacheProbeForwithShiftbaseRegOrNone(sqInt _selector, sqInt _shift, sqInt _baseRegOrNone)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction5;
	AbstractInstruction *_jumpSelectorMiss;
	sqInt _offset;
	sqInt _offset2;

	/* begin MoveR:R: */
	genoperandoperand(MoveRR, SendNumArgsReg, ClassReg);
	/* end MoveR:R: */
	maybeShiftClassTagRegisterForMethodCacheProbe(ClassReg);
	annotateobjRef(gXorCwR(_selector, ClassReg), _selector);
	assert(_shift <= (shiftForWord()));
	if (_shift < (shiftForWord())) {
		/* begin LogicalShiftLeftCq:R: */
		genoperandoperand(LogicalShiftLeftCqR, (shiftForWord()) - _shift, ClassReg);
		/* end LogicalShiftLeftCq:R: */
	}
	/* begin AndCq:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction5 = genoperandoperand(AndCqR, ((int) (((usqInt) MethodCacheMask ) << (shiftForWord())) ), ClassReg);
	if (usesOutOfLineLiteral(_anInstruction5)) {
		(_anInstruction5->dependent = locateLiteral(((int) (((usqInt) MethodCacheMask ) << (shiftForWord())) )));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AndCq:R: */
	if (_baseRegOrNone == NoReg) {
		/* begin MoveMw:r:R: */
		_offset = ((usqInt) (methodCacheAddress()) ) + ((int) (((usqInt) MethodCacheSelector ) << (shiftForWord())) );
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperandoperand(MoveMwrR, _offset, ClassReg, TempReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_offset));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveMw:r:R: */
	} else {
		{
			/* begin AddR:R: */
			genoperandoperand(AddRR, _baseRegOrNone, ClassReg);
			/* end AddR:R: */
			/* begin MoveMw:r:R: */
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction2 = genoperandoperandoperand(MoveMwrR, ((int) (((usqInt) MethodCacheSelector ) << (shiftForWord())) ), ClassReg, TempReg);
			if (usesOutOfLineLiteral(_anInstruction2)) {
				(_anInstruction2->dependent = locateLiteral(((int) (((usqInt) MethodCacheSelector ) << (shiftForWord())) )));
			}
			/* end checkQuickConstant:forInstruction: */
			/* end MoveMw:r:R: */
		}
	}
	annotateobjRef(checkLiteralforInstruction(_selector, genoperandoperand(CmpCwR, _selector, TempReg)), _selector);
	/* begin JumpNonZero: */
	_jumpSelectorMiss = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
	if (_baseRegOrNone == NoReg) {
		/* begin MoveMw:r:R: */
		_offset2 = ((usqInt) (methodCacheAddress()) ) + ((int) (((usqInt) MethodCacheClass ) << (shiftForWord())) );
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction3 = genoperandoperandoperand(MoveMwrR, _offset2, ClassReg, TempReg);
		if (usesOutOfLineLiteral(_anInstruction3)) {
			(_anInstruction3->dependent = locateLiteral(_offset2));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveMw:r:R: */
	} else {
		/* begin MoveMw:r:R: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction4 = genoperandoperandoperand(MoveMwrR, ((int) (((usqInt) MethodCacheClass ) << (shiftForWord())) ), ClassReg, TempReg);
		if (usesOutOfLineLiteral(_anInstruction4)) {
			(_anInstruction4->dependent = locateLiteral(((int) (((usqInt) MethodCacheClass ) << (shiftForWord())) )));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveMw:r:R: */
	}
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, SendNumArgsReg, TempReg);
	/* end CmpR:R: */
	return _jumpSelectorMiss;
}
/*	Compile the code for an open PIC. Perform a probe of the first-level 
	method lookup cache followed by a call of ceSendFromInLineCacheMiss: if 
	the probe fails. */
/* SimpleStackBasedCogit>>#compileOpenPIC:numArgs: */
static void NoDbgRegParms
compileOpenPICnumArgs(sqInt _selector, sqInt _numArgs)
{
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	sqInt _cacheBaseReg;
	AbstractInstruction *_itsAHit;
	AbstractInstruction *_jumpBCMethod;
	AbstractInstruction *_jumpClassMiss;
	AbstractInstruction *_jumpSelectorMiss;
	sqInt _offset;

	/* begin preenMethodLabel */
	/* begin setLabelOffset: */
	((((AbstractInstruction *) methodLabel ))->operands)[1] = 0;
	/* end setLabelOffset: */
	/* end preenMethodLabel */
	compilePICAbort(_numArgs);
	entry = genGetClassTagOfintoscratchReg(ReceiverResultReg, SendNumArgsReg, TempReg);
	_cacheBaseReg = NoReg;
	_jumpSelectorMiss = compileOpenPICMethodCacheProbeForwithShiftbaseRegOrNone(_selector, 0, _cacheBaseReg);
	/* begin JumpNonZero: */
	_jumpClassMiss = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
	/* begin MoveMw:r:R: */
	_offset = ((_cacheBaseReg == NoReg)
		 ? ((usqInt) (methodCacheAddress()) ) + ((int) (((usqInt) MethodCacheMethod ) << (shiftForWord())) )
		 : ((int) (((usqInt) MethodCacheMethod ) << (shiftForWord())) ));
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperandoperand(MoveMwrR, _offset, ClassReg, SendNumArgsReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_offset));
	}
	_itsAHit = _anInstruction2;
	/* end checkQuickConstant:forInstruction: */
	/* end MoveMw:r:R: */
	genLoadSlotsourceRegdestReg(HeaderIndex, SendNumArgsReg, ClassReg);
	_jumpBCMethod = genJumpImmediate(ClassReg);
	jmpTarget(_jumpBCMethod, picInterpretAbort);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction3 = genoperandoperand(AddCqR, cmNoCheckEntryOffset, ClassReg);
	if (usesOutOfLineLiteral(_anInstruction3)) {
		(_anInstruction3->dependent = locateLiteral(cmNoCheckEntryOffset));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpR: */
	genoperand(JumpR, ClassReg);
	/* end JumpR: */
	jmpTarget(_jumpSelectorMiss, jmpTarget(_jumpClassMiss, genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
	_jumpSelectorMiss = compileOpenPICMethodCacheProbeForwithShiftbaseRegOrNone(_selector, 1, _cacheBaseReg);
	/* begin JumpZero: */
	genConditionalBranchoperand(JumpZero, ((sqInt) _itsAHit ));
	/* end JumpZero: */
	jmpTarget(_jumpSelectorMiss, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	_jumpSelectorMiss = compileOpenPICMethodCacheProbeForwithShiftbaseRegOrNone(_selector, 2, _cacheBaseReg);
	/* begin JumpZero: */
	genConditionalBranchoperand(JumpZero, ((sqInt) _itsAHit ));
	/* end JumpZero: */
	jmpTarget(_jumpSelectorMiss, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	{
		genPushRegisterArgsForNumArgsscratchReg(backEnd, _numArgs, SendNumArgsReg);
	}
	genSmalltalkToCStackSwitch(1);
	addDependent(methodLabel, annotateAbsolutePCRef(gMoveCwR(((sqInt) methodLabel ), SendNumArgsReg)));
	compileCallFornumArgsargargargargresultRegregsToSave(ceSendFromInLineCacheMiss, 1, SendNumArgsReg, null, null, null, NoReg, 0);
}
/*	Compile one method cache probe in a perform: primitive's lookup of 
	selector. Answer the jump taken if the selector probe fails. */
/* SimpleStackBasedCogit>>#compilePerformMethodCacheProbeFor:withShift:baseRegOrNone: */
static AbstractInstruction * NoDbgRegParms
compilePerformMethodCacheProbeForwithShiftbaseRegOrNone(sqInt _selectorReg, sqInt _shift, sqInt _baseRegOrNone)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction5;
	AbstractInstruction *_jumpSelectorMiss;
	sqInt _offset;
	sqInt _offset2;

	/* begin MoveR:R: */
	genoperandoperand(MoveRR, SendNumArgsReg, ClassReg);
	/* end MoveR:R: */
	maybeShiftClassTagRegisterForMethodCacheProbe(ClassReg);
	/* begin XorR:R: */
	genoperandoperand(XorRR, _selectorReg, ClassReg);
	/* end XorR:R: */
	assert(_shift <= (shiftForWord()));
	if (_shift < (shiftForWord())) {
		/* begin LogicalShiftLeftCq:R: */
		genoperandoperand(LogicalShiftLeftCqR, (shiftForWord()) - _shift, ClassReg);
		/* end LogicalShiftLeftCq:R: */
	}
	/* begin AndCq:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction5 = genoperandoperand(AndCqR, ((int) (((usqInt) MethodCacheMask ) << (shiftForWord())) ), ClassReg);
	if (usesOutOfLineLiteral(_anInstruction5)) {
		(_anInstruction5->dependent = locateLiteral(((int) (((usqInt) MethodCacheMask ) << (shiftForWord())) )));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end AndCq:R: */
	if (_baseRegOrNone == NoReg) {
		/* begin MoveMw:r:R: */
		_offset = ((usqInt) (methodCacheAddress()) ) + ((int) (((usqInt) MethodCacheSelector ) << (shiftForWord())) );
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperandoperand(MoveMwrR, _offset, ClassReg, TempReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_offset));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveMw:r:R: */
	} else {
		{
			/* begin AddR:R: */
			genoperandoperand(AddRR, _baseRegOrNone, ClassReg);
			/* end AddR:R: */
			/* begin MoveMw:r:R: */
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction2 = genoperandoperandoperand(MoveMwrR, ((int) (((usqInt) MethodCacheSelector ) << (shiftForWord())) ), ClassReg, TempReg);
			if (usesOutOfLineLiteral(_anInstruction2)) {
				(_anInstruction2->dependent = locateLiteral(((int) (((usqInt) MethodCacheSelector ) << (shiftForWord())) )));
			}
			/* end checkQuickConstant:forInstruction: */
			/* end MoveMw:r:R: */
		}
	}
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, _selectorReg, TempReg);
	/* end CmpR:R: */
	/* begin JumpNonZero: */
	_jumpSelectorMiss = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
	if (_baseRegOrNone == NoReg) {
		/* begin MoveMw:r:R: */
		_offset2 = ((usqInt) (methodCacheAddress()) ) + ((int) (((usqInt) MethodCacheClass ) << (shiftForWord())) );
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction3 = genoperandoperandoperand(MoveMwrR, _offset2, ClassReg, TempReg);
		if (usesOutOfLineLiteral(_anInstruction3)) {
			(_anInstruction3->dependent = locateLiteral(_offset2));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveMw:r:R: */
	} else {
		/* begin MoveMw:r:R: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction4 = genoperandoperandoperand(MoveMwrR, ((int) (((usqInt) MethodCacheClass ) << (shiftForWord())) ), ClassReg, TempReg);
		if (usesOutOfLineLiteral(_anInstruction4)) {
			(_anInstruction4->dependent = locateLiteral(((int) (((usqInt) MethodCacheClass ) << (shiftForWord())) )));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveMw:r:R: */
	}
	/* begin CmpR:R: */
	genoperandoperand(CmpRR, SendNumArgsReg, TempReg);
	/* end CmpR:R: */
	return _jumpSelectorMiss;
}
/*	Compile a primitive. If possible, performance-critical primtiives will 
	be generated by their own routines (primitiveGenerator). Otherwise, 
	if there is a primitive at all, we call the C routine with the usual 
	stack-switching dance, test the primFailCode and then either return 
	on success or continue to the method body. */
/* SimpleStackBasedCogit>>#compilePrimitive */
static sqInt
compilePrimitive(void)
{
	PrimitiveDescriptor *_aPrimitiveDescriptor;
	int _code;
	sqInt _flags;
	sqInt _opcodeIndexAtPrimitive;
	void (*_primitiveRoutine)(void);

	if (primitiveIndex == 0) {
		return 0;
	}
	_code = 0;
	_opcodeIndexAtPrimitive = opcodeIndex;
	_aPrimitiveDescriptor = primitiveDescriptor();
	if ((((_aPrimitiveDescriptor->primitiveGenerator)) != null) && ((((_aPrimitiveDescriptor->primNumArgs)) < 0) || (((_aPrimitiveDescriptor->primNumArgs)) == (argumentCountOf(methodObj))))) {
		_code = ((_aPrimitiveDescriptor->primitiveGenerator))();
	}
	if ((_code < 0) && (_code != UnimplementedPrimitive)) {
		return _code;
	}
	if (_code == UnfailingPrimitive) {
		return 0;
	}
	if ((_code == CompletePrimitive) && (!(((primitiveIndexOfMethodheader(methodObj, methodHeader)) > 0) && ((longStoreBytecodeForHeader(methodHeader)) == (fetchByteofObject((startPCOfMethod(methodObj)) + (sizeOfCallPrimitiveBytecode(methodHeader)), methodObj)))))) {
		return 0;
	}
	if (_code == UnimplementedPrimitive) {
		opcodeIndex = _opcodeIndexAtPrimitive;
	}
	_flags = primitivePropertyFlagsprimitiveDescriptor(primitiveIndex, _aPrimitiveDescriptor);
	if (_flags & PrimCallDoNotJIT) {
		return ShouldNotJIT;
	}
	if (_flags & PrimCallOnSmalltalkStack) {
		assert(_flags == PrimCallOnSmalltalkStack);
		return compileMachineCodeInterpreterPrimitive(mcprimFunctionForPrimitiveIndex(primitiveIndex));
	}
	if ((((_primitiveRoutine = functionPointerForCompiledMethodprimitiveIndex(methodObj, primitiveIndex))) == 0) || (_primitiveRoutine == ((void *) primitiveFail ))) {
		return genFastPrimFail();
	}
	minValidCallAddress = ((minValidCallAddress < ((usqInt) _primitiveRoutine )) ? minValidCallAddress : ((usqInt) _primitiveRoutine ));
	return compileInterpreterPrimitiveflags(_primitiveRoutine, _flags);
}
/* SimpleStackBasedCogit>>#frameOffsetOfTemporary: */
static sqInt NoDbgRegParms
frameOffsetOfTemporary(sqInt _index)
{
	return ((_index < methodOrBlockNumArgs)
		 ? FoxCallerSavedIP + ((methodOrBlockNumArgs - _index) * BytesPerWord)
		 : (FoxMFReceiver - BytesPerWord) + ((methodOrBlockNumArgs - _index) * BytesPerWord));
}
/* SimpleStackBasedCogit>>#genDoubleFailIfZeroArgRcvr:arg: */
static AbstractInstruction * NoDbgRegParms
genDoubleFailIfZeroArgRcvrarg(int rcvrReg, int _argReg)
{
	AbstractInstruction *_anInstruction;

	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(MoveCqR, 0, TempReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin ConvertR:Rd: */
	genoperandoperand(ConvertRRd, TempReg, DPFPReg2);
	/* end ConvertR:Rd: */
	/* begin CmpRd:Rd: */
	genoperandoperand(CmpRdRd, DPFPReg2, _argReg);
	/* end CmpRd:Rd: */
	return gJumpFPEqual(0);
}
/*	244		11110100	i i i i i i i i	Pop and Jump 0n False i i i i i i i i (+ 
	Extend B * 256, where Extend B >= 0) */
/* SimpleStackBasedCogit>>#genExtJumpIfFalse */
static sqInt
genExtJumpIfFalse(void)
{
	sqInt _distance;
	sqInt _target;

	_distance = byte1 + ((sqInt) (((usqInt) extB ) << 8) );
	assert(_distance == (v4LongForwardBranchDistance(generatorAt(byte0), bytecodePC, (((extA != 0)
		 ? 1
		 : 0)) + (((extB != 0)
		 ? 1
		 : 0)), methodObj)));
	extB = 0;
	numExtB = 0;
	_target = (_distance + 2) + bytecodePC;
	return genJumpIfto(falseObject(), _target);
}
/*	243		11110011	i i i i i i i i	Pop and Jump 0n True i i i i i i i i (+ 
	Extend B * 256, where Extend B >= 0) */
/* SimpleStackBasedCogit>>#genExtJumpIfTrue */
static sqInt
genExtJumpIfTrue(void)
{
	sqInt _distance;
	sqInt _target;

	_distance = byte1 + ((sqInt) (((usqInt) extB ) << 8) );
	assert(_distance == (v4LongForwardBranchDistance(generatorAt(byte0), bytecodePC, (((extA != 0)
		 ? 1
		 : 0)) + (((extB != 0)
		 ? 1
		 : 0)), methodObj)));
	extB = 0;
	numExtB = 0;
	_target = (_distance + 2) + bytecodePC;
	return genJumpIfto(trueObject(), _target);
}
/*	SistaV1:		 91		01011011'		Nop */
/* SimpleStackBasedCogit>>#genExtNopBytecode */
static sqInt
genExtNopBytecode(void)
{
	extA = (numExtB = (extB = 0));
	return 0;
}
/*	SistaV1:		233		11101001	iiiiiiii		Push Character #iiiiiiii (+ Extend B * 
	256)  */
/* SimpleStackBasedCogit>>#genExtPushCharacterBytecode */
static sqInt
genExtPushCharacterBytecode(void)
{
	sqInt _value;

	_value = byte1 + ((sqInt) (((usqInt) extB ) << 8) );
	extB = 0;
	numExtB = 0;
	return genPushLiteral(characterObjectOf(_value));
}
/*	NewsqueakV4:	229		11100101	iiiiiiii	Push Integer #iiiiiiii (+ Extend B * 
	256, where bbbbbbbb = sddddddd, e.g. -32768 = i=0, a=0, s=1) 
	SistaV1:		232		11101000	iiiiiiii	Push Integer #iiiiiiii (+ Extend B * 256, 
	where bbbbbbbb = sddddddd, e.g. -32768 = i=0, a=0, s=1) */
/* SimpleStackBasedCogit>>#genExtPushIntegerBytecode */
static sqInt
genExtPushIntegerBytecode(void)
{
	sqInt _value;

	_value = byte1 + ((sqInt) (((usqInt) extB ) << 8) );
	extB = 0;
	numExtB = 0;
	return genPushLiteral(((((usqInt) _value ) << 1) | 1));
}
/*	228		11100100	i i i i i i i i	Push Literal #iiiiiiii (+ Extend A * 256) */
/* SimpleStackBasedCogit>>#genExtPushLiteralBytecode */
static sqInt
genExtPushLiteralBytecode(void)
{
	sqInt _index;

	_index = byte1 + ((sqInt) (((usqInt) extA ) << 8) );
	extA = 0;
	return genPushLiteralIndex(_index);
}
/*	227		11100011	i i i i i i i i	Push Literal Variable #iiiiiiii (+ Extend A 
	* 256) */
/* SimpleStackBasedCogit>>#genExtPushLiteralVariableBytecode */
static sqInt
genExtPushLiteralVariableBytecode(void)
{
	sqInt _index;

	_index = byte1 + ((sqInt) (((usqInt) extA ) << 8) );
	extA = 0;
	return genPushLiteralVariable(_index);
}
/*	SistaV1: *	82			01010010			Push thisContext, (then Extend B = 1 => push 
	thisProcess)  */
/* SimpleStackBasedCogit>>#genExtPushPseudoVariable */
static sqInt
genExtPushPseudoVariable(void)
{
	sqInt _ext;

	_ext = extB;
	extB = 0;
	numExtB = 0;
	switch (_ext) {
		case 0:
		{
			return genPushActiveContextBytecode();
		}
		default:
		{
			return unknownBytecode();
		}
	}
	return 0;
}
/*	226		11100010	i i i i i i i i	Push Receiver Variable #iiiiiiii (+ Extend A 
	* 256) */
/* SimpleStackBasedCogit>>#genExtPushReceiverVariableBytecode */
static sqInt
genExtPushReceiverVariableBytecode(void)
{
	sqInt _index;

	_index = byte1 + ((sqInt) (((usqInt) extA ) << 8) );
	extA = 0;
	return ((isReadMediatedContextInstVarIndex(_index))
		 ? genPushMaybeContextReceiverVariable(_index)
		 : genPushReceiverVariable(_index));
}
/*	238		11101110	i i i i i j j j	Send Literal Selector #iiiii (+ Extend A * 
	32) with jjj (+ Extend B * 8) Arguments */
/* SimpleStackBasedCogit>>#genExtSendBytecode */
static sqInt
genExtSendBytecode(void)
{
	sqInt _litIndex;
	sqInt _nArgs;

	_litIndex = (((usqInt) byte1 ) >> 3) + ((sqInt) (((usqInt) extA ) << 5) );
	extA = 0;
	_nArgs = (byte1 & 7) + ((sqInt) (((usqInt) extB ) << 3) );
	extB = 0;
	numExtB = 0;
	return genSendnumArgs(_litIndex, _nArgs);
}
/*	239		11101111	i i i i i j j j	Send To Superclass Literal Selector #iiiii 
	(+ Extend A * 32) with jjj (+ Extend B * 8) Arguments */
/* SimpleStackBasedCogit>>#genExtSendSuperBytecode */
static sqInt
genExtSendSuperBytecode(void)
{
	int _isDirected;
	sqInt _litIndex;
	sqInt _nArgs;

	if ((_isDirected = extB >= 64)) {
		extB = extB & 0x3F;
	}
	_litIndex = (((usqInt) byte1 ) >> 3) + ((sqInt) (((usqInt) extA ) << 5) );
	extA = 0;
	_nArgs = (byte1 & 7) + ((sqInt) (((usqInt) extB ) << 3) );
	extB = 0;
	numExtB = 0;
	return ((_isDirected)
		 ? genSendDirectedSupernumArgs(_litIndex, _nArgs)
		 : genSendSupernumArgs(_litIndex, _nArgs));
}
/*	236		11101100	i i i i i i i i	Pop and Store Literal Variable #iiiiiiii (+ 
	Extend A * 256) */
/* SimpleStackBasedCogit>>#genExtStoreAndPopLiteralVariableBytecode */
static sqInt
genExtStoreAndPopLiteralVariableBytecode(void)
{
	sqInt _index;

	_index = byte1 + ((sqInt) (((usqInt) extA ) << 8) );
	extA = 0;
	return genStorePopLiteralVariableneedsStoreCheckneedsImmutabilityCheck(1, _index, ((((ssTop())->type)) != SSConstant) || ((isNonImmediate(((ssTop())->constant))) && (shouldAnnotateObjectReference(((ssTop())->constant)))), 1);
}
/*	235		11101011	i i i i i i i i	Pop and Store Receiver Variable #iiiiiii (+ 
	Extend A * 256) */
/* SimpleStackBasedCogit>>#genExtStoreAndPopReceiverVariableBytecode */
static sqInt
genExtStoreAndPopReceiverVariableBytecode(void)
{
	sqInt _index;

	_index = byte1 + ((sqInt) (((usqInt) extA ) << 8) );
	extA = 0;
	return ((isWriteMediatedContextInstVarIndex(_index))
		 ? genStorePopMaybeContextReceiverVariableneedsStoreCheckneedsImmutabilityCheck(1, _index, ((((ssTop())->type)) != SSConstant) || ((isNonImmediate(((ssTop())->constant))) && (shouldAnnotateObjectReference(((ssTop())->constant)))), 1)
		 : genStorePopReceiverVariableneedsStoreCheckneedsImmutabilityCheck(1, _index, ((((ssTop())->type)) != SSConstant) || ((isNonImmediate(((ssTop())->constant))) && (shouldAnnotateObjectReference(((ssTop())->constant)))), 1));
}
/*	233		11101001	i i i i i i i i	Store Literal Variable #iiiiiiii (+ Extend A 
	* 256) */
/* SimpleStackBasedCogit>>#genExtStoreLiteralVariableBytecode */
static sqInt
genExtStoreLiteralVariableBytecode(void)
{
	sqInt _index;

	_index = byte1 + ((sqInt) (((usqInt) extA ) << 8) );
	extA = 0;
	return genStorePopLiteralVariableneedsStoreCheckneedsImmutabilityCheck(0, _index, ((((ssTop())->type)) != SSConstant) || ((isNonImmediate(((ssTop())->constant))) && (shouldAnnotateObjectReference(((ssTop())->constant)))), 1);
}
/*	232		11101000	i i i i i i i i	Store Receiver Variable #iiiiiii (+ Extend A 
	* 256) */
/* SimpleStackBasedCogit>>#genExtStoreReceiverVariableBytecode */
static sqInt
genExtStoreReceiverVariableBytecode(void)
{
	sqInt _index;

	_index = byte1 + ((sqInt) (((usqInt) extA ) << 8) );
	extA = 0;
	return ((isWriteMediatedContextInstVarIndex(_index))
		 ? genStorePopMaybeContextReceiverVariableneedsStoreCheckneedsImmutabilityCheck(0, _index, ((((ssTop())->type)) != SSConstant) || ((isNonImmediate(((ssTop())->constant))) && (shouldAnnotateObjectReference(((ssTop())->constant)))), 1)
		 : genStorePopReceiverVariableneedsStoreCheckneedsImmutabilityCheck(0, _index, ((((ssTop())->type)) != SSConstant) || ((isNonImmediate(((ssTop())->constant))) && (shouldAnnotateObjectReference(((ssTop())->constant)))), 1));
}
/*	242		11110010	i i i i i i i i	Jump i i i i i i i i (+ Extend B * 256, 
	where bbbbbbbb = sddddddd, e.g. -32768 = i=0, a=0, s=1) */
/* SimpleStackBasedCogit>>#genExtUnconditionalJump */
static sqInt
genExtUnconditionalJump(void)
{
	AbstractInstruction *_abstractInstruction;
	sqInt _distance;
	sqInt _target;

	_distance = byte1 + ((sqInt) (((usqInt) extB ) << 8) );
	assert(_distance == (v4LongBranchDistance(generatorAt(byte0), bytecodePC, (((extA != 0)
		 ? 1
		 : 0)) + (((extB != 0)
		 ? 1
		 : 0)), methodObj)));
	extB = 0;
	numExtB = 0;
	_target = (_distance + 2) + bytecodePC;
	if (_distance < 0) {
		return genJumpBackTo(_target);
	}
	genJumpTo(_target);
	/* begin annotateBytecode: */
	_abstractInstruction = lastOpcode();
	(_abstractInstruction->annotation = HasBytecodePC);
	/* end annotateBytecode: */
	return 0;
}
/* SimpleStackBasedCogit>>#genFastPrimFail */
static sqInt
genFastPrimFail(void)
{
	primitiveIndex = 0;
	return UnfailingPrimitive;
}
/*	Suport for compileInterpreterPrimitive. Generate inline code so as to 
	record the primitive 
	trace as fast as possible. */
/* SimpleStackBasedCogit>>#genFastPrimTraceUsing:and: */
static void NoDbgRegParms
genFastPrimTraceUsingand(sqInt _r1, sqInt _r2)
{
	sqInt _address;
	sqInt _address2;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	sqInt _offset;
	sqInt _wordConstant;

	/* begin MoveAb:R: */
	_address = primTraceLogIndexAddress();
	/* begin gen:literal:operand: */
	checkLiteralforInstruction(_address, genoperandoperand(MoveAbR, _address, _r2));
	/* end gen:literal:operand: */
	/* end MoveAb:R: */
	/* begin MoveR:R: */
	genoperandoperand(MoveRR, _r2, _r1);
	/* end MoveR:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(AddCqR, 1, _r1);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin MoveR:Ab: */
	_address2 = primTraceLogIndexAddress();
	/* begin gen:operand:literal: */
	checkLiteralforInstruction(_address2, genoperandoperand(MoveRAb, _r1, _address2));
	/* end gen:operand:literal: */
	/* end MoveR:Ab: */
	addDependent(methodLabel, annotateAbsolutePCRef(gMoveCwR(((sqInt) methodLabel ), _r1)));
	/* begin MoveMw:r:R: */
	_offset = offsetof(CogMethod, selector);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction3 = genoperandoperandoperand(MoveMwrR, _offset, _r1, TempReg);
	if (usesOutOfLineLiteral(_anInstruction3)) {
		(_anInstruction3->dependent = locateLiteral(_offset));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end MoveMw:r:R: */
	/* begin MoveCw:R: */
	_wordConstant = ((sqInt) (primTraceLogAddress()) );
	/* begin gen:literal:operand: */
	checkLiteralforInstruction(_wordConstant, genoperandoperand(MoveCwR, _wordConstant, _r1));
	/* end gen:literal:operand: */
	/* end MoveCw:R: */
	/* begin MoveR:Xwr:R: */
	genoperandoperandoperand(MoveRXwrR, TempReg, _r2, _r1);
	/* end MoveR:Xwr:R: */
}
/*	230		11100110	i i i i i i i i	Push Temporary Variable #iiiiiiii */
/* SimpleStackBasedCogit>>#genLongPushTemporaryVariableBytecode */
static sqInt
genLongPushTemporaryVariableBytecode(void)
{
	return genPushTemporaryVariable(byte1);
}
/*	237		11101101	i i i i i i i i	Pop and Store Temporary Variable #iiiiiiii */
/* SimpleStackBasedCogit>>#genLongStoreAndPopTemporaryVariableBytecode */
static sqInt
genLongStoreAndPopTemporaryVariableBytecode(void)
{
	return genStorePopTemporaryVariable(1, byte1);
}
/*	234		11101010	i i i i i i i i	Store Temporary Variable #iiiiiiii */
/* SimpleStackBasedCogit>>#genLongStoreTemporaryVariableBytecode */
static sqInt
genLongStoreTemporaryVariableBytecode(void)
{
	return genStorePopTemporaryVariable(0, byte1);
}
/*	Compile the code for a probe of the first-level method cache for a perform 
	primtiive. The selector is assumed to be in Arg0Reg. Defer to 
	adjustArgumentsForPerform: to 
	adjust the arguments before the jump to the method. */
/* SimpleStackBasedCogit>>#genLookupForPerformNumArgs: */
static sqInt NoDbgRegParms
genLookupForPerformNumArgs(sqInt _numArgs)
{
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	sqInt _cacheBaseReg;
	AbstractInstruction *_itsAHit;
	AbstractInstruction *_jumpClassMiss;
	AbstractInstruction *_jumpInterpret;
	AbstractInstruction *_jumpSelectorMiss;
	sqInt _offset;

	genGetInlineCacheClassTagFrominto(ReceiverResultReg, SendNumArgsReg);
	_cacheBaseReg = NoReg;
	_jumpSelectorMiss = compilePerformMethodCacheProbeForwithShiftbaseRegOrNone(Arg0Reg, 0, _cacheBaseReg);
	/* begin JumpNonZero: */
	_jumpClassMiss = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
	/* begin MoveMw:r:R: */
	_offset = ((_cacheBaseReg == NoReg)
		 ? ((usqInt) (methodCacheAddress()) ) + ((int) (((usqInt) MethodCacheMethod ) << (shiftForWord())) )
		 : ((int) (((usqInt) MethodCacheMethod ) << (shiftForWord())) ));
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperandoperand(MoveMwrR, _offset, ClassReg, SendNumArgsReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_offset));
	}
	_itsAHit = _anInstruction2;
	/* end checkQuickConstant:forInstruction: */
	/* end MoveMw:r:R: */
	genLoadSlotsourceRegdestReg(HeaderIndex, SendNumArgsReg, ClassReg);
	_jumpInterpret = genJumpImmediate(ClassReg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction3 = genoperandoperand(AddCqR, cmNoCheckEntryOffset, ClassReg);
	if (usesOutOfLineLiteral(_anInstruction3)) {
		(_anInstruction3->dependent = locateLiteral(cmNoCheckEntryOffset));
	}
	/* end checkQuickConstant:forInstruction: */
	adjustArgumentsForPerform(_numArgs);
	/* begin JumpR: */
	genoperand(JumpR, ClassReg);
	/* end JumpR: */
	jmpTarget(_jumpSelectorMiss, jmpTarget(_jumpClassMiss, genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
	_jumpSelectorMiss = compilePerformMethodCacheProbeForwithShiftbaseRegOrNone(Arg0Reg, 1, _cacheBaseReg);
	/* begin JumpZero: */
	genConditionalBranchoperand(JumpZero, ((sqInt) _itsAHit ));
	/* end JumpZero: */
	jmpTarget(_jumpSelectorMiss, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	_jumpSelectorMiss = compilePerformMethodCacheProbeForwithShiftbaseRegOrNone(Arg0Reg, 2, _cacheBaseReg);
	/* begin JumpZero: */
	genConditionalBranchoperand(JumpZero, ((sqInt) _itsAHit ));
	/* end JumpZero: */
	jmpTarget(_jumpSelectorMiss, jmpTarget(_jumpInterpret, genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
	return 0;
}
/*	If the objectMemory allows it, generates a quick constant move, else 
	generates a word constant move */
/* SimpleStackBasedCogit>>#genMoveConstant:R: */
static AbstractInstruction * NoDbgRegParms
genMoveConstantR(sqInt _constant, sqInt _reg)
{
	AbstractInstruction *_anInstruction;

	return ((shouldAnnotateObjectReference(_constant))
		 ? annotateobjRef(gMoveCwR(_constant, _reg), _constant)
		 : (/* begin checkQuickConstant:forInstruction: */ (_anInstruction = genoperandoperand(MoveCqR, _constant, _reg)), ((usesOutOfLineLiteral(_anInstruction))
			 ? (_anInstruction->dependent = locateLiteral(_constant))
			 : 0), _anInstruction /* end checkQuickConstant:forInstruction: */));
}
/* SimpleStackBasedCogit>>#genMustBeBooleanTrampolineFor:called: */
static sqInt NoDbgRegParms
genMustBeBooleanTrampolineForcalled(sqInt _boolean, char *_trampolineName)
{
	AbstractInstruction *_anInstruction;

	zeroOpcodeIndex();
	assert(!(shouldAnnotateObjectReference(_boolean)));
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(AddCqR, _boolean, TempReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(_boolean));
	}
	/* end checkQuickConstant:forInstruction: */
	return genTrampolineForcallednumArgsargargargargregsToSavepushLinkRegresultRegappendOpcodes(ceSendMustBeBoolean, _trampolineName, 1, TempReg, null, null, null, 0, 1, NoReg, 1);
}
/*	Implement 28-bit hashMultiply for SmallInteger and LargePositiveInteger 
	receivers.  */
/* SimpleStackBasedCogit>>#genPrimitiveHashMultiply */
static sqInt
genPrimitiveHashMultiply(void)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction * _jmpFailImm;
	AbstractInstruction * _jmpFailNonImm;
	AbstractInstruction * _jmpNotSmallInt;
	AbstractInstruction * _reenter;

	_jmpNotSmallInt = genJumpNotSmallInteger(ReceiverResultReg);
	genConvertSmallIntegerToIntegerInReg(ReceiverResultReg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(MoveCqR, HashMultiplyConstant, TempReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(HashMultiplyConstant));
	}
	_reenter = _anInstruction;
	/* end checkQuickConstant:forInstruction: */
	/* begin MulR:R: */
	genMulRR(backEnd, TempReg, ReceiverResultReg);
	/* end MulR:R: */
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(AndCqR, HashMultiplyMask, ReceiverResultReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(HashMultiplyMask));
	}
	/* end checkQuickConstant:forInstruction: */
	genConvertIntegerToSmallIntegerInReg(ReceiverResultReg);
	/* begin RetN: */
	genoperand(RetN, 0);
	/* end RetN: */
	jmpTarget(_jmpNotSmallInt, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	_jmpFailImm = genJumpImmediate(ReceiverResultReg);
	genGetCompactClassIndexNonImmOfinto(ReceiverResultReg, ClassReg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction3 = genoperandoperand(CmpCqR, ClassLargePositiveIntegerCompactIndex, ClassReg);
	if (usesOutOfLineLiteral(_anInstruction3)) {
		(_anInstruction3->dependent = locateLiteral(ClassLargePositiveIntegerCompactIndex));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpNonZero: */
	_jmpFailNonImm = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
	genLoadSlotsourceRegdestReg(0, ReceiverResultReg, ReceiverResultReg);
	/* begin Jump: */
	genoperand(Jump, ((sqInt) _reenter ));
	/* end Jump: */
	jmpTarget(_jmpFailImm, jmpTarget(_jmpFailNonImm, genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
	return 0;
}
/*	Generate the substitute return code for an external or FFI primitive call. 
	On success simply return, extracting numArgs from newMethod. 
	On primitive failure call ceActivateFailingPrimitiveMethod: newMethod. */
/* SimpleStackBasedCogit>>#genPrimReturnEnterCogCodeEnilopmart: */
static void NoDbgRegParms
genPrimReturnEnterCogCodeEnilopmart(sqInt _profiling)
{
	sqInt _address;
	sqInt _address2;
	sqInt _address4;
	sqInt _address7;
	sqInt _address8;
	sqInt _address9;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction6;
	AbstractInstruction *_anInstruction8;
	sqInt _callTarget;
	AbstractInstruction *_continuePostSample;
	AbstractInstruction * _inst;
	AbstractInstruction *_jmpFail;
	AbstractInstruction *_jmpSample;
	sqInt _quickConstant;
	sqInt _reg;

	_continuePostSample = ((AbstractInstruction *) 0 );
	_jmpSample = ((AbstractInstruction *) 0 );
	zeroOpcodeIndex();
	{
		/* begin MoveCq:R: */
		_quickConstant = varBaseAddress();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(MoveCqR, _quickConstant, VarBaseReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_quickConstant));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveCq:R: */
	}
	if (_profiling) {
		{
			/* begin MoveAw:R: */
			_address = nextProfileTickAddress();
			/* begin gen:literal:operand: */
			checkLiteralforInstruction(_address, genoperandoperand(MoveAwR, _address, TempReg));
			/* end gen:literal:operand: */
			/* end MoveAw:R: */
			/* begin MoveAw:R: */
			_address2 = (nextProfileTickAddress()) + BytesPerWord;
			/* begin gen:literal:operand: */
			checkLiteralforInstruction(_address2, genoperandoperand(MoveAwR, _address2, ClassReg));
			/* end gen:literal:operand: */
			/* end MoveAw:R: */
			/* begin OrR:R: */
			genoperandoperand(OrRR, TempReg, ClassReg);
			/* end OrR:R: */
		}
		/* begin JumpNonZero: */
		_jmpSample = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
		/* end JumpNonZero: */
		/* begin Label */
		_continuePostSample = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
		/* end Label */
	}
	maybeCompileAllocFillerCheck();
	/* begin MoveAw:R: */
	_address7 = primFailCodeAddress();
	/* begin gen:literal:operand: */
	checkLiteralforInstruction(_address7, genoperandoperand(MoveAwR, _address7, TempReg));
	/* end gen:literal:operand: */
	/* end MoveAw:R: */
	flag("ask concrete code gen if move sets condition codes?");
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction8 = genoperandoperand(CmpCqR, 0, TempReg);
	if (usesOutOfLineLiteral(_anInstruction8)) {
		(_anInstruction8->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpNonZero: */
	_jmpFail = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
	{
		genLoadStackPointers(backEnd);
		{
			/* begin PopR: */
			genoperand(PopR, ReceiverResultReg);
			/* end PopR: */
			/* begin MoveAw:R: */
			_address4 = instructionPointerAddress();
			/* begin gen:literal:operand: */
			checkLiteralforInstruction(_address4, genoperandoperand(MoveAwR, _address4, PCReg));
			/* end gen:literal:operand: */
			/* end MoveAw:R: */
		}
	}
	jmpTarget(_jmpFail, gMoveAwR(newMethodAddress(), SendNumArgsReg));
	/* begin MoveAw:R: */
	_address8 = cStackPointerAddress();
	/* begin gen:literal:operand: */
	checkLiteralforInstruction(_address8, genoperandoperand(MoveAwR, _address8, SPReg));
	/* end gen:literal:operand: */
	/* end MoveAw:R: */
	compileCallFornumArgsargargargargresultRegregsToSave(ceActivateFailingPrimitiveMethod, 1, SendNumArgsReg, null, null, null, NoReg, 0);
	/* begin MoveAw:R: */
	_address9 = instructionPointerAddress();
	_reg = LinkReg;
	/* begin gen:literal:operand: */
	checkLiteralforInstruction(_address9, genoperandoperand(MoveAwR, _address9, _reg));
	/* end gen:literal:operand: */
	/* end MoveAw:R: */
	genLoadStackPointers(backEnd);
	{
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction6 = genoperandoperandoperand(MoveMwrR, 0, SPReg, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction6)) {
			(_anInstruction6->dependent = locateLiteral(0));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* begin RetN: */
	genoperand(RetN, BytesPerWord);
	/* end RetN: */
	if (_profiling) {
		jmpTarget(_jmpSample, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
		/* begin saveAndRestoreLinkRegAround: */
		_inst = genoperand(PushR, LinkReg);
		{
			/* begin CallFullRT: */
			_callTarget = (usqIntptr_t)ceCheckProfileTick;
			{
				/* begin gen:literal: */
				checkLiteralforInstruction(_callTarget, genoperand(CallFull, _callTarget));
				/* end gen:literal: */
			}
			/* end CallFullRT: */
		}
		genoperand(PopR, LinkReg);
		/* end saveAndRestoreLinkRegAround: */
		/* begin Jump: */
		genoperand(Jump, ((sqInt) _continuePostSample ));
		/* end Jump: */
	}
}
/* SimpleStackBasedCogit>>#genPushConstantFalseBytecode */
static sqInt
genPushConstantFalseBytecode(void)
{
	return genPushLiteral(falseObject());
}
/* SimpleStackBasedCogit>>#genPushConstantNilBytecode */
static sqInt
genPushConstantNilBytecode(void)
{
	return genPushLiteral(nilObject());
}
/*	79			01001111		Push 1 */
/* SimpleStackBasedCogit>>#genPushConstantOneBytecode */
static sqInt
genPushConstantOneBytecode(void)
{
	return genPushLiteral(((((usqInt) 1 ) << 1) | 1));
}
/* SimpleStackBasedCogit>>#genPushConstantTrueBytecode */
static sqInt
genPushConstantTrueBytecode(void)
{
	return genPushLiteral(trueObject());
}
/*	78			01001110		Push 0 */
/* SimpleStackBasedCogit>>#genPushConstantZeroBytecode */
static sqInt
genPushConstantZeroBytecode(void)
{
	return genPushLiteral(((((usqInt) 0 ) << 1) | 1));
}
/* SimpleStackBasedCogit>>#genPushLiteralConstantBytecode */
static sqInt
genPushLiteralConstantBytecode(void)
{
	return genPushLiteralIndex(byte0 & 0x1F);
}
/*	16-31		0001 i i i i		Push Literal Variable #iiii */
/* SimpleStackBasedCogit>>#genPushLiteralVariable16CasesBytecode */
static sqInt
genPushLiteralVariable16CasesBytecode(void)
{
	return genPushLiteralVariable(byte0 & 15);
}
/* SimpleStackBasedCogit>>#genPushQuickIntegerConstantBytecode */
static sqInt
genPushQuickIntegerConstantBytecode(void)
{
	return genPushLiteral(((((usqInt) (byte0 - 117) ) << 1) | 1));
}
/* SimpleStackBasedCogit>>#genPushReceiverVariableBytecode */
static sqInt
genPushReceiverVariableBytecode(void)
{
	return genPushReceiverVariable(byte0 & 15);
}
/* SimpleStackBasedCogit>>#genPushTemporaryVariableBytecode */
static sqInt
genPushTemporaryVariableBytecode(void)
{
	return genPushTemporaryVariable(byte0 & 15);
}
/*	because selected by CoInterpreter>>quickPrimitiveGeneratorFor: */
/* SimpleStackBasedCogit>>#genQuickReturnConst */
sqInt
genQuickReturnConst(void)
{
	AbstractInstruction *_anInstruction;
	sqInt _constant;

	_constant = quickPrimitiveConstantFor(primitiveIndex);
	/* begin genMoveConstant:R: */
	if (shouldAnnotateObjectReference(_constant)) {
		annotateobjRef(gMoveCwR(_constant, ReceiverResultReg), _constant);
	} else {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(MoveCqR, _constant, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_constant));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* end genMoveConstant:R: */
	genUpArrowReturn();
	return UnfailingPrimitive;
}
/*	because selected by CoInterpreter>>quickPrimitiveGeneratorFor: */
/* SimpleStackBasedCogit>>#genQuickReturnInstVar */
sqInt
genQuickReturnInstVar(void)
{
	sqInt _index;

	_index = quickPrimitiveInstVarIndexFor(primitiveIndex);
	genLoadSlotsourceRegdestReg(_index, ReceiverResultReg, ReceiverResultReg);
	genUpArrowReturn();
	return UnfailingPrimitive;
}
/*	because selected by CoInterpreter>>quickPrimitiveGeneratorFor: */
/* SimpleStackBasedCogit>>#genQuickReturnSelf */
sqInt
genQuickReturnSelf(void)
{
	genUpArrowReturn();
	return UnfailingPrimitive;
}
/* SimpleStackBasedCogit>>#genReturnFalse */
static sqInt
genReturnFalse(void)
{
	AbstractInstruction *_anInstruction;
	sqInt _constant;

	/* begin genMoveFalseR: */
	/* begin genMoveConstant:R: */
	_constant = falseObject();
	if (shouldAnnotateObjectReference(_constant)) {
		annotateobjRef(gMoveCwR(_constant, ReceiverResultReg), _constant);
	} else {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(MoveCqR, _constant, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_constant));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* end genMoveConstant:R: */
	/* end genMoveFalseR: */
	return genUpArrowReturn();
}
/* SimpleStackBasedCogit>>#genReturnNil */
static sqInt
genReturnNil(void)
{
	AbstractInstruction *_anInstruction;
	sqInt _constant;

	/* begin genMoveNilR: */
	/* begin genMoveConstant:R: */
	_constant = nilObject();
	if (shouldAnnotateObjectReference(_constant)) {
		annotateobjRef(gMoveCwR(_constant, ReceiverResultReg), _constant);
	} else {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(MoveCqR, _constant, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_constant));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* end genMoveConstant:R: */
	/* end genMoveNilR: */
	return genUpArrowReturn();
}
/* SimpleStackBasedCogit>>#genReturnNilFromBlock */
static sqInt
genReturnNilFromBlock(void)
{
	AbstractInstruction *_anInstruction;
	sqInt _constant;

	assert(inBlock > 0);
	/* begin genMoveNilR: */
	/* begin genMoveConstant:R: */
	_constant = nilObject();
	if (shouldAnnotateObjectReference(_constant)) {
		annotateobjRef(gMoveCwR(_constant, ReceiverResultReg), _constant);
	} else {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(MoveCqR, _constant, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_constant));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* end genMoveConstant:R: */
	/* end genMoveNilR: */
	return genBlockReturn();
}
/* SimpleStackBasedCogit>>#genReturnTrue */
static sqInt
genReturnTrue(void)
{
	AbstractInstruction *_anInstruction;
	sqInt _constant;

	/* begin genMoveTrueR: */
	/* begin genMoveConstant:R: */
	_constant = trueObject();
	if (shouldAnnotateObjectReference(_constant)) {
		annotateobjRef(gMoveCwR(_constant, ReceiverResultReg), _constant);
	} else {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(MoveCqR, _constant, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_constant));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* end genMoveConstant:R: */
	/* end genMoveTrueR: */
	return genUpArrowReturn();
}
/* SimpleStackBasedCogit>>#genSendLiteralSelector0ArgsBytecode */
static sqInt
genSendLiteralSelector0ArgsBytecode(void)
{
	return genSendnumArgs(byte0 & 15, 0);
}
/* SimpleStackBasedCogit>>#genSendLiteralSelector1ArgBytecode */
static sqInt
genSendLiteralSelector1ArgBytecode(void)
{
	return genSendnumArgs(byte0 & 15, 1);
}
/* SimpleStackBasedCogit>>#genSendLiteralSelector2ArgsBytecode */
static sqInt
genSendLiteralSelector2ArgsBytecode(void)
{
	return genSendnumArgs(byte0 & 15, 2);
}
/* SimpleStackBasedCogit>>#genShortJumpIfFalse */
static sqInt
genShortJumpIfFalse(void)
{
	sqInt _distance;
	sqInt _target;

	_distance = v3ShortForwardBranchDistance(generatorAt(byte0), bytecodePC, 0, methodObj);
	_target = (_distance + 1) + bytecodePC;
	return genJumpIfto(falseObject(), _target);
}
/* SimpleStackBasedCogit>>#genShortJumpIfTrue */
static sqInt
genShortJumpIfTrue(void)
{
	sqInt _distance;
	sqInt _target;

	_distance = v3ShortForwardBranchDistance(generatorAt(byte0), bytecodePC, 0, methodObj);
	_target = (_distance + 1) + bytecodePC;
	return genJumpIfto(trueObject(), _target);
}
/* SimpleStackBasedCogit>>#genShortUnconditionalJump */
static sqInt
genShortUnconditionalJump(void)
{
	sqInt _distance;
	sqInt _target;

	_distance = v3ShortForwardBranchDistance(generatorAt(byte0), bytecodePC, 0, methodObj);
	_target = (_distance + 1) + bytecodePC;
	return genJumpTo(_target);
}
/* SimpleStackBasedCogit>>#genSpecialSelectorEqualsEquals */
static sqInt
genSpecialSelectorEqualsEquals(void)
{
	return genInlinedIdenticalOrNotIf(0);
}
/* SimpleStackBasedCogit>>#genSpecialSelectorNotEqualsEquals */
static sqInt
genSpecialSelectorNotEqualsEquals(void)
{
	return genInlinedIdenticalOrNotIf(1);
}
/* SimpleStackBasedCogit>>#genSpecialSelectorSend */
static sqInt
genSpecialSelectorSend(void)
{
	sqInt _index;
	sqInt _numArgs;

	_index = byte0 - FirstSpecialSelector;
	_numArgs = specialSelectorNumArgs(_index);
	return genSendnumArgs(-_index - 1, _numArgs);
}
/* SimpleStackBasedCogit>>#genStoreAndPopReceiverVariableBytecode */
static sqInt
genStoreAndPopReceiverVariableBytecode(void)
{
	return genStorePopReceiverVariableneedsStoreCheckneedsImmutabilityCheck(1, byte0 & 7, ((((ssTop())->type)) != SSConstant) || ((isNonImmediate(((ssTop())->constant))) && (shouldAnnotateObjectReference(((ssTop())->constant)))), 1);
}
/* SimpleStackBasedCogit>>#genStoreAndPopRemoteTempLongBytecode */
static sqInt
genStoreAndPopRemoteTempLongBytecode(void)
{
	return genStorePopRemoteTempAtneedsStoreCheck(1, byte1, byte2, ((((ssTop())->type)) != SSConstant) || ((isNonImmediate(((ssTop())->constant))) && (shouldAnnotateObjectReference(((ssTop())->constant)))));
}
/* SimpleStackBasedCogit>>#genStoreAndPopTemporaryVariableBytecode */
static sqInt
genStoreAndPopTemporaryVariableBytecode(void)
{
	return genStorePopTemporaryVariable(1, byte0 & 7);
}
/* SimpleStackBasedCogit>>#genStoreRemoteTempLongBytecode */
static sqInt
genStoreRemoteTempLongBytecode(void)
{
	return genStorePopRemoteTempAtneedsStoreCheck(0, byte1, byte2, ((((ssTop())->type)) != SSConstant) || ((isNonImmediate(((ssTop())->constant))) && (shouldAnnotateObjectReference(((ssTop())->constant)))));
}
/*	SistaV1: *	217		Trap */
/* SimpleStackBasedCogit>>#genUnconditionalTrapBytecode */
static sqInt
genUnconditionalTrapBytecode(void)
{
	return EncounteredUnknownBytecode;
}
/*	Collect the branch and send data for cogMethod, storing it into arrayObj. */
/* SimpleStackBasedCogit>>#mapPCDataFor:into: */
sqInt
mapPCDataForinto(CogMethod *_cogMethod, sqInt _arrayObj)
{
	sqInt _aMethodObj;
	sqInt _annotation;
	sqInt _bcpc;
	sqInt _byte;
	BytecodeDescriptor *_descriptor;
	sqInt _distance;
	sqInt _endbcpc;
	sqInt _errCode;
	CogMethod *_homeMethod;
	sqInt _isBackwardBranch;
	usqInt _isInBlock;
	sqInt _latestContinuation;
	usqInt _map;
	sqInt _mapByte;
	usqInt _mcpc;
	int _nExts;
	sqInt _nextBcpc;
	sqInt _result;
	sqInt _startbcpc;
	sqInt _targetPC;

	introspectionDataIndex = 0;
	introspectionData = _arrayObj;
	if (((_cogMethod->stackCheckOffset)) == 0) {
		assert(introspectionDataIndex == 0);
		if ((_cogMethod->cpicHasMNUCaseOrCMIsFullBlock)) {
			{
				storePointerUncheckedofObjectwithValue(0, introspectionData, nilObject());
				storePointerUncheckedofObjectwithValue(1, introspectionData, ((((usqInt) cbNoSwitchEntryOffset ) << 1) | 1));
				storePointerUncheckedofObjectwithValue(2, introspectionData, nilObject());
				storePointerUncheckedofObjectwithValue(3, introspectionData, ((((usqInt) cbEntryOffset ) << 1) | 1));
			}
		}
 else {
			{
				storePointerUncheckedofObjectwithValue(0, introspectionData, nilObject());
				storePointerUncheckedofObjectwithValue(1, introspectionData, ((((usqInt) cmEntryOffset ) << 1) | 1));
				storePointerUncheckedofObjectwithValue(2, introspectionData, nilObject());
				storePointerUncheckedofObjectwithValue(3, introspectionData, ((((usqInt) cmNoCheckEntryOffset ) << 1) | 1));
			}
		}
		return 4;
	}
	/* begin mapFor:bcpc:performUntil:arg: */
	_startbcpc = startPCOfMethod((_cogMethod->methodObject));
	assert(((_cogMethod->stackCheckOffset)) > 0);
	_mcpc = ((usqInt) _cogMethod ) + ((_cogMethod->stackCheckOffset));
	_result = pcDataForAnnotationMcpcBcpcMethod(null, 0 + ((int) (((usqInt) HasBytecodePC ) << 1) ), ((char *) _mcpc ), _startbcpc, ((void *) _cogMethod ));
	if (_result != 0) {
		_errCode = _result;
		goto l3;
	}
	_bcpc = _startbcpc;
	_isInBlock = (_cogMethod->cpicHasMNUCaseOrCMIsFullBlock);
	_homeMethod = ((CogMethod *) _cogMethod );
	assert(_startbcpc == (startPCOfMethodHeader((_homeMethod->methodHeader))));
	_map = (((usqInt) _homeMethod ) + ((_homeMethod->blockSize))) - 1;
	_annotation = ((usqInt) (byteAt(_map)) ) >> AnnotationShift;
	assert((_annotation == IsAbsPCReference) || ((_annotation == IsObjectReference) || ((_annotation == IsRelativeCall) || (_annotation == IsDisplacementX2N))));
	_latestContinuation = _startbcpc;
	_aMethodObj = (_homeMethod->methodObject);
	_endbcpc = (numBytesOf(_aMethodObj)) - 1;
	_bcpc += deltaToSkipPrimAndErrorStoreInheader(_aMethodObj, (_homeMethod->methodHeader));
	_nExts = 0;
	while ((((usqInt) (byteAt(_map)) ) >> AnnotationShift) != HasBytecodePC) {
		_map -= 1;
	}
	_map -= 1;
	while (((_mapByte = byteAt(_map))) != MapEnd) {
		if (_mapByte >= FirstAnnotation) {
			_annotation = ((usqInt) _mapByte ) >> AnnotationShift;
			_mcpc += (_mapByte & DisplacementMask) * 4;
			if (_annotation >= HasBytecodePC) {
				if ((_annotation == IsSendCall) && ((((usqInt) ((_mapByte = byteAt(_map - 1))) ) >> AnnotationShift) == IsAnnotationExtension)) {
					_annotation += _mapByte & DisplacementMask;
					_map -= 1;
				}
				while (1) {
					_byte = fetchByteofObject(_bcpc, _aMethodObj);
					_descriptor = generatorAt(_byte);
					if (_isInBlock) {
						if (_bcpc >= _endbcpc) {
							_errCode = 0;
							goto l3;
						}
					} else {
						if (((_descriptor->isReturn)) && (_bcpc >= _latestContinuation)) {
							_errCode = 0;
							goto l3;
						}
						if (isBranch(_descriptor)) {
							/* begin latestContinuationPCFor:at:exts:in: */
							_distance = ((_descriptor->spanFunction))(_descriptor, _bcpc, _nExts, _aMethodObj);
							_targetPC = (_bcpc + ((_descriptor->numBytes))) + (((_distance < 0) ? 0 : _distance));
							/* end latestContinuationPCFor:at:exts:in: */
							_latestContinuation = ((_latestContinuation < _targetPC) ? _targetPC : _latestContinuation);
						}
					}
					_nextBcpc = _bcpc + ((_descriptor->numBytes));
					if (((_descriptor->isMapped)) || (_isInBlock && ((_descriptor->isMappedInBlock)))) 
						break;
					_bcpc = _nextBcpc;
					_nExts = (((_descriptor->isExtension))
						 ? _nExts + 1
						 : 0);
				}
				_isBackwardBranch = (isBranch(_descriptor)) && ((assert(((_descriptor->spanFunction)) != null), (((_descriptor->spanFunction))(_descriptor, _bcpc, _nExts, _aMethodObj)) < 0));
				_result = pcDataForAnnotationMcpcBcpcMethod(_descriptor, ((_isBackwardBranch)
					 ? ((sqInt) (((usqInt) _annotation ) << 1) ) + 1
					 : ((sqInt) (((usqInt) _annotation ) << 1) )), ((char *) _mcpc ), ((_isBackwardBranch)
					 ? _bcpc - (2 * _nExts)
					 : _bcpc), ((void *) _cogMethod ));
				if (_result != 0) {
					_errCode = _result;
					goto l3;
				}
				_bcpc = _nextBcpc;
				_nExts = (((_descriptor->isExtension))
					 ? _nExts + 1
					 : 0);
			}
		} else {
			assert(((((usqInt) _mapByte ) >> AnnotationShift) == IsDisplacementX2N) || ((((usqInt) _mapByte ) >> AnnotationShift) == IsAnnotationExtension));
			if (_mapByte < ((int) (((usqInt) IsAnnotationExtension ) << AnnotationShift) )) {
				_mcpc += ((sqInt) (((usqInt) (_mapByte - DisplacementX2N) ) << AnnotationShift) ) * 4;
			}
		}
		_map -= 1;
	}
	_errCode = 0;
	l3:
	;
	/* end mapFor:bcpc:performUntil:arg: */
	if (_errCode != 0) {
		assert(_errCode == PrimErrNoMemory);
		return -1;
	}
	return introspectionDataIndex;
}
/*	If allocCheckFiller is true, words in newSpace from freeStart to 
	scavengeThreshold are filled with their address, and after each call of a 
	plugin primitive, the VM checks 
	that freeStart points to a word containing the value of freeStart. This is 
	a simple 
	check for primitives overwriting the ends of an object. */
/* SimpleStackBasedCogit>>#maybeCompileAllocFillerCheck */
static void
maybeCompileAllocFillerCheck(void)
{
	sqInt _address;
	sqInt _address2;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_jmpOk;

	if (getCheckAllocFiller()) {
		/* begin MoveAw:R: */
		_address = freeStartAddress();
		/* begin gen:literal:operand: */
		checkLiteralforInstruction(_address, genoperandoperand(MoveAwR, _address, ClassReg));
		/* end gen:literal:operand: */
		/* end MoveAw:R: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperandoperand(MoveMwrR, 0, ClassReg, TempReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(0));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin CmpR:R: */
		genoperandoperand(CmpRR, ClassReg, TempReg);
		/* end CmpR:R: */
		/* begin JumpZero: */
		_jmpOk = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
		/* end JumpZero: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction2 = genoperandoperand(MoveCqR, PrimErrWritePastObject, TempReg);
		if (usesOutOfLineLiteral(_anInstruction2)) {
			(_anInstruction2->dependent = locateLiteral(PrimErrWritePastObject));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin MoveR:Aw: */
		_address2 = primFailCodeAddress();
		/* begin gen:operand:literal: */
		checkLiteralforInstruction(_address2, genoperandoperand(MoveRAw, TempReg, _address2));
		/* end gen:operand:literal: */
		/* end MoveR:Aw: */
		jmpTarget(_jmpOk, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	}
}
/* SimpleStackBasedCogit>>#numSpecialSelectors */
static sqInt
numSpecialSelectors(void)
{
	return NumSpecialSelectors;
}
/* SimpleStackBasedCogit>>#pcDataFor:Annotation:Mcpc:Bcpc:Method: */
static sqInt NoDbgRegParms
pcDataForAnnotationMcpcBcpcMethod(BytecodeDescriptor *_descriptor, sqInt _isBackwardBranchAndAnnotation, char *_mcpc, sqInt _bcpc, void *_cogMethodArg)
{
	sqInt _actualBcpc;
	sqInt _actualMcpc;

	if (!_descriptor) {
		assert(introspectionDataIndex == 0);
		if (((((CogMethod *) _cogMethodArg ))->cpicHasMNUCaseOrCMIsFullBlock)) {
			{
				storePointerUncheckedofObjectwithValue(introspectionDataIndex, introspectionData, nilObject());
				storePointerUncheckedofObjectwithValue(introspectionDataIndex + 1, introspectionData, ((((usqInt) cbNoSwitchEntryOffset ) << 1) | 1));
				storePointerUncheckedofObjectwithValue(introspectionDataIndex + 2, introspectionData, nilObject());
				storePointerUncheckedofObjectwithValue(introspectionDataIndex + 3, introspectionData, ((((usqInt) cbEntryOffset ) << 1) | 1));
			}
		}
 else {
			{
				storePointerUncheckedofObjectwithValue(introspectionDataIndex, introspectionData, nilObject());
				storePointerUncheckedofObjectwithValue(introspectionDataIndex + 1, introspectionData, ((((usqInt) cmEntryOffset ) << 1) | 1));
				storePointerUncheckedofObjectwithValue(introspectionDataIndex + 2, introspectionData, nilObject());
				storePointerUncheckedofObjectwithValue(introspectionDataIndex + 3, introspectionData, ((((usqInt) cmNoCheckEntryOffset ) << 1) | 1));
			}
		}
		{
			storePointerUncheckedofObjectwithValue(introspectionDataIndex + 4, introspectionData, ((((usqInt) (_bcpc + 1) ) << 1) | 1));
			storePointerUncheckedofObjectwithValue(introspectionDataIndex + 5, introspectionData, (((((((CogMethod *) _cogMethodArg ))->stackCheckOffset)) << 1) | 1));
		}
		introspectionDataIndex += 6;
		return 0;
	}
	if ((((usqInt) _isBackwardBranchAndAnnotation ) >> 1) >= HasBytecodePC) {
		_actualBcpc = ((_isBackwardBranchAndAnnotation & 1)
			 ? _bcpc + 1
			 : (_bcpc + ((_descriptor->numBytes))) + 1);
		_actualMcpc = ((usqInt) _mcpc ) - ((usqInt) _cogMethodArg );
		{
			storePointerUncheckedofObjectwithValue(introspectionDataIndex, introspectionData, ((((usqInt) _actualBcpc ) << 1) | 1));
			storePointerUncheckedofObjectwithValue(introspectionDataIndex + 1, introspectionData, ((((usqInt) _actualMcpc ) << 1) | 1));
		}
		introspectionDataIndex += 2;
	}
	return 0;
}
/*	If there is a generator for the current primitive then answer it; 
	otherwise answer nil. */
/* SimpleStackBasedCogit>>#primitiveDescriptor */
static PrimitiveDescriptor *
primitiveDescriptor(void)
{
	static PrimitiveDescriptor primitiveGeneratorTable[MaxCompiledPrimitiveIndex+1] = {
	{ 0, -1, 0 },
	{ genPrimitiveAdd, 1, 0 },
	{ genPrimitiveSubtract, 1, 0 },
	{ genPrimitiveLessThan, 1, 0 },
	{ genPrimitiveGreaterThan, 1, 0 },
	{ genPrimitiveLessOrEqual, 1, 0 },
	{ genPrimitiveGreaterOrEqual, 1, 0 },
	{ genPrimitiveEqual, 1, 0 },
	{ genPrimitiveNotEqual, 1, 0 },
	{ genPrimitiveMultiply, 1, 0 },
	{ genPrimitiveDivide, 1, 0 },
	{ genPrimitiveMod, 1, 0 },
	{ genPrimitiveDiv, 1, 0 },
	{ genPrimitiveQuo, 1, 0 },
	{ genPrimitiveBitAnd, 1, 0 },
	{ genPrimitiveBitOr, 1, 0 },
	{ genPrimitiveBitXor, 1, 0 },
	{ genPrimitiveBitShift, 1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ genPrimitiveAsFloat, 0, 0 },
	{ genPrimitiveFloatAdd, 1, 0 },
	{ genPrimitiveFloatSubtract, 1, 0 },
	{ genPrimitiveFloatLessThan, 1, 0 },
	{ genPrimitiveFloatGreaterThan, 1, 0 },
	{ genPrimitiveFloatLessOrEqual, 1, 0 },
	{ genPrimitiveFloatGreaterOrEqual, 1, 0 },
	{ genPrimitiveFloatEqual, 1, 0 },
	{ genPrimitiveFloatNotEqual, 1, 0 },
	{ genPrimitiveFloatMultiply, 1, 0 },
	{ genPrimitiveFloatDivide, 1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ genPrimitiveFloatSquareRoot, 0, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ genPrimitiveAt, 1, 0 },
	{ genPrimitiveAtPut, 2, 0 },
	{ genPrimitiveSize, 0, 0 },
	{ genPrimitiveStringAt, 1, 0 },
	{ genPrimitiveStringAtPut, 2, 0 },
	{ genFastPrimFail, -1, 0 },
	{ genFastPrimFail, -1, 0 },
	{ genFastPrimFail, -1, 0 },
	{ genPrimitiveObjectAt, 1, 0 },
	{ 0, -1, 0 },
	{ genPrimitiveNew, 0, 0 },
	{ genPrimitiveNewWithArg, 1, 0 },
	{ 0, -1, 0 },
	{ genNonImplementedPrimitive, -1, 1 },
	{ 0, -1, 0 },
	{ genPrimitiveIdentityHash, 0, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ genPrimitiveNewMethod, 2, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ genPrimitivePerform, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ genPrimitiveStringReplace, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ genPrimitiveIdentical, 1, 0 },
	{ genPrimitiveClass, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ genNonImplementedPrimitive, -1, 1 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ genNonImplementedPrimitive, -1, 1 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ genPrimitiveShallowCopy, 0, 1 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ genPrimitiveStringCompareWith, 1, 0 },
	{ genPrimitiveHashMultiply, 0, 0 },
	{ genNonImplementedPrimitive, -1, 1 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ genPrimitiveIntegerAt, 1, 0 },
	{ genPrimitiveIntegerAtPut, 2, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ genPrimitiveNotIdentical, 1, 0 },
	{ genPrimitiveAsCharacter, -1, 0 },
	{ genPrimitiveImmediateAsInteger, 0, 0 },
	{ 0, -1, 0 },
	{ genNonImplementedPrimitive, -1, 1 },
	{ 0, -1, 0 },
	{ genPrimitiveIdentityHash, 0, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ genFastPrimFail, -1, 0 },
	{ genFastPrimFail, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ genPrimitiveFullClosureValue, -1, 0 },
	{ 0, -1, 0 },
	{ genPrimitiveFullClosureValue, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ genNonImplementedPrimitive, -1, 1 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 },
	{ 0, -1, 0 }
};
	PrimitiveDescriptor *_aPrimitiveDescriptor;

	if (isQuickPrimitiveIndex(primitiveIndex)) {
		_aPrimitiveDescriptor = &(primitiveGeneratorTable[0]);
		(_aPrimitiveDescriptor->primitiveGenerator = quickPrimitiveGeneratorFor(primitiveIndex));
		return _aPrimitiveDescriptor;
	}
	if ((primitiveIndex >= 1) && (primitiveIndex <= MaxCompiledPrimitiveIndex)) {
		return &(primitiveGeneratorTable[primitiveIndex]);
	}
	_aPrimitiveDescriptor = &(primitiveGeneratorTable[0]);
	(_aPrimitiveDescriptor->primitiveGenerator = null);
	(_aPrimitiveDescriptor->primNumArgs = -1);
	(_aPrimitiveDescriptor->primMayCallBack = 0);
	return _aPrimitiveDescriptor;
}
/*	Answer any special requirements of the given primitive. Spur always needs 
	to set 
	primitiveFunctionPointer and newMethod so primitives can retry on failure 
	due to forwarders. */
/* SimpleStackBasedCogit>>#primitivePropertyFlags:primitiveDescriptor: */
static sqInt NoDbgRegParms
primitivePropertyFlagsprimitiveDescriptor(sqInt _primIndex, CogPrimitiveDescriptor *_aPrimitiveDescriptor)
{
	sqInt _baseFlags;

	if (_primIndex == PrimNumberHashMultiply) {
		return PrimCallOnSmalltalkStack;
	}
	_baseFlags = PrimCallNeedsPrimitiveFunction + PrimCallNeedsNewMethod;
	if (hasProfileSemaphore()) {
		_baseFlags = _baseFlags | PrimCallCollectsProfileSamples;
	}
	if ((_aPrimitiveDescriptor->primMayCallBack)) {
		_baseFlags = _baseFlags | PrimCallMayCallBack;
		if (hasCheckAllocFiller()) {
			_baseFlags = _baseFlags | CheckAllocationFillerAfterPrimCall;
		}
	}
	return _baseFlags;
}
/* SimpleStackBasedCogit>>#recordCallOffsetIn: */
void
recordCallOffsetIn(CogMethod *_cogMethod)
{
	sqInt _offset;
	sqInt *_offsetTable;

	_offset = ((primSetFunctionLabel->address)) - ((sqInt) _cogMethod );
	if ((externalSetPrimOffsets[(_cogMethod->cmNumArgs)]) == null) {
		externalSetPrimOffsets[(_cogMethod->cmNumArgs)] = _offset;
	} else {
		assert((externalSetPrimOffsets[(_cogMethod->cmNumArgs)]) == _offset);
	}
	_offsetTable = ((isJump(primInvokeInstruction))
		 ? externalPrimJumpOffsets
		 : externalPrimCallOffsets);
	_offset = (((primInvokeInstruction->address)) + ((primInvokeInstruction->machineCodeSize))) - ((sqInt) _cogMethod );
	if ((_offsetTable[(_cogMethod->cmNumArgs)]) == null) {
		_offsetTable[(_cogMethod->cmNumArgs)] = _offset;
	} else {
		assert((_offsetTable[(_cogMethod->cmNumArgs)]) == _offset);
	}
}
/* SimpleStackBasedCogit>>#rewritePrimInvocationIn:to: */
void
rewritePrimInvocationInto(CogMethod *_cogMethod, void (*_primFunctionPointer)(void))
{
	usqInt _address;
	sqInt _callTargetAddress;
	sqInt _callTargetAddress2;
	sqInt _extent;
	sqInt _flags;
	sqInt _primIndex;

	/* begin enableCodeZoneWriteDuring:flushingCacheWith: */
	/* begin enableCodeZoneWrite */
	if (jitCodeZoneWriteEnabled) {
		error("Code zone writing is not reentrant");
	}
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(0);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryNotExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 1;
	/* end enableCodeZoneWrite */
	{
		assert(((_cogMethod->cmType)) == CMMethod);
		_primIndex = (primitiveIndex = primitiveIndexOfMethodheader((_cogMethod->methodObject), (_cogMethod->methodHeader)));
		_flags = primitivePropertyFlagsprimitiveDescriptor(_primIndex, primitiveDescriptor());
		if (_flags & PrimCallNeedsPrimitiveFunction) {
			storeLiteralbeforeFollowingAddress(backEnd, ((usqInt) _primFunctionPointer ), ((usqInt) _cogMethod ) + (externalSetPrimOffsets[(_cogMethod->cmNumArgs)]));
		}
		if (_flags & PrimCallMayCallBack) {
			_address = ((usqInt) _cogMethod ) + (externalPrimJumpOffsets[(_cogMethod->cmNumArgs)]);
			/* begin rewriteJumpFullAt:target: */
			_callTargetAddress = ((usqInt) _primFunctionPointer );
			_extent = rewriteFullTransferAttargetexpectedInstruction(((AbstractInstruction *) backEnd ), _address, _callTargetAddress, 3778019100U);
			/* end rewriteJumpFullAt:target: */
		} else {
			_address = ((usqInt) _cogMethod ) + (externalPrimCallOffsets[(_cogMethod->cmNumArgs)]);
			/* begin rewriteCallFullAt:target: */
			_callTargetAddress2 = ((usqInt) _primFunctionPointer );
			_extent = rewriteFullTransferAttargetexpectedInstruction(((AbstractInstruction *) backEnd ), _address, _callTargetAddress2, 3778019132U);
			/* end rewriteCallFullAt:target: */
		}
	}
	/* begin disableCodeZoneWrite */
	
#  if READ_ONLY_CODE_ZONE
	{
		
#    if __APPLE__
		{
			pthread_jit_write_protect_np(1);
		}
#    else /* __APPLE__ */
		{
			sqMakeMemoryExecutableFromTo(codeStart(), codeEnd());
		}
#    endif /* __APPLE__ */
	}
#  endif /* READ_ONLY_CODE_ZONE */
	jitCodeZoneWriteEnabled = 0;
	/* end disableCodeZoneWrite */
	{
		flushICacheFromto(((usqInt) _cogMethod ) + cmNoCheckEntryOffset, ((usqInt) _address ) + _extent);
	}
	/* end enableCodeZoneWriteDuring:flushingCacheWith: */
}
/*	Answers if the code is installed in a class instantiating objects with the 
	format. Used in primitive  
	generation to make a quick path based on where the method is installed. 
	This method cannot 
	be used as a guarantee as there can be false positive, it's just a 
	heuristic. Tries to interpret the last literal of the method as a behavior 
	(more than 3 fields, 3rd field a Smi). 
	If it can be interpreted as a behavior, answers if instSpec matches the 
	format, else answers false. */
/* SimpleStackBasedCogit>>#seemsToBeInstantiating: */
static sqInt NoDbgRegParms
seemsToBeInstantiating(sqInt _format)
{
	return maybeMethodClassOfseemsToBeInstantiating(methodObj, _format);
}
/*	N.B. This serves for both BlueBook/V3 and V4 short jumps. */
/* SimpleStackBasedCogit>>#v3:ShortForward:Branch:Distance: */
static sqInt NoDbgRegParms
v3ShortForwardBranchDistance(BytecodeDescriptor *descriptor, sqInt _pc, sqInt _nExts, sqInt _aMethodObj)
{
	assert(_nExts == 0);
	return ((fetchByteofObject(_pc, _aMethodObj)) & 7) + 1;
}
/*	242		11110010	i i i i i i i i	Jump i i i i i i i i (+ Extend B * 256, 
	where bbbbbbbb = sddddddd, e.g. -32768 = i=0, a=0, s=1)243		11110011	i i i i i i i i	Pop and Jump 0n True i i i i i i i i (+ 
	Extend A * 256)244		11110100	i i i i i i i i	Pop and Jump 0n False i i i i i i i i (+ 
	Extend A * 256) */
/* SimpleStackBasedCogit>>#v4:LongForward:Branch:Distance: */
static sqInt NoDbgRegParms
v4LongForwardBranchDistance(BytecodeDescriptor *descriptor, sqInt _pc, sqInt _nExts, sqInt _aMethodObj)
{
	sqInt _byte;
	sqInt _extAValue;
	sqInt _extBValue;
	int _extBValue2;
	sqInt _extByte;
	sqInt _pc2;

	assert(_nExts >= 0);
	/* begin parseV4Exts:priorTo:in:into: */
	_extAValue = (_extBValue2 = 0);
	_pc2 = (_pc - _nExts) - _nExts;
	while (_pc2 < _pc) {
		_byte = fetchByteofObject(_pc2, _aMethodObj);
		_pc2 += 1;
		_extByte = fetchByteofObject(_pc2, _aMethodObj);
		_pc2 += 1;
		assert((_byte == 224) || (_byte == 225));
		if (_byte == 224) {
			_extAValue = (((usqInt) _extAValue ) << 8) + _extByte;
		} else {
			_extBValue2 = (((_extBValue2 == 0) && (_extByte > 0x7F))
				 ? _extByte - 256
				 : (((usqInt) _extBValue2 ) << 8) + _extByte);
		}
	}
	{
		_extBValue = _extBValue2;
	}
	/* end parseV4Exts:priorTo:in:into: */
	return (fetchByteofObject(_pc + 1, _aMethodObj)) + ((sqInt) (((usqInt) _extBValue ) << 8) );
}
/*	242		11110010	i i i i i i i i	Jump i i i i i i i i (+ Extend B * 256, 
	where bbbbbbbb = sddddddd, e.g. -32768 = i=0, a=0, s=1) */
/* SimpleStackBasedCogit>>#v4:Long:Branch:Distance: */
static sqInt NoDbgRegParms
v4LongBranchDistance(BytecodeDescriptor *descriptor, sqInt _pc, sqInt _nExts, sqInt _aMethodObj)
{
	sqInt _byte;
	sqInt _extAValue;
	sqInt _extBValue;
	int _extBValue2;
	sqInt _extByte;
	sqInt _pc2;

	assert(_nExts >= 0);
	/* begin parseV4Exts:priorTo:in:into: */
	_extAValue = (_extBValue2 = 0);
	_pc2 = (_pc - _nExts) - _nExts;
	while (_pc2 < _pc) {
		_byte = fetchByteofObject(_pc2, _aMethodObj);
		_pc2 += 1;
		_extByte = fetchByteofObject(_pc2, _aMethodObj);
		_pc2 += 1;
		assert((_byte == 224) || (_byte == 225));
		if (_byte == 224) {
			_extAValue = (((usqInt) _extAValue ) << 8) + _extByte;
		} else {
			_extBValue2 = (((_extBValue2 == 0) && (_extByte > 0x7F))
				 ? _extByte - 256
				 : (((usqInt) _extBValue2 ) << 8) + _extByte);
		}
	}
	{
		_extBValue = _extBValue2;
	}
	/* end parseV4Exts:priorTo:in:into: */
	return (fetchByteofObject(_pc + 1, _aMethodObj)) + ((sqInt) (((usqInt) _extBValue ) << 8) );
}
/* SimpleStackBasedCogit>>#voidCogCompiledCode */
void
voidCogCompiledCode(void)
{
	sqInt _i;

	clearCogCompiledCode();
	for (_i = 0; _i <= MaxNumArgs; _i += 1) {
		externalPrimJumpOffsets[_i] = null;
		externalPrimCallOffsets[_i] = null;
		externalSetPrimOffsets[_i] = null;
	}
}
/*	e.g.	Receiver				Receiver	or	Receiver				Receiver	(RISC) 
	Selector/Arg0	=>		Arg1			Selector/Arg0	=>		Arg1 
	Arg1					Arg2			Arg1					Arg2 
	Arg2					Arg3			Arg2			sp->	Arg3 
	Arg3			sp->	retpc	sp->	Arg3 
	sp->	retpcGenerate code to adjust the possibly stacked arguments immediately 
	before jumping to a method looked up by a perform primitive. */
/* StackToRegisterMappingCogit>>#adjustArgumentsForPerform: */
static void NoDbgRegParms
adjustArgumentsForPerform(sqInt _numArgs)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction11;
	AbstractInstruction *_anInstruction12;
	AbstractInstruction *_anInstruction13;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction4;

	assert((numRegArgs()) <= 2);
	assert(_numArgs >= 1);
	if (_numArgs <= 2) {
		if (_numArgs == 2) {
			/* begin MoveR:R: */
			genoperandoperand(MoveRR, Arg1Reg, Arg0Reg);
			/* end MoveR:R: */
		}
		return;
	}
	if ((2 + 1) == _numArgs) {
		{
			{
				/* begin checkQuickConstant:forInstruction: */
				_anInstruction = genoperandoperandoperand(MoveMwrR, 0, SPReg, Arg1Reg);
				if (usesOutOfLineLiteral(_anInstruction)) {
					(_anInstruction->dependent = locateLiteral(0));
				}
				/* end checkQuickConstant:forInstruction: */
				/* begin checkQuickConstant:forInstruction: */
				_anInstruction2 = genoperandoperandoperand(MoveMwrR, BytesPerWord, SPReg, Arg0Reg);
				if (usesOutOfLineLiteral(_anInstruction2)) {
					(_anInstruction2->dependent = locateLiteral(BytesPerWord));
				}
				/* end checkQuickConstant:forInstruction: */
			}
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction4 = genoperandoperand(AddCqR, (_numArgs + 1) * BytesPerWord, SPReg);
			if (usesOutOfLineLiteral(_anInstruction4)) {
				(_anInstruction4->dependent = locateLiteral((_numArgs + 1) * BytesPerWord));
			}
			/* end checkQuickConstant:forInstruction: */
		}
		return;
	}
	{
		sqInt _index;

		{
			for (_index = _numArgs - 2; _index >= 0; _index += -1) {
				/* begin checkQuickConstant:forInstruction: */
				_anInstruction11 = genoperandoperandoperand(MoveMwrR, _index * BytesPerWord, SPReg, TempReg);
				if (usesOutOfLineLiteral(_anInstruction11)) {
					(_anInstruction11->dependent = locateLiteral(_index * BytesPerWord));
				}
				/* end checkQuickConstant:forInstruction: */
				/* begin checkQuickConstant:forInstruction: */
				_anInstruction12 = genoperandoperandoperand(MoveRMwr, TempReg, (_index + 1) * BytesPerWord, SPReg);
				if (usesOutOfLineLiteral(_anInstruction12)) {
					(_anInstruction12->dependent = locateLiteral((_index + 1) * BytesPerWord));
				}
				/* end checkQuickConstant:forInstruction: */
			}
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction13 = genoperandoperand(AddCqR, BytesPerWord, SPReg);
			if (usesOutOfLineLiteral(_anInstruction13)) {
				(_anInstruction13->dependent = locateLiteral(BytesPerWord));
			}
			/* end checkQuickConstant:forInstruction: */
		}
	}
}
/*	If the stack entry is already in a register not conflicting with regMask, 
	answers it, 
	else allocate a new register not conflicting with reg mask */
/* StackToRegisterMappingCogit>>#allocateRegForStackEntryAt:notConflictingWith: */
static signed char NoDbgRegParms
allocateRegForStackEntryAtnotConflictingWith(sqInt _index, sqInt _regMask)
{
	sqInt _mask;
	CogSimStackEntry *_stackEntry;

	_stackEntry = ssValue(_index);
	_mask = registerMaskOrNone(_stackEntry);
	if ((_mask != 0) && ((_mask & _regMask) == 0)) {
		flag("TODO");
		return registerOrNone(_stackEntry);
	}
	return allocateRegNotConflictingWith(_regMask);
}
/*	if there's a free register, use it */
/* StackToRegisterMappingCogit>>#allocateRegNotConflictingWith: */
static sqInt NoDbgRegParms
allocateRegNotConflictingWith(sqInt _regMask)
{
	sqInt _reg;

	_reg = availableRegisterOrNoneFor(backEnd, (liveRegisters()) | _regMask);
	if (_reg == NoReg) {
		_reg = freeAnyRegNotConflictingWith(_regMask);
	}
	if (_reg == ReceiverResultReg) {
		voidReceiverResultRegContainsSelf();
	}
	return _reg;
}
/*	If the stack entry is already in a register not conflicting with regMask, 
	answers it, 
	else allocate a new register not conflicting with reg mask */
/* StackToRegisterMappingCogit>>#allocateVectorRegForStackEntryAt:notConflictingWith: */
static signed char NoDbgRegParms
allocateVectorRegForStackEntryAtnotConflictingWith(sqInt _index, sqInt _regMask)
{
	sqInt _mask;
	CogSimStackEntry *_stackEntry;

	_stackEntry = ssValue(_index);
	_mask = registerMaskOrNone(_stackEntry);
	if ((_mask != 0) && ((_mask & _regMask) == 0)) {
		flag("TODO");
		return registerOrNone(_stackEntry);
	}
	return allocateVectorRegNotConflictingWith(_regMask);
}
/*	if there's a free register, use it */
/* StackToRegisterMappingCogit>>#allocateVectorRegNotConflictingWith: */
static sqInt NoDbgRegParms
allocateVectorRegNotConflictingWith(sqInt _regMask)
{
	sqInt _reg;

	_reg = availableVectorRegisterOrNoneFor(backEnd, (liveVectorRegisters()) | _regMask);
	return _reg;
}
/* StackToRegisterMappingCogit>>#anyReferencesToRegister:inTopNItems: */
static sqInt NoDbgRegParms
anyReferencesToRegisterinTopNItems(sqInt _reg, sqInt _n)
{
	sqInt _i;
	sqInt _regMask;

	/* begin registerMaskFor: */
	_regMask = 1U << _reg;
	/* end registerMaskFor: */
	for (_i = simStackPtr; _i >= ((simStackPtr - _n) + 1); _i += -1) {
		if ((registerMask(simStackAt(_i))) & _regMask) {
			return 1;
		}
	}
	return 0;
}
/*	This is a static version of ceCallCogCodePopReceiverArg0Regs 
	for break-pointing when debugging in C.This exists only for break-pointing. */
/* StackToRegisterMappingCogit>>#callCogCodePopReceiverArg0Regs */
void
callCogCodePopReceiverArg0Regs(void)
{
	realCECallCogCodePopReceiverArg0Regs();
}
/*	This is a static version of ceCallCogCodePopReceiverArg1Arg0Regs 
	for break-pointing when debugging in C.This exists only for break-pointing. */
/* StackToRegisterMappingCogit>>#callCogCodePopReceiverArg1Arg0Regs */
void
callCogCodePopReceiverArg1Arg0Regs(void)
{
	realCECallCogCodePopReceiverArg1Arg0Regs();
}
/*	Loop over bytecodes, dispatching to the generator for each bytecode, 
	handling fixups in due course. */
/* StackToRegisterMappingCogit>>#compileAbstractInstructionsFrom:through: */
static sqInt NoDbgRegParms
compileAbstractInstructionsFromthrough(sqInt _start, sqInt _end)
{
	BytecodeDescriptor *_descriptor;
	BytecodeFixup *_fixup;
	sqInt _nExts;
	sqInt _nextOpcodeIndex;
	int _result;

	bytecodePC = _start;
	_nExts = (_result = 0);
	_descriptor = null;
	deadCode = 0;
	while (1) {
		mergeWithFixupIfRequired((_fixup = fixupAt(bytecodePC)));
		_descriptor = loadBytesAndGetDescriptor();
		_nextOpcodeIndex = opcodeIndex;
		_result = ((deadCode)
			 ? mapDeadDescriptorIfNeeded(_descriptor)
			 : ((_descriptor->generator))());
		if (_result == 0) {
			/* begin assertExtsAreConsumed: */
			if (!((_descriptor->isExtension))) {
				assert((extA == 0) && ((extB == 0) && (numExtB == 0)));
			}
			/* end assertExtsAreConsumed: */
		}
		/* begin patchFixupTargetIfNeeded:nextOpcodeIndex: */
		if ((((usqInt) ((_fixup->targetInstruction)) ) >= NeedsNonMergeFixupFlag) && (((usqInt) ((_fixup->targetInstruction)) ) <= NeedsMergeFixupFlag)) {
			if (opcodeIndex == _nextOpcodeIndex) {
				/* begin Label */
				genoperandoperand(Label, (labelCounter += 1), bytecodePC);
				/* end Label */
			}
			(_fixup->targetInstruction = abstractInstructionAt(_nextOpcodeIndex));
		}
		/* end patchFixupTargetIfNeeded:nextOpcodeIndex: */
		/* begin maybeDumpLiterals: */
		if ((mustDumpLiterals(opcodeIndex)) || (((isBranch(_descriptor)) && (!(((_descriptor->isBranchTrue)) || ((_descriptor->isBranchFalse))))) || ((_descriptor->isReturn)))) {
			dumpLiterals(!(((isBranch(_descriptor)) && (!(((_descriptor->isBranchTrue)) || ((_descriptor->isBranchFalse))))) || ((_descriptor->isReturn))));
		}
		/* end maybeDumpLiterals: */
		/* begin nextBytecodePCFor:exts: */
		/* begin nextBytecodePCFor:at:exts:in: */
		bytecodePC += (_descriptor->numBytes);
		/* end nextBytecodePCFor:at:exts:in: */
		/* end nextBytecodePCFor:exts: */
		if (!((_result == 0) && (bytecodePC <= _end))) 
			break;
		_nExts = (((_descriptor->isExtension))
			 ? _nExts + 1
			 : 0);
	}
	/* begin checkEnoughOpcodes */
	if (opcodeIndex > numAbstractOpcodes) {
		error("Cog JIT internal error. Too many abstract opcodes.  Num opcodes heuristic is too optimistic.");
	}
	/* end checkEnoughOpcodes */
	return _result;
}
/* StackToRegisterMappingCogit>>#compileCogFullBlockMethod: */
static CogMethod * NoDbgRegParms
compileCogFullBlockMethod(sqInt _numCopied)
{
	sqInt _numberOfAbstractOpcodes;

	methodOrBlockNumTemps = tempCountOf(methodObj);
	{
		sqInt _numBytecodes;
		sqInt _result;
		sqInt _successScan;

		hasYoungReferent = isYoungObject(getMemoryMap(), methodObj);
		methodOrBlockNumArgs = argumentCountOf(methodObj);
		inBlock = InFullBlock;
		postCompileHook = null;
		maxLitIndex = -1;
		initialPC = startPCOfMethod(methodObj);
		endPC = numBytesOf(methodObj);
		_numBytecodes = (endPC - initialPC) + 1;
		primitiveIndex = 0;
		/* begin allocateOpcodes:bytecodes:ifFail: */
		_numberOfAbstractOpcodes = (_numBytecodes + 10) * 15;
		if (_numberOfAbstractOpcodes > MaxNumberOfAbstractOpcodes) {
			{
				return ((CogMethod *) MethodTooBig );
			}
			goto l2;
		}
		ensureAndClearAbstractOpcodes(_numberOfAbstractOpcodes);
		zeroOpcodeIndexForNewOpcodes();
		labelCounter = 0;
		l2:
		;
		/* end allocateOpcodes:bytecodes:ifFail: */
		flag("TODO");
		if (((_successScan = scanMethod())) < 0) {
			return ((CogMethod *) _successScan );
		}
		(methodLabel->dependent = null);
		if (((_result = compileEntireFullBlockMethod(_numCopied))) < 0) {
			return ((CogMethod *) _result );
		}
		return generateCogFullBlock();
	}
	return 0;
}
/* StackToRegisterMappingCogit>>#compileCogMethod: */
static CogMethod * NoDbgRegParms
compileCogMethod(sqInt _selector)
{
	sqInt _numberOfAbstractOpcodes;

	methodOrBlockNumTemps = tempCountOf(methodObj);
	{
		int _extra;
		sqInt _numBytecodes;
		sqInt _result;
		sqInt _successScan;

		hasYoungReferent = (isYoungObject(getMemoryMap(), methodObj)) || (isYoung(_selector));
		methodOrBlockNumArgs = argumentCountOf(methodObj);
		inBlock = 0;
		postCompileHook = null;
		maxLitIndex = -1;
		_extra = (((((primitiveIndex = primitiveIndexOf(methodObj))) > 0) && (!(isQuickPrimitiveIndex(primitiveIndex))))
			 ? 30
			 : 10);
		initialPC = startPCOfMethod(methodObj);
		endPC = ((isQuickPrimitiveIndex(primitiveIndex))
			 ? initialPC - 1
			 : numBytesOf(methodObj));
		_numBytecodes = (endPC - initialPC) + 1;
		/* begin allocateOpcodes:bytecodes:ifFail: */
		_numberOfAbstractOpcodes = (_numBytecodes + _extra) * 15;
		if (_numberOfAbstractOpcodes > MaxNumberOfAbstractOpcodes) {
			{
				return ((CogMethod *) MethodTooBig );
			}
			goto l2;
		}
		ensureAndClearAbstractOpcodes(_numberOfAbstractOpcodes);
		zeroOpcodeIndexForNewOpcodes();
		labelCounter = 0;
		l2:
		;
		/* end allocateOpcodes:bytecodes:ifFail: */
		if (((_successScan = scanMethod())) < 0) {
			return ((CogMethod *) _successScan );
		}
		if (methodFoundInvalidPostScan()) {
			return ((CogMethod *) ShouldNotJIT );
		}
		(methodLabel->dependent = null);
		if (((_result = compileEntireMethod())) < 0) {
			return ((CogMethod *) _result );
		}
		return generateCogMethod(_selector);
	}
	return 0;
}
/*	Compile the abstract instructions for the entire method, including blocks.Compile the abstract instructions for the entire method, including blocks. */
/* StackToRegisterMappingCogit>>#compileEntireMethod */
static sqInt
compileEntireMethod(void)
{
	regArgsHaveBeenPushed = 0;
	{
		sqInt _result;

		/* begin preenMethodLabel */
		/* begin setLabelOffset: */
		((((AbstractInstruction *) methodLabel ))->operands)[1] = 0;
		/* end setLabelOffset: */
		/* end preenMethodLabel */
		compileAbort();
		compileEntry();
		if (((_result = compilePrimitive())) < 0) {
			return _result;
		}
		compileFrameBuild();
		/* begin compileMethodBody */
		if (endPC < initialPC) {
			return 0;
		}
		return compileAbstractInstructionsFromthrough(initialPC + (deltaToSkipPrimAndErrorStoreInheader(methodObj, methodHeader)), endPC);
		/* end compileMethodBody */
	}
	return 0;
}
/*	Build a frame for a CogMethod activation. See CoInterpreter 
	class>>initializeFrameIndices. receiver (in ReceiverResultReg) 
	arg0 
	... 
	argN 
	caller's saved ip/this stackPage (for a base frame) 
	fp->	saved fp 
	method 
	context (uninitialized?) 
	receiver 
	first temp 
	... 
	sp->	Nth temp 
	If there is a primitive and an error code the Nth temp is the error code. 
	Ensure SendNumArgsReg is set early on (incidentally to nilObj) because 
	it is the flag determining whether context switch is allowed on 
	stack-overflow. Build a frame for a CogMethod activation. See CoInterpreter 
	class>>initializeFrameIndices. Override to push the register receiver and 
	register arguments, if any. */
/* StackToRegisterMappingCogit>>#compileFrameBuild */
static void
compileFrameBuild(void)
{
	sqInt _address;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	sqInt _constant;
	sqInt _iLimit;

	
#  if IMMUTABILITY
	{
		if (useTwoPaths) {
			compileTwoPathFrameBuild();
			return;
		}
	}
#  endif /* IMMUTABILITY */
	if (!needsFrame) {
		if (useTwoPaths) {
			compileTwoPathFramelessInit();
		}
		initSimStackForFramelessMethod(initialPC);
		return;
	}
	assert(!useTwoPaths);
	genPushRegisterArgs();
	{
		sqInt _i;
		AbstractInstruction *_jumpSkip;

		if (!needsFrame) {
			return;
		}
		{
			/* begin PushR: */
			genoperand(PushR, LinkReg);
			/* end PushR: */
		}
		/* begin PushR: */
		genoperand(PushR, FPReg);
		/* end PushR: */
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, SPReg, FPReg);
		/* end MoveR:R: */
		addDependent(methodLabel, annotateAbsolutePCRef(gPushCw(((sqInt) methodLabel ))));
		/* begin genMoveNilR: */
		/* begin genMoveConstant:R: */
		_constant = nilObject();
		if (shouldAnnotateObjectReference(_constant)) {
			annotateobjRef(gMoveCwR(_constant, SendNumArgsReg), _constant);
		} else {
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction = genoperandoperand(MoveCqR, _constant, SendNumArgsReg);
			if (usesOutOfLineLiteral(_anInstruction)) {
				(_anInstruction->dependent = locateLiteral(_constant));
			}
			/* end checkQuickConstant:forInstruction: */
		}
		/* end genMoveConstant:R: */
		/* end genMoveNilR: */
		/* begin PushR: */
		genoperand(PushR, SendNumArgsReg);
		/* end PushR: */
		/* begin PushR: */
		genoperand(PushR, ReceiverResultReg);
		/* end PushR: */
		for (_i = methodOrBlockNumArgs + 1, _iLimit = temporaryCountOfMethodHeader(methodHeader); _i <= _iLimit; _i += 1) {
			/* begin PushR: */
			genoperand(PushR, SendNumArgsReg);
			/* end PushR: */
		}
		if (((primitiveIndexOfMethodheader(methodObj, methodHeader)) > 0) && ((longStoreBytecodeForHeader(methodHeader)) == (fetchByteofObject((startPCOfMethod(methodObj)) + (sizeOfCallPrimitiveBytecode(methodHeader)), methodObj)))) {
			compileGetErrorCode();
		}
		/* begin MoveAw:R: */
		_address = stackLimitAddress();
		/* begin gen:literal:operand: */
		checkLiteralforInstruction(_address, genoperandoperand(MoveAwR, _address, TempReg));
		/* end gen:literal:operand: */
		/* end MoveAw:R: */
		/* begin CmpR:R: */
		genoperandoperand(CmpRR, TempReg, SPReg);
		/* end CmpR:R: */
		if (canContextSwitchIfActivatingheader(methodObj, methodHeader)) {
			/* begin JumpBelow: */
			genConditionalBranchoperand(JumpBelow, ((sqInt) stackOverflowCall ));
			/* end JumpBelow: */
			/* begin Label */
			stackCheckLabel = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
			/* end Label */
		} else {
			/* begin JumpAboveOrEqual: */
			_jumpSkip = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
			/* end JumpAboveOrEqual: */
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction2 = genoperandoperand(MoveCqR, 0, SendNumArgsReg);
			if (usesOutOfLineLiteral(_anInstruction2)) {
				(_anInstruction2->dependent = locateLiteral(0));
			}
			/* end checkQuickConstant:forInstruction: */
			/* begin Jump: */
			genoperand(Jump, ((sqInt) stackOverflowCall ));
			/* end Jump: */
			jmpTarget(_jumpSkip, (stackCheckLabel = genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
		}
		/* begin annotateBytecode: */
		(stackCheckLabel->annotation = HasBytecodePC);
		/* end annotateBytecode: */
	}
	initSimStackForFramefulMethod(initialPC);
}
/*	Make sure ReceiverResultReg holds the receiver, loaded from the closure, 
	which is what is initially in ReceiverResultReg. Make sure ReceiverResultReg holds the receiver, loaded from 
	the closure, which is what is initially in ReceiverResultReg */
/* StackToRegisterMappingCogit>>#compileFullBlockFramelessEntry: */
static void NoDbgRegParms
compileFullBlockFramelessEntry(sqInt numCopied)
{
	initSimStackForFramelessBlock(initialPC);
	{
		flag("TODO");
		genLoadSlotsourceRegdestReg(FullClosureReceiverIndex, ReceiverResultReg, Arg0Reg);
		genEnsureOopInRegNotForwardedscratchRegupdatingSlotin(Arg0Reg, TempReg, FullClosureReceiverIndex, ReceiverResultReg);
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, Arg0Reg, ReceiverResultReg);
		/* end MoveR:R: */
	}
}
/*	Build a frame for a block activation. See CoInterpreter 
	class>>initializeFrameIndices. closure (in ReceiverResultReg) 
	arg0 
	... 
	argN 
	caller's saved ip/this stackPage (for a base frame) 
	fp->	saved fp 
	method 
	context (uninitialized?) 
	receiver 
	first temp 
	... 
	sp->	Nth temp 
	Avoid use of SendNumArgsReg which is the flag determining whether 
	context switch is allowed on stack-overflow. */
/* StackToRegisterMappingCogit>>#compileFullBlockMethodFrameBuild: */
static void NoDbgRegParms
compileFullBlockMethodFrameBuild(sqInt _numCopied)
{
	AbstractInstruction *_abstractInstruction;
	sqInt _address;
	AbstractInstruction *_anInstruction;
	sqInt _constant;
	sqInt _iLimit;

	if (useTwoPaths) {
		useTwoPaths = 0;
		
#    if IMMUTABILITY
		{
			needsFrame = 1;
		}
#    endif /* IMMUTABILITY */
	}
	if (!needsFrame) {
		assert(_numCopied == 0);
		compileFullBlockFramelessEntry(_numCopied);
		initSimStackForFramelessBlock(initialPC);
		return;
	}
	{
		sqInt _i;

		if (!needsFrame) {
			return;
		}
		{
			/* begin PushR: */
			genoperand(PushR, LinkReg);
			/* end PushR: */
		}
		/* begin PushR: */
		genoperand(PushR, FPReg);
		/* end PushR: */
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, SPReg, FPReg);
		/* end MoveR:R: */
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, ReceiverResultReg, ClassReg);
		/* end MoveR:R: */
		{
			addDependent(methodLabel, annotateAbsolutePCRef(gPushCw(((sqInt) methodLabel ))));
			/* begin setLabelOffset: */
			((((AbstractInstruction *) methodLabel ))->operands)[1] = MFMethodFlagIsBlockFlag;
			/* end setLabelOffset: */
		}
		/* begin genMoveNilR: */
		/* begin genMoveConstant:R: */
		_constant = nilObject();
		if (shouldAnnotateObjectReference(_constant)) {
			annotateobjRef(gMoveCwR(_constant, SendNumArgsReg), _constant);
		} else {
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction = genoperandoperand(MoveCqR, _constant, SendNumArgsReg);
			if (usesOutOfLineLiteral(_anInstruction)) {
				(_anInstruction->dependent = locateLiteral(_constant));
			}
			/* end checkQuickConstant:forInstruction: */
		}
		/* end genMoveConstant:R: */
		/* end genMoveNilR: */
		/* begin PushR: */
		genoperand(PushR, SendNumArgsReg);
		/* end PushR: */
		flag("TODO");
		genLoadSlotsourceRegdestReg(FullClosureReceiverIndex, ClassReg, Arg0Reg);
		genEnsureOopInRegNotForwardedscratchRegupdatingSlotin(Arg0Reg, TempReg, FullClosureReceiverIndex, ReceiverResultReg);
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, Arg0Reg, ReceiverResultReg);
		/* end MoveR:R: */
		/* begin PushR: */
		genoperand(PushR, ReceiverResultReg);
		/* end PushR: */
		for (_i = 0; _i < _numCopied; _i += 1) {
			genLoadSlotsourceRegdestReg(_i + FullClosureFirstCopiedValueIndex, ClassReg, TempReg);
			/* begin PushR: */
			genoperand(PushR, TempReg);
			/* end PushR: */
		}
		for (_i = (methodOrBlockNumArgs + _numCopied) + 1, _iLimit = temporaryCountOfMethodHeader(methodHeader); _i <= _iLimit; _i += 1) {
			/* begin PushR: */
			genoperand(PushR, SendNumArgsReg);
			/* end PushR: */
		}
		/* begin MoveAw:R: */
		_address = stackLimitAddress();
		/* begin gen:literal:operand: */
		checkLiteralforInstruction(_address, genoperandoperand(MoveAwR, _address, TempReg));
		/* end gen:literal:operand: */
		/* end MoveAw:R: */
		/* begin CmpR:R: */
		genoperandoperand(CmpRR, TempReg, SPReg);
		/* end CmpR:R: */
		/* begin JumpBelow: */
		genConditionalBranchoperand(JumpBelow, ((sqInt) stackOverflowCall ));
		/* end JumpBelow: */
		/* begin annotateBytecode: */
		_abstractInstruction = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
		(_abstractInstruction->annotation = HasBytecodePC);
		stackCheckLabel = _abstractInstruction;
		/* end annotateBytecode: */
	}
	initSimStackForFramefulMethod(initialPC);
}
/*	Build a frame for a CogMethod activation. See CoInterpreter 
	class>>initializeFrameIndices. receiver (in ReceiverResultReg) 
	arg0 
	... 
	argN 
	caller's saved ip/this stackPage (for a base frame) 
	fp->	saved fp 
	method 
	context (uninitialized?) 
	receiver 
	first temp 
	... 
	sp->	Nth temp 
	If there is a primitive and an error code the Nth temp is the error code. 
	Ensure SendNumArgsReg is set early on (incidentally to nilObj) because 
	it is the flag determining whether context switch is allowed on 
	stack-overflow. We are in a method where the frame is needed *only* for instance variable 
	store, typically a setter method. 
	This case has 20% overhead with Immutability compared to setter without 
	immutability because of the stack 
	frame creation. We compile two path, one where the object is immutable, 
	one where it isn't. At the beginning  
	of the frame build, we take one path or the other depending on the 
	receiver mutability. 
	 
	Note: this specific case happens only where there are only instance 
	variabel stores. We could do something 
	similar for literal variable stores, but we don't as it's too uncommon. */
/* StackToRegisterMappingCogit>>#compileTwoPathFrameBuild */

#if IMMUTABILITY
static void
compileTwoPathFrameBuild(void)
{
	sqInt _address;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	sqInt _constant;
	sqInt _iLimit;
	AbstractInstruction * _jumpImmutable;
	AbstractInstruction * _jumpOld;
	sqInt _quickConstant;

	assert(useTwoPaths);
	_jumpImmutable = genJumpImmutablescratchReg(ReceiverResultReg, TempReg);
	{
		/* begin CmpCq:R: */
		_quickConstant = storeCheckBoundary();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(CmpCqR, _quickConstant, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_quickConstant));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end CmpCq:R: */
		/* begin JumpAboveOrEqual: */
		_jumpOld = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
		/* end JumpAboveOrEqual: */
	}
	assert(!needsFrame);
	initSimStackForFramelessMethod(initialPC);
	/* begin compileMethodBody */
	if (endPC < initialPC) {
		goto l16;
	}
	compileAbstractInstructionsFromthrough(initialPC + (deltaToSkipPrimAndErrorStoreInheader(methodObj, methodHeader)), endPC);
	l16:
	;
	/* end compileMethodBody */
	useTwoPaths = 0;
	needsFrame = 1;
	jmpTarget(_jumpOld, jmpTarget(_jumpImmutable, genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
	genPushRegisterArgs();
	{
		sqInt _i;
		AbstractInstruction *_jumpSkip;

		if (!needsFrame) {
			return;
		}
		{
			/* begin PushR: */
			genoperand(PushR, LinkReg);
			/* end PushR: */
		}
		/* begin PushR: */
		genoperand(PushR, FPReg);
		/* end PushR: */
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, SPReg, FPReg);
		/* end MoveR:R: */
		addDependent(methodLabel, annotateAbsolutePCRef(gPushCw(((sqInt) methodLabel ))));
		/* begin genMoveNilR: */
		/* begin genMoveConstant:R: */
		_constant = nilObject();
		if (shouldAnnotateObjectReference(_constant)) {
			annotateobjRef(gMoveCwR(_constant, SendNumArgsReg), _constant);
		} else {
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction2 = genoperandoperand(MoveCqR, _constant, SendNumArgsReg);
			if (usesOutOfLineLiteral(_anInstruction2)) {
				(_anInstruction2->dependent = locateLiteral(_constant));
			}
			/* end checkQuickConstant:forInstruction: */
		}
		/* end genMoveConstant:R: */
		/* end genMoveNilR: */
		/* begin PushR: */
		genoperand(PushR, SendNumArgsReg);
		/* end PushR: */
		/* begin PushR: */
		genoperand(PushR, ReceiverResultReg);
		/* end PushR: */
		for (_i = methodOrBlockNumArgs + 1, _iLimit = temporaryCountOfMethodHeader(methodHeader); _i <= _iLimit; _i += 1) {
			/* begin PushR: */
			genoperand(PushR, SendNumArgsReg);
			/* end PushR: */
		}
		if (((primitiveIndexOfMethodheader(methodObj, methodHeader)) > 0) && ((longStoreBytecodeForHeader(methodHeader)) == (fetchByteofObject((startPCOfMethod(methodObj)) + (sizeOfCallPrimitiveBytecode(methodHeader)), methodObj)))) {
			compileGetErrorCode();
		}
		/* begin MoveAw:R: */
		_address = stackLimitAddress();
		/* begin gen:literal:operand: */
		checkLiteralforInstruction(_address, genoperandoperand(MoveAwR, _address, TempReg));
		/* end gen:literal:operand: */
		/* end MoveAw:R: */
		/* begin CmpR:R: */
		genoperandoperand(CmpRR, TempReg, SPReg);
		/* end CmpR:R: */
		if (canContextSwitchIfActivatingheader(methodObj, methodHeader)) {
			/* begin JumpBelow: */
			genConditionalBranchoperand(JumpBelow, ((sqInt) stackOverflowCall ));
			/* end JumpBelow: */
			/* begin Label */
			stackCheckLabel = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
			/* end Label */
		} else {
			/* begin JumpAboveOrEqual: */
			_jumpSkip = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
			/* end JumpAboveOrEqual: */
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction3 = genoperandoperand(MoveCqR, 0, SendNumArgsReg);
			if (usesOutOfLineLiteral(_anInstruction3)) {
				(_anInstruction3->dependent = locateLiteral(0));
			}
			/* end checkQuickConstant:forInstruction: */
			/* begin Jump: */
			genoperand(Jump, ((sqInt) stackOverflowCall ));
			/* end Jump: */
			jmpTarget(_jumpSkip, (stackCheckLabel = genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
		}
		/* begin annotateBytecode: */
		(stackCheckLabel->annotation = HasBytecodePC);
		/* end annotateBytecode: */
	}
	initSimStackForFramefulMethod(initialPC);
}
#endif /* IMMUTABILITY */
/*	We are in a frameless method with at least two inst var stores. We compile 
	two paths, 
	one where the object is in new space, and one where it isn't. At the 
	beginning  
	of the method, we take one path or the other depending on the receiver 
	being in newSpace. */
/* StackToRegisterMappingCogit>>#compileTwoPathFramelessInit */
static void
compileTwoPathFramelessInit(void)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction * _jumpOld;
	sqInt _quickConstant;

	assert(!IMMUTABILITY);
	assert(!needsFrame);
	assert(useTwoPaths);
	{
		/* begin CmpCq:R: */
		_quickConstant = storeCheckBoundary();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(CmpCqR, _quickConstant, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_quickConstant));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end CmpCq:R: */
		/* begin JumpAboveOrEqual: */
		_jumpOld = genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) 0 ));
		/* end JumpAboveOrEqual: */
	}
	initSimStackForFramelessMethod(initialPC);
	/* begin compileMethodBody */
	if (endPC < initialPC) {
		goto l2;
	}
	compileAbstractInstructionsFromthrough(initialPC + (deltaToSkipPrimAndErrorStoreInheader(methodObj, methodHeader)), endPC);
	l2:
	;
	/* end compileMethodBody */
	useTwoPaths = 0;
	jmpTarget(_jumpOld, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
}
/* StackToRegisterMappingCogit>>#cPICMissTrampolineFor: */
static sqInt NoDbgRegParms
cPICMissTrampolineFor(sqInt _numArgs)
{
	return picMissTrampolines[((_numArgs < (2 + 1)) ? _numArgs : 2 + 1)];
}
/* StackToRegisterMappingCogit>>#duplicateTopBytecode */
static sqInt
duplicateTopBytecode(void)
{
	SimStackEntry _desc;

	/* begin ssTopDescriptor */
	_desc = simStack[simStackPtr];
	/* end ssTopDescriptor */
	return ssPushDesc(_desc);
}
/* StackToRegisterMappingCogit>>#ensureFixupAt: */
static BytecodeFixup * NoDbgRegParms
ensureFixupAt(sqInt _targetPC)
{
	return ensureFixupAtwithStackPointer(_targetPC, simStackPtr);
}
/*	Make sure there's a flagged fixup at the target pc in fixups. 
	Initially a fixup's target is just a flag. Later on it is replaced with a 
	proper instruction. */
/* StackToRegisterMappingCogit>>#ensureFixupAt:withStackPointer: */
static BytecodeFixup * NoDbgRegParms
ensureFixupAtwithStackPointer(sqInt _targetPC, sqInt _aStackPointer)
{
	BytecodeFixup *_fixup;

	/* begin fixupAt: */
	_fixup = fixupAtIndex(_targetPC - initialPC);
	/* end fixupAt: */
	if (((usqInt) ((_fixup->targetInstruction)) ) <= NeedsNonMergeFixupFlag) {
		/* begin becomeMergeFixup */
		(_fixup->targetInstruction) = ((AbstractInstruction *) NeedsMergeFixupFlag );
		/* end becomeMergeFixup */
		(_fixup->simStackPtr = _aStackPointer);
	} else {
		if ((_fixup->isTargetOfBackwardBranch)) {
			(_fixup->simStackPtr = _aStackPointer);
		} else {
			assert(((_fixup->simStackPtr)) == _aStackPointer);
		}
	}
	/* begin recordBcpc: */
	/* end recordBcpc: */
	return _fixup;
}
/*	Make sure there's a flagged fixup at the target pc in fixups. 
	Initially a fixup's target is just a flag. Later on it is replaced with a 
	proper instruction. */
/* StackToRegisterMappingCogit>>#ensureNonMergeFixupAt: */
static BytecodeFixup * NoDbgRegParms
ensureNonMergeFixupAt(sqInt _targetPC)
{
	BytecodeFixup *_fixup;

	/* begin fixupAt: */
	_fixup = fixupAtIndex(_targetPC - initialPC);
	/* end fixupAt: */
	if (((_fixup->targetInstruction)) == 0) {
		/* begin becomeNonMergeFixup */
		(_fixup->targetInstruction) = ((AbstractInstruction *) NeedsNonMergeFixupFlag );
		/* end becomeNonMergeFixup */
	}
	/* begin recordBcpc: */
	/* end recordBcpc: */
	return _fixup;
}
/* StackToRegisterMappingCogit>>#ensureReceiverResultRegContainsSelf */
static void
ensureReceiverResultRegContainsSelf(void)
{
	if (needsFrame) {
		if (!((((simSelf())->liveRegister)) == ReceiverResultReg)) {
			/* begin ssAllocateRequiredReg: */
			ssAllocateRequiredRegMaskupThrough(1U << ReceiverResultReg, simStackPtr);
			/* end ssAllocateRequiredReg: */
			/* begin putSelfInReceiverResultReg */
			copyToReg(simSelf(), ReceiverResultReg);
			/* end putSelfInReceiverResultReg */
			((simSelf())->liveRegister = ReceiverResultReg);
		}
	} else {
		assert(((((simSelf())->type)) == SSRegister) && (((((simSelf())->registerr)) == ReceiverResultReg) && (receiverIsInReceiverResultReg())));
	}
}
/* StackToRegisterMappingCogit>>#evaluate:at: */
static void NoDbgRegParms
evaluateat(BytecodeDescriptor *_descriptor, sqInt _pc)
{
	byte0 = fetchByteofObject(_pc, methodObj);
	assert(_descriptor == (generatorAt(byte0)));
	loadSubsequentBytesForDescriptorat(_descriptor, _pc);
	((_descriptor->generator))();
}
/*	Attempt to follow a branch to a pc. Handle branches to unconditional jumps 
	and branches to push: aBoolean; conditional branch pairs. If the branch 
	cannot be 
	followed answer targetBytecodePC. It is not possible to follow jumps to 
	conditional branches because the stack changes depth. That following is 
	left to the genJumpIf:to: 
	clients. */
/* StackToRegisterMappingCogit>>#eventualTargetOf: */
static sqInt NoDbgRegParms
eventualTargetOf(sqInt _targetBytecodePC)
{
	int _cond;
	sqInt _currentTarget;
	BytecodeDescriptor *_descriptor;
	int _nExts;
	sqInt _nextPC;
	sqInt _span;

	_cond = 0;
	_nextPC = (_currentTarget = _targetBytecodePC);
	while (1) {
		_nExts = 0;
		while (1) {
			/* begin generatorForPC: */
			_descriptor = generatorAt(fetchByteofObject(_nextPC, methodObj));
			/* end generatorForPC: */
			if ((_descriptor->isReturn)) {
				return _currentTarget;
			}
			if (!((_descriptor->isExtension))) 
				break;
			_nExts += 1;
			_nextPC += (_descriptor->numBytes);
		}
		if ((isBranch(_descriptor)) && (!(((_descriptor->isBranchTrue)) || ((_descriptor->isBranchFalse))))) {
			/* begin spanFor:at:exts:in: */
			_span = ((_descriptor->spanFunction))(_descriptor, _nextPC, _nExts, methodObj);
			/* end spanFor:at:exts:in: */
			if (_span < 0) {
				return _currentTarget;
			}
			_nextPC = (_nextPC + ((_descriptor->numBytes))) + _span;
		} else {
			if (((_descriptor->generator)) == genPushConstantTrueBytecode) {
				_cond = 1;
			} else {
				if (((_descriptor->generator)) == genPushConstantFalseBytecode) {
					_cond = 0;
				} else {
					return _currentTarget;
				}
			}
			if (((fixupAt(_nextPC))->isTargetOfBackwardBranch)) {
				return _currentTarget;
			}
			_nextPC = eventualTargetOf(_nextPC + ((_descriptor->numBytes)));
			_nExts = 0;
			while (1) {
				/* begin generatorForPC: */
				_descriptor = generatorAt(fetchByteofObject(_nextPC, methodObj));
				/* end generatorForPC: */
				if ((_descriptor->isReturn)) {
					return _currentTarget;
				}
				if (!((_descriptor->isExtension))) 
					break;
				_nExts += 1;
				_nextPC += (_descriptor->numBytes);
			}
			if (!(isBranch(_descriptor))) {
				return _currentTarget;
			}
			if ((isBranch(_descriptor)) && (!(((_descriptor->isBranchTrue)) || ((_descriptor->isBranchFalse))))) {
				return _currentTarget;
			}
			_nextPC = ((_cond == ((_descriptor->isBranchTrue)))
				 ? (_nextPC + ((_descriptor->numBytes))) + (((_descriptor->spanFunction))(_descriptor, _nextPC, _nExts, methodObj))
				 : _nextPC + ((_descriptor->numBytes)));
		}
		_currentTarget = _nextPC;
	}
	return 0;
}
/*	Spill the closest register on stack not conflicting with regMask.  
	Assertion Failure if regMask has already all the registers */
/* StackToRegisterMappingCogit>>#freeAnyRegNotConflictingWith: */
static sqInt NoDbgRegParms
freeAnyRegNotConflictingWith(sqInt _regMask)
{
	CogSimStackEntry *_desc;
	sqInt _index;
	sqInt _reg;

	assert(needsFrame);
	_reg = NoReg;
	_index = ((simSpillBase < 0) ? 0 : simSpillBase);
	while ((_reg == NoReg) && (_index < simStackPtr)) {
		_desc = simStackAt(_index);
		if (((_desc->type)) == SSRegister) {
			if (!(_regMask & (1U << ((_desc->registerr))))) {
				_reg = (_desc->registerr);
			}
		}
		_index += 1;
	}
	assert(!(_reg == NoReg));
	/* begin ssAllocateRequiredReg: */
	ssAllocateRequiredRegMaskupThrough(1U << _reg, simStackPtr);
	/* end ssAllocateRequiredReg: */
	return _reg;
}
/* StackToRegisterMappingCogit>>#genAddFloat32Vector */
static sqInt
genAddFloat32Vector(void)
{
	signed char _array1Reg;
	signed char _array2Reg;
	sqInt _sumReg;

	{
		return EncounteredUnknownBytecode;
	}
	_array2Reg = allocateVectorRegForStackEntryAtnotConflictingWith(0, 0);
	_array1Reg = allocateVectorRegForStackEntryAtnotConflictingWith(1, 1U << _array2Reg);
	_sumReg = _array1Reg;
	ssPopTopToVectorReg(_array2Reg);
	ssPopTopToVectorReg(_array1Reg);
	gFaddSRvRvRv(32, _array1Reg, _array2Reg, _sumReg);
	ssPushVectorRegister(_sumReg);
	return 0;
}
/* StackToRegisterMappingCogit>>#genAddFloat64Vector */
static sqInt
genAddFloat64Vector(void)
{
	signed char _array1Reg;
	signed char _array2Reg;
	sqInt _sumReg;

	{
		return EncounteredUnknownBytecode;
	}
	_array2Reg = allocateVectorRegForStackEntryAtnotConflictingWith(0, 0);
	_array1Reg = allocateVectorRegForStackEntryAtnotConflictingWith(1, 1U << _array2Reg);
	_sumReg = _array1Reg;
	ssPopTopToVectorReg(_array2Reg);
	ssPopTopToVectorReg(_array1Reg);
	gFaddSRvRvRv(64, _array1Reg, _array2Reg, _sumReg);
	ssPushVectorRegister(_sumReg);
	return 0;
}
/*	Return from block, assuming result already loaded into ReceiverResultReg.Return from block, assuming result already loaded into ReceiverResultReg. */
/* StackToRegisterMappingCogit>>#genBlockReturn */
static sqInt
genBlockReturn(void)
{
	{
		if (needsFrame) {
			/* begin MoveR:R: */
			genoperandoperand(MoveRR, FPReg, SPReg);
			/* end MoveR:R: */
			/* begin PopR: */
			genoperand(PopR, FPReg);
			/* end PopR: */
			{
				/* begin PopR: */
				genoperand(PopR, LinkReg);
				/* end PopR: */
			}
		}
		/* begin RetN: */
		genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
		/* end RetN: */
	}
	deadCode = 1;
	return 0;
}
/*	SistaV1:	236		11101100	iiiiiiii		callMappedInlinedPrimitive */
/* StackToRegisterMappingCogit>>#genCallMappedInlinedPrimitive */
static sqInt
genCallMappedInlinedPrimitive(void)
{
	return genMappedInlinePrimitive(byte1);
}
/*	Generate special versions of the ceCallCogCodePopReceiverAndClassRegs 
	enilopmart that also pop register args from the stack to undo the pushing 
	of register args in the abort/miss trampolines. */
/* StackToRegisterMappingCogit>>#genCallPICEnilopmartNumArgs: */
static void (*genCallPICEnilopmartNumArgs(sqInt _numArgs))(void)

{
	AbstractInstruction *_anInstruction;
	sqInt _endAddress;
	sqInt _enilopmart;
	sqInt _quickConstant;
	sqInt _reg;
	sqInt _size;

	zeroOpcodeIndex();
	{
		/* begin MoveCq:R: */
		_quickConstant = varBaseAddress();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(MoveCqR, _quickConstant, VarBaseReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_quickConstant));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveCq:R: */
	}
	genLoadStackPointers(backEnd);
	/* begin PopR: */
	genoperand(PopR, ClassReg);
	/* end PopR: */
	/* begin PopR: */
	genoperand(PopR, TempReg);
	/* end PopR: */
	/* begin PopR: */
	_reg = LinkReg;
	genoperand(PopR, _reg);
	/* end PopR: */
	if (_numArgs > 0) {
		if (_numArgs > 1) {
			/* begin PopR: */
			genoperand(PopR, Arg1Reg);
			/* end PopR: */
			assert((numRegArgs()) == 2);
		}
		/* begin PopR: */
		genoperand(PopR, Arg0Reg);
		/* end PopR: */
	}
	/* begin PopR: */
	genoperand(PopR, ReceiverResultReg);
	/* end PopR: */
	/* begin JumpR: */
	genoperand(JumpR, TempReg);
	/* end JumpR: */
	computeMaximumSizes();
	_size = generateInstructionsAt(methodZoneBase);
	_endAddress = outputInstructionsAt(methodZoneBase);
	assert((methodZoneBase + _size) == _endAddress);
	_enilopmart = methodZoneBase;
	methodZoneBase = alignUptoRoutineBoundary(_endAddress);
	stopsFromto(backEnd, _endAddress, methodZoneBase - 1);
	recordGeneratedRunTimeaddress(trampolineNamenumRegArgs("ceCallPIC", _numArgs), _enilopmart);
	return ((void (*)(void)) _enilopmart );
}
/*	SistaV1: 248		11111000 iiiiiiii		mjjjjjjj		Call Primitive #iiiiiiii + 
	(jjjjjjj * 256) m=1 means inlined primitive, no hard return after 
	execution. See EncoderForSistaV1's class comment and 
	StackInterpreter>>#inlinePrimitiveBytecode:  */
/* StackToRegisterMappingCogit>>#genCallPrimitiveBytecode */
static sqInt
genCallPrimitiveBytecode(void)
{
	sqInt _prim;
	sqInt _primSet;

	if (byte2 < 128) {
		return ((bytecodePC == initialPC)
			 ? 0
			 : EncounteredUnknownBytecode);
	}
	_prim = ((sqInt) (((usqInt) (byte2 - 128) ) << 8) ) + byte1;
	_primSet = (((usqInt) _prim ) >> 13) & 3;
	_prim = _prim & 0x1FFF;
	return EncounteredUnknownBytecode;
}
/*	Override to push the register receiver and register arguments, if any. */
/* StackToRegisterMappingCogit>>#genExternalizePointersForPrimitiveCall */
static sqInt
genExternalizePointersForPrimitiveCall(void)
{
	sqInt _address;
	sqInt _address2;
	sqInt _address5;

	genPushRegisterArgs();
	{
		/* begin MoveR:Aw: */
		_address5 = framePointerAddress();
		/* begin gen:operand:literal: */
		checkLiteralforInstruction(_address5, genoperandoperand(MoveRAw, FPReg, _address5));
		/* end gen:operand:literal: */
		/* end MoveR:Aw: */
		{
			/* begin MoveR:Aw: */
			_address = stackPointerAddress();
			/* begin gen:operand:literal: */
			checkLiteralforInstruction(_address, genoperandoperand(MoveRAw, SPReg, _address));
			/* end gen:operand:literal: */
			/* end MoveR:Aw: */
			/* begin MoveR:Aw: */
			_address2 = instructionPointerAddress();
			/* begin gen:operand:literal: */
			checkLiteralforInstruction(_address2, genoperandoperand(MoveRAw, LinkReg, _address2));
			/* end gen:operand:literal: */
			/* end MoveR:Aw: */
		}
		return 0;
	}
	return 0;
}
/*	Full Block creation compilation. The block's actual code will be compiled 
	separatedly. *	255		11111111	xxxxxxxx	siyyyyyy	push Closure Compiled block literal 
	index xxxxxxxx (+ Extend A * 256) numCopied yyyyyy receiverOnStack: s = 1 
	ignoreOuterContext: i = 1 */
/* StackToRegisterMappingCogit>>#genExtPushFullClosureBytecode */
static sqInt
genExtPushFullClosureBytecode(void)
{
	sqInt _compiledBlock;
	sqInt _i;
	int _ignoreContext;
	sqInt _numCopied;
	int _receiverIsOnStack;
	sqInt _reg;

	assert(needsFrame);
	_compiledBlock = getLiteral(byte1 + ((sqInt) (((usqInt) extA ) << 8) ));
	extA = 0;
	_numCopied = byte2 & ((1U << 6) - 1);
	_receiverIsOnStack = byte2 & (1U << 7);
	_ignoreContext = byte2 & (1U << 6);
	voidReceiverResultRegContainsSelf();
	/* begin ssAllocateCallReg:and:and: */
	ssAllocateRequiredRegMaskupThrough(CallerSavedRegisterMask | (((1U << ReceiverResultReg) | (1U << SendNumArgsReg)) | (1U << ClassReg)), simStackPtr);
	/* end ssAllocateCallReg:and:and: */
	genCreateFullClosurenumArgsnumCopiedignoreContextcontextNumArgslargeinBlock(_compiledBlock, argumentCountOf(_compiledBlock), _numCopied, _ignoreContext, methodOrBlockNumArgs, methodNeedsLargeContext(methodObj), inBlock);
	for (_i = 1; _i <= _numCopied; _i += 1) {
		_reg = ssStorePoptoPreferredReg(1, TempReg);
		genStoreSourceRegslotIndexintoNewObjectInDestReg(_reg, (FullClosureFirstCopiedValueIndex + _numCopied) - _i, ReceiverResultReg);
	}
	if (_receiverIsOnStack) {
		_reg = ssStorePoptoPreferredReg(1, TempReg);
	} else {
		copyToReg(simSelf(), (_reg = TempReg));
	}
	genStoreSourceRegslotIndexintoNewObjectInDestReg(_reg, FullClosureReceiverIndex, ReceiverResultReg);
	ssPushRegister(ReceiverResultReg);
	return 0;
}
/*	Enilopmarts transfer control from C into machine code (backwards 
	trampolines). Enilopmarts transfer control from C into machine code (backwards 
	trampolines). Override to add version for generic and PIC-specific entry 
	with reg args. */
/* StackToRegisterMappingCogit>>#generateEnilopmarts */
static void
generateEnilopmarts(void)
{
	{
		
#    if Debug
		{
			/* begin genEnilopmartFor:forCall:called: */
			realCEEnterCogCodePopReceiverReg = genEnilopmartForandandforCallcalled(ReceiverResultReg, NoReg, NoReg, 0, "realCEEnterCogCodePopReceiverReg");
			/* end genEnilopmartFor:forCall:called: */
			ceEnterCogCodePopReceiverReg = enterCogCodePopReceiver;
			/* begin genEnilopmartFor:forCall:called: */
			realCECallCogCodePopReceiverReg = genEnilopmartForandandforCallcalled(ReceiverResultReg, NoReg, NoReg, 1, "realCEEnterCogCodePopReceiverReg");
			/* end genEnilopmartFor:forCall:called: */
			ceCallCogCodePopReceiverReg = callCogCodePopReceiver;
			/* begin genEnilopmartFor:and:forCall:called: */
			realCECallCogCodePopReceiverAndClassRegs = genEnilopmartForandandforCallcalled(ReceiverResultReg, ClassReg, NoReg, 1, "realCECallCogCodePopReceiverAndClassRegs");
			/* end genEnilopmartFor:and:forCall:called: */
			ceCallCogCodePopReceiverAndClassRegs = callCogCodePopReceiverAndClassRegs;
		}
#    else /* Debug */
		{
			/* begin genEnilopmartFor:forCall:called: */
			ceEnterCogCodePopReceiverReg = genEnilopmartForandandforCallcalled(ReceiverResultReg, NoReg, NoReg, 0, "ceEnterCogCodePopReceiverReg");
			/* end genEnilopmartFor:forCall:called: */
			/* begin genEnilopmartFor:forCall:called: */
			ceCallCogCodePopReceiverReg = genEnilopmartForandandforCallcalled(ReceiverResultReg, NoReg, NoReg, 1, "ceCallCogCodePopReceiverReg");
			/* end genEnilopmartFor:forCall:called: */
			/* begin genEnilopmartFor:and:forCall:called: */
			ceCallCogCodePopReceiverAndClassRegs = genEnilopmartForandandforCallcalled(ReceiverResultReg, ClassReg, NoReg, 1, "ceCallCogCodePopReceiverAndClassRegs");
			/* end genEnilopmartFor:and:forCall:called: */
		}
#    endif /* Debug */
		genPrimReturnEnterCogCodeEnilopmart(0);
		cePrimReturnEnterCogCode = methodZoneBase;
		outputInstructionsForGeneratedRuntimeAt(cePrimReturnEnterCogCode);
		recordGeneratedRunTimeaddress("cePrimReturnEnterCogCode", cePrimReturnEnterCogCode);
		genPrimReturnEnterCogCodeEnilopmart(1);
		cePrimReturnEnterCogCodeProfiling = methodZoneBase;
		outputInstructionsForGeneratedRuntimeAt(cePrimReturnEnterCogCodeProfiling);
		recordGeneratedRunTimeaddress("cePrimReturnEnterCogCodeProfiling", cePrimReturnEnterCogCodeProfiling);
	}
	
#  if Debug
	{
		/* begin genEnilopmartFor:and:forCall:called: */
		realCECallCogCodePopReceiverArg0Regs = genEnilopmartForandandforCallcalled(ReceiverResultReg, Arg0Reg, NoReg, 1, "realCECallCogCodePopReceiverArg0Regs");
		/* end genEnilopmartFor:and:forCall:called: */
		ceCallCogCodePopReceiverArg0Regs = callCogCodePopReceiverArg0Regs;
		realCECallCogCodePopReceiverArg1Arg0Regs = genEnilopmartForandandforCallcalled(ReceiverResultReg, Arg0Reg, Arg1Reg, 1, "realCECallCogCodePopReceiverArg1Arg0Regs");
		ceCallCogCodePopReceiverArg1Arg0Regs = callCogCodePopReceiverArg1Arg0Regs;
	}
#  else /* Debug */
	{
		/* begin genEnilopmartFor:and:forCall:called: */
		ceCallCogCodePopReceiverArg0Regs = genEnilopmartForandandforCallcalled(ReceiverResultReg, Arg0Reg, NoReg, 1, "ceCallCogCodePopReceiverArg0Regs");
		/* end genEnilopmartFor:and:forCall:called: */
		ceCallCogCodePopReceiverArg1Arg0Regs = genEnilopmartForandandforCallcalled(ReceiverResultReg, Arg0Reg, Arg1Reg, 1, "ceCallCogCodePopReceiverArg1Arg0Regs");
	}
#  endif /* Debug */
	ceCall0ArgsPIC = genCallPICEnilopmartNumArgs(0);
	{
		ceCall1ArgsPIC = genCallPICEnilopmartNumArgs(1);
		{
			ceCall2ArgsPIC = genCallPICEnilopmartNumArgs(2);
			assert((numRegArgs()) == 2);
		}
	}
}
/*	Size pc-dependent instructions and assign eventual addresses to all 
	instructions. Answer the size of the code. 
	Compute forward branches based on virtual address (abstract code starts at 
	0), assuming that any branches branched over are long. 
	Compute backward branches based on actual address. 
	Reuse the fixups array to record the pc-dependent instructions that need 
	to have 
	their code generation postponed until after the others. 
	 
	Override to andd handling for null branches (branches to the immediately 
	following instruction) occasioned by StackToRegisterMapping's following of 
	jumps.  */
/* StackToRegisterMappingCogit>>#generateInstructionsAt: */
static sqInt NoDbgRegParms
generateInstructionsAt(sqInt _eventualAbsoluteAddress)
{
	sqInt _absoluteAddress;
	AbstractInstruction *_abstractInstruction;
	BytecodeFixup *_fixup;
	sqInt _i;
	sqInt _j;
	int _pcDependentIndex;

	_absoluteAddress = _eventualAbsoluteAddress;
	_pcDependentIndex = 0;
	for (_i = 0; _i < opcodeIndex; _i += 1) {
		_abstractInstruction = abstractInstructionAt(_i);
		if (isPCDependent(_abstractInstruction)) {
			sizePCDependentInstructionAt(_abstractInstruction, _absoluteAddress);
			if ((isJump(_abstractInstruction)) && ((((_i + 1) < opcodeIndex) && (((AbstractInstruction *) ((_abstractInstruction->operands)[0]) ) == (abstractInstructionAt(_i + 1)))) || (((_i + 2) < opcodeIndex) && ((((AbstractInstruction *) ((_abstractInstruction->operands)[0]) ) == (abstractInstructionAt(_i + 2))) && ((((abstractInstructionAt(_i + 1))->opcode)) == Nop))))) {
				{
					(_abstractInstruction->opcode = Nop);
					concretizeAt(_abstractInstruction, _absoluteAddress);
				}
			} else {
				_fixup = fixupAtIndex(_pcDependentIndex);
				_pcDependentIndex += 1;
				(_fixup->instructionIndex = _i);
			}
			_absoluteAddress += (_abstractInstruction->machineCodeSize);
		} else {
			_absoluteAddress = concretizeAt(_abstractInstruction, _absoluteAddress);
		}
	}
	for (_j = 0; _j < _pcDependentIndex; _j += 1) {
		_fixup = fixupAtIndex(_j);
		_abstractInstruction = abstractInstructionAt((_fixup->instructionIndex));
		concretizeAt(_abstractInstruction, (_abstractInstruction->address));
	}
	return _absoluteAddress - _eventualAbsoluteAddress;
}
/*	Generate the run-time entries for the various method and PIC entry misses 
	and aborts. 
	Read the class-side method trampolines for documentation on the various 
	trampolines  */
/* StackToRegisterMappingCogit>>#generateMissAbortTrampolines */
static void
generateMissAbortTrampolines(void)
{
	sqInt _iLimit;
	sqInt _numArgs;

	for (_numArgs = 0, _iLimit = 2 + 1; _numArgs <= _iLimit; _numArgs += 1) {
		methodAbortTrampolines[_numArgs] = genMethodAbortTrampolineFor(_numArgs);
	}
	for (_numArgs = 0, _iLimit = 2 + 1; _numArgs <= _iLimit; _numArgs += 1) {
		picAbortTrampolines[_numArgs] = genPICAbortTrampolineFor(_numArgs);
	}
	for (_numArgs = 0, _iLimit = 2 + 1; _numArgs <= _iLimit; _numArgs += 1) {
		picMissTrampolines[_numArgs] = genPICMissTrampolineFor(_numArgs);
	}
	ceReapAndResetErrorCodeTrampoline = genTrampolineForcalledarg(ceReapAndResetErrorCodeFor, "ceReapAndResetErrorCodeTrampoline", ClassReg);
}
/*	Override to generate code to push the register arg(s) for <= numRegArg 
	arity sends. */
/* StackToRegisterMappingCogit>>#generateSendTrampolines */
static void
generateSendTrampolines(void)
{
	sqInt _numArgs;

	for (_numArgs = 0; _numArgs < NumSendTrampolines; _numArgs += 1) {
		ordinarySendTrampolines[_numArgs] = genSendTrampolineFornumArgscalledargargargarg(ceSendsupertonumArgs, _numArgs, trampolineNamenumArgs("ceSend", _numArgs), ClassReg, trampolineArgConstant(0), ReceiverResultReg, ((_numArgs <= (NumSendTrampolines - 2))
			 ? (/* begin trampolineArgConstant: */ assert(_numArgs >= 0), -2 - _numArgs /* end trampolineArgConstant: */)
			 : SendNumArgsReg));
	}
	{
		for (_numArgs = 0; _numArgs < NumSendTrampolines; _numArgs += 1) {
			generateSuperSendTrampolineTonamednumArgsin(ceSendabovetonumArgs, "ceDirectedSuperSend", _numArgs, directedSuperSendTrampolines);
			generateSuperSendTrampolineTonamednumArgsin(ceSendaboveClassBindingtonumArgs, "ceDirectedSuperBindingSend", _numArgs, directedSuperBindingSendTrampolines);
		}
	}
	for (_numArgs = 0; _numArgs < NumSendTrampolines; _numArgs += 1) {
		superSendTrampolines[_numArgs] = genSendTrampolineFornumArgscalledargargargarg(ceSendsupertonumArgs, _numArgs, trampolineNamenumArgs("ceSuperSend", _numArgs), ClassReg, trampolineArgConstant(1), ReceiverResultReg, ((_numArgs <= (NumSendTrampolines - 2))
			 ? (/* begin trampolineArgConstant: */ assert(_numArgs >= 0), -2 - _numArgs /* end trampolineArgConstant: */)
			 : SendNumArgsReg));
	}
	firstSend = ordinarySendTrampolines[0];
	lastSend = superSendTrampolines[NumSendTrampolines - 1];
}
/* StackToRegisterMappingCogit>>#generateSuperSendTrampolineTo:named:numArgs:in: */
static sqInt NoDbgRegParms
generateSuperSendTrampolineTonamednumArgsin(sqInt _function, sqInt _name, sqInt _numArgs, sqInt *_table)
{
	sqInt _trampoline;

	_trampoline = genSendTrampolineFornumArgscalledargargargarg(_function, _numArgs, trampolineNamenumArgs(_name, _numArgs), ClassReg, TempReg, ReceiverResultReg, ((_numArgs <= (NumSendTrampolines - 2))
		 ? (/* begin trampolineArgConstant: */ assert(_numArgs >= 0), -2 - _numArgs /* end trampolineArgConstant: */)
		 : SendNumArgsReg));
	_table[_numArgs] = _trampoline;
	return _trampoline;
}
/*	Generate trampolines for tracing. In the simulator we can save a lot of 
	time and avoid noise instructions in the lastNInstructions log by 
	short-cutting these 
	trampolines, but we need them in the real vm. */
/* StackToRegisterMappingCogit>>#generateTracingTrampolines */
static void
generateTracingTrampolines(void)
{
	sqInt ceTraceBlockActivationTrampoline;

	ceTraceLinkedSendTrampoline = genTrampolineForcalledargregsToSave(ceTraceLinkedSend, "ceTraceLinkedSendTrampoline", ReceiverResultReg, CallerSavedRegisterMask);
	ceTraceBlockActivationTrampoline = genTrampolineForcalledregsToSave(ceTraceBlockActivation, "ceTraceBlockActivationTrampoline", CallerSavedRegisterMask);
	ceTraceStoreTrampoline = genTrampolineForcalledargargregsToSave(ceTraceStoreOfinto, "ceTraceStoreTrampoline", TempReg, ReceiverResultReg, CallerSavedRegisterMask);
}
/* StackToRegisterMappingCogit>>#genForwardersInlinedIdenticalOrNotIf: */
static sqInt NoDbgRegParms
genForwardersInlinedIdenticalOrNotIf(sqInt _orNot)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	int _argIsConstant;
	sqInt _argReg;
	sqInt _argReg2;
	sqInt _argumentConstant;
	BytecodeDescriptor *_branchDescriptor;
	BytecodeDescriptor *_branchDescriptor2;
	BytecodeFixup * _fixup;
	void *_jumpTarget;
	void *_jumpTarget2;
	AbstractInstruction *_label;
	int _nExts;
	sqInt _nextPC;
	sqInt _nextPC2;
	sqInt _postBranchPC;
	int _postBranchPC2;
	BytecodeDescriptor *_primDescriptor;
	int _rcvrIsConstant;
	sqInt _rcvrReg;
	sqInt _rcvrReg2;
	sqInt _receiverConstant;
	sqInt _reg;
	sqInt _rNext2;
	sqInt _rTop2;
	sqInt _targetBytecodePC;
	sqInt _targetBytecodePC2;
	int _topRegistersMask;
	int _unforwardArg;
	int _unforwardRcvr;

	/* begin extractMaybeBranchDescriptorInto: */
	_primDescriptor = generatorAt(byte0);
	_nextPC2 = bytecodePC + ((_primDescriptor->numBytes));
	_nExts = 0;
	while (1) {
		while (1) {
			/* begin generatorForPC: */
			_branchDescriptor2 = generatorAt(fetchByteofObject(_nextPC2, methodObj));
			/* end generatorForPC: */
			if (!((_branchDescriptor2->isExtension))) 
				break;
			_nExts += 1;
			_nextPC2 += (_branchDescriptor2->numBytes);
		}
		/* begin isUnconditionalBranch */
		/* end isUnconditionalBranch */
		if (!((isBranch(_branchDescriptor2)) && (!(((_branchDescriptor2->isBranchTrue)) || ((_branchDescriptor2->isBranchFalse)))))) 
			break;
		_nextPC2 = eventualTargetOf((_nextPC2 + ((_branchDescriptor2->numBytes))) + (((_branchDescriptor2->spanFunction))(_branchDescriptor2, _nextPC2, _nExts, methodObj)));
	}
	_targetBytecodePC2 = (_postBranchPC2 = 0);
	if (((_branchDescriptor2->isBranchTrue)) || ((_branchDescriptor2->isBranchFalse))) {
		_targetBytecodePC2 = eventualTargetOf((_nextPC2 + ((_branchDescriptor2->numBytes))) + (((_branchDescriptor2->spanFunction))(_branchDescriptor2, _nextPC2, _nExts, methodObj)));
		_postBranchPC2 = eventualTargetOf(_nextPC2 + ((_branchDescriptor2->numBytes)));
	} else {
		_nextPC2 = bytecodePC + ((_primDescriptor->numBytes));
	}
	{
		_branchDescriptor = _branchDescriptor2;
		_nextPC = _nextPC2;
		_postBranchPC = _postBranchPC2;
		_targetBytecodePC = _targetBytecodePC2;
	}
	/* end extractMaybeBranchDescriptorInto: */
	_unforwardRcvr = !(isUnannotatableConstant(ssValue(1)));
	_unforwardArg = !(isUnannotatableConstant(ssTop()));
	/* begin allocateEqualsEqualsRegistersArgNeedsReg:rcvrNeedsReg:into: */
	assert(_unforwardArg || _unforwardRcvr);
	_argReg2 = (_rcvrReg2 = NoReg);
	if (_unforwardArg) {
		if (_unforwardRcvr) {
			/* begin allocateRegForStackTopTwoEntriesInto: */
			_topRegistersMask = 0;
			_rTop2 = (_rNext2 = NoReg);
			if ((registerOrNone(ssTop())) != NoReg) {
				_rTop2 = registerOrNone(ssTop());
			}
			if ((registerOrNone(ssValue(1))) != NoReg) {
				/* begin registerMaskFor: */
				_reg = (_rNext2 = registerOrNone(ssValue(1)));
				_topRegistersMask = ((sqInt) (1U << _reg) );
				/* end registerMaskFor: */
			}
			if (_rTop2 == NoReg) {
				_rTop2 = allocateRegNotConflictingWith(_topRegistersMask);
			}
			if (_rNext2 == NoReg) {
				_rNext2 = allocateRegNotConflictingWith(1U << _rTop2);
			}
			assert(!((_rTop2 == NoReg) || (_rNext2 == NoReg)));
			{
				_argReg2 = _rTop2;
				_rcvrReg2 = _rNext2;
			}
			/* end allocateRegForStackTopTwoEntriesInto: */
			copyToReg(ssTop(), _argReg2);
			copyToReg(ssValue(1), _rcvrReg2);
		} else {
			/* begin allocateRegForStackEntryAt: */
			_argReg2 = allocateRegForStackEntryAtnotConflictingWith(0, 0);
			/* end allocateRegForStackEntryAt: */
			copyToReg(ssTop(), _argReg2);
		}
	} else {
		assert(_unforwardRcvr);
		assert(!(((ssTop())->spilled)));
		/* begin allocateRegForStackEntryAt: */
		_rcvrReg2 = allocateRegForStackEntryAtnotConflictingWith(1, 0);
		/* end allocateRegForStackEntryAt: */
		copyToReg(ssValue(1), _rcvrReg2);
	}
	assert(!(_unforwardArg && (_argReg2 == NoReg)));
	assert(!(_unforwardRcvr && (_rcvrReg2 == NoReg)));
	{
		_rcvrReg = _rcvrReg2;
		_argReg = _argReg2;
	}
	/* end allocateEqualsEqualsRegistersArgNeedsReg:rcvrNeedsReg:into: */
	if (!(((_branchDescriptor->isBranchTrue)) || ((_branchDescriptor->isBranchFalse)))) {
		return genIdenticalNoBranchArgIsConstantrcvrIsConstantargRegrcvrRegorNotIf(!_unforwardArg, !_unforwardRcvr, _argReg, _rcvrReg, _orNot);
	}
	ssFlushStackExceptTop(2);
	_argIsConstant = !_unforwardArg;
	_rcvrIsConstant = !_unforwardRcvr;
	_receiverConstant = ((_rcvrIsConstant)
		 ? ((ssValue(1))->constant)
		 : 0);
	_argumentConstant = ((_argIsConstant)
		 ? ((ssTop())->constant)
		 : 0);
	ssPop(2);
	/* begin Label */
	_label = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
	/* end Label */
	assert((_argReg != NoReg) || (_rcvrReg != NoReg));
	if (_argIsConstant) {
		/* begin genCmpConstant:R: */
		if (shouldAnnotateObjectReference(_argumentConstant)) {
			annotateobjRef(checkLiteralforInstruction(_argumentConstant, genoperandoperand(CmpCwR, _argumentConstant, _rcvrReg)), _argumentConstant);
		} else {
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction = genoperandoperand(CmpCqR, _argumentConstant, _rcvrReg);
			if (usesOutOfLineLiteral(_anInstruction)) {
				(_anInstruction->dependent = locateLiteral(_argumentConstant));
			}
			/* end checkQuickConstant:forInstruction: */
		}
		/* end genCmpConstant:R: */
	} else {
		if (_rcvrIsConstant) {
			/* begin genCmpConstant:R: */
			if (shouldAnnotateObjectReference(_receiverConstant)) {
				annotateobjRef(checkLiteralforInstruction(_receiverConstant, genoperandoperand(CmpCwR, _receiverConstant, _argReg)), _receiverConstant);
			} else {
				/* begin checkQuickConstant:forInstruction: */
				_anInstruction2 = genoperandoperand(CmpCqR, _receiverConstant, _argReg);
				if (usesOutOfLineLiteral(_anInstruction2)) {
					(_anInstruction2->dependent = locateLiteral(_receiverConstant));
				}
				/* end checkQuickConstant:forInstruction: */
			}
			/* end genCmpConstant:R: */
		} else {
			/* begin CmpR:R: */
			genoperandoperand(CmpRR, _argReg, _rcvrReg);
			/* end CmpR:R: */
		}
	}
	if ((((fixupAt(_nextPC))->targetInstruction)) == 0) {
		deadCode = 1;
		ensureFixupAt(_targetBytecodePC);
		ensureFixupAt(_postBranchPC);
	} else {
		assert(!deadCode);
	}
	assert(_unforwardArg || _unforwardRcvr);
	if (_orNot == ((_branchDescriptor->isBranchTrue))) {
		_fixup = ensureNonMergeFixupAt(_targetBytecodePC);
		/* begin JumpZero: */
		_jumpTarget2 = ensureNonMergeFixupAt(_postBranchPC);
		genConditionalBranchoperand(JumpZero, ((sqInt) _jumpTarget2 ));
		/* end JumpZero: */
	} else {
		_fixup = ensureNonMergeFixupAt(_postBranchPC);
		/* begin JumpZero: */
		_jumpTarget = ensureNonMergeFixupAt(_targetBytecodePC);
		genConditionalBranchoperand(JumpZero, ((sqInt) _jumpTarget ));
		/* end JumpZero: */
	}
	if (_unforwardArg && _unforwardRcvr) {
		/* begin genEnsureOopInRegNotForwarded:scratchReg:jumpBackTo: */
		genEnsureOopInRegNotForwardedscratchRegifForwarderifNotForwarder(_argReg, TempReg, _label, 0);
		/* end genEnsureOopInRegNotForwarded:scratchReg:jumpBackTo: */
	}
	genEnsureOopInRegNotForwardedscratchRegifForwarderifNotForwarder(((_unforwardRcvr)
		 ? _rcvrReg
		 : _argReg), TempReg, _label, _fixup);
	if (!deadCode) {
		ssPushConstant(trueObject());
	}
	return 0;
}
/*	Generates the machine code for #== in the case where the instruction is 
	not followed by a branch */
/* StackToRegisterMappingCogit>>#genIdenticalNoBranchArgIsConstant:rcvrIsConstant:argReg:rcvrReg:orNotIf: */
static sqInt NoDbgRegParms
genIdenticalNoBranchArgIsConstantrcvrIsConstantargRegrcvrRegorNotIf(sqInt _argIsConstant, sqInt _rcvrIsConstant, sqInt _argReg, sqInt _rcvrRegOrNone, sqInt _orNot)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction5;
	AbstractInstruction *_anInstruction6;
	sqInt _argumentConstant;
	sqInt _constant;
	sqInt _constant2;
	sqInt _constant3;
	sqInt _constant4;
	AbstractInstruction *_jumpEqual;
	AbstractInstruction *_jumpNotEqual;
	AbstractInstruction *_label;
	sqInt _receiverConstant;
	sqInt _resultReg;

	_receiverConstant = ((ssValue(1))->constant);
	_argumentConstant = ((ssTop())->constant);
	ssPop(2);
	/* begin Label */
	_label = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
	/* end Label */
	assert((_argReg != NoReg) || (_rcvrRegOrNone != NoReg));
	if (_argIsConstant) {
		/* begin genCmpConstant:R: */
		if (shouldAnnotateObjectReference(_argumentConstant)) {
			annotateobjRef(checkLiteralforInstruction(_argumentConstant, genoperandoperand(CmpCwR, _argumentConstant, _rcvrRegOrNone)), _argumentConstant);
		} else {
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction = genoperandoperand(CmpCqR, _argumentConstant, _rcvrRegOrNone);
			if (usesOutOfLineLiteral(_anInstruction)) {
				(_anInstruction->dependent = locateLiteral(_argumentConstant));
			}
			/* end checkQuickConstant:forInstruction: */
		}
		/* end genCmpConstant:R: */
	} else {
		if (_rcvrIsConstant) {
			/* begin genCmpConstant:R: */
			if (shouldAnnotateObjectReference(_receiverConstant)) {
				annotateobjRef(checkLiteralforInstruction(_receiverConstant, genoperandoperand(CmpCwR, _receiverConstant, _argReg)), _receiverConstant);
			} else {
				/* begin checkQuickConstant:forInstruction: */
				_anInstruction2 = genoperandoperand(CmpCqR, _receiverConstant, _argReg);
				if (usesOutOfLineLiteral(_anInstruction2)) {
					(_anInstruction2->dependent = locateLiteral(_receiverConstant));
				}
				/* end checkQuickConstant:forInstruction: */
			}
			/* end genCmpConstant:R: */
		} else {
			/* begin CmpR:R: */
			genoperandoperand(CmpRR, _argReg, _rcvrRegOrNone);
			/* end CmpR:R: */
		}
	}
	_resultReg = ((_rcvrRegOrNone == NoReg)
		 ? _argReg
		 : _rcvrRegOrNone);
	/* begin JumpZero: */
	_jumpEqual = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	if (!_argIsConstant) {
		/* begin genEnsureOopInRegNotForwarded:scratchReg:jumpBackTo: */
		genEnsureOopInRegNotForwardedscratchRegifForwarderifNotForwarder(_argReg, TempReg, _label, 0);
		/* end genEnsureOopInRegNotForwarded:scratchReg:jumpBackTo: */
	}
	if (!_rcvrIsConstant) {
		/* begin genEnsureOopInRegNotForwarded:scratchReg:jumpBackTo: */
		genEnsureOopInRegNotForwardedscratchRegifForwarderifNotForwarder(_rcvrRegOrNone, TempReg, _label, 0);
		/* end genEnsureOopInRegNotForwarded:scratchReg:jumpBackTo: */
	}
	if (_orNot) {
		/* begin genMoveTrueR: */
		/* begin genMoveConstant:R: */
		_constant2 = trueObject();
		if (shouldAnnotateObjectReference(_constant2)) {
			annotateobjRef(gMoveCwR(_constant2, _resultReg), _constant2);
		} else {
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction4 = genoperandoperand(MoveCqR, _constant2, _resultReg);
			if (usesOutOfLineLiteral(_anInstruction4)) {
				(_anInstruction4->dependent = locateLiteral(_constant2));
			}
			/* end checkQuickConstant:forInstruction: */
		}
		/* end genMoveConstant:R: */
		/* end genMoveTrueR: */
	} else {
		/* begin genMoveFalseR: */
		/* begin genMoveConstant:R: */
		_constant = falseObject();
		if (shouldAnnotateObjectReference(_constant)) {
			annotateobjRef(gMoveCwR(_constant, _resultReg), _constant);
		} else {
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction3 = genoperandoperand(MoveCqR, _constant, _resultReg);
			if (usesOutOfLineLiteral(_anInstruction3)) {
				(_anInstruction3->dependent = locateLiteral(_constant));
			}
			/* end checkQuickConstant:forInstruction: */
		}
		/* end genMoveConstant:R: */
		/* end genMoveFalseR: */
	}
	/* begin Jump: */
	_jumpNotEqual = genoperand(Jump, ((sqInt) 0 ));
	/* end Jump: */
	jmpTarget(_jumpEqual, ((_orNot)
		 ? (/* begin genMoveFalseR: */ /* begin genMoveConstant:R: */ (_constant4 = falseObject()), ((shouldAnnotateObjectReference(_constant4))
			 ? annotateobjRef(gMoveCwR(_constant4, _resultReg), _constant4)
			 : (/* begin checkQuickConstant:forInstruction: */ (_anInstruction6 = genoperandoperand(MoveCqR, _constant4, _resultReg)), ((usesOutOfLineLiteral(_anInstruction6))
				 ? (_anInstruction6->dependent = locateLiteral(_constant4))
				 : 0), _anInstruction6 /* end checkQuickConstant:forInstruction: */)) /* end genMoveConstant:R: */ /* end genMoveFalseR: */)
		 : (/* begin genMoveTrueR: */ /* begin genMoveConstant:R: */ (_constant3 = trueObject()), ((shouldAnnotateObjectReference(_constant3))
			 ? annotateobjRef(gMoveCwR(_constant3, _resultReg), _constant3)
			 : (/* begin checkQuickConstant:forInstruction: */ (_anInstruction5 = genoperandoperand(MoveCqR, _constant3, _resultReg)), ((usesOutOfLineLiteral(_anInstruction5))
				 ? (_anInstruction5->dependent = locateLiteral(_constant3))
				 : 0), _anInstruction5 /* end checkQuickConstant:forInstruction: */)) /* end genMoveConstant:R: */ /* end genMoveTrueR: */)));
	jmpTarget(_jumpNotEqual, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	ssPushRegister(_resultReg);
	return 0;
}
/*	Decompose code generation for #== into a common constant-folding version, 
	followed by a double dispatch throguh the objectRepresentation to a 
	version that doesn't deal with forwarders and a version that does. */
/* StackToRegisterMappingCogit>>#genInlinedIdenticalOrNotIf: */
static sqInt NoDbgRegParms
genInlinedIdenticalOrNotIf(sqInt _orNot)
{
	BytecodeDescriptor *_primDescriptor;
	sqInt _result;

	_primDescriptor = generatorAt(byte0);
	if ((isUnannotatableConstant(ssTop())) && (isUnannotatableConstant(ssValue(1)))) {
		assert(!((_primDescriptor->isMapped)));
		_result = ((((_orNot)
			 ? (((ssTop())->constant)) != (((ssValue(1))->constant))
			 : (((ssTop())->constant)) == (((ssValue(1))->constant))))
			 ? trueObject()
			 : falseObject());
		ssPop(2);
		return ssPushConstant(_result);
	}
	/* begin genInlinedIdenticalOrNotIfGuts: */
	return genForwardersInlinedIdenticalOrNotIf(_orNot);
	/* end genInlinedIdenticalOrNotIfGuts: */
}
/* StackToRegisterMappingCogit>>#genJumpBackTo: */
static sqInt NoDbgRegParms
genJumpBackTo(sqInt _targetBytecodePC)
{
	AbstractInstruction *_abstractInstruction;
	AbstractInstruction *_abstractInstruction2;
	sqInt _address;
	void *_jumpTarget;
	void *_jumpTarget2;

	ssFlushStack();
	deadCode = 1;
	{
		/* begin MoveAw:R: */
		_address = stackLimitAddress();
		/* begin gen:literal:operand: */
		checkLiteralforInstruction(_address, genoperandoperand(MoveAwR, _address, TempReg));
		/* end gen:literal:operand: */
		/* end MoveAw:R: */
		/* begin CmpR:R: */
		genoperandoperand(CmpRR, TempReg, SPReg);
		/* end CmpR:R: */
		/* begin JumpAboveOrEqual: */
		/* begin fixupAt: */
		_jumpTarget = fixupAtIndex(_targetBytecodePC - initialPC);
		/* end fixupAt: */
		genConditionalBranchoperand(JumpAboveOrEqual, ((sqInt) _jumpTarget ));
		/* end JumpAboveOrEqual: */
		/* begin CallRT: */
		/* begin annotateCall: */
		_abstractInstruction = genoperand(Call, ceCheckForInterruptTrampoline);
		(_abstractInstruction->annotation = IsRelativeCall);
		/* end annotateCall: */
		/* end CallRT: */
		/* begin annotateBytecode: */
		_abstractInstruction2 = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
		(_abstractInstruction2->annotation = HasBytecodePC);
		/* end annotateBytecode: */
		/* begin Jump: */
		/* begin fixupAt: */
		_jumpTarget2 = fixupAtIndex(_targetBytecodePC - initialPC);
		/* end fixupAt: */
		genoperand(Jump, ((sqInt) _jumpTarget2 ));
		/* end Jump: */
		return 0;
	}
	return 0;
}
/* StackToRegisterMappingCogit>>#genJumpIf:to: */
static sqInt NoDbgRegParms
genJumpIfto(sqInt _boolean, sqInt _targetBytecodePC)
{
	AbstractInstruction *_abstractInstruction;
	AbstractInstruction *_abstractInstruction2;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	CogSimStackEntry *_desc;
	sqInt _eventualTarget;
	BytecodeFixup *_fixup;
	void *_jumpTarget;
	AbstractInstruction *_ok;
	sqInt _quickConstant;

	_eventualTarget = eventualTargetOf(_targetBytecodePC);
	ssFlushStackExceptTop(1);
	_desc = ssTop();
	if ((((_desc->type)) == SSConstant) && ((((_desc->constant)) == (trueObject())) || (((_desc->constant)) == (falseObject())))) {
		ssPop(1);
		_fixup = ensureFixupAt(_eventualTarget);
		/* begin annotateBytecode: */
		_abstractInstruction = ((AbstractInstruction *) (((((_desc->constant)) == _boolean)
			 ? (/* begin Jump: */ genoperand(Jump, ((sqInt) _fixup )) /* end Jump: */)
			 : ((prevInstIsPCAnnotated())
				 ? (/* begin Nop */ gen(Nop) /* end Nop */)
				 : (/* begin Label */ genoperandoperand(Label, (labelCounter += 1), bytecodePC) /* end Label */)))) );
		(_abstractInstruction->annotation = HasBytecodePC);
		/* end annotateBytecode: */
		extA = 0;
		return 0;
	}
	ssPopTopToReg(TempReg);
	assert((objectAfter(falseObject())) == (trueObject()));
	/* begin genSubConstant:R: */
	if (shouldAnnotateObjectReference(_boolean)) {
		annotateobjRef(gSubCwR(_boolean, TempReg), TempReg);
	} else {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(SubCqR, _boolean, TempReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_boolean));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* end genSubConstant:R: */
	/* begin JumpZero: */
	_jumpTarget = ensureFixupAt(_eventualTarget);
	genConditionalBranchoperand(JumpZero, ((sqInt) _jumpTarget ));
	/* end JumpZero: */
	if (extA & 1) {
		extA = 0;
		/* begin annotateBytecode: */
		_abstractInstruction2 = lastOpcode();
		(_abstractInstruction2->annotation = HasBytecodePC);
		/* end annotateBytecode: */
		return 0;
	}
	extA = 0;
	/* begin CmpCq:R: */
	_quickConstant = ((_boolean == (falseObject()))
		 ? (trueObject()) - (falseObject())
		 : (falseObject()) - (trueObject()));
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(CmpCqR, _quickConstant, TempReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_quickConstant));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end CmpCq:R: */
	/* begin JumpZero: */
	_ok = genConditionalBranchoperand(JumpZero, ((sqInt) 0 ));
	/* end JumpZero: */
	genCallMustBeBooleanFor(_boolean);
	jmpTarget(_ok, annotateBytecode(genoperandoperand(Label, (labelCounter += 1), bytecodePC)));
	return 0;
}
/* StackToRegisterMappingCogit>>#genJumpTo: */
static sqInt NoDbgRegParms
genJumpTo(sqInt _targetBytecodePC)
{
	sqInt _eventualTarget;
	BytecodeFixup * _fixup;
	BytecodeDescriptor * _generator;

	_eventualTarget = eventualTargetOf(_targetBytecodePC);
	if ((_eventualTarget > bytecodePC) && (((simStackPtr >= methodOrBlockNumArgs) && (stackEntryIsBoolean(ssTop()))) && (((((_generator = generatorForPC(_eventualTarget)))->isBranchTrue)) || ((((_generator = generatorForPC(_eventualTarget)))->isBranchFalse))))) {
		_eventualTarget = (_eventualTarget + ((_generator->numBytes))) + (((((_generator->isBranchTrue)) == ((((ssTop())->constant)) == (trueObject())))
			 ? (/* begin spanFor:at:exts:in: */ ((_generator->spanFunction))(_generator, _eventualTarget, 0, methodObj) /* end spanFor:at:exts:in: */)
			 : 0));
		ssFlushStackExceptTop(1);
		_fixup = ensureFixupAtwithStackPointer(_eventualTarget, simStackPtr - 1);
	} else {
		ssFlushStack();
		_fixup = ensureFixupAt(_eventualTarget);
	}
	deadCode = 1;
	/* begin Jump: */
	genoperand(Jump, ((sqInt) _fixup ));
	/* end Jump: */
	return 0;
}
/*	SistaV1:	236		11101100	iiiiiiii		callMappedInlinedPrimitiveNumber of arguments: 
	0-49 nullary 
	50-99 unary 
	100-149 binary 
	150-199 trinary 
	200-255 variableSpecification: 
	50	EnsureEnoughWords 
	literal which is a Smi => ret value is receiver 
	150	immCheckPointerAt:put: 
	pointer object (Fixed sized or not) and not a context, Smi, Anything => 
	arg2 (1-based, optimised if arg1 is a constant) 
	151	immCheckStoreCheckPointerAt:put: 
	pointer object (Fixed sized or not) and not a context, Smi, Anything => 
	arg2 (1-based, optimised if arg1 is a constant) 
	152	immCheckMaybeContextPointerAt:put: 
	pointer object (Fixed sized or not), Smi, Anything => arg2 (1-based, 
	optimised if arg1 is a constant) 
	153	immCheckMaybeContextStoreCheckPointerAt:put: 
	pointer object (Fixed sized or not), Smi, Anything => arg2 (1-based, 
	optimised if arg1 is a constant) 
	154	immCheckByteAt:put: 
	byte object, Smi, 8 bits unsigned Smi => arg2 (1-based, optimised if arg1 
	is a constant) 
	155	immCheckShortAt:put: 
	short object, Smi, 16 bits unsigned Smi => arg2 (1-based, optimised if 
	arg1 is a constant) 
	156	immCheckWordAt:put: 
	word object, Smi, 32 bits unsigned Smi => arg2 (1-based, optimised if arg1 
	is a constant) 
	157	immCheckDoubleWordAt:put: 
	double word object, Smi, 64 bits unsigned Smi or LargePositiveInteger => 
	arg2 (1-based, optimised if arg1 is a constant) 
	250	directCall 
	method to call on top of stack => (variable number of parameters) */
/* StackToRegisterMappingCogit>>#genMappedInlinePrimitive: */
static sqInt NoDbgRegParms
genMappedInlinePrimitive(sqInt _primIndex)
{
	AbstractInstruction *_abstractInstruction;
	sqInt _result;

	switch (_primIndex) {
		case 0:
		{
			_result = genAddFloat64Vector();
		}
		break;
		case 1:
		{
			_result = genPushFloat64ArrayToRegister();
		}
		break;
		case 2:
		{
			_result = genStoreFloat64RegisterIntoArray();
		}
		break;
		case 3:
		{
			_result = genAddFloat32Vector();
		}
		break;
		case 4:
		{
			_result = genPushFloat32ArrayToRegister();
		}
		break;
		case 5:
		{
			_result = genStoreFloat32RegisterIntoArray();
		}
		break;
		case 6:
		{
			_result = genSubFloat64Vector();
		}
		break;
		default:
		{
			_result = EncounteredUnknownBytecode;
		}
	}
	/* begin annotateBytecode: */
	_abstractInstruction = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
	(_abstractInstruction->annotation = HasBytecodePC);
	/* end annotateBytecode: */
	return _result;
}
/* StackToRegisterMappingCogit>>#genMarshalledSend:numArgs:sendTable: */
static sqInt NoDbgRegParms
genMarshalledSendnumArgssendTable(sqInt _selectorIndex, sqInt _numArgs, sqInt *_sendTable)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	sqInt _annotation;

	assert(needsFrame);
	/* begin annotationForSendTable: */
	if (_sendTable == ordinarySendTrampolines) {
		_annotation = IsSendCall;
		goto l3;
	}
	{
		if (_sendTable == directedSuperSendTrampolines) {
			_annotation = IsDirectedSuperSend;
			goto l3;
		}
		if (_sendTable == directedSuperBindingSendTrampolines) {
			_annotation = IsDirectedSuperBindingSend;
			goto l3;
		}
	}
	assert(_sendTable == superSendTrampolines);
	_annotation = IsSuperSend;
	l3:
	;
	/* end annotationForSendTable: */
	if ((_annotation == IsSuperSend) || ((_annotation >= IsDirectedSuperSend) && (_annotation <= IsDirectedSuperBindingSend))) {
		genEnsureOopInRegNotForwardedscratchReg(ReceiverResultReg, TempReg);
	}
	if (_numArgs >= (NumSendTrampolines - 1)) {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(MoveCqR, _numArgs, SendNumArgsReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_numArgs));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	if ((_annotation >= IsDirectedSuperSend) && (_annotation <= IsDirectedSuperBindingSend)) {
		/* begin genMoveConstant:R: */
		if (shouldAnnotateObjectReference(tempOop)) {
			annotateobjRef(gMoveCwR(tempOop, TempReg), tempOop);
		} else {
			/* begin checkQuickConstant:forInstruction: */
			_anInstruction2 = genoperandoperand(MoveCqR, tempOop, TempReg);
			if (usesOutOfLineLiteral(_anInstruction2)) {
				(_anInstruction2->dependent = locateLiteral(tempOop));
			}
			/* end checkQuickConstant:forInstruction: */
		}
		/* end genMoveConstant:R: */
	}
	genLoadInlineCacheWithSelector(_selectorIndex);
	((genoperand(Call, _sendTable[((_numArgs < (NumSendTrampolines - 1)) ? _numArgs : NumSendTrampolines - 1)]))->annotation = _annotation);
	/* begin voidReceiverOptStatus */
	((simSelf())->liveRegister = NoReg);
	/* end voidReceiverOptStatus */
	return ssPushRegister(ReceiverResultReg);
}
/*	Generate the abort for a method. This abort performs either a call of 
	ceSICMiss: to handle a single-in-line cache miss or a call of 
	ceStackOverflow: to handle a 
	stack overflow. It distinguishes the two by testing ResultReceiverReg. If 
	the register is zero then this is a stack-overflow because a) the receiver 
	has already 
	been pushed and so can be set to zero before calling the abort, and b) the 
	receiver must always contain an object (and hence be non-zero) on SIC 
	miss.  */
/* StackToRegisterMappingCogit>>#genMethodAbortTrampolineFor: */
static sqInt NoDbgRegParms
genMethodAbortTrampolineFor(sqInt _numArgs)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_jumpSICMiss;

	zeroOpcodeIndex();
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(CmpCqR, 0, ReceiverResultReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(0));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin JumpNonZero: */
	_jumpSICMiss = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
	/* end JumpNonZero: */
	{
		/* begin MoveR:Mw:r: */
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperandoperand(MoveRMwr, LinkReg, 0, SPReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(0));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveR:Mw:r: */
	}
	compileTrampolineFornumArgsargargargargregsToSavepushLinkRegresultReg(ceStackOverflow, 1, SendNumArgsReg, null, null, null, 0, 0, NoReg);
	jmpTarget(_jumpSICMiss, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	genPushRegisterArgsForAbortMissNumArgs(backEnd, _numArgs);
	return genTrampolineForcallednumArgsargargargargregsToSavepushLinkRegresultRegappendOpcodes(ceSICMiss, trampolineNamenumRegArgs("ceMethodAbort", _numArgs), 1, ReceiverResultReg, null, null, null, 0, 0, NoReg, 1);
}
/*	Generate the abort for a PIC. This abort performs either a call of 
	ceInterpretMethodFromPIC:receiver: to handle invoking an uncogged 
	target or a call of ceMNUFromPICMNUMethod:receiver: to handle an 
	MNU dispatch in a closed PIC. It distinguishes the two by testing 
	ClassReg. If the register is zero then this is an MNU. */
/* StackToRegisterMappingCogit>>#genPICAbortTrampolineFor: */
static sqInt NoDbgRegParms
genPICAbortTrampolineFor(sqInt _numArgs)
{
	zeroOpcodeIndex();
	genPushRegisterArgsForAbortMissNumArgs(backEnd, _numArgs);
	return genInnerPICAbortTrampoline(trampolineNamenumRegArgs("cePICAbort", _numArgs));
}
/* StackToRegisterMappingCogit>>#genPICMissTrampolineFor: */
static sqInt NoDbgRegParms
genPICMissTrampolineFor(sqInt _numArgs)
{
	sqInt _startAddress;

	_startAddress = methodZoneBase;
	zeroOpcodeIndex();
	genPushRegisterArgsForNumArgsscratchReg(backEnd, _numArgs, SendNumArgsReg);
	genTrampolineForcallednumArgsargargargargregsToSavepushLinkRegresultRegappendOpcodes(ceCPICMissreceiver, trampolineNamenumRegArgs("cePICMiss", _numArgs), 2, ClassReg, ReceiverResultReg, null, null, 0, 1, NoReg, 1);
	return _startAddress;
}
/* StackToRegisterMappingCogit>>#genPopStackBytecode */
static sqInt
genPopStackBytecode(void)
{
	ssPop(1);
	return 0;
}
/*	Check the argument count. Fail if wrong. 
	Get the method from the outerContext and see if it is cogged. If so, jump 
	to the 
	block entry or the no-context-switch entry, as appropriate, and we're 
	done. If not, 
	invoke the interpreter primitive.Override to push the register args first. */
/* StackToRegisterMappingCogit>>#genPrimitiveFullClosureValue */
static sqInt
genPrimitiveFullClosureValue(void)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	sqInt _literal;
	sqInt _quickConstant;
	sqInt _quickConstant2;

	genPushRegisterArgs();
	{
		AbstractInstruction *_jumpBCMethod;
		AbstractInstruction *_jumpFail4;
		AbstractInstruction *_jumpFailImmediateMethod;
		AbstractInstruction *_jumpFailNArgs;
		void (*_primitiveRoutine)(void);
		sqInt _result;

		genLoadSlotsourceRegdestReg(FullClosureNumArgsIndex, ReceiverResultReg, TempReg);
		/* begin checkQuickConstant:forInstruction: */
		_literal = ((((usqInt) methodOrBlockNumArgs ) << 1) | 1);
		_anInstruction = genoperandoperand(CmpCqR, ((((usqInt) methodOrBlockNumArgs ) << 1) | 1), TempReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_literal));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin JumpNonZero: */
		_jumpFailNArgs = genConditionalBranchoperand(JumpNonZero, ((sqInt) 0 ));
		/* end JumpNonZero: */
		genLoadSlotsourceRegdestReg(FullClosureCompiledBlockIndex, ReceiverResultReg, SendNumArgsReg);
		_jumpFailImmediateMethod = genJumpImmediate(SendNumArgsReg);
		genGetFormatOfinto(SendNumArgsReg, TempReg);
		/* begin CmpCq:R: */
		_quickConstant = firstCompiledMethodFormat();
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction2 = genoperandoperand(CmpCqR, _quickConstant, TempReg);
		if (usesOutOfLineLiteral(_anInstruction2)) {
			(_anInstruction2->dependent = locateLiteral(_quickConstant));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end CmpCq:R: */
		/* begin JumpLess: */
		_jumpFail4 = genConditionalBranchoperand(JumpLess, ((sqInt) 0 ));
		/* end JumpLess: */
		genLoadSlotsourceRegdestReg(HeaderIndex, SendNumArgsReg, ClassReg);
		_jumpBCMethod = genJumpImmediate(ClassReg);
		_primitiveRoutine = functionPointerForCompiledMethodprimitiveIndex(methodObj, primitiveIndex);
		/* begin AddCq:R: */
		_quickConstant2 = ((_primitiveRoutine == primitiveFullClosureValueNoContextSwitch)
			 ? fullBlockNoContextSwitchEntryOffset()
			 : fullBlockEntryOffset());
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction3 = genoperandoperand(AddCqR, _quickConstant2, ClassReg);
		if (usesOutOfLineLiteral(_anInstruction3)) {
			(_anInstruction3->dependent = locateLiteral(_quickConstant2));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end AddCq:R: */
		/* begin JumpR: */
		genoperand(JumpR, ClassReg);
		/* end JumpR: */
		jmpTarget(_jumpBCMethod, jmpTarget(_jumpFailImmediateMethod, jmpTarget(_jumpFail4, genoperandoperand(Label, (labelCounter += 1), bytecodePC))));
		if (((_result = compileInterpreterPrimitiveflags(_primitiveRoutine, primitivePropertyFlagsprimitiveDescriptor(primitiveIndex, primitiveDescriptor())))) < 0) {
			return _result;
		}
		jmpTarget(_jumpFailNArgs, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
		return CompletePrimitive;
	}
	return 0;
}
/*	Generate an in-line perform primitive. The lookup code requires the 
	selector to be in Arg0Reg. 
	adjustArgumentsForPerform: adjusts the arguments once 
	genLookupForPerformNumArgs: has generated the code for the lookup. */
/* StackToRegisterMappingCogit>>#genPrimitivePerform */
static sqInt
genPrimitivePerform(void)
{
	AbstractInstruction *_anInstruction;
	sqInt _offset;

	if (methodOrBlockNumArgs > 2) {
		/* begin MoveMw:r:R: */
		_offset = (methodOrBlockNumArgs - 1) * BytesPerWord;
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperandoperand(MoveMwrR, _offset, SPReg, Arg0Reg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_offset));
		}
		/* end checkQuickConstant:forInstruction: */
		/* end MoveMw:r:R: */
	}
	return genLookupForPerformNumArgs(methodOrBlockNumArgs);
}
/* StackToRegisterMappingCogit>>#genPushActiveContextBytecode */
static sqInt
genPushActiveContextBytecode(void)
{
	assert(needsFrame);
	voidReceiverResultRegContainsSelf();
	{
		/* begin ssAllocateCallReg:and:and: */
		ssAllocateRequiredRegMaskupThrough(CallerSavedRegisterMask | (((1U << ReceiverResultReg) | (1U << SendNumArgsReg)) | (1U << ClassReg)), simStackPtr);
		/* end ssAllocateCallReg:and:and: */
	}
	genGetActiveContextNumArgslargeinBlock(methodOrBlockNumArgs, methodNeedsLargeContext(methodObj), inBlock);
	return ssPushRegister(ReceiverResultReg);
}
/* StackToRegisterMappingCogit>>#genPushFloat32ArrayToRegister */
static sqInt
genPushFloat32ArrayToRegister(void)
{
	AbstractInstruction *_anInstruction;
	signed char _arrayReg;
	signed char _indexReg;
	sqInt _vectorReg;

	{
		return EncounteredUnknownBytecode;
	}
	_arrayReg = allocateRegForStackEntryAtnotConflictingWith(0, 0);
	_indexReg = allocateRegForStackEntryAtnotConflictingWith(1, 1U << _arrayReg);
	ssPopTopToReg(_arrayReg);
	ssPopTopToReg(_indexReg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(AddCqR, BaseHeaderSize, _arrayReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	assert(BytesPerWord == 8);
	/* begin LogicalShiftRightCq:R: */
	genoperandoperand(LogicalShiftRightCqR, 1, _indexReg);
	/* end LogicalShiftRightCq:R: */
	/* begin AddR:R: */
	genoperandoperand(AddRR, _indexReg, _arrayReg);
	/* end AddR:R: */
	_vectorReg = allocateVectorRegNotConflictingWith(0);
	gLd1SVrRMw(32, _vectorReg, _arrayReg, 0);
	ssPushVectorRegister(_vectorReg);
	return 0;
}
/* StackToRegisterMappingCogit>>#genPushFloat64ArrayToRegister */
static sqInt
genPushFloat64ArrayToRegister(void)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	signed char _arrayReg;
	signed char _indexReg;
	sqInt _vectorReg;

	{
		return EncounteredUnknownBytecode;
	}
	_arrayReg = allocateRegForStackEntryAtnotConflictingWith(0, 0);
	_indexReg = allocateRegForStackEntryAtnotConflictingWith(1, 1U << _arrayReg);
	ssPopTopToReg(_arrayReg);
	ssPopTopToReg(_indexReg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(AddCqR, BaseHeaderSize, _arrayReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	assert(BytesPerWord == 8);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(SubCqR, 1, _indexReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin AddR:R: */
	genoperandoperand(AddRR, _indexReg, _arrayReg);
	/* end AddR:R: */
	_vectorReg = allocateVectorRegNotConflictingWith(0);
	gLd1SVrRMw(64, _vectorReg, _arrayReg, 0);
	ssPushVectorRegister(_vectorReg);
	return 0;
}
/*	<SmallInteger>Override to avoid the BytecodeSetHasDirectedSuperSend check, which is 
	unnecessary here given the simulation stack. */
/* StackToRegisterMappingCogit>>#genPushLiteralIndex: */
static sqInt NoDbgRegParms
genPushLiteralIndex(sqInt _literalIndex)
{
	sqInt _literal;

	_literal = getLiteral(_literalIndex);
	return genPushLiteral(_literal);
}
/* StackToRegisterMappingCogit>>#genPushLiteralVariable: */
static sqInt NoDbgRegParms
genPushLiteralVariable(sqInt _literalIndex)
{
	AbstractInstruction *_anInstruction;
	sqInt _association;
	sqInt _bcpc;
	BytecodeDescriptor *_descriptor2;
	sqInt _eB;
	sqInt _freeReg;
	sqInt _savedB0;
	sqInt _savedB1;
	sqInt _savedB2;
	sqInt _savedB3;
	sqInt _savedEA;
	sqInt _savedEB;
	sqInt _savedNEB;

	_association = getLiteral(_literalIndex);
	{
		assert(!directedSendUsesBinding);
		/* begin nextDescriptorExtensionsAndNextPCInto: */
		_descriptor2 = generatorAt(byte0);
		_savedB0 = byte0;
		_savedB1 = byte1;
		_savedB2 = byte2;
		_savedB3 = byte3;
		_savedEA = extA;
		_savedEB = extB;
		_savedNEB = numExtB;
		_bcpc = bytecodePC + ((_descriptor2->numBytes));
		do {
			if (_bcpc > endPC) {
				{
				}
				goto l2;
			}
			byte0 = fetchByteofObject(_bcpc, methodObj);
			_descriptor2 = generatorAt(byte0);
			loadSubsequentBytesForDescriptorat(_descriptor2, _bcpc);
			if (!((_descriptor2->isExtension))) {
				_eB = extB;
				extA = _savedEA;
				extB = _savedEB;
				numExtB = _savedNEB;
				byte0 = _savedB0;
				byte1 = _savedB1;
				byte2 = _savedB2;
				byte3 = _savedB3;
				{
					if ((_descriptor2 != null) && ((((_descriptor2->generator)) == genExtSendSuperBytecode) && (_eB >= 64))) {
						ssPushConstant(_association);
						directedSendUsesBinding = 1;
						return 0;
					}
				}
				goto l2;
			}
			((_descriptor2->generator))();
			_bcpc += (_descriptor2->numBytes);
		} while (1);
		l2:
		;
		/* end nextDescriptorExtensionsAndNextPCInto: */
	}
	_freeReg = allocateRegNotConflictingWith(0);
	/* begin genMoveConstant:R: */
	if (shouldAnnotateObjectReference(_association)) {
		annotateobjRef(gMoveCwR(_association, TempReg), _association);
	} else {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(MoveCqR, _association, TempReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_association));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* end genMoveConstant:R: */
	genEnsureObjInRegNotForwardedscratchReg(TempReg, _freeReg);
	genLoadSlotsourceRegdestReg(ValueIndex, TempReg, _freeReg);
	ssPushRegister(_freeReg);
	return 0;
}
/* StackToRegisterMappingCogit>>#genPushLiteral: */
static sqInt NoDbgRegParms
genPushLiteral(sqInt _literal)
{
	return ssPushConstant(_literal);
}
/* StackToRegisterMappingCogit>>#genPushMaybeContextReceiverVariable: */
static sqInt NoDbgRegParms
genPushMaybeContextReceiverVariable(sqInt _slotIndex)
{
	AbstractInstruction *_abstractInstruction;
	AbstractInstruction *_abstractInstruction2;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_jmpDone;
	AbstractInstruction *_jmpSingle;

	/* begin ssAllocateCallReg:and: */
	ssAllocateRequiredRegMaskupThrough(CallerSavedRegisterMask | ((1U << ReceiverResultReg) | (1U << SendNumArgsReg)), simStackPtr);
	/* end ssAllocateCallReg:and: */
	ensureReceiverResultRegContainsSelf();
	/* begin genPushMaybeContextSlotIndex: */
	assert(needsFrame);
	if (CallerSavedRegisterMask & (1U << ReceiverResultReg)) {
		voidReceiverResultRegContainsSelf();
	}
	if (_slotIndex == InstructionPointerIndex) {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(MoveCqR, _slotIndex, SendNumArgsReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_slotIndex));
		}
		/* end checkQuickConstant:forInstruction: */
		/* begin CallRT: */
		/* begin annotateCall: */
		_abstractInstruction = genoperand(Call, ceFetchContextInstVarTrampoline);
		(_abstractInstruction->annotation = IsRelativeCall);
		/* end annotateCall: */
		/* end CallRT: */
		return ssPushRegister(SendNumArgsReg);
	}
	genLoadSlotsourceRegdestReg(SenderIndex, ReceiverResultReg, TempReg);
	_jmpSingle = genJumpNotSmallIntegerInScratchReg(TempReg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(MoveCqR, _slotIndex, SendNumArgsReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_slotIndex));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin CallRT: */
	/* begin annotateCall: */
	_abstractInstruction2 = genoperand(Call, ceFetchContextInstVarTrampoline);
	(_abstractInstruction2->annotation = IsRelativeCall);
	/* end annotateCall: */
	/* end CallRT: */
	/* begin Jump: */
	_jmpDone = genoperand(Jump, ((sqInt) 0 ));
	/* end Jump: */
	jmpTarget(_jmpSingle, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	genLoadSlotsourceRegdestReg(_slotIndex, ReceiverResultReg, SendNumArgsReg);
	jmpTarget(_jmpDone, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	return ssPushRegister(SendNumArgsReg);
	/* end genPushMaybeContextSlotIndex: */
}
/* StackToRegisterMappingCogit>>#genPushNewArrayBytecode */
static sqInt
genPushNewArrayBytecode(void)
{
	sqInt _i;
	int _popValues;
	sqInt _size;

	assert(needsFrame);
	voidReceiverResultRegContainsSelf();
	if ((_popValues = byte1 > 0x7F)) {
		ssFlushStack();
	} else {
		/* begin ssAllocateCallReg:and: */
		ssAllocateRequiredRegMaskupThrough(CallerSavedRegisterMask | ((1U << SendNumArgsReg) | (1U << ReceiverResultReg)), simStackPtr);
		/* end ssAllocateCallReg:and: */
	}
	_size = byte1 & 0x7F;
	if (!_popValues) {
		if (tryCollapseTempVectorInitializationOfSize(_size)) {
			return 0;
		}
	}
	genNewArrayOfSizeinitialized(_size, !_popValues);
	if (_popValues) {
		for (_i = _size - 1; _i >= 0; _i += -1) {
			ssPopTopToReg(TempReg);
			genStoreSourceRegslotIndexintoNewObjectInDestReg(TempReg, _i, ReceiverResultReg);
		}
	}
	return ssPushRegister(ReceiverResultReg);
}
/* StackToRegisterMappingCogit>>#genPushReceiverBytecode */
static sqInt
genPushReceiverBytecode(void)
{
	if ((((simSelf())->liveRegister)) == ReceiverResultReg) {
		return ssPushRegister(ReceiverResultReg);
	}
	return ssPushDesc(ssSelfDescriptor());
}
/* StackToRegisterMappingCogit>>#genPushReceiverVariable: */
static sqInt NoDbgRegParms
genPushReceiverVariable(sqInt _index)
{
	ensureReceiverResultRegContainsSelf();
	return ssPushBaseoffset(ReceiverResultReg, slotOffsetOfInstVarIndex(_index));
}
/*	Ensure that the register args are pushed before the retpc for methods with 
	arity <= self numRegArgs.This won't be as clumsy on a RISC. But putting the receiver and 
	args above the return address means the CoInterpreter has a 
	single machine-code frame format which saves us a lot of work. */
/* StackToRegisterMappingCogit>>#genPushRegisterArgs */
static void
genPushRegisterArgs(void)
{
	if (!(regArgsHaveBeenPushed || (methodOrBlockNumArgs > 2))) {
		genPushRegisterArgsForNumArgsscratchReg(backEnd, methodOrBlockNumArgs, SendNumArgsReg);
		regArgsHaveBeenPushed = 1;
	}
}
/* StackToRegisterMappingCogit>>#genPushRemoteTempLongBytecode */
static sqInt
genPushRemoteTempLongBytecode(void)
{
	AbstractInstruction *_anInstruction;
	sqInt _offset;
	sqInt _regMask;
	sqInt _remoteTempReg;
	sqInt _tempVectReg;

	_tempVectReg = allocateRegNotConflictingWith(0);
	/* begin MoveMw:r:R: */
	_offset = frameOffsetOfTemporary(byte2);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperandoperand(MoveMwrR, _offset, FPReg, _tempVectReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(_offset));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end MoveMw:r:R: */
	/* begin availableRegOrNoneNotConflictingWith: */
	_regMask = 1U << _tempVectReg;
	_remoteTempReg = availableRegisterOrNoneFor(backEnd, (liveRegisters()) | _regMask);
	/* end availableRegOrNoneNotConflictingWith: */
	if (_remoteTempReg == NoReg) {
		_remoteTempReg = _tempVectReg;
	}
	genLoadSlotsourceRegdestReg(byte1, _tempVectReg, _remoteTempReg);
	return ssPushRegister(_remoteTempReg);
}
/*	If a frameless method (not a block), only argument temps can be accessed. 
	This is assured by the use of needsFrameIfMod16GENumArgs: in pushTemp. */
/* StackToRegisterMappingCogit>>#genPushTemporaryVariable: */
static sqInt NoDbgRegParms
genPushTemporaryVariable(sqInt _index)
{
	assert((inBlock > 0) || (needsFrame || (_index < methodOrBlockNumArgs)));
	return ssPushDesc(simStack[_index + 1]);
}
/*	In a frameless method ReceiverResultReg already contains self. 
	In a frameful method, ReceiverResultReg /may/ contain self. */
/* StackToRegisterMappingCogit>>#genReturnReceiver */
static sqInt
genReturnReceiver(void)
{
	if (needsFrame) {
		if (!((((simSelf())->liveRegister)) == ReceiverResultReg)) {
			/* begin putSelfInReceiverResultReg */
			copyToReg(simSelf(), ReceiverResultReg);
			/* end putSelfInReceiverResultReg */
		}
	}
	return genUpArrowReturn();
}
/* StackToRegisterMappingCogit>>#genReturnTopFromBlock */
static sqInt
genReturnTopFromBlock(void)
{
	assert(inBlock > 0);
	ssPopTopToReg(ReceiverResultReg);
	return genBlockReturn();
}
/* StackToRegisterMappingCogit>>#genReturnTopFromMethod */
static sqInt
genReturnTopFromMethod(void)
{
	ssPopTopToReg(ReceiverResultReg);
	return genUpArrowReturn();
}
/* StackToRegisterMappingCogit>>#genSendDirectedSuper:numArgs: */
static sqInt NoDbgRegParms
genSendDirectedSupernumArgs(sqInt _selectorIndex, sqInt _numArgs)
{
	sqInt _result;

	assert((((ssTop())->type)) == SSConstant);
	tempOop = ((ssTop())->constant);
	ssPop(1);
	marshallSendArguments(_numArgs);
	_result = genMarshalledSendnumArgssendTable(_selectorIndex, _numArgs, ((directedSendUsesBinding)
		 ? directedSuperBindingSendTrampolines
		 : directedSuperSendTrampolines));
	directedSendUsesBinding = 0;
	return _result;
}
/* StackToRegisterMappingCogit>>#genSendSuper:numArgs: */
static sqInt NoDbgRegParms
genSendSupernumArgs(sqInt _selectorIndex, sqInt _numArgs)
{
	marshallSendArguments(_numArgs);
	return genMarshalledSendnumArgssendTable(_selectorIndex, _numArgs, superSendTrampolines);
}
/*	Generate a trampoline with four arguments. 
	Hack: a negative value indicates an abstract register, a non-negative 
	value indicates a constant. */
/* StackToRegisterMappingCogit>>#genSendTrampolineFor:numArgs:called:arg:arg:arg:arg: */
static sqInt NoDbgRegParms
genSendTrampolineFornumArgscalledargargargarg(void *_aRoutine, sqInt _numArgs, char *_aString, sqInt _regOrConst0, sqInt _regOrConst1, sqInt _regOrConst2, sqInt _regOrConst3)
{
	sqInt _routine;
	sqInt _startAddress;

	_startAddress = methodZoneBase;
	zeroOpcodeIndex();
	genPushRegisterArgsForNumArgsscratchReg(backEnd, _numArgs, SendNumArgsReg);
	{
		/* begin selectorIndexDereferenceRoutine */
		_routine = null;
		/* end selectorIndexDereferenceRoutine */
		if (!(_routine == null)) {
			{
				/* begin PushR: */
				genoperand(PushR, LinkReg);
				/* end PushR: */
			}
			/* begin Call: */
			genoperand(Call, _routine);
			/* end Call: */
			{
				/* begin PopR: */
				genoperand(PopR, LinkReg);
				/* end PopR: */
			}
		}
	}
	genTrampolineForcallednumArgsargargargargregsToSavepushLinkRegresultRegappendOpcodes(_aRoutine, _aString, 4, _regOrConst0, _regOrConst1, _regOrConst2, _regOrConst3, 0, 1, NoReg, 1);
	return _startAddress;
}
/* StackToRegisterMappingCogit>>#genSend:numArgs: */
static sqInt NoDbgRegParms
genSendnumArgs(sqInt _selectorIndex, sqInt _numArgs)
{
	marshallSendArguments(_numArgs);
	return genMarshalledSendnumArgssendTable(_selectorIndex, _numArgs, ordinarySendTrampolines);
}
/* StackToRegisterMappingCogit>>#genSpecialSelectorArithmetic */
static sqInt
genSpecialSelectorArithmetic(void)
{
	AbstractInstruction *_abstractInstruction;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_anInstruction3;
	AbstractInstruction *_anInstruction4;
	AbstractInstruction *_anInstruction5;
	AbstractInstruction *_anInstruction6;
	AbstractInstruction *_anInstruction7;
	AbstractInstruction *_anInstruction8;
	sqInt _argInt;
	int _argIsConst;
	sqInt _argIsInt;
	sqInt _index;
	AbstractInstruction *_jumpContinue;
	AbstractInstruction *_jumpNotSmallInts;
	BytecodeDescriptor *_primDescriptor;
	sqInt _rcvrInt;
	int _rcvrIsConst;
	sqInt _rcvrIsInt;
	sqInt _result;

	_primDescriptor = generatorAt(byte0);
	_argIsInt = (((_argIsConst = (((ssTop())->type)) == SSConstant)) && ((((_argInt = ((ssTop())->constant))) & 1))) || ((mclassIsSmallInteger()) && (isSameEntryAs(ssTop(), simSelf())));
	_rcvrIsInt = (((_rcvrIsConst = (((ssValue(1))->type)) == SSConstant)) && ((((_rcvrInt = ((ssValue(1))->constant))) & 1))) || ((mclassIsSmallInteger()) && (isSameEntryAs(ssValue(1), simSelf())));
	if (_argIsInt && (_argIsConst && (_rcvrIsInt && _rcvrIsConst))) {
		_rcvrInt = _rcvrInt >> 1;
		_argInt = _argInt >> 1;
		switch ((_primDescriptor->opcode)) {
			case AddRR:
			{
				_result = _rcvrInt + _argInt;
			}
			break;
			case SubRR:
			{
				_result = _rcvrInt - _argInt;
			}
			break;
			case AndRR:
			{
				_result = _rcvrInt & _argInt;
			}
			break;
			case OrRR:
			{
				_result = _rcvrInt | _argInt;
			}
			break;
			default:
			error("Case not found and no otherwise clause");
		}
		if (isIntegerValue(_result)) {
			return (ssPop(2), ssPushAnnotatedConstant(((((usqInt) _result ) << 1) | 1)));
		}
		return genSpecialSelectorSend();
	}
	if ((_rcvrIsConst && !_rcvrIsInt) || (_argIsConst && !_argIsInt)) {
		return genSpecialSelectorSend();
	}
	if (!(_argIsInt || _rcvrIsInt)) {
		return genSpecialSelectorSend();
	}
	if (_argIsConst) {
		ssFlushStackExceptTop(2);
		ssPop(1);
		ssPopTopToReg(ReceiverResultReg);
	} else {
		marshallSendArguments(1);
	}
	_jumpNotSmallInts = ((!(_rcvrIsInt && _argIsInt))
		 ? ((_argIsInt)
			 ? genJumpNotSmallInteger(ReceiverResultReg)
			 : ((_rcvrIsInt)
				 ? genJumpNotSmallInteger(Arg0Reg)
				 : (/* begin genJumpNotSmallIntegersIn:and:scratch: */ (/* begin MoveR:R: */ genoperandoperand(MoveRR, ReceiverResultReg, TempReg) /* end MoveR:R: */, /* begin AndR:R: */ genoperandoperand(AndRR, Arg0Reg, TempReg) /* end AndR:R: */), genJumpNotSmallIntegerInScratchReg(TempReg) /* end genJumpNotSmallIntegersIn:and:scratch: */)))
		 : 0);
	switch ((_primDescriptor->opcode)) {
		case AddRR:
		{
			if (_argIsConst) {
				/* begin checkQuickConstant:forInstruction: */
				_anInstruction = genoperandoperand(AddCqR, _argInt - ConstZero, ReceiverResultReg);
				if (usesOutOfLineLiteral(_anInstruction)) {
					(_anInstruction->dependent = locateLiteral(_argInt - ConstZero));
				}
				/* end checkQuickConstant:forInstruction: */
				/* begin JumpNoOverflow: */
				_jumpContinue = genConditionalBranchoperand(JumpNoOverflow, ((sqInt) 0 ));
				/* end JumpNoOverflow: */
				/* begin checkQuickConstant:forInstruction: */
				_anInstruction2 = genoperandoperand(SubCqR, _argInt - ConstZero, ReceiverResultReg);
				if (usesOutOfLineLiteral(_anInstruction2)) {
					(_anInstruction2->dependent = locateLiteral(_argInt - ConstZero));
				}
				/* end checkQuickConstant:forInstruction: */
			} else {
				genRemoveSmallIntegerTagsInScratchReg(ReceiverResultReg);
				/* begin AddR:R: */
				genoperandoperand(AddRR, Arg0Reg, ReceiverResultReg);
				/* end AddR:R: */
				/* begin JumpNoOverflow: */
				_jumpContinue = genConditionalBranchoperand(JumpNoOverflow, ((sqInt) 0 ));
				/* end JumpNoOverflow: */
				if (_rcvrIsInt && _rcvrIsConst) {
					/* begin checkQuickConstant:forInstruction: */
					_anInstruction3 = genoperandoperand(MoveCqR, _rcvrInt, ReceiverResultReg);
					if (usesOutOfLineLiteral(_anInstruction3)) {
						(_anInstruction3->dependent = locateLiteral(_rcvrInt));
					}
					/* end checkQuickConstant:forInstruction: */
				} else {
					/* begin SubR:R: */
					genoperandoperand(SubRR, Arg0Reg, ReceiverResultReg);
					/* end SubR:R: */
					genSetSmallIntegerTagsIn(ReceiverResultReg);
				}
			}
		}
		break;
		case SubRR:
		{
			if (_argIsConst) {
				/* begin checkQuickConstant:forInstruction: */
				_anInstruction4 = genoperandoperand(SubCqR, _argInt - ConstZero, ReceiverResultReg);
				if (usesOutOfLineLiteral(_anInstruction4)) {
					(_anInstruction4->dependent = locateLiteral(_argInt - ConstZero));
				}
				/* end checkQuickConstant:forInstruction: */
				/* begin JumpNoOverflow: */
				_jumpContinue = genConditionalBranchoperand(JumpNoOverflow, ((sqInt) 0 ));
				/* end JumpNoOverflow: */
				/* begin checkQuickConstant:forInstruction: */
				_anInstruction5 = genoperandoperand(AddCqR, _argInt - ConstZero, ReceiverResultReg);
				if (usesOutOfLineLiteral(_anInstruction5)) {
					(_anInstruction5->dependent = locateLiteral(_argInt - ConstZero));
				}
				/* end checkQuickConstant:forInstruction: */
			} else {
				genRemoveSmallIntegerTagsInScratchReg(Arg0Reg);
				/* begin SubR:R: */
				genoperandoperand(SubRR, Arg0Reg, ReceiverResultReg);
				/* end SubR:R: */
				/* begin JumpNoOverflow: */
				_jumpContinue = genConditionalBranchoperand(JumpNoOverflow, ((sqInt) 0 ));
				/* end JumpNoOverflow: */
				/* begin AddR:R: */
				genoperandoperand(AddRR, Arg0Reg, ReceiverResultReg);
				/* end AddR:R: */
				genSetSmallIntegerTagsIn(Arg0Reg);
			}
		}
		break;
		case AndRR:
		{
			if (_argIsConst) {
				/* begin checkQuickConstant:forInstruction: */
				_anInstruction6 = genoperandoperand(AndCqR, _argInt, ReceiverResultReg);
				if (usesOutOfLineLiteral(_anInstruction6)) {
					(_anInstruction6->dependent = locateLiteral(_argInt));
				}
				/* end checkQuickConstant:forInstruction: */
			} else {
				/* begin AndR:R: */
				genoperandoperand(AndRR, Arg0Reg, ReceiverResultReg);
				/* end AndR:R: */
			}
			_jumpContinue = ((_jumpNotSmallInts)
				 ? (/* begin Jump: */ genoperand(Jump, ((sqInt) 0 )) /* end Jump: */)
				 : 0);
		}
		break;
		case OrRR:
		{
			if (_argIsConst) {
				/* begin checkQuickConstant:forInstruction: */
				_anInstruction7 = genoperandoperand(OrCqR, _argInt, ReceiverResultReg);
				if (usesOutOfLineLiteral(_anInstruction7)) {
					(_anInstruction7->dependent = locateLiteral(_argInt));
				}
				/* end checkQuickConstant:forInstruction: */
			} else {
				/* begin OrR:R: */
				genoperandoperand(OrRR, Arg0Reg, ReceiverResultReg);
				/* end OrR:R: */
			}
			_jumpContinue = ((_jumpNotSmallInts)
				 ? (/* begin Jump: */ genoperand(Jump, ((sqInt) 0 )) /* end Jump: */)
				 : 0);
		}
		break;
		default:
		error("Case not found and no otherwise clause");
	}
	if (_jumpNotSmallInts == null) {
		if (!_jumpContinue) {
			/* begin annotateInstructionForBytecode */
			/* begin annotateBytecode: */
			_abstractInstruction = ((AbstractInstruction *) (((prevInstIsPCAnnotated())
				 ? (/* begin Nop */ gen(Nop) /* end Nop */)
				 : (/* begin Label */ genoperandoperand(Label, (labelCounter += 1), bytecodePC) /* end Label */))) );
			(_abstractInstruction->annotation = HasBytecodePC);
			/* end annotateBytecode: */
			/* end annotateInstructionForBytecode */
			ssPushRegister(ReceiverResultReg);
			return 0;
		}
	} else {
		jmpTarget(_jumpNotSmallInts, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	}
	if (_argIsConst) {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction8 = genoperandoperand(MoveCqR, _argInt, Arg0Reg);
		if (usesOutOfLineLiteral(_anInstruction8)) {
			(_anInstruction8->dependent = locateLiteral(_argInt));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	_index = byte0 - FirstSpecialSelector;
	genMarshalledSendnumArgssendTable(-_index - 1, 1, ordinarySendTrampolines);
	jmpTarget(_jumpContinue, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	return 0;
}
/* StackToRegisterMappingCogit>>#genSpecialSelectorClass */
static sqInt
genSpecialSelectorClass(void)
{
	sqInt _requiredReg1;
	sqInt _topReg;

	_topReg = registerOrNone(ssTop());
	if ((_topReg == NoReg) || (_topReg == ClassReg)) {
		/* begin ssAllocateRequiredReg:and:upThrough: */
		_requiredReg1 = (_topReg = SendNumArgsReg);
		ssAllocateRequiredRegMaskupThrough((1U << _requiredReg1) | (1U << ClassReg), simStackPtr - 1);
		/* end ssAllocateRequiredReg:and:upThrough: */
	} else {
		/* begin ssAllocateRequiredReg:upThrough: */
		ssAllocateRequiredRegMaskupThrough(1U << ClassReg, simStackPtr - 1);
		/* end ssAllocateRequiredReg:upThrough: */
	}
	ssPopTopToReg(_topReg);
	genGetClassObjectOfintoscratchReginstRegIsReceiver(_topReg, ClassReg, TempReg, 0);
	return ssPushRegister(ClassReg);
}
/* StackToRegisterMappingCogit>>#genSpecialSelectorComparison */
static sqInt
genSpecialSelectorComparison(void)
{
	AbstractInstruction *_abstractInstruction;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	sqInt _argInt;
	sqInt _argIsIntConst;
	BytecodeDescriptor *_branchDescriptor;
	BytecodeDescriptor *_branchDescriptor2;
	sqInt _index;
	sqInt _inlineCAB;
	AbstractInstruction *_jumpNotSmallInts;
	void *_jumpTarget;
	int _nExts;
	sqInt _nextPC2;
	sqInt _postBranchPC;
	int _postBranchPC2;
	BytecodeDescriptor *_primDescriptor;
	BytecodeDescriptor *_primDescriptor2;
	int _rcvrIsConst;
	sqInt _rcvrIsInt;
	sqInt _targetBytecodePC;
	sqInt _targetPC;

	ssFlushStackExceptTop(2);
	_primDescriptor = generatorAt(byte0);
	_argIsIntConst = ((((ssTop())->type)) == SSConstant) && ((((_argInt = ((ssTop())->constant))) & 1));
	_rcvrIsInt = (((_rcvrIsConst = (((ssValue(1))->type)) == SSConstant)) && (((((ssValue(1))->constant)) & 1))) || ((mclassIsSmallInteger()) && (isSameEntryAs(ssValue(1), simSelf())));
	if (_argIsIntConst && (_rcvrIsInt && _rcvrIsConst)) {
		return genStaticallyResolvedSpecialSelectorComparison();
	}
	/* begin extractMaybeBranchDescriptorInto: */
	_primDescriptor2 = generatorAt(byte0);
	_nextPC2 = bytecodePC + ((_primDescriptor2->numBytes));
	_nExts = 0;
	while (1) {
		while (1) {
			/* begin generatorForPC: */
			_branchDescriptor2 = generatorAt(fetchByteofObject(_nextPC2, methodObj));
			/* end generatorForPC: */
			if (!((_branchDescriptor2->isExtension))) 
				break;
			_nExts += 1;
			_nextPC2 += (_branchDescriptor2->numBytes);
		}
		/* begin isUnconditionalBranch */
		/* end isUnconditionalBranch */
		if (!((isBranch(_branchDescriptor2)) && (!(((_branchDescriptor2->isBranchTrue)) || ((_branchDescriptor2->isBranchFalse)))))) 
			break;
		_nextPC2 = eventualTargetOf((_nextPC2 + ((_branchDescriptor2->numBytes))) + (((_branchDescriptor2->spanFunction))(_branchDescriptor2, _nextPC2, _nExts, methodObj)));
	}
	_targetBytecodePC = (_postBranchPC2 = 0);
	if (((_branchDescriptor2->isBranchTrue)) || ((_branchDescriptor2->isBranchFalse))) {
		_targetBytecodePC = eventualTargetOf((_nextPC2 + ((_branchDescriptor2->numBytes))) + (((_branchDescriptor2->spanFunction))(_branchDescriptor2, _nextPC2, _nExts, methodObj)));
		_postBranchPC2 = eventualTargetOf(_nextPC2 + ((_branchDescriptor2->numBytes)));
	} else {
		_nextPC2 = bytecodePC + ((_primDescriptor2->numBytes));
	}
	{
		_branchDescriptor = _branchDescriptor2;
		_postBranchPC = _postBranchPC2;
		_targetPC = _targetBytecodePC;
	}
	/* end extractMaybeBranchDescriptorInto: */
	_inlineCAB = ((_branchDescriptor->isBranchTrue)) || ((_branchDescriptor->isBranchFalse));
	if (_inlineCAB && ((((_primDescriptor->opcode)) == JumpZero) || (((_primDescriptor->opcode)) == JumpNonZero))) {
		_inlineCAB = _argIsIntConst || _rcvrIsInt;
	}
	if (!_inlineCAB) {
		return genSpecialSelectorSend();
	}
	if (_argIsIntConst) {
		ssPop(1);
		ssPopTopToReg(ReceiverResultReg);
	} else {
		marshallSendArguments(1);
	}
	_jumpNotSmallInts = null;
	if (!(_rcvrIsInt && _argIsIntConst)) {
		if (_argIsIntConst) {
			_jumpNotSmallInts = genJumpNotSmallInteger(ReceiverResultReg);
		} else {
			if (_rcvrIsInt) {
				_jumpNotSmallInts = genJumpNotSmallInteger(Arg0Reg);
			} else {
				/* begin genJumpNotSmallIntegersIn:and:scratch: */
				{
					/* begin MoveR:R: */
					genoperandoperand(MoveRR, ReceiverResultReg, TempReg);
					/* end MoveR:R: */
					/* begin AndR:R: */
					genoperandoperand(AndRR, Arg0Reg, TempReg);
					/* end AndR:R: */
				}
				_jumpNotSmallInts = genJumpNotSmallIntegerInScratchReg(TempReg);
				/* end genJumpNotSmallIntegersIn:and:scratch: */
			}
		}
	}
	if (_argIsIntConst) {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(CmpCqR, _argInt, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_argInt));
		}
		/* end checkQuickConstant:forInstruction: */
	} else {
		/* begin CmpR:R: */
		genoperandoperand(CmpRR, Arg0Reg, ReceiverResultReg);
		/* end CmpR:R: */
	}
	genConditionalBranchoperand((((_branchDescriptor->isBranchTrue))
		 ? (_primDescriptor->opcode)
		 : inverseBranchFor((_primDescriptor->opcode))), ((usqInt) (ensureNonMergeFixupAt(_targetPC)) ));
	/* begin Jump: */
	_jumpTarget = ensureNonMergeFixupAt(_postBranchPC);
	genoperand(Jump, ((sqInt) _jumpTarget ));
	/* end Jump: */
	if (!_jumpNotSmallInts) {
		/* begin annotateInstructionForBytecode */
		/* begin annotateBytecode: */
		_abstractInstruction = ((AbstractInstruction *) (((prevInstIsPCAnnotated())
			 ? (/* begin Nop */ gen(Nop) /* end Nop */)
			 : (/* begin Label */ genoperandoperand(Label, (labelCounter += 1), bytecodePC) /* end Label */))) );
		(_abstractInstruction->annotation = HasBytecodePC);
		/* end annotateBytecode: */
		/* end annotateInstructionForBytecode */
		ensureFixupAt(_postBranchPC);
		ensureFixupAt(_targetPC);
		deadCode = 1;
		return 0;
	}
	jmpTarget(_jumpNotSmallInts, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	if (_argIsIntConst) {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction2 = genoperandoperand(MoveCqR, _argInt, Arg0Reg);
		if (usesOutOfLineLiteral(_anInstruction2)) {
			(_anInstruction2->dependent = locateLiteral(_argInt));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	_index = byte0 - FirstSpecialSelector;
	return genMarshalledSendnumArgssendTable(-_index - 1, 1, ordinarySendTrampolines);
}
/*	Assumes both operands are ints */
/* StackToRegisterMappingCogit>>#genStaticallyResolvedSpecialSelectorComparison */
static sqInt
genStaticallyResolvedSpecialSelectorComparison(void)
{
	sqInt _argInt;
	BytecodeDescriptor *_primDescriptor;
	sqInt _rcvrInt;
	int _result;

	_primDescriptor = generatorAt(byte0);
	_argInt = ((ssTop())->constant);
	_rcvrInt = ((ssValue(1))->constant);
	switch ((_primDescriptor->opcode)) {
		case JumpLess:
		{
			_result = _rcvrInt < _argInt;
		}
		break;
		case JumpLessOrEqual:
		{
			_result = _rcvrInt <= _argInt;
		}
		break;
		case JumpGreater:
		{
			_result = _rcvrInt > _argInt;
		}
		break;
		case JumpGreaterOrEqual:
		{
			_result = _rcvrInt >= _argInt;
		}
		break;
		case JumpZero:
		{
			_result = _rcvrInt == _argInt;
		}
		break;
		case JumpNonZero:
		{
			_result = _rcvrInt != _argInt;
		}
		break;
		default:
		error("Case not found and no otherwise clause");
	}
	ssPop(2);
	return ssPushAnnotatedConstant(((_result)
		 ? trueObject()
		 : falseObject()));
}
/* StackToRegisterMappingCogit>>#genStoreFloat32RegisterIntoArray */
static sqInt
genStoreFloat32RegisterIntoArray(void)
{
	AbstractInstruction *_anInstruction;
	signed char _arrayReg;
	signed char _indexReg;
	signed char _vectorReg;

	{
		return EncounteredUnknownBytecode;
	}
	_arrayReg = allocateRegForStackEntryAtnotConflictingWith(0, 0);
	_indexReg = allocateRegForStackEntryAtnotConflictingWith(1, 1U << _arrayReg);
	ssPopTopToReg(_arrayReg);
	ssPopTopToReg(_indexReg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(AddCqR, BaseHeaderSize, _arrayReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	assert(BytesPerWord == 8);
	/* begin LogicalShiftRightCq:R: */
	genoperandoperand(LogicalShiftRightCqR, 1, _indexReg);
	/* end LogicalShiftRightCq:R: */
	/* begin AddR:R: */
	genoperandoperand(AddRR, _indexReg, _arrayReg);
	/* end AddR:R: */
	_vectorReg = allocateVectorRegForStackEntryAtnotConflictingWith(0, 0);
	ssPopTopToVectorReg(_vectorReg);
	gSt1SVrRMw(32, _vectorReg, _arrayReg, 0);
	ssPushRegister(_arrayReg);
	return 0;
}
/* StackToRegisterMappingCogit>>#genStoreFloat64RegisterIntoArray */
static sqInt
genStoreFloat64RegisterIntoArray(void)
{
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	signed char _arrayReg;
	signed char _indexReg;
	signed char _vectorReg;

	{
		return EncounteredUnknownBytecode;
	}
	_arrayReg = allocateRegForStackEntryAtnotConflictingWith(0, 0);
	_indexReg = allocateRegForStackEntryAtnotConflictingWith(1, 1U << _arrayReg);
	ssPopTopToReg(_arrayReg);
	ssPopTopToReg(_indexReg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperand(AddCqR, BaseHeaderSize, _arrayReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(BaseHeaderSize));
	}
	/* end checkQuickConstant:forInstruction: */
	assert(BytesPerWord == 8);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(SubCqR, 1, _indexReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(1));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin AddR:R: */
	genoperandoperand(AddRR, _indexReg, _arrayReg);
	/* end AddR:R: */
	_vectorReg = allocateVectorRegForStackEntryAtnotConflictingWith(0, 0);
	ssPopTopToVectorReg(_vectorReg);
	gSt1SVrRMw(64, _vectorReg, _arrayReg, 0);
	ssPushRegister(_arrayReg);
	return 0;
}
/*	We need a frame because the association has to be in ReceiverResultReg for 
	the various trampolines 
	and ReceiverResultReg holds only the receiver in frameless methods. */
/* StackToRegisterMappingCogit>>#genStorePop:LiteralVariable:needsStoreCheck:needsImmutabilityCheck: */
static sqInt NoDbgRegParms
genStorePopLiteralVariableneedsStoreCheckneedsImmutabilityCheck(sqInt _popBoolean, sqInt _litVarIndex, sqInt _needsStoreCheck, sqInt _needsImmCheck)
{
	AbstractInstruction *_anInstruction;
	sqInt _association;
	signed char _topReg;

	assert(needsFrame);
	/* begin genLoadLiteralVariable:in: */
	_association = getLiteral(_litVarIndex);
	{
		voidReceiverResultRegContainsSelf();
	}
	/* begin ssAllocateRequiredReg: */
	ssAllocateRequiredRegMaskupThrough(1U << ReceiverResultReg, simStackPtr);
	/* end ssAllocateRequiredReg: */
	/* begin genMoveConstant:R: */
	if (shouldAnnotateObjectReference(_association)) {
		annotateobjRef(gMoveCwR(_association, ReceiverResultReg), _association);
	} else {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(MoveCqR, _association, ReceiverResultReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_association));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* end genMoveConstant:R: */
	genEnsureObjInRegNotForwardedscratchReg(ReceiverResultReg, TempReg);
	/* end genLoadLiteralVariable:in: */
	/* begin genGenericStorePop:slotIndex:destReg:needsStoreCheck:needsRestoreRcvr:needsImmutabilityCheck: */
	
#  if IMMUTABILITY
	{
		if (_needsImmCheck) {
			/* begin ssAllocateRequiredReg:upThrough: */
			ssAllocateRequiredRegMaskupThrough(1U << ClassReg, simStackPtr - 1);
			/* end ssAllocateRequiredReg:upThrough: */
			ssStoreAndReplacePoptoReg(_popBoolean, ClassReg);
			ssFlushStack();
			return genStoreWithImmutabilityCheckSourceRegslotIndexdestRegscratchRegneedsStoreCheckneedRestoreRcvr(ClassReg, ValueIndex, ReceiverResultReg, TempReg, _needsStoreCheck, 0);
		}
	}
#  endif /* IMMUTABILITY */
	_topReg = allocateRegForStackEntryAtnotConflictingWith(0, 1U << ReceiverResultReg);
	ssPopandCopyReg(_popBoolean, _topReg);
	return genStoreSourceRegslotIndexdestRegscratchReginFrameneedsStoreCheck(_topReg, ValueIndex, ReceiverResultReg, TempReg, needsFrame, _needsStoreCheck);
	/* end genGenericStorePop:slotIndex:destReg:needsStoreCheck:needsRestoreRcvr:needsImmutabilityCheck: */
}
/*	The reason we need a frame here is that assigning to an inst var of a 
	context may 
	involve wholesale reorganization of stack pages, and the only way to 
	preserve the 
	execution state of an activation in that case is if it has a frame. */
/* StackToRegisterMappingCogit>>#genStorePop:MaybeContextReceiverVariable:needsStoreCheck:needsImmutabilityCheck: */
static sqInt NoDbgRegParms
genStorePopMaybeContextReceiverVariableneedsStoreCheckneedsImmutabilityCheck(sqInt _popBoolean, sqInt _slotIndex, sqInt _needsStoreCheck, sqInt _needsImmCheck)
{
	AbstractInstruction *_abstractInstruction;
	AbstractInstruction *_abstractInstruction2;
	AbstractInstruction *_abstractInstruction3;
	AbstractInstruction *_abstractInstruction4;
	AbstractInstruction *_anInstruction;
	AbstractInstruction *_anInstruction2;
	AbstractInstruction *_immutabilityFailure;
	AbstractInstruction *_mutableJump;

	_immutabilityFailure = ((AbstractInstruction *) 0 );
	assert(needsFrame);
	ssFlushUpThroughReceiverVariable(_slotIndex);
	ensureReceiverResultRegContainsSelf();
	/* begin genGenericStorePop:MaybeContextSlotIndex:needsStoreCheck:needsRestoreRcvr:needsImmutabilityCheck: */
	assert(needsFrame);
	/* begin ssAllocateCallReg: */
	ssAllocateRequiredRegMaskupThrough(CallerSavedRegisterMask | (1U << SendNumArgsReg), simStackPtr);
	/* end ssAllocateCallReg: */
	/* begin ssAllocateCallReg:upThrough: */
	ssAllocateRequiredRegMaskupThrough(CallerSavedRegisterMask | (1U << ClassReg), simStackPtr - 1);
	/* end ssAllocateCallReg:upThrough: */
	ssStoreAndReplacePoptoReg(_popBoolean, ClassReg);
	ssFlushStack();
	
#  if IMMUTABILITY
	{
		if (_needsImmCheck) {
			_mutableJump = genJumpMutablescratchReg(ReceiverResultReg, TempReg);
			/* begin genStoreTrampolineCall: */
			assert(IMMUTABILITY);
			if (_slotIndex >= (NumStoreTrampolines - 1)) {
				/* begin checkQuickConstant:forInstruction: */
				_anInstruction = genoperandoperand(MoveCqR, _slotIndex, TempReg);
				if (usesOutOfLineLiteral(_anInstruction)) {
					(_anInstruction->dependent = locateLiteral(_slotIndex));
				}
				/* end checkQuickConstant:forInstruction: */
				/* begin CallRT: */
				/* begin annotateCall: */
				_abstractInstruction4 = genoperand(Call, ceStoreTrampolines[NumStoreTrampolines - 1]);
				(_abstractInstruction4->annotation = IsRelativeCall);
				/* end annotateCall: */
				/* end CallRT: */
			} else {
				/* begin CallRT: */
				/* begin annotateCall: */
				_abstractInstruction2 = genoperand(Call, ceStoreTrampolines[_slotIndex]);
				(_abstractInstruction2->annotation = IsRelativeCall);
				/* end annotateCall: */
				/* end CallRT: */
			}
			/* begin annotateBytecode: */
			_abstractInstruction3 = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
			(_abstractInstruction3->annotation = HasBytecodePC);
			/* end annotateBytecode: */
			/* end genStoreTrampolineCall: */
			{
				/* begin putSelfInReceiverResultReg */
				copyToReg(simSelf(), ReceiverResultReg);
				/* end putSelfInReceiverResultReg */
			}
			/* begin Jump: */
			_immutabilityFailure = genoperand(Jump, ((sqInt) 0 ));
			/* end Jump: */
			jmpTarget(_mutableJump, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
		}
	}
#  endif /* IMMUTABILITY */
	genLoadSlotsourceRegdestReg(SenderIndex, ReceiverResultReg, TempReg);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction2 = genoperandoperand(MoveCqR, _slotIndex, SendNumArgsReg);
	if (usesOutOfLineLiteral(_anInstruction2)) {
		(_anInstruction2->dependent = locateLiteral(_slotIndex));
	}
	/* end checkQuickConstant:forInstruction: */
	/* begin CallRT: */
	/* begin annotateCall: */
	_abstractInstruction = genoperand(Call, ceStoreContextInstVarTrampoline);
	(_abstractInstruction->annotation = IsRelativeCall);
	/* end annotateCall: */
	/* end CallRT: */
	
#  if IMMUTABILITY
	{
		if (_needsImmCheck) {
			jmpTarget(_immutabilityFailure, genoperandoperand(Label, (labelCounter += 1), bytecodePC));
		}
	}
#  endif /* IMMUTABILITY */
	return 0;
	/* end genGenericStorePop:MaybeContextSlotIndex:needsStoreCheck:needsRestoreRcvr:needsImmutabilityCheck: */
}
/* StackToRegisterMappingCogit>>#genStorePop:ReceiverVariable:needsStoreCheck:needsImmutabilityCheck: */
static sqInt NoDbgRegParms
genStorePopReceiverVariableneedsStoreCheckneedsImmutabilityCheck(sqInt _popBoolean, sqInt _slotIndex, sqInt _needsStoreCheck, sqInt _needsImmCheck)
{
	sqInt _needsImmCheck2;
	sqInt _needsStoreCheck2;
	signed char _topReg;

	ssFlushUpThroughReceiverVariable(_slotIndex);
	ensureReceiverResultRegContainsSelf();
	/* begin genGenericStorePop:slotIndex:destReg:needsStoreCheck:needsRestoreRcvr:needsImmutabilityCheck: */
	_needsStoreCheck2 = !useTwoPaths && _needsStoreCheck;
	_needsImmCheck2 = _needsImmCheck && !useTwoPaths;
	
#  if IMMUTABILITY
	{
		if (_needsImmCheck2) {
			/* begin ssAllocateRequiredReg:upThrough: */
			ssAllocateRequiredRegMaskupThrough(1U << ClassReg, simStackPtr - 1);
			/* end ssAllocateRequiredReg:upThrough: */
			ssStoreAndReplacePoptoReg(_popBoolean, ClassReg);
			ssFlushStack();
			return genStoreWithImmutabilityCheckSourceRegslotIndexdestRegscratchRegneedsStoreCheckneedRestoreRcvr(ClassReg, _slotIndex, ReceiverResultReg, TempReg, _needsStoreCheck2, 1);
		}
	}
#  endif /* IMMUTABILITY */
	_topReg = allocateRegForStackEntryAtnotConflictingWith(0, 1U << ReceiverResultReg);
	ssPopandCopyReg(_popBoolean, _topReg);
	return genStoreSourceRegslotIndexdestRegscratchReginFrameneedsStoreCheck(_topReg, _slotIndex, ReceiverResultReg, TempReg, needsFrame, _needsStoreCheck2);
	/* end genGenericStorePop:slotIndex:destReg:needsStoreCheck:needsRestoreRcvr:needsImmutabilityCheck: */
}
/*	The only reason we assert needsFrame here is that in a frameless method 
	ReceiverResultReg must and does contain only self, but the ceStoreCheck 
	trampoline expects the target of the store to be in ReceiverResultReg. So 
	in a frameless method we would have a conflict between the receiver and 
	the temote temp store, unless we we smart enough to realise that 
	ReceiverResultReg was unused after the literal variable store, unlikely 
	given that methods return self by default. */
/* StackToRegisterMappingCogit>>#genStorePop:RemoteTemp:At:needsStoreCheck: */
static sqInt NoDbgRegParms
genStorePopRemoteTempAtneedsStoreCheck(sqInt _popBoolean, sqInt _slotIndex, sqInt _remoteTempIndex, sqInt _needsStoreCheck)
{
	AbstractInstruction *_anInstruction;
	sqInt _offset;
	signed char _topReg;

	assert(needsFrame);
	/* begin ssAllocateRequiredReg: */
	ssAllocateRequiredRegMaskupThrough(1U << ReceiverResultReg, simStackPtr);
	/* end ssAllocateRequiredReg: */
	voidReceiverResultRegContainsSelf();
	/* begin MoveMw:r:R: */
	_offset = frameOffsetOfTemporary(_remoteTempIndex);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperandoperand(MoveMwrR, _offset, FPReg, ReceiverResultReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(_offset));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end MoveMw:r:R: */
	/* begin genGenericStorePop:slotIndex:destReg:needsStoreCheck:needsRestoreRcvr:needsImmutabilityCheck: */
	
#  if IMMUTABILITY
	{
	}
#  endif /* IMMUTABILITY */
	_topReg = allocateRegForStackEntryAtnotConflictingWith(0, 1U << ReceiverResultReg);
	ssPopandCopyReg(_popBoolean, _topReg);
	return genStoreSourceRegslotIndexdestRegscratchReginFrameneedsStoreCheck(_topReg, _slotIndex, ReceiverResultReg, TempReg, needsFrame, _needsStoreCheck);
	/* end genGenericStorePop:slotIndex:destReg:needsStoreCheck:needsRestoreRcvr:needsImmutabilityCheck: */
}
/* StackToRegisterMappingCogit>>#genStorePop:TemporaryVariable: */
static sqInt NoDbgRegParms
genStorePopTemporaryVariable(sqInt _popBoolean, sqInt _tempIndex)
{
	AbstractInstruction *_anInstruction;
	sqInt _offset;
	sqInt _reg;

	ssFlushUpThroughTemporaryVariable(_tempIndex);
	_reg = ssStorePoptoPreferredReg(_popBoolean, TempReg);
	/* begin MoveR:Mw:r: */
	_offset = frameOffsetOfTemporary(_tempIndex);
	/* begin checkQuickConstant:forInstruction: */
	_anInstruction = genoperandoperandoperand(MoveRMwr, _reg, _offset, FPReg);
	if (usesOutOfLineLiteral(_anInstruction)) {
		(_anInstruction->dependent = locateLiteral(_offset));
	}
	/* end checkQuickConstant:forInstruction: */
	/* end MoveR:Mw:r: */
	((simStackAt(_tempIndex + 1))->bcptr = bytecodePC);
	return 0;
}
/* StackToRegisterMappingCogit>>#genSubFloat64Vector */
static sqInt
genSubFloat64Vector(void)
{
	signed char _array1Reg;
	signed char _array2Reg;
	sqInt _subReg;

	{
		return EncounteredUnknownBytecode;
	}
	_array1Reg = allocateVectorRegForStackEntryAtnotConflictingWith(0, 0);
	_array2Reg = allocateVectorRegForStackEntryAtnotConflictingWith(1, 1U << _array1Reg);
	_subReg = _array2Reg;
	ssPopTopToVectorReg(_array1Reg);
	ssPopTopToVectorReg(_array2Reg);
	gFsubSRvRvRv(64, _array2Reg, _array1Reg, _subReg);
	ssPushVectorRegister(_subReg);
	return 0;
}
/*	Generate a method return from within a method or a block. 
	Frameless method activation looks like 
	CISCs (x86): 
	receiver 
	args 
	sp->	ret pc. 
	RISCs (ARM): 
	receiver 
	args 
	ret pc in LR. 
	A fully framed activation is described in CoInterpreter 
	class>initializeFrameIndices. Return pops receiver and arguments off the 
	stack. Callee pushes the result. */
/* StackToRegisterMappingCogit>>#genUpArrowReturn */
static sqInt
genUpArrowReturn(void)
{
	AbstractInstruction *_abstractInstruction;
	AbstractInstruction *_abstractInstruction2;
	sqInt _offset;

	deadCode = 1;
	if (inBlock > 0) {
		assert(needsFrame);
		ssFlushStack();
		/* begin CallRT: */
		/* begin annotateCall: */
		_abstractInstruction = genoperand(Call, ceNonLocalReturnTrampoline);
		(_abstractInstruction->annotation = IsRelativeCall);
		/* end annotateCall: */
		/* end CallRT: */
		/* begin annotateBytecode: */
		_abstractInstruction2 = genoperandoperand(Label, (labelCounter += 1), bytecodePC);
		(_abstractInstruction2->annotation = HasBytecodePC);
		/* end annotateBytecode: */
		return 0;
	}
	if (
#    if IMMUTABILITY
			needsFrame && !useTwoPaths
#    else /* IMMUTABILITY */
			needsFrame
#    endif /* IMMUTABILITY */
			) {
		/* begin MoveR:R: */
		genoperandoperand(MoveRR, FPReg, SPReg);
		/* end MoveR:R: */
		/* begin PopR: */
		genoperand(PopR, FPReg);
		/* end PopR: */
		{
			/* begin PopR: */
			genoperand(PopR, LinkReg);
			/* end PopR: */
		}
		/* begin RetN: */
		genoperand(RetN, (methodOrBlockNumArgs + 1) * BytesPerWord);
		/* end RetN: */
	} else {
		/* begin RetN: */
		_offset = (((methodOrBlockNumArgs > 2) || regArgsHaveBeenPushed)
			 ? (methodOrBlockNumArgs + 1) * BytesPerWord
			 : 0);
		genoperand(RetN, _offset);
		/* end RetN: */
	}
	return 0;
}
/* StackToRegisterMappingCogit>>#initSimStackForFramefulMethod: */
static void NoDbgRegParms
initSimStackForFramefulMethod(sqInt _startpc)
{
	CogSimStackEntry * cascade0;
	CogSimStackEntry *_desc;
	sqInt _i;

	simStackPtr = methodOrBlockNumTemps;
	simSpillBase = methodOrBlockNumTemps + 1;
	{
		cascade0 = simSelf();
		(cascade0->type = SSBaseOffset);
		(cascade0->spilled = 1);
		(cascade0->registerr = FPReg);
		(cascade0->offset = FoxMFReceiver);
		(cascade0->liveRegister = NoReg);
	}
	for (_i = 1; _i <= methodOrBlockNumArgs; _i += 1) {
		_desc = simStackAt(_i);
		{
			(_desc->type = SSBaseOffset);
			(_desc->spilled = 1);
			(_desc->registerr = FPReg);
			(_desc->offset = FoxCallerSavedIP + (((methodOrBlockNumArgs - _i) + 1) * BytesPerWord));
			(_desc->bcptr = _startpc);
		}
	}
	for (_i = methodOrBlockNumArgs + 1; _i <= simStackPtr; _i += 1) {
		_desc = simStackAt(_i);
		{
			(_desc->type = SSBaseOffset);
			(_desc->spilled = 1);
			(_desc->registerr = FPReg);
			(_desc->offset = FoxMFReceiver - ((_i - methodOrBlockNumArgs) * BytesPerWord));
			(_desc->bcptr = _startpc);
		}
	}
}
/*	The register receiver (the closure itself) and args are pushed by the 
	closure value primitive(s) 
	and hence a frameless block has all arguments and copied values pushed to 
	the stack. However, 
	the method receiver (self) is put in the ReceiverResultReg by the block 
	entry.  */
/* StackToRegisterMappingCogit>>#initSimStackForFramelessBlock: */
static void NoDbgRegParms
initSimStackForFramelessBlock(sqInt _startpc)
{
	CogSimStackEntry * cascade0;
	CogSimStackEntry *_desc;
	sqInt _i;

	{
		cascade0 = simSelf();
		(cascade0->type = SSRegister);
		(cascade0->spilled = 0);
		(cascade0->registerr = ReceiverResultReg);
		(cascade0->liveRegister = ReceiverResultReg);
	}
	assert(methodOrBlockNumTemps >= methodOrBlockNumArgs);
	for (_i = 1; _i <= methodOrBlockNumTemps; _i += 1) {
		_desc = simStackAt(_i);
		{
			(_desc->type = SSBaseOffset);
			(_desc->spilled = 1);
			(_desc->registerr = SPReg);
			(_desc->offset = (methodOrBlockNumArgs - _i) * BytesPerWord);
			(_desc->bcptr = _startpc);
		}
	}
	simStackPtr = methodOrBlockNumTemps;
	simSpillBase = methodOrBlockNumTemps + 1;
}
/* StackToRegisterMappingCogit>>#initSimStackForFramelessMethod: */
static void NoDbgRegParms
initSimStackForFramelessMethod(sqInt _startpc)
{
	CogSimStackEntry * cascade0;
	CogSimStackEntry *_desc;
	sqInt _i;

	{
		cascade0 = simSelf();
		(cascade0->type = SSRegister);
		(cascade0->spilled = 0);
		(cascade0->registerr = ReceiverResultReg);
		(cascade0->liveRegister = ReceiverResultReg);
	}
	assert(methodOrBlockNumTemps == methodOrBlockNumArgs);
	assert((numRegArgs()) <= 2);
	if ((methodOrBlockNumArgs >= 1) && (methodOrBlockNumArgs <= 2)) {
		_desc = simStackAt(1);
		{
			(_desc->type = SSRegister);
			(_desc->spilled = 0);
			(_desc->registerr = Arg0Reg);
			(_desc->bcptr = _startpc);
		}
		if (methodOrBlockNumArgs > 1) {
			_desc = simStackAt(2);
			{
				(_desc->type = SSRegister);
				(_desc->spilled = 0);
				(_desc->registerr = Arg1Reg);
				(_desc->bcptr = _startpc);
			}
		}
	} else {
		for (_i = 1; _i <= methodOrBlockNumArgs; _i += 1) {
			_desc = simStackAt(_i);
			{
				(_desc->type = SSBaseOffset);
				(_desc->registerr = SPReg);
				(_desc->spilled = 1);
				(_desc->offset = (methodOrBlockNumArgs - _i) * BytesPerWord);
				(_desc->bcptr = _startpc);
			}
		}
	}
	simStackPtr = methodOrBlockNumArgs;
	simSpillBase = methodOrBlockNumArgs + 1;
}
/* StackToRegisterMappingCogit>>#liveRegisters */
static sqInt
liveRegisters(void)
{
	sqInt _i;
	int _regsSet;

	if (needsFrame) {
		_regsSet = 0;
	} else {
		/* begin registerMaskFor: */
		_regsSet = ((sqInt) (1U << ReceiverResultReg) );
		/* end registerMaskFor: */
		if ((methodOrBlockNumArgs <= 2) && (methodOrBlockNumArgs > 0)) {
			_regsSet = _regsSet | (1U << Arg0Reg);
			if (methodOrBlockNumArgs > 1) {
				_regsSet = _regsSet | (1U << Arg1Reg);
			}
		}
	}
	for (_i = ((simSpillBase < 0) ? 0 : simSpillBase); _i <= simStackPtr; _i += 1) {
		_regsSet = _regsSet | (registerMask(simStackAt(_i)));
	}
	return _regsSet;
}
/* StackToRegisterMappingCogit>>#liveVectorRegisters */
static sqInt
liveVectorRegisters(void)
{
	sqInt _i;
	int _regsSet;
	CogSimStackEntry * _ssEntry;

	_regsSet = 0;
	for (_i = ((simSpillBase < 0) ? 0 : simSpillBase); _i <= simStackPtr; _i += 1) {
		_ssEntry = simStackAt(_i);
		if (((_ssEntry->type)) == SSVectorRegister) {
			_regsSet = _regsSet | (registerMask(_ssEntry));
		}
	}
	return _regsSet;
}
/*	insert nops for dead code that is mapped so that bc  
	to mc mapping is not many to one */
/* StackToRegisterMappingCogit>>#mapDeadDescriptorIfNeeded: */
static sqInt NoDbgRegParms
mapDeadDescriptorIfNeeded(BytecodeDescriptor *_descriptor)
{
	AbstractInstruction *_abstractInstruction;

	flag("annotateInstruction");
	if (((_descriptor->isMapped)) || ((inBlock > 0) && ((_descriptor->isMappedInBlock)))) {
		/* begin annotateBytecode: */
		_abstractInstruction = gen(Nop);
		(_abstractInstruction->annotation = HasBytecodePC);
		/* end annotateBytecode: */
	}
	return 0;
}
/*	Spill everything on the simulated stack that needs spilling (that below 
	receiver and arguments). 
	Marshall receiver and arguments to stack and/or registers depending on arg 
	count. If the args don't fit in registers push receiver and args (spill 
	everything), but still assign 
	the receiver to ReceiverResultReg. */
/* StackToRegisterMappingCogit>>#marshallSendArguments: */
static void NoDbgRegParms
marshallSendArguments(sqInt _numArgs)
{
	CogSimStackEntry * cascade0;
	sqInt _anyRefs;
	sqInt _numSpilled;

	ssFlushStackExceptTop(_numArgs + 1);
	if (_numArgs > 2) {
		_numSpilled = numberOfSpillsInTopNItems(_numArgs + 1);
		_anyRefs = anyReferencesToRegisterinTopNItems(ReceiverResultReg, _numArgs + 1);
		if ((_numSpilled > 0) || _anyRefs) {
			ssFlushStack();
			copyToReg(simStackAt(simStackPtr - _numArgs), ReceiverResultReg);
		} else {
			{
				cascade0 = simStackAt(simStackPtr - _numArgs);
				copyToReg(cascade0, ReceiverResultReg);
				(cascade0->type = SSRegister);
				(cascade0->registerr = ReceiverResultReg);
			}
			ssFlushStack();
		}
		{
			ssPoppopSpilled(_numArgs + 1, 0);
			return;
		}
	} else {
		if (_numArgs > 0) {
			if (_numArgs > 1) {
				/* begin ssAllocateRequiredReg:upThrough: */
				ssAllocateRequiredRegMaskupThrough(1U << Arg0Reg, simStackPtr - 2);
				/* end ssAllocateRequiredReg:upThrough: */
				/* begin ssAllocateRequiredReg:upThrough: */
				ssAllocateRequiredRegMaskupThrough(1U << Arg1Reg, simStackPtr - 1);
				/* end ssAllocateRequiredReg:upThrough: */
			} else {
				/* begin ssAllocateRequiredReg:upThrough: */
				ssAllocateRequiredRegMaskupThrough(1U << Arg0Reg, simStackPtr - 1);
				/* end ssAllocateRequiredReg:upThrough: */
			}
		}
		if (_numArgs > 1) {
			copyToReg(simStackAt(simStackPtr), Arg1Reg);
		}
		if (_numArgs > 0) {
			copyToReg(simStackAt((simStackPtr - _numArgs) + 1), Arg0Reg);
		}
		copyToReg(simStackAt(simStackPtr - _numArgs), ReceiverResultReg);
		ssPop(_numArgs + 1);
	}
}
/*	If this bytecode has a fixup, some kind of merge needs to be done. There 
	are 4 cases: 
	1) the bytecode has no fixup (fixup isNotAFixup) 
	do nothing 
	2) the bytecode has a non merge fixup 
	the fixup has needsNonMergeFixup. 
	The code generating non merge fixup (currently only special selector code) 
	is responsible 
	for the merge so no need to do it. 
	We set deadCode to false as the instruction can be reached from jumps. 
	3) the bytecode has a merge fixup, but execution flow *cannot* fall 
	through to the merge point. 
	the fixup has needsMergeFixup and deadCode = true. 
	ignores the current simStack as it does not mean anything  
	restores the simStack to the state the jumps to the merge point expects it 
	to be. 
	4) the bytecode has a merge fixup and execution flow *can* fall through to 
	the merge point. 
	the fixup has needsMergeFixup and deadCode = false. 
	flushes the stack to the stack pointer so the fall through execution path 
	simStack is  
	in the state the merge point expects it to be.  
	restores the simStack to the state the jumps to the merge point expects it 
	to be. 
	 
	In addition, if this is a backjump merge point, we patch the fixup to hold 
	the current simStackPtr  
	for later assertions. */
/* StackToRegisterMappingCogit>>#mergeWithFixupIfRequired: */
static sqInt NoDbgRegParms
mergeWithFixupIfRequired(BytecodeFixup *_fixup)
{
	CogSimStackEntry * cascade0;
	sqInt _i;

	/* begin assertCorrectSimStackPtr */
	assert(simSpillBase >= methodOrBlockNumTemps);
	if (needsFrame && (simSpillBase > 0)) {
		assert((((simStackAt(simSpillBase - 1))->spilled)) == 1);
		assert((simSpillBase > simStackPtr) || ((((simStackAt(simSpillBase))->spilled)) == 0));
	}
	/* end assertCorrectSimStackPtr */
	if (((_fixup->targetInstruction)) == 0) {
		return 0;
	}
	if (((usqInt) ((_fixup->targetInstruction)) ) == NeedsNonMergeFixupFlag) {
		deadCode = 0;
		return 0;
	}
	assert(isMergeFixup(_fixup));
	if (deadCode) {
		assert(((_fixup->simStackPtr)) >= methodOrBlockNumTemps);
		simStackPtr = (_fixup->simStackPtr);
	} else {
		ssFlushStack();
	}
	deadCode = 0;
	if ((_fixup->isTargetOfBackwardBranch)) {
		(_fixup->simStackPtr = simStackPtr);
	}
	(_fixup->targetInstruction = genoperandoperand(Label, (labelCounter += 1), bytecodePC));
	assert(simStackPtr == ((_fixup->simStackPtr)));
	/* begin restoreSimStackAtMergePoint: */
	/* begin voidReceiverOptStatus */
	((simSelf())->liveRegister = NoReg);
	/* end voidReceiverOptStatus */
	for (_i = methodOrBlockNumTemps + 1; _i <= simStackPtr; _i += 1) {
		cascade0 = simStackAt(_i);
		(cascade0->type = SSSpill);
		(cascade0->offset = FoxMFReceiver - ((_i - methodOrBlockNumArgs) * BytesPerOop));
		(cascade0->registerr = FPReg);
		(cascade0->spilled = 1);
	}
	simSpillBase = simStackPtr + 1;
	/* end restoreSimStackAtMergePoint: */
	return 0;
}
/* StackToRegisterMappingCogit>>#methodAbortTrampolineFor: */
static sqInt NoDbgRegParms
methodAbortTrampolineFor(sqInt _numArgs)
{
	return methodAbortTrampolines[((_numArgs < (2 + 1)) ? _numArgs : 2 + 1)];
}
/*	This is a hook for subclasses to filter out methods they can't deal with.Frameless methods with local temporaries cause problems, 
	mostly in asserts, and yet they matter not at all for performance. 
	Shun them. */
/* StackToRegisterMappingCogit>>#methodFoundInvalidPostScan */
static sqInt
methodFoundInvalidPostScan(void)
{
	if (!needsFrame) {
		return methodOrBlockNumTemps > methodOrBlockNumArgs;
	}
	{
		return 0;
	}
	return 0;
}
/* StackToRegisterMappingCogit>>#needsFrameIfMod16GENumArgs: */
static sqInt NoDbgRegParms
needsFrameIfMod16GENumArgs(sqInt stackDelta)
{
	return (byte0 % 16) >= methodOrBlockNumArgs;
}
/*	As of August 2013, the code generator can't deal with spills in frameless 
	methods (the 
	issue is to do with the stack offset to get at an argument, which is 
	changed when there's a spill). 
	In e.g. TextColor>>#dominates: other ^other class == self class the second 
	send of class 
	needs also rto allocate a register that the first one used, but the first 
	one's register can't be 
	spilled. So avoid this by only allowing class to be sent if the stack 
	contains a single element. */
/* StackToRegisterMappingCogit>>#needsFrameIfStackGreaterThanOne: */
static sqInt NoDbgRegParms
needsFrameIfStackGreaterThanOne(sqInt _stackDelta)
{
	return _stackDelta > 1;
}
/* StackToRegisterMappingCogit>>#numberOfSpillsInTopNItems: */
static sqInt NoDbgRegParms
numberOfSpillsInTopNItems(sqInt _n)
{
	sqInt _i;

	for (_i = simStackPtr; _i >= ((simStackPtr - _n) + 1); _i += -1) {
		if ((((simStackAt(_i))->type)) == SSSpill) {
			return _n - (simStackPtr - _i);
		}
	}
	return 0;
}
/* StackToRegisterMappingCogit>>#picAbortTrampolineFor: */
static sqInt NoDbgRegParms
picAbortTrampolineFor(sqInt _numArgs)
{
	return picAbortTrampolines[((_numArgs < (2 + 1)) ? _numArgs : 2 + 1)];
}
/*	Populate tuple (which must be large enough) with the ClosedPIC's target 
	method class pairs. 
	The first entry in tuple contains the bytecode pc for the send, so skip 
	the tuple's first field. */
/* StackToRegisterMappingCogit>>#populate:withPICInfoFor:firstCacheTag: */
static void NoDbgRegParms
populatewithPICInfoForfirstCacheTag(sqInt _tuple, CogMethod *_cPIC, sqInt _firstCacheTag)
{
	sqInt _cacheTag;
	sqInt _classOop;
	sqInt _entryPoint;
	sqInt _i;
	sqInt _picCaseMachineCodePC;
	CogMethod *_targetMethod;
	sqInt _value;

	for (_i = 1; _i <= ((_cPIC->cPICNumCases)); _i += 1) {
		_picCaseMachineCodePC = addressOfEndOfCaseinCPIC(_i, _cPIC);
		_cacheTag = ((_i == 1)
			 ? _firstCacheTag
			 : literalBeforeFollowingAddress(backEnd, _picCaseMachineCodePC - (jumpLongConditionalByteSize(backEnd))));
		_classOop = classForInlineCacheTag(_cacheTag);
		storePointerofObjectwithValue((_i * 2) - 1, _tuple, _classOop);
		if (_i == 1) {
			_entryPoint = jumpLongTargetBeforeFollowingAddress(backEnd, _picCaseMachineCodePC);
		} else {
			/* begin jumpLongConditionalTargetBeforeFollowingAddress: */
			_entryPoint = jumpLongTargetBeforeFollowingAddress(((AbstractInstruction *) backEnd ), _picCaseMachineCodePC);
			/* end jumpLongConditionalTargetBeforeFollowingAddress: */
		}
		if ((((usqInt) _cPIC ) <= ((usqInt) _entryPoint )) && ((((usqInt) _cPIC ) + ((_cPIC->blockSize))) >= ((usqInt) _entryPoint ))) {
			_value = splObj(SelectorDoesNotUnderstand);
		} else {
			_targetMethod = ((CogMethod *) (_entryPoint - cmNoCheckEntryOffset) );
			assert(((_targetMethod->cmType)) == CMMethod);
			_value = (_targetMethod->methodObject);
		}
		storePointerofObjectwithValue(_i * 2, _tuple, _value);
	}
}
/* StackToRegisterMappingCogit>>#prevInstIsPCAnnotated */
static sqInt
prevInstIsPCAnnotated(void)
{
	sqInt _prevIndex;
	AbstractInstruction *_prevInst;

	if (!(opcodeIndex > 0)) {
		return 0;
	}
	_prevIndex = opcodeIndex - 1;
	while (1) {
		if (_prevIndex <= 0) {
			return 0;
		}
		_prevInst = abstractInstructionAt(_prevIndex);
		if (isPCMappedAnnotation(((!((_prevInst->annotation)))
			 ? 0
			 : (_prevInst->annotation)))) {
			return 1;
		}
		if (!(((_prevInst->opcode)) == Label)) 
			break;
		_prevIndex -= 1;
	}
	return 0;
}
/*	Undefined by now, do nothing */
/* StackToRegisterMappingCogit>>#profilingDataForCounter:at: */
static sqInt NoDbgRegParms
profilingDataForCounterat(sqInt counter, sqInt bcpc)
{
	return 0;
}
/*	Answer a tuple with the send data for a linked send to cogMethod. 
	If the target is a CogMethod (monomorphic send) answer 
	{ bytecode pc, inline cache class, target method } 
	If the target is an open PIC (megamorphic send) answer 
	{ bytecode pc, nil, send selector } 
	If the target is a closed PIC (polymorphic send) answer 
	{ bytecode pc, first class, target method, second class, second target 
	method, ... } */
/* StackToRegisterMappingCogit>>#profilingDataForSendTo:methodClassIfSuper:at:bcpc: */
static sqInt NoDbgRegParms
profilingDataForSendTomethodClassIfSuperatbcpc(CogMethod *_cogCodeSendTarget, sqInt _methodClassOrNil, char *_sendMcpc, sqInt _sendBcpc)
{
	sqInt _class;
	sqInt _tuple;

	_tuple = eeInstantiateClassIndexformatnumSlots(ClassArrayCompactIndex, arrayFormat(), ((((_cogCodeSendTarget->cmType)) == CMPolymorphicIC)
		 ? (2 * ((_cogCodeSendTarget->cPICNumCases))) + 1
		 : 3));
	if (_tuple == 0) {
		return 0;
	}
	storePointerUncheckedofObjectwithValue(0, _tuple, ((((usqInt) _sendBcpc ) << 1) | 1));
	if (((_cogCodeSendTarget->cmType)) == CMMethod) {
		_class = ((!_methodClassOrNil)
			 ? classForInlineCacheTag(inlineCacheTagAt(backEnd, ((usqInt) _sendMcpc )))
			 : _methodClassOrNil);
		{
			storePointerofObjectwithValue(1, _tuple, _class);
			storePointerofObjectwithValue(2, _tuple, (_cogCodeSendTarget->methodObject));
		}
		return _tuple;
	}
	if (((_cogCodeSendTarget->cmType)) == CMPolymorphicIC) {
		populatewithPICInfoForfirstCacheTag(_tuple, _cogCodeSendTarget, inlineCacheTagAt(backEnd, ((usqInt) _sendMcpc )));
		return _tuple;
	}
	if (((_cogCodeSendTarget->cmType)) == CMMegamorphicIC) {
		{
			storePointerUncheckedofObjectwithValue(1, _tuple, nilObject());
			storePointerofObjectwithValue(2, _tuple, (_cogCodeSendTarget->selector));
		}
		return _tuple;
	}
	error("invalid method type");
	return 0;
}
/*	N.B. Counters are always 32-bits, having two 16-bit halves for the reached 
	and taken counts. */
/* StackToRegisterMappingCogit>>#profilingDataFor:Annotation:Mcpc:Bcpc:Method: */
static sqInt NoDbgRegParms
profilingDataForAnnotationMcpcBcpcMethod(BytecodeDescriptor *_descriptor, sqInt _isBackwardBranchAndAnnotation, char *_mcpc, sqInt _bcpc, void *_cogMethodArg)
{
	sqInt _annotation;
	sqInt _association;
	unsigned int _counter;
	usqInt * _counters;
	sqInt _entryPoint;
	sqInt _methodClassIfSuper;
	sqInt _offset2;
	sqInt *_sendTable2;
	CogMethod * _targetCogCode2;
	sqInt _tuple;

	if (!_descriptor) {
		return 0;
	}
	if (isBranch(_descriptor)) {
		if (((_descriptor->isBranchTrue)) || ((_descriptor->isBranchFalse))) {
			_counters = ((usqInt *) 0 );
			if (_counters == 0) {
				return 0;
			}
			_counter = _counters[counterIndex];
			_tuple = profilingDataForCounterat(_counter, _bcpc + 1);
			if (_tuple == 0) {
				return PrimErrNoMemory;
			}
			storePointerofObjectwithValue(introspectionDataIndex, introspectionData, _tuple);
			introspectionDataIndex += 1;
			counterIndex += 1;
		}
		return 0;
	}
	_annotation = ((usqInt) _isBackwardBranchAndAnnotation ) >> 1;
	if (!((_annotation >= IsSendCall) && (((_entryPoint = callTargetFromReturnAddress(backEnd, ((usqInt) _mcpc ))), _entryPoint > methodZoneBase)))) {
		return 0;
	}
	/* begin targetMethodAndSendTableFor:annotation:into: */
	/* begin offsetAndSendTableFor:annotation:into: */
	if (_annotation == IsSendCall) {
		_offset2 = cmEntryOffset;
		_sendTable2 = ordinarySendTrampolines;
	} else {
		if (_annotation == IsDirectedSuperSend) {
			_offset2 = cmNoCheckEntryOffset;
			_sendTable2 = directedSuperSendTrampolines;
		} else {
			if (_annotation == IsDirectedSuperBindingSend) {
				_offset2 = cmNoCheckEntryOffset;
				_sendTable2 = directedSuperBindingSendTrampolines;
			} else {
				assert(_annotation == IsSuperSend);
				_offset2 = cmNoCheckEntryOffset;
				_sendTable2 = superSendTrampolines;
			}
		}
	}
	{
		_targetCogCode2 = ((CogMethod *) (_entryPoint - _offset2) );
		{
			_methodClassIfSuper = null;
			if (_sendTable2 == superSendTrampolines) {
				_methodClassIfSuper = methodClassOf(((((CogMethod *) _cogMethodArg ))->methodObject));
			}
			if (_sendTable2 == directedSuperSendTrampolines) {
				_association = literalBeforeInlineCacheTagAt(backEnd, ((usqInt) _mcpc ));
				_methodClassIfSuper = valueOfAssociation(_association);
			}
			_tuple = profilingDataForSendTomethodClassIfSuperatbcpc(_targetCogCode2, _methodClassIfSuper, _mcpc, _bcpc + 1);
		}
	}
	/* end offsetAndSendTableFor:annotation:into: */
	/* end targetMethodAndSendTableFor:annotation:into: */
	if (_tuple == 0) {
		return PrimErrNoMemory;
	}
	storePointerofObjectwithValue(introspectionDataIndex, introspectionData, _tuple);
	introspectionDataIndex += 1;
	return 0;
}
/*	Collect the branch and send data for cogMethod, storing it into arrayObj.If the method is frameless, it has no message sends. No need to continue. */
/* StackToRegisterMappingCogit>>#profilingDataFor:into: */
sqInt
profilingDataForinto(CogMethod *_cogMethod, sqInt _arrayObj)
{
	sqInt _aMethodObj;
	sqInt _annotation;
	sqInt _bcpc;
	sqInt _byte;
	CogMethod *_cogMethod2;
	BytecodeDescriptor *_descriptor;
	sqInt _distance;
	sqInt _endbcpc;
	sqInt _errCode;
	CogMethod *_homeMethod;
	sqInt _isBackwardBranch;
	usqInt _isInBlock;
	sqInt _latestContinuation;
	usqInt _map;
	sqInt _mapByte;
	usqInt _mcpc;
	int _nExts;
	sqInt _nextBcpc;
	sqInt _result;
	sqInt _startbcpc;
	sqInt _targetPC;

	if (((_cogMethod->stackCheckOffset)) == 0) {
		return 0;
	}
	introspectionDataIndex = (counterIndex = 0);
	introspectionData = _arrayObj;
	/* begin mapFor:bcpc:performUntil:arg: */
	_cogMethod2 = ((CogMethod *) _cogMethod );
	_startbcpc = startPCOfMethod((_cogMethod->methodObject));
	assert(((_cogMethod2->stackCheckOffset)) > 0);
	_mcpc = ((usqInt) _cogMethod2 ) + ((_cogMethod2->stackCheckOffset));
	_result = profilingDataForAnnotationMcpcBcpcMethod(null, 0 + ((int) (((usqInt) HasBytecodePC ) << 1) ), ((char *) _mcpc ), _startbcpc, ((void *) _cogMethod ));
	if (_result != 0) {
		_errCode = _result;
		goto l3;
	}
	_bcpc = _startbcpc;
	_isInBlock = (_cogMethod2->cpicHasMNUCaseOrCMIsFullBlock);
	_homeMethod = ((CogMethod *) _cogMethod2 );
	assert(_startbcpc == (startPCOfMethodHeader((_homeMethod->methodHeader))));
	_map = (((usqInt) _homeMethod ) + ((_homeMethod->blockSize))) - 1;
	_annotation = ((usqInt) (byteAt(_map)) ) >> AnnotationShift;
	assert((_annotation == IsAbsPCReference) || ((_annotation == IsObjectReference) || ((_annotation == IsRelativeCall) || (_annotation == IsDisplacementX2N))));
	_latestContinuation = _startbcpc;
	_aMethodObj = (_homeMethod->methodObject);
	_endbcpc = (numBytesOf(_aMethodObj)) - 1;
	_bcpc += deltaToSkipPrimAndErrorStoreInheader(_aMethodObj, (_homeMethod->methodHeader));
	_nExts = 0;
	while ((((usqInt) (byteAt(_map)) ) >> AnnotationShift) != HasBytecodePC) {
		_map -= 1;
	}
	_map -= 1;
	while (((_mapByte = byteAt(_map))) != MapEnd) {
		if (_mapByte >= FirstAnnotation) {
			_annotation = ((usqInt) _mapByte ) >> AnnotationShift;
			_mcpc += (_mapByte & DisplacementMask) * 4;
			if (_annotation >= HasBytecodePC) {
				if ((_annotation == IsSendCall) && ((((usqInt) ((_mapByte = byteAt(_map - 1))) ) >> AnnotationShift) == IsAnnotationExtension)) {
					_annotation += _mapByte & DisplacementMask;
					_map -= 1;
				}
				while (1) {
					_byte = fetchByteofObject(_bcpc, _aMethodObj);
					_descriptor = generatorAt(_byte);
					if (_isInBlock) {
						if (_bcpc >= _endbcpc) {
							_errCode = 0;
							goto l3;
						}
					} else {
						if (((_descriptor->isReturn)) && (_bcpc >= _latestContinuation)) {
							_errCode = 0;
							goto l3;
						}
						if (isBranch(_descriptor)) {
							/* begin latestContinuationPCFor:at:exts:in: */
							_distance = ((_descriptor->spanFunction))(_descriptor, _bcpc, _nExts, _aMethodObj);
							_targetPC = (_bcpc + ((_descriptor->numBytes))) + (((_distance < 0) ? 0 : _distance));
							/* end latestContinuationPCFor:at:exts:in: */
							_latestContinuation = ((_latestContinuation < _targetPC) ? _targetPC : _latestContinuation);
						}
					}
					_nextBcpc = _bcpc + ((_descriptor->numBytes));
					if (((_descriptor->isMapped)) || (_isInBlock && ((_descriptor->isMappedInBlock)))) 
						break;
					_bcpc = _nextBcpc;
					_nExts = (((_descriptor->isExtension))
						 ? _nExts + 1
						 : 0);
				}
				_isBackwardBranch = (isBranch(_descriptor)) && ((assert(((_descriptor->spanFunction)) != null), (((_descriptor->spanFunction))(_descriptor, _bcpc, _nExts, _aMethodObj)) < 0));
				_result = profilingDataForAnnotationMcpcBcpcMethod(_descriptor, ((_isBackwardBranch)
					 ? ((sqInt) (((usqInt) _annotation ) << 1) ) + 1
					 : ((sqInt) (((usqInt) _annotation ) << 1) )), ((char *) _mcpc ), ((_isBackwardBranch)
					 ? _bcpc - (2 * _nExts)
					 : _bcpc), ((void *) _cogMethod ));
				if (_result != 0) {
					_errCode = _result;
					goto l3;
				}
				_bcpc = _nextBcpc;
				_nExts = (((_descriptor->isExtension))
					 ? _nExts + 1
					 : 0);
			}
		} else {
			assert(((((usqInt) _mapByte ) >> AnnotationShift) == IsDisplacementX2N) || ((((usqInt) _mapByte ) >> AnnotationShift) == IsAnnotationExtension));
			if (_mapByte < ((int) (((usqInt) IsAnnotationExtension ) << AnnotationShift) )) {
				_mcpc += ((sqInt) (((usqInt) (_mapByte - DisplacementX2N) ) << AnnotationShift) ) * 4;
			}
		}
		_map -= 1;
	}
	_errCode = 0;
	l3:
	;
	/* end mapFor:bcpc:performUntil:arg: */
	if (_errCode != 0) {
		assert(_errCode == PrimErrNoMemory);
		return -1;
	}
	return introspectionDataIndex;
}
/*	Used to mark ReceiverResultReg as dead or not containing simSelf. 
	Used when the simStack has already been flushed, e.g. for sends. */
/* StackToRegisterMappingCogit>>#receiverIsInReceiverResultReg */
static sqInt
receiverIsInReceiverResultReg(void)
{
	return (((simSelf())->liveRegister)) == ReceiverResultReg;
}
/*	Scan the method (and all embedded blocks) to determine 
	- what the last bytecode is; extra bytes at the end of a method are used 
	to encode things like source pointers or temp names 
	- if the method needs a frame or not 
	- what are the targets of any backward branches */
/* StackToRegisterMappingCogit>>#scanMethod */
static sqInt
scanMethod(void)
{
	BytecodeDescriptor *_descriptor;
	sqInt _distance;
	BytecodeFixup * _fixup;
	sqInt _framelessStackDelta;
	sqInt _latestContinuation;
	sqInt _nExts;
	sqInt _pc;
	int _seenInstVarStore;
	sqInt _targetPC;

	needsFrame = (useTwoPaths = (_seenInstVarStore = 0));
	if ((primitiveIndex > 0) && (isQuickPrimitiveIndex(primitiveIndex))) {
		return 0;
	}
	_pc = (_latestContinuation = initialPC);
	_framelessStackDelta = (_nExts = (extA = (numExtB = (extB = 0))));
	while (_pc <= endPC) {
		byte0 = fetchByteofObject(_pc, methodObj);
		_descriptor = generatorAt(byte0);
		if ((_descriptor->isExtension)) {
			if (((_descriptor->opcode)) == Nop) {
				return EncounteredUnknownBytecode;
			}
			loadSubsequentBytesForDescriptorat(_descriptor, _pc);
			((_descriptor->generator))();
		}
		if (((_descriptor->isReturn)) && (_pc >= _latestContinuation)) {
			endPC = _pc;
		}
		if (!needsFrame) {
			if ((((_descriptor->needsFrameFunction)) == null) || (((_descriptor->needsFrameFunction))(_framelessStackDelta))) {
				
#        if IMMUTABILITY
				{
					if ((_descriptor->is1ByteInstVarStore)) {
						useTwoPaths = 1;
					} else {
						needsFrame = 1;
						useTwoPaths = 0;
					}
				}
#        else /* IMMUTABILITY */
				{
					needsFrame = 1;
					useTwoPaths = 0;
				}
#        endif /* IMMUTABILITY */
			} else {
				_framelessStackDelta += (_descriptor->stackDelta);
				
#        if IMMUTABILITY
				{
				}
#        else /* IMMUTABILITY */
				{
					if ((_descriptor->is1ByteInstVarStore)) {
						if (_seenInstVarStore) {
							useTwoPaths = 1;
						} else {
							_seenInstVarStore = 1;
						}
					}
				}
#        endif /* IMMUTABILITY */
			}
		}
		if (isBranch(_descriptor)) {
			/* begin spanFor:at:exts:in: */
			_distance = ((_descriptor->spanFunction))(_descriptor, _pc, _nExts, methodObj);
			/* end spanFor:at:exts:in: */
			_targetPC = (_pc + ((_descriptor->numBytes))) + _distance;
			if ((assert(((_descriptor->spanFunction)) != null), (((_descriptor->spanFunction))(_descriptor, _pc, _nExts, methodObj)) < 0)) {
				/* begin initializeFixupAt: */
				/* begin fixupAt: */
				_fixup = fixupAtIndex(_targetPC - initialPC);
				/* end fixupAt: */
				/* begin initializeFixup: */
				{
					(_fixup->simStackPtr = simStackPtr);
					/* begin becomeMergeFixup */
					(_fixup->targetInstruction) = ((AbstractInstruction *) NeedsMergeFixupFlag );
					/* end becomeMergeFixup */
					/* begin setIsBackwardBranchFixup */
					(_fixup->isTargetOfBackwardBranch) = 1;
					/* end setIsBackwardBranchFixup */
				}
				/* end initializeFixup: */
				/* end initializeFixupAt: */
			} else {
				_latestContinuation = ((_latestContinuation < _targetPC) ? _targetPC : _latestContinuation);
			}
		}
		/* begin maybeDealWithUnsafeJumpForDescriptor:pc:latestContinuation: */
		/* end maybeDealWithUnsafeJumpForDescriptor:pc:latestContinuation: */
		_pc += (_descriptor->numBytes);
		_nExts = (((_descriptor->isExtension))
			 ? _nExts + 1
			 : (extA = (numExtB = (extB = 0))));
	}
	return 0;
}
/*	230		11100110	iiiiiiii		PushNClosureTemps iiiiiiii */
/* StackToRegisterMappingCogit>>#sistaV1PushNilSize:numInitialNils: */
static sqInt NoDbgRegParms
sistaV1PushNilSizenumInitialNils(sqInt aMethodObj, sqInt _numInitialNils)
{
	return _numInitialNils;
}
/* StackToRegisterMappingCogit>>#sistaV1:Num:Push:Nils: */
static sqInt NoDbgRegParms
sistaV1NumPushNils(BytecodeDescriptor *_descriptor, sqInt pc, sqInt nExts, sqInt aMethodObj)
{
	return ((((_descriptor->generator)) == genPushConstantNilBytecode)
		 ? 1
		 : 0);
}
/* StackToRegisterMappingCogit>>#ssAllocateRequiredRegMask:upThrough: */
static void NoDbgRegParms
ssAllocateRequiredRegMaskupThrough(sqInt _requiredRegsMask, sqInt _stackPtr)
{
	sqInt _i;
	sqInt _i2;
	int _lastRequired;
	sqInt _liveRegs;

	_lastRequired = -1;
	/* begin registerMaskFor:and: */
	_liveRegs = (1U << FPReg) | (1U << SPReg);
	/* end registerMaskFor:and: */
	for (_i = ((simSpillBase < 0) ? 0 : simSpillBase); _i <= _stackPtr; _i += 1) {
		_liveRegs = _liveRegs | (registerMask(simStackAt(_i)));
		if ((registerMask(simStackAt(_i))) & _requiredRegsMask) {
			_lastRequired = _i;
		}
	}
	if (_liveRegs & _requiredRegsMask) {
		/* begin ssFlushTo: */
		assert(tempsValidAndVolatileEntriesSpilled());
		if (simSpillBase <= _lastRequired) {
			for (_i2 = ((((((((simSpillBase < (methodOrBlockNumTemps + 1)) ? methodOrBlockNumTemps + 1 : simSpillBase)) < simStackPtr) ? ((simSpillBase < (methodOrBlockNumTemps + 1)) ? methodOrBlockNumTemps + 1 : simSpillBase) : simStackPtr)) < _lastRequired) ? (((((simSpillBase < (methodOrBlockNumTemps + 1)) ? methodOrBlockNumTemps + 1 : simSpillBase)) < simStackPtr) ? ((simSpillBase < (methodOrBlockNumTemps + 1)) ? methodOrBlockNumTemps + 1 : simSpillBase) : simStackPtr) : _lastRequired); _i2 <= _lastRequired; _i2 += 1) {
				assert(needsFrame);
				ensureSpilledAtfrom(simStackAt(_i2), frameOffsetOfTemporary(_i2 - 1), FPReg);
			}
			simSpillBase = _lastRequired + 1;
		}
		/* end ssFlushTo: */
		assert(!((liveRegisters()) & _requiredRegsMask));
	}
}
/* StackToRegisterMappingCogit>>#ssFlushStack */
static void
ssFlushStack(void)
{
	ssFlushStackExceptTop(0);
}
/* StackToRegisterMappingCogit>>#ssFlushStackExceptTop: */
static void NoDbgRegParms
ssFlushStackExceptTop(sqInt _n)
{
	sqInt _i;

	/* begin ssFlushTo: */
	assert(tempsValidAndVolatileEntriesSpilled());
	if (simSpillBase <= (simStackPtr - _n)) {
		for (_i = ((((((((simSpillBase < (methodOrBlockNumTemps + 1)) ? methodOrBlockNumTemps + 1 : simSpillBase)) < simStackPtr) ? ((simSpillBase < (methodOrBlockNumTemps + 1)) ? methodOrBlockNumTemps + 1 : simSpillBase) : simStackPtr)) < (simStackPtr - _n)) ? (((((simSpillBase < (methodOrBlockNumTemps + 1)) ? methodOrBlockNumTemps + 1 : simSpillBase)) < simStackPtr) ? ((simSpillBase < (methodOrBlockNumTemps + 1)) ? methodOrBlockNumTemps + 1 : simSpillBase) : simStackPtr) : simStackPtr - _n); _i <= (simStackPtr - _n); _i += 1) {
			assert(needsFrame);
			ensureSpilledAtfrom(simStackAt(_i), frameOffsetOfTemporary(_i - 1), FPReg);
		}
		simSpillBase = (simStackPtr - _n) + 1;
	}
	/* end ssFlushTo: */
}
/*	Any occurrences on the stack of the value being stored (which is the top 
	of stack) 
	must be flushed, and hence any values colder than them stack. */
/* StackToRegisterMappingCogit>>#ssFlushUpThroughReceiverVariable: */
static void NoDbgRegParms
ssFlushUpThroughReceiverVariable(sqInt _slotIndex)
{
	sqInt _i;
	sqInt _index;

	/* begin ssFlushUpThrough: */
	assert(simSpillBase >= 0);
	for (_index = simStackPtr - 1; _index >= simSpillBase; _index += -1) {
		if (((((simStackAt(_index))->type)) == SSBaseOffset) && (((((simStackAt(_index))->registerr)) == ReceiverResultReg) && ((((simStackAt(_index))->offset)) == (slotOffsetOfInstVarIndex(_slotIndex))))) {
			/* begin ssFlushTo: */
			assert(tempsValidAndVolatileEntriesSpilled());
			if (simSpillBase <= _index) {
				for (_i = ((((((((simSpillBase < (methodOrBlockNumTemps + 1)) ? methodOrBlockNumTemps + 1 : simSpillBase)) < simStackPtr) ? ((simSpillBase < (methodOrBlockNumTemps + 1)) ? methodOrBlockNumTemps + 1 : simSpillBase) : simStackPtr)) < _index) ? (((((simSpillBase < (methodOrBlockNumTemps + 1)) ? methodOrBlockNumTemps + 1 : simSpillBase)) < simStackPtr) ? ((simSpillBase < (methodOrBlockNumTemps + 1)) ? methodOrBlockNumTemps + 1 : simSpillBase) : simStackPtr) : _index); _i <= _index; _i += 1) {
					assert(needsFrame);
					ensureSpilledAtfrom(simStackAt(_i), frameOffsetOfTemporary(_i - 1), FPReg);
				}
				simSpillBase = _index + 1;
			}
			/* end ssFlushTo: */
			goto l2;
		}
	}
	l2:
	;
	/* end ssFlushUpThrough: */
}
/*	Any occurrences on the stack of the value being stored (which is the top 
	of stack) 
	must be flushed, and hence any values colder than them stack. */
/* StackToRegisterMappingCogit>>#ssFlushUpThroughTemporaryVariable: */
static void NoDbgRegParms
ssFlushUpThroughTemporaryVariable(sqInt _tempIndex)
{
	sqInt _i;
	sqInt _index;
	sqInt _offset;

	_offset = ((simStackAt(_tempIndex + 1))->offset);
	assert(_offset == (frameOffsetOfTemporary(_tempIndex)));
	/* begin ssFlushUpThrough: */
	assert(simSpillBase >= 0);
	for (_index = simStackPtr - 1; _index >= simSpillBase; _index += -1) {
		if (((((simStackAt(_index))->type)) == SSBaseOffset) && (((((simStackAt(_index))->registerr)) == FPReg) && ((((simStackAt(_index))->offset)) == _offset))) {
			/* begin ssFlushTo: */
			assert(tempsValidAndVolatileEntriesSpilled());
			if (simSpillBase <= _index) {
				for (_i = ((((((((simSpillBase < (methodOrBlockNumTemps + 1)) ? methodOrBlockNumTemps + 1 : simSpillBase)) < simStackPtr) ? ((simSpillBase < (methodOrBlockNumTemps + 1)) ? methodOrBlockNumTemps + 1 : simSpillBase) : simStackPtr)) < _index) ? (((((simSpillBase < (methodOrBlockNumTemps + 1)) ? methodOrBlockNumTemps + 1 : simSpillBase)) < simStackPtr) ? ((simSpillBase < (methodOrBlockNumTemps + 1)) ? methodOrBlockNumTemps + 1 : simSpillBase) : simStackPtr) : _index); _i <= _index; _i += 1) {
					assert(needsFrame);
					ensureSpilledAtfrom(simStackAt(_i), frameOffsetOfTemporary(_i - 1), FPReg);
				}
				simSpillBase = _index + 1;
			}
			/* end ssFlushTo: */
			goto l2;
		}
	}
	l2:
	;
	/* end ssFlushUpThrough: */
}
/*	Peephole optimisation: generate always a single instruction. 
	If the top is spilled, generate just a pop instruction. Otherwise a 
	copy/load  */
/* StackToRegisterMappingCogit>>#ssPopTopToReg: */
static void NoDbgRegParms
ssPopTopToReg(sqInt _aRegister)
{
	if (((ssTop())->spilled)) {
		/* begin PopR: */
		genoperand(PopR, _aRegister);
		/* end PopR: */
	} else {
		copyToReg(ssTop(), _aRegister);
	}
	ssPoppopSpilled(1, 0);
}
/* StackToRegisterMappingCogit>>#ssPopTopToVectorReg: */
static void NoDbgRegParms
ssPopTopToVectorReg(sqInt _aVectorRegister)
{
	moveToVectorReg(ssTop(), _aVectorRegister);
	ssPop(1);
}
/* StackToRegisterMappingCogit>>#ssPop: */
static void NoDbgRegParms
ssPop(sqInt _n)
{
	ssPoppopSpilled(_n, 1);
}
/*	Store or pop the top simulated stack entry to a register. 
	N.B.: popToReg: and storeToReg: does not generate anything if  
	it moves a register to the same register. */
/* StackToRegisterMappingCogit>>#ssPop:andCopyReg: */
static void NoDbgRegParms
ssPopandCopyReg(sqInt _popBoolean, sqInt _reg)
{
	if (_popBoolean) {
		ssPopTopToReg(_reg);
	}
 else {
		copyToReg(ssTop(), _reg);
	}
}
/* StackToRegisterMappingCogit>>#ssPop:popSpilled: */
static void NoDbgRegParms
ssPoppopSpilled(sqInt _n, sqInt _popSpilled)
{
	AbstractInstruction *_anInstruction;
	sqInt _i;
	sqInt _spilledToPop;

	assert(((simStackPtr - _n) >= methodOrBlockNumTemps) || (!needsFrame && ((simStackPtr - _n) >= 0)));
	simStackPtr -= _n;
	_spilledToPop = (simSpillBase - 1) - simStackPtr;
	if (_popSpilled && (_spilledToPop > 0)) {
		/* begin checkQuickConstant:forInstruction: */
		_anInstruction = genoperandoperand(AddCqR, _spilledToPop * BytesPerWord, SPReg);
		if (usesOutOfLineLiteral(_anInstruction)) {
			(_anInstruction->dependent = locateLiteral(_spilledToPop * BytesPerWord));
		}
		/* end checkQuickConstant:forInstruction: */
	}
	/* begin updateSimSpillBase */
	assert((simSpillBase > methodOrBlockNumTemps) && (simStackPtr >= methodOrBlockNumTemps));
	if (simSpillBase > simStackPtr) {
		simSpillBase = simStackPtr + 1;
		while (((simSpillBase - 1) > methodOrBlockNumTemps) && (!(((simStackAt(simSpillBase - 1))->spilled)))) {
			simSpillBase -= 1;
		}
	} else {
		while ((((simStackAt(simSpillBase))->spilled)) && (simSpillBase <= simStackPtr)) {
			simSpillBase += 1;
		}
	}
	for (_i = methodOrBlockNumTemps + 1; _i <= ((((simSpillBase - 1) < simStackPtr) ? simSpillBase - 1 : simStackPtr)); _i += 1) {
		assert((((simStackAt(_i))->spilled)) == 1);
	}
	assert((simSpillBase > simStackPtr) || ((((simStackAt(simSpillBase))->spilled)) == 0));
	/* end updateSimSpillBase */
}
/* StackToRegisterMappingCogit>>#ssPushAnnotatedConstant: */
static sqInt NoDbgRegParms
ssPushAnnotatedConstant(sqInt _literal)
{
	AbstractInstruction *_abstractInstruction;

	ssPushConstant(_literal);
	/* begin annotateInstructionForBytecode */
	/* begin annotateBytecode: */
	_abstractInstruction = ((AbstractInstruction *) (((prevInstIsPCAnnotated())
		 ? (/* begin Nop */ gen(Nop) /* end Nop */)
		 : (/* begin Label */ genoperandoperand(Label, (labelCounter += 1), bytecodePC) /* end Label */))) );
	(_abstractInstruction->annotation = HasBytecodePC);
	/* end annotateBytecode: */
	/* end annotateInstructionForBytecode */
	return 0;
}
/* StackToRegisterMappingCogit>>#ssPushBase:offset: */
static sqInt NoDbgRegParms
ssPushBaseoffset(sqInt _reg, sqInt _offset)
{
	CogSimStackEntry * cascade0;
	sqInt _i;

	ssPush(1);
	{
		cascade0 = ssTop();
		(cascade0->type = SSBaseOffset);
		(cascade0->spilled = 0);
		(cascade0->registerr = _reg);
		(cascade0->offset = _offset);
		(cascade0->bcptr = bytecodePC);
	}
	/* begin updateSimSpillBase */
	assert((simSpillBase > methodOrBlockNumTemps) && (simStackPtr >= methodOrBlockNumTemps));
	if (simSpillBase > simStackPtr) {
		simSpillBase = simStackPtr + 1;
		while (((simSpillBase - 1) > methodOrBlockNumTemps) && (!(((simStackAt(simSpillBase - 1))->spilled)))) {
			simSpillBase -= 1;
		}
	} else {
		while ((((simStackAt(simSpillBase))->spilled)) && (simSpillBase <= simStackPtr)) {
			simSpillBase += 1;
		}
	}
	for (_i = methodOrBlockNumTemps + 1; _i <= ((((simSpillBase - 1) < simStackPtr) ? simSpillBase - 1 : simStackPtr)); _i += 1) {
		assert((((simStackAt(_i))->spilled)) == 1);
	}
	assert((simSpillBase > simStackPtr) || ((((simStackAt(simSpillBase))->spilled)) == 0));
	/* end updateSimSpillBase */
	return 0;
}
/* StackToRegisterMappingCogit>>#ssPushConstant: */
static sqInt NoDbgRegParms
ssPushConstant(sqInt _literal)
{
	CogSimStackEntry * cascade0;
	sqInt _i;

	ssPush(1);
	{
		cascade0 = ssTop();
		(cascade0->type = SSConstant);
		(cascade0->spilled = 0);
		(cascade0->constant = _literal);
		(cascade0->bcptr = bytecodePC);
	}
	/* begin updateSimSpillBase */
	assert((simSpillBase > methodOrBlockNumTemps) && (simStackPtr >= methodOrBlockNumTemps));
	if (simSpillBase > simStackPtr) {
		simSpillBase = simStackPtr + 1;
		while (((simSpillBase - 1) > methodOrBlockNumTemps) && (!(((simStackAt(simSpillBase - 1))->spilled)))) {
			simSpillBase -= 1;
		}
	} else {
		while ((((simStackAt(simSpillBase))->spilled)) && (simSpillBase <= simStackPtr)) {
			simSpillBase += 1;
		}
	}
	for (_i = methodOrBlockNumTemps + 1; _i <= ((((simSpillBase - 1) < simStackPtr) ? simSpillBase - 1 : simStackPtr)); _i += 1) {
		assert((((simStackAt(_i))->spilled)) == 1);
	}
	assert((simSpillBase > simStackPtr) || ((((simStackAt(simSpillBase))->spilled)) == 0));
	/* end updateSimSpillBase */
	return 0;
}
/* StackToRegisterMappingCogit>>#ssPushDesc: */
static sqInt NoDbgRegParms
ssPushDesc(SimStackEntry _simStackEntry)
{
	sqInt _i;

	{
		if (((_simStackEntry.type)) == SSSpill) {
			(_simStackEntry.type = SSBaseOffset);
		}
		{
			(_simStackEntry.spilled = 0);
			(_simStackEntry.bcptr = bytecodePC);
		}
		simStack[(simStackPtr += 1)] = _simStackEntry;
	}
	/* begin updateSimSpillBase */
	assert((simSpillBase > methodOrBlockNumTemps) && (simStackPtr >= methodOrBlockNumTemps));
	if (simSpillBase > simStackPtr) {
		simSpillBase = simStackPtr + 1;
		while (((simSpillBase - 1) > methodOrBlockNumTemps) && (!(((simStackAt(simSpillBase - 1))->spilled)))) {
			simSpillBase -= 1;
		}
	} else {
		while ((((simStackAt(simSpillBase))->spilled)) && (simSpillBase <= simStackPtr)) {
			simSpillBase += 1;
		}
	}
	for (_i = methodOrBlockNumTemps + 1; _i <= ((((simSpillBase - 1) < simStackPtr) ? simSpillBase - 1 : simStackPtr)); _i += 1) {
		assert((((simStackAt(_i))->spilled)) == 1);
	}
	assert((simSpillBase > simStackPtr) || ((((simStackAt(simSpillBase))->spilled)) == 0));
	/* end updateSimSpillBase */
	return 0;
}
/* StackToRegisterMappingCogit>>#ssPushRegister: */
static sqInt NoDbgRegParms
ssPushRegister(sqInt _reg)
{
	CogSimStackEntry * cascade0;
	sqInt _i;

	ssPush(1);
	{
		cascade0 = ssTop();
		(cascade0->type = SSRegister);
		(cascade0->spilled = 0);
		(cascade0->registerr = _reg);
		(cascade0->bcptr = bytecodePC);
	}
	/* begin updateSimSpillBase */
	assert((simSpillBase > methodOrBlockNumTemps) && (simStackPtr >= methodOrBlockNumTemps));
	if (simSpillBase > simStackPtr) {
		simSpillBase = simStackPtr + 1;
		while (((simSpillBase - 1) > methodOrBlockNumTemps) && (!(((simStackAt(simSpillBase - 1))->spilled)))) {
			simSpillBase -= 1;
		}
	} else {
		while ((((simStackAt(simSpillBase))->spilled)) && (simSpillBase <= simStackPtr)) {
			simSpillBase += 1;
		}
	}
	for (_i = methodOrBlockNumTemps + 1; _i <= ((((simSpillBase - 1) < simStackPtr) ? simSpillBase - 1 : simStackPtr)); _i += 1) {
		assert((((simStackAt(_i))->spilled)) == 1);
	}
	assert((simSpillBase > simStackPtr) || ((((simStackAt(simSpillBase))->spilled)) == 0));
	/* end updateSimSpillBase */
	return 0;
}
/* StackToRegisterMappingCogit>>#ssPushVectorRegister: */
static sqInt NoDbgRegParms
ssPushVectorRegister(sqInt _reg)
{
	CogSimStackEntry * cascade0;
	sqInt _i;

	ssPush(1);
	{
		cascade0 = ssTop();
		(cascade0->type = SSVectorRegister);
		(cascade0->spilled = 0);
		(cascade0->registerr = _reg);
		(cascade0->bcptr = bytecodePC);
	}
	ssTop();
	/* begin updateSimSpillBase */
	assert((simSpillBase > methodOrBlockNumTemps) && (simStackPtr >= methodOrBlockNumTemps));
	if (simSpillBase > simStackPtr) {
		simSpillBase = simStackPtr + 1;
		while (((simSpillBase - 1) > methodOrBlockNumTemps) && (!(((simStackAt(simSpillBase - 1))->spilled)))) {
			simSpillBase -= 1;
		}
	} else {
		while ((((simStackAt(simSpillBase))->spilled)) && (simSpillBase <= simStackPtr)) {
			simSpillBase += 1;
		}
	}
	for (_i = methodOrBlockNumTemps + 1; _i <= ((((simSpillBase - 1) < simStackPtr) ? simSpillBase - 1 : simStackPtr)); _i += 1) {
		assert((((simStackAt(_i))->spilled)) == 1);
	}
	assert((simSpillBase > simStackPtr) || ((((simStackAt(simSpillBase))->spilled)) == 0));
	/* end updateSimSpillBase */
	return 0;
}
/* StackToRegisterMappingCogit>>#ssPush: */
static void NoDbgRegParms
ssPush(sqInt _n)
{
	simStackPtr += _n;
}
/* StackToRegisterMappingCogit>>#ssSelfDescriptor */
static SimStackEntry
ssSelfDescriptor(void)
{
	return simStack[0];
}
/*	In addition to ssStorePop:toReg:, if this is a store and not 
	a popInto I change the simulated stack to use the register  
	for the top value */
/* StackToRegisterMappingCogit>>#ssStoreAndReplacePop:toReg: */
static void NoDbgRegParms
ssStoreAndReplacePoptoReg(sqInt _popBoolean, sqInt _reg)
{
	char _topSpilled;

	_topSpilled = ((ssTop())->spilled);
	ssPopandCopyReg(_popBoolean || _topSpilled, _reg);
	if (!_popBoolean) {
		if (!_topSpilled) {
			ssPoppopSpilled(1, 0);
		}
		ssPushRegister(_reg);
	}
}
/*	Store or pop the top simulated stack entry to a register. 
	Use preferredReg if the entry is not itself a register. 
	Answer the actual register the result ends up in. */
/* StackToRegisterMappingCogit>>#ssStorePop:toPreferredReg: */
static sqInt NoDbgRegParms
ssStorePoptoPreferredReg(sqInt _popBoolean, sqInt _preferredReg)
{
	sqInt _actualReg;

	_actualReg = _preferredReg;
	if ((((ssTop())->type)) == SSRegister) {
		assert(!(((ssTop())->spilled)));
		_actualReg = ((ssTop())->registerr);
	}
	ssPopandCopyReg(_popBoolean, _actualReg);
	return _actualReg;
}
/* StackToRegisterMappingCogit>>#ssTop */
static CogSimStackEntry *
ssTop(void)
{
	return simStackAt(simStackPtr);
}
/* StackToRegisterMappingCogit>>#ssValue: */
static CogSimStackEntry * NoDbgRegParms
ssValue(sqInt _n)
{
	return simStackAt(simStackPtr - _n);
}
/* StackToRegisterMappingCogit>>#stackEntryIsBoolean: */
static sqInt NoDbgRegParms
stackEntryIsBoolean(CogSimStackEntry *_simStackEntry)
{
	return (((_simStackEntry->type)) == SSConstant) && ((((_simStackEntry->constant)) == (trueObject())) || (((_simStackEntry->constant)) == (falseObject())));
}
/*	Answer if the stack is valid up to, but not including, simSpillBase. */
/* StackToRegisterMappingCogit>>#tempsValidAndVolatileEntriesSpilled */
static sqInt
tempsValidAndVolatileEntriesSpilled(void)
{
	sqInt _i;

	for (_i = 1; _i <= methodOrBlockNumTemps; _i += 1) {
		if (!((((simStackAt(_i))->type)) == SSBaseOffset)) {
			return 0;
		}
	}
	for (_i = methodOrBlockNumTemps + 1; _i < simSpillBase; _i += 1) {
		if (!(((simStackAt(_i))->spilled))) {
			return 0;
		}
	}
	return 1;
}
/*	If the sequence of bytecodes is 
	push: (Array new: 1) 
	popIntoTemp: tempIndex 
	pushConstant: const or pushTemp: n 
	popIntoTemp: 0 inVectorAt: tempIndex 
	collapse this into 
	tempAt: tempIndex put: {const or temp} 
	and answer true, otherwise answer false. 
	One might think that we should look for a sequence of more than 
	one pushes and pops but this is extremely rare. 
	Exclude pushRcvr: n to avoid potential complications with context inst 
	vars.  */
/* StackToRegisterMappingCogit>>#tryCollapseTempVectorInitializationOfSize: */
static sqInt NoDbgRegParms
tryCollapseTempVectorInitializationOfSize(sqInt _slots)
{
	sqInt _pc;
	sqInt _pc2;
	sqInt _pc3;
	BytecodeDescriptor *_pushArrayDesc;
	BytecodeDescriptor *_pushValueDesc;
	sqInt _reg;
	sqInt _remoteTempIndex;
	BytecodeDescriptor *_storeArrayDesc;
	BytecodeDescriptor *_storeValueDesc;
	sqInt _tempIndex;

	if (_slots != 1) {
		return 0;
	}
	/* begin generatorForPC: */
	_pushArrayDesc = generatorAt(fetchByteofObject(bytecodePC, methodObj));
	/* end generatorForPC: */
	assert(((_pushArrayDesc->generator)) == genPushNewArrayBytecode);
	/* begin generatorForPC: */
	_pc = bytecodePC + ((_pushArrayDesc->numBytes));
	_storeArrayDesc = generatorAt(fetchByteofObject(_pc, methodObj));
	/* end generatorForPC: */
	if (((_storeArrayDesc->generator)) == genStoreAndPopTemporaryVariableBytecode) {
		_tempIndex = (fetchByteofObject(bytecodePC + ((_pushArrayDesc->numBytes)), methodObj)) & 7;
	} else {
		if (!(((_storeArrayDesc->generator)) == genLongStoreAndPopTemporaryVariableBytecode)) {
			return 0;
		}
		_tempIndex = fetchByteofObject((bytecodePC + ((_pushArrayDesc->numBytes))) + 1, methodObj);
	}
	/* begin generatorForPC: */
	_pc2 = (bytecodePC + ((_pushArrayDesc->numBytes))) + ((_storeArrayDesc->numBytes));
	_pushValueDesc = generatorAt(fetchByteofObject(_pc2, methodObj));
	/* end generatorForPC: */
	if (!((((_pushValueDesc->generator)) == genPushLiteralConstantBytecode) || ((((_pushValueDesc->generator)) == genPushQuickIntegerConstantBytecode) || (((_pushValueDesc->generator)) == genPushTemporaryVariableBytecode)))) {
		return 0;
	}
	/* begin generatorForPC: */
	_pc3 = ((bytecodePC + ((_pushArrayDesc->numBytes))) + ((_storeArrayDesc->numBytes))) + ((_pushValueDesc->numBytes));
	_storeValueDesc = generatorAt(fetchByteofObject(_pc3, methodObj));
	/* end generatorForPC: */
	_remoteTempIndex = fetchByteofObject((((bytecodePC + ((_pushArrayDesc->numBytes))) + ((_storeArrayDesc->numBytes))) + ((_pushValueDesc->numBytes))) + 2, methodObj);
	if (!((((_storeValueDesc->generator)) == genStoreAndPopRemoteTempLongBytecode) && (_tempIndex == _remoteTempIndex))) {
		return 0;
	}
	genNewArrayOfSizeinitialized(1, 0);
	evaluateat(_pushValueDesc, (bytecodePC + ((_pushArrayDesc->numBytes))) + ((_storeArrayDesc->numBytes)));
	_reg = ssStorePoptoPreferredReg(1, TempReg);
	genStoreSourceRegslotIndexintoNewObjectInDestReg(_reg, 0, ReceiverResultReg);
	ssPushRegister(ReceiverResultReg);
	evaluateat(_storeArrayDesc, bytecodePC + ((_pushArrayDesc->numBytes)));
	bytecodePC = ((bytecodePC + ((_storeArrayDesc->numBytes))) + ((_pushValueDesc->numBytes))) + ((_storeValueDesc->numBytes));
	return 1;
}
/* StackToRegisterMappingCogit>>#violatesEnsureSpilledSpillAssert */
static sqInt
violatesEnsureSpilledSpillAssert(void)
{
	return 1;
}
/*	Used when ReceiverResultReg is allocated for other than simSelf, and 
	there may be references to ReceiverResultReg which need to be spilled. */
/* StackToRegisterMappingCogit>>#voidReceiverResultRegContainsSelf */
static void
voidReceiverResultRegContainsSelf(void)
{
	sqInt _i;
	sqInt _i2;
	int _spillIndex;

	/* begin voidReceiverOptStatus */
	((simSelf())->liveRegister = NoReg);
	/* end voidReceiverOptStatus */
	_spillIndex = 0;
	for (_i = (((methodOrBlockNumTemps + 1) < simSpillBase) ? simSpillBase : methodOrBlockNumTemps + 1); _i <= simStackPtr; _i += 1) {
		if ((registerOrNone(simStackAt(_i))) == ReceiverResultReg) {
			_spillIndex = _i;
		}
	}
	if (_spillIndex > 0) {
		/* begin ssFlushTo: */
		assert(tempsValidAndVolatileEntriesSpilled());
		if (simSpillBase <= _spillIndex) {
			for (_i2 = ((((((((simSpillBase < (methodOrBlockNumTemps + 1)) ? methodOrBlockNumTemps + 1 : simSpillBase)) < simStackPtr) ? ((simSpillBase < (methodOrBlockNumTemps + 1)) ? methodOrBlockNumTemps + 1 : simSpillBase) : simStackPtr)) < _spillIndex) ? (((((simSpillBase < (methodOrBlockNumTemps + 1)) ? methodOrBlockNumTemps + 1 : simSpillBase)) < simStackPtr) ? ((simSpillBase < (methodOrBlockNumTemps + 1)) ? methodOrBlockNumTemps + 1 : simSpillBase) : simStackPtr) : _spillIndex); _i2 <= _spillIndex; _i2 += 1) {
				assert(needsFrame);
				ensureSpilledAtfrom(simStackAt(_i2), frameOffsetOfTemporary(_i2 - 1), FPReg);
			}
			simSpillBase = _spillIndex + 1;
		}
		/* end ssFlushTo: */
	}
}
