; ; CCSpriteWithHue::draw from 0x306c70 to 0x306d8a (282 bytes) ; ; 0 xrefs: ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; PUSH {R0-R2,R4-R7,LR} ; +0x0, 0x306c70 MOV R4, R0 ; +0x2, 0x306c72 LDRB.W R5, [R0,#0x1D7] ; +0x4, 0x306c74 CMP R5, #0 ; +0x8, 0x306c78 BNE.W loc_306D86 ; +0xa, 0x306c7a LDRB.W R3, [R0,#0x10D] ; +0xe, 0x306c7e CMP R3, #0 ; +0x12, 0x306c82 BEQ loc_306D86 ; +0x14, 0x306c84 LDR.W R0, [R0,#0xD4] ; +0x16, 0x306c86 BL _ZN7cocos2d10ccGLEnableENS_15ccGLServerStateE; cocos2d::ccGLEnable(cocos2d::ccGLServerState) ; +0x1a, 0x306c8a LDR R3, [R4] ; +0x1e, 0x306c8e MOV R0, R4 ; +0x20, 0x306c90 LDR.W R3, [R3,#0x140] ; +0x22, 0x306c92 BLX R3 ; +0x26, 0x306c96 LDR R3, [R4] ; +0x28, 0x306c98 MOV R0, R4 ; +0x2a, 0x306c9a LDR.W R3, [R3,#0x140] ; +0x2c, 0x306c9c BLX R3 ; +0x30, 0x306ca0 BL _ZN7cocos2d11CCGLProgram3useEv; cocos2d::CCGLProgram::use(void) ; +0x32, 0x306ca2 LDR R3, [R4] ; +0x36, 0x306ca6 MOV R0, R4 ; +0x38, 0x306ca8 LDR.W R3, [R3,#0x140] ; +0x3a, 0x306caa BLX R3 ; +0x3e, 0x306cae BL _ZN7cocos2d11CCGLProgram22setUniformsForBuiltinsEv; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x40, 0x306cb0 LDR.W R1, [R4,#0x148]; unsigned int ; +0x44, 0x306cb4 LDR.W R0, [R4,#0x144]; this ; +0x48, 0x306cb8 BL _ZN7cocos2d13ccGLBlendFuncEjj; cocos2d::ccGLBlendFunc(uint,uint) ; +0x4c, 0x306cbc LDR.W R0, [R4,#0x14C] ; +0x50, 0x306cc0 LDR R3, [R0] ; +0x54, 0x306cc4 LDR R3, [R3,#0x34] ; +0x56, 0x306cc6 BLX R3 ; +0x58, 0x306cc8 BL _ZN7cocos2d17ccGLBindTexture2DEj; cocos2d::ccGLBindTexture2D(uint) ; +0x5a, 0x306cca MOVS R0, #byte_7; this ; +0x5e, 0x306cce BL _ZN7cocos2d23ccGLEnableVertexAttribsEj; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x60, 0x306cd0 LDR R3, [R4] ; +0x64, 0x306cd4 MOV R0, R4 ; +0x66, 0x306cd6 LDR.W R3, [R3,#0x140] ; +0x68, 0x306cd8 BLX R3 ; +0x6c, 0x306cdc LDR.W R1, [R4,#0x230]; int ; +0x6e, 0x306cde ADD.W R2, R4, #0x20C; float * ; +0x72, 0x306ce2 MOVS R3, #1; unsigned int ; +0x76, 0x306ce6 BL _ZN7cocos2d11CCGLProgram31setUniformLocationWithMatrix3fvEiPfj; cocos2d::CCGLProgram::setUniformLocationWithMatrix3fv(int,float *,uint) ; +0x78, 0x306ce8 LDR R3, [R4] ; +0x7c, 0x306cec MOV R0, R4 ; +0x7e, 0x306cee LDR.W R3, [R3,#0x140] ; +0x80, 0x306cf0 BLX R3 ; +0x84, 0x306cf4 LDR.W R6, [R4,#0x234] ; +0x86, 0x306cf6 MOV R7, R0 ; +0x8a, 0x306cfa MOV R0, R4; this ; +0x8c, 0x306cfc BL _ZN15CCSpriteWithHue8getAlphaEv; CCSpriteWithHue::getAlpha(void) ; +0x8e, 0x306cfe MOV R1, R6; int ; +0x92, 0x306d02 MOVS R6, #0x18 ; +0x94, 0x306d04 MOV R2, R0; float ; +0x96, 0x306d06 MOV R0, R7; this ; +0x98, 0x306d08 BL _ZN7cocos2d11CCGLProgram24setUniformLocationWith1fEif; cocos2d::CCGLProgram::setUniformLocationWith1f(int,float) ; +0x9a, 0x306d0a LDR R3, [R4] ; +0x9e, 0x306d0e MOV R0, R4 ; +0xa0, 0x306d10 LDR.W R3, [R3,#0x140] ; +0xa2, 0x306d12 BLX R3 ; +0xa6, 0x306d16 LDR.W R3, [R4,#0x208] ; +0xa8, 0x306d18 STR R3, [SP,#0xC+var_C]; float ; +0xac, 0x306d1c LDR.W R1, [R4,#0x238]; int ; +0xae, 0x306d1e LDR.W R2, [R4,#0x200]; float ; +0xb2, 0x306d22 LDR.W R3, [R4,#0x204]; float ; +0xb6, 0x306d26 BL _ZN7cocos2d11CCGLProgram24setUniformLocationWith3fEifff; cocos2d::CCGLProgram::setUniformLocationWith3f(int,float,float,float) ; +0xba, 0x306d2a ADD.W R3, R4, #0x174 ; +0xbe, 0x306d2e MOV R0, R5 ; +0xc2, 0x306d32 STR R3, [SP,#0xC+var_8] ; +0xc4, 0x306d34 MOVS R1, #3 ; +0xc6, 0x306d36 MOVW R2, #0x1406 ; +0xc8, 0x306d38 MOV R3, R5 ; +0xcc, 0x306d3c STR R6, [SP,#0xC+var_C] ; +0xce, 0x306d3e BLX glVertexAttribPointer ; +0xd0, 0x306d40 MOVS R0, #2 ; +0xd4, 0x306d44 ADD.W R3, R4, #0x184 ; +0xd6, 0x306d46 MOV R1, R0 ; +0xda, 0x306d4a STR R3, [SP,#0xC+var_8] ; +0xdc, 0x306d4c MOVW R2, #0x1406 ; +0xde, 0x306d4e MOV R3, R5 ; +0xe2, 0x306d52 STR R6, [SP,#0xC+var_C] ; +0xe4, 0x306d54 BLX glVertexAttribPointer ; +0xe6, 0x306d56 MOVS R0, #1 ; +0xea, 0x306d5a MOV R3, R0 ; +0xec, 0x306d5c MOVS R1, #4 ; +0xee, 0x306d5e MOVW R2, #0x1401 ; +0xf0, 0x306d60 STR R6, [SP,#0xC+var_C] ; +0xf4, 0x306d64 ADD.W R4, R4, #0x180 ; +0xf6, 0x306d66 STR R4, [SP,#0xC+var_8] ; +0xfa, 0x306d6a BLX glVertexAttribPointer ; +0xfc, 0x306d6c MOVS R2, #4; count ; +0x100, 0x306d70 MOVS R0, #5; mode ; +0x102, 0x306d72 MOV R1, R5; first ; +0x104, 0x306d74 BLX glDrawArrays ; +0x106, 0x306d76 LDR R3, =(g_uNumberOfDraws_ptr - 0x306D80) ; +0x10a, 0x306d7a ADD R3, PC; g_uNumberOfDraws_ptr ; +0x10c, 0x306d7c LDR R3, [R3]; g_uNumberOfDraws ; +0x10e, 0x306d7e LDR R2, [R3] ; +0x110, 0x306d80 ADDS R2, #1 ; +0x112, 0x306d82 STR R2, [R3] ; +0x114, 0x306d84 ADD SP, SP, #0xC ; +0x116, 0x306d86 POP {R4-R7,PC} ; +0x118, 0x306d88