; ; ButtonSprite::init from 0x3c319c to 0x3c336a (462 bytes) ; ; 1 xrefs: ; > ButtonSprite::create @ 0x3c33ba ; ; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:46:32 +0000 ; PUSH.W {R4-R11,LR} ; +0x0, 0x3c319c MOV R4, R0 ; +0x4, 0x3c31a0 VPUSH {D8} ; +0x6, 0x3c31a2 MOV R11, R1 ; +0xa, 0x3c31a6 LDR R5, =(__stack_chk_guard_ptr - 0x3C31B2) ; +0xc, 0x3c31a8 VMOV S16, R3 ; +0xe, 0x3c31aa ADD R5, PC; __stack_chk_guard_ptr ; +0x12, 0x3c31ae LDR R5, [R5]; __stack_chk_guard ; +0x14, 0x3c31b0 SUB SP, SP, #0x54 ; +0x16, 0x3c31b2 VMOV S17, R2 ; +0x18, 0x3c31b4 LDR R3, [SP,#0x54+arg_C] ; +0x1c, 0x3c31b8 LDR R6, [SP,#0x54+arg_8] ; +0x1e, 0x3c31ba STR R3, [SP,#0x54+var_48] ; +0x20, 0x3c31bc LDR R3, [R5] ; +0x22, 0x3c31be STR R3, [SP,#0x54+var_8] ; +0x24, 0x3c31c0 BL _ZN7cocos2d8CCSprite4initEv; cocos2d::CCSprite::init(void) ; +0x26, 0x3c31c2 STR R5, [SP,#0x54+var_44] ; +0x2a, 0x3c31c6 MOV R8, R0 ; +0x2c, 0x3c31c8 CMP R0, #0 ; +0x2e, 0x3c31ca BEQ.W loc_3C3346 ; +0x30, 0x3c31cc MOVS R3, #1 ; +0x34, 0x3c31d0 STR.W R3, [R4,#0x1FC] ; +0x36, 0x3c31d2 LDR R3, [SP,#0x54+arg_0] ; +0x3a, 0x3c31d6 VCVT.F32.S32 S17, S17 ; +0x3c, 0x3c31d8 ADD R5, SP, #0x54+var_18 ; +0x40, 0x3c31dc ADD.W R9, R4, #0x228 ; +0x42, 0x3c31de MOV.W R2, #0x40000000; float ; +0x46, 0x3c31e2 MOVS R1, #0; float ; +0x4a, 0x3c31e6 STR.W R3, [R4,#0x208] ; +0x4c, 0x3c31e8 MOV R0, R5; this ; +0x50, 0x3c31ec LDRB.W R3, [SP,#0x54+arg_4] ; +0x52, 0x3c31ee MOV.W R10, #0 ; +0x56, 0x3c31f2 ADD R7, SP, #0x54+var_30 ; +0x5a, 0x3c31f6 VCVT.F32.S32 S16, S16 ; +0x5c, 0x3c31f8 STRB.W R3, [R4,#0x214] ; +0x60, 0x3c31fc LDR R3, [SP,#0x54+arg_10] ; +0x64, 0x3c3200 VSTR S17, [R4,#0x200] ; +0x66, 0x3c3202 STR.W R3, [R4,#0x20C] ; +0x6a, 0x3c3206 VSTR S16, [R4,#0x204] ; +0x6e, 0x3c320a BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x72, 0x3c320e MOV R1, R5 ; +0x76, 0x3c3212 MOV R0, R9 ; +0x78, 0x3c3214 BL _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x7a, 0x3c3216 MOV R0, R6; char * ; +0x7e, 0x3c321a STR.W R10, [SP,#0x54+var_30] ; +0x80, 0x3c321c STR.W R10, [SP,#0x54+var_2C] ; +0x84, 0x3c3220 STR.W R10, [SP,#0x54+var_28] ; +0x88, 0x3c3224 BLX strlen ; +0x8c, 0x3c3228 MOV R1, R6 ; +0x90, 0x3c322c MOV R2, R0 ; +0x92, 0x3c322e MOV R0, R7 ; +0x94, 0x3c3230 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x96, 0x3c3232 STR.W R10, [SP,#0x54+var_24] ; +0x9a, 0x3c3236 STR.W R10, [SP,#0x54+var_20] ; +0x9e, 0x3c323a MOVS R2, #0xB ; +0xa2, 0x3c323e STR.W R10, [SP,#0x54+var_1C] ; +0xa4, 0x3c3240 ADD.W R10, SP, #0x54+var_24 ; +0xa8, 0x3c3244 LDR R1, =(aBigfontFnt - 0x3C3250); "bigFont.fnt" ; +0xac, 0x3c3248 MOV R0, R10 ; +0xae, 0x3c324a ADD R1, PC; "bigFont.fnt" ; +0xb0, 0x3c324c BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xb2, 0x3c324e LDRB.W R3, [SP,#0x54+var_30] ; +0xb6, 0x3c3252 LDRB.W R7, [SP,#0x54+var_24] ; +0xba, 0x3c3256 ANDS.W R2, R3, #1 ; +0xbe, 0x3c325a ITE EQ ; +0xc2, 0x3c325e ASREQ R3, R3, #1 ; +0xc4, 0x3c3260 LDRNE R3, [SP,#0x54+var_2C] ; +0xc6, 0x3c3262 ANDS.W R1, R7, #1 ; +0xc8, 0x3c3264 BEQ loc_3C3274 ; +0xcc, 0x3c3268 LDR R7, [SP,#0x54+var_20] ; +0xce, 0x3c326a CBNZ R2, loc_3C3278 ; +0xd0, 0x3c326c ADD.W R0, SP, #0x54+var_30+1 ; +0xd2, 0x3c326e B loc_3C327C ; +0xd6, 0x3c3272 ASRS R7, R7, #1 ; +0xd8, 0x3c3274 CBZ R2, loc_3C3280 ; +0xda, 0x3c3276 LDR R0, [SP,#0x54+var_28] ; +0xdc, 0x3c3278 CBZ R1, loc_3C3284 ; +0xde, 0x3c327a LDR R1, [SP,#0x54+var_1C] ; +0xe0, 0x3c327c B loc_3C3288 ; +0xe2, 0x3c327e ADD.W R0, SP, #0x54+var_30+1; void * ; +0xe4, 0x3c3280 ADD.W R1, SP, #0x54+var_24+1; void * ; +0xe8, 0x3c3284 CMP R7, R3 ; +0xec, 0x3c3288 MOV R2, R7 ; +0xee, 0x3c328a IT CS ; +0xf0, 0x3c328c MOVCS R2, R3; size_t ; +0xf2, 0x3c328e CBZ R2, loc_3C329E ; +0xf4, 0x3c3290 STR R3, [SP,#0x54+var_40] ; +0xf6, 0x3c3292 BLX memcmp ; +0xf8, 0x3c3294 LDR R3, [SP,#0x54+var_40] ; +0xfc, 0x3c3298 MOV R2, R0 ; +0xfe, 0x3c329a CBNZ R0, loc_3C32AE ; +0x100, 0x3c329c CMP R3, R7 ; +0x102, 0x3c329e BCC loc_3C32AA ; +0x104, 0x3c32a0 ITE HI ; +0x106, 0x3c32a2 MOVHI R2, #1 ; +0x108, 0x3c32a4 MOVLS R2, #0 ; +0x10a, 0x3c32a6 B loc_3C32AE ; +0x10c, 0x3c32a8 MOV.W R2, #0xFFFFFFFF ; +0x10e, 0x3c32aa MOV R0, R10 ; +0x112, 0x3c32ae STR R2, [SP,#0x54+var_40] ; +0x114, 0x3c32b0 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x116, 0x3c32b2 ADD R0, SP, #0x54+var_30 ; +0x11a, 0x3c32b6 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x11c, 0x3c32b8 LDR R2, [SP,#0x54+var_40] ; +0x120, 0x3c32bc CBNZ R2, loc_3C32DE ; +0x122, 0x3c32be MOVS R1, #0; float ; +0x124, 0x3c32c0 MOV.W R2, #0x40000000; float ; +0x126, 0x3c32c2 ADD R0, SP, #0x54+var_38; this ; +0x12a, 0x3c32c6 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x12c, 0x3c32c8 LDR R1, flt_3C336C; float ; +0x130, 0x3c32cc MOV R0, R5; this ; +0x132, 0x3c32ce LDR R2, [SP,#0x54+var_34]; float ; +0x134, 0x3c32d0 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x136, 0x3c32d2 MOV R0, R9 ; +0x13a, 0x3c32d6 MOV R1, R5 ; +0x13c, 0x3c32d8 BL _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x13e, 0x3c32da LDR R0, =(unk_B6B226 - 0x3C32E6) ; +0x142, 0x3c32de MOV R1, R6; char * ; +0x144, 0x3c32e0 ADD R0, PC; unk_B6B226 ; this ; +0x146, 0x3c32e2 BL _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0x148, 0x3c32e4 LDR R3, [R4] ; +0x14c, 0x3c32e8 MOVS R2, #1 ; +0x14e, 0x3c32ea MOV R1, R0 ; +0x150, 0x3c32ec STR.W R0, [R4,#0x218] ; +0x152, 0x3c32ee MOV R0, R4 ; +0x156, 0x3c32f2 LDR.W R3, [R3,#0xE8] ; +0x158, 0x3c32f4 BLX R3 ; +0x15c, 0x3c32f8 LDR R3, flt_3C3370; float ; +0x15e, 0x3c32fa MOVS R1, #0; float ; +0x160, 0x3c32fc MOV R0, R5; this ; +0x162, 0x3c32fe MOV R2, R1; float ; +0x164, 0x3c3300 STR R3, [SP,#0x54+var_54]; float ; +0x166, 0x3c3302 BL _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x168, 0x3c3304 MOV R1, R5 ; +0x16c, 0x3c3308 LDR R0, [SP,#0x54+var_48] ; +0x16e, 0x3c330a BL _ZN7cocos2d9extension14CCScale9Sprite6createEPKcNS_6CCRectE; cocos2d::extension::CCScale9Sprite::create(char const*,cocos2d::CCRect) ; +0x170, 0x3c330c MOV.W R1, #0x41800000; float ; +0x174, 0x3c3310 MOV R2, R1; float ; +0x178, 0x3c3314 STR.W R0, [R4,#0x224] ; +0x17a, 0x3c3316 MOV R6, R0 ; +0x17e, 0x3c331a LDR R3, [R0] ; +0x180, 0x3c331c MOV R0, R5; this ; +0x182, 0x3c331e LDR.W R7, [R3,#0xA0] ; +0x184, 0x3c3320 BL _ZN7cocos2d6CCSizeC1Eff; cocos2d::CCSize::CCSize(float,float) ; +0x188, 0x3c3324 MOV R0, R6 ; +0x18c, 0x3c3328 MOV R1, R5 ; +0x18e, 0x3c332a BLX R7 ; +0x190, 0x3c332c LDR R3, [R4] ; +0x192, 0x3c332e MOV R0, R4 ; +0x194, 0x3c3330 LDR.W R1, [R4,#0x224] ; +0x196, 0x3c3332 MOVS R2, #0 ; +0x19a, 0x3c3336 LDR.W R3, [R3,#0xE8] ; +0x19c, 0x3c3338 BLX R3 ; +0x1a0, 0x3c333c MOV R0, R4; this ; +0x1a2, 0x3c333e MOV R1, R11; char * ; +0x1a4, 0x3c3340 BL _ZN12ButtonSprite9setStringEPKc; ButtonSprite::setString(char const*) ; +0x1a6, 0x3c3342 LDR R3, [SP,#0x54+var_44] ; +0x1aa, 0x3c3346 MOV R0, R8 ; +0x1ac, 0x3c3348 LDR R2, [SP,#0x54+var_8] ; +0x1ae, 0x3c334a LDR R3, [R3] ; +0x1b0, 0x3c334c CMP R2, R3 ; +0x1b2, 0x3c334e BEQ loc_3C3360 ; +0x1b4, 0x3c3350 BLX __stack_chk_fail ; +0x1b6, 0x3c3352 MOV R0, R7 ; +0x1ba, 0x3c3356 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x1bc, 0x3c3358 BL __cxa_end_cleanup ; +0x1c0, 0x3c335c ADD SP, SP, #0x54 ; 'T' ; +0x1c4, 0x3c3360 VPOP {D8} ; +0x1c6, 0x3c3362 POP.W {R4-R11,PC} ; +0x1ca, 0x3c3366