; ; ButtonSprite::init from 0x2e3a18 to 0x2e3b6c (340 bytes) ; ; 1 xrefs: ; > ButtonSprite::create @ 0x2e3bba ; ; 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.W {R4-R11,LR} ; +0x0, 0x2e3a18 MOV R4, R0 ; +0x4, 0x2e3a1c VPUSH {D8} ; +0x6, 0x2e3a1e MOV R10, R1 ; +0xa, 0x2e3a22 LDR R5, =(__stack_chk_guard_ptr - 0x2E3A2E) ; +0xc, 0x2e3a24 VMOV S16, R3 ; +0xe, 0x2e3a26 ADD R5, PC; __stack_chk_guard_ptr ; +0x12, 0x2e3a2a LDR R5, [R5]; __stack_chk_guard ; +0x14, 0x2e3a2c SUB SP, SP, #0x3C ; +0x16, 0x2e3a2e VMOV S17, R2 ; +0x18, 0x2e3a30 MOV R11, R5 ; +0x1c, 0x2e3a34 LDR R3, [SP,#0x3C+arg_C] ; +0x1e, 0x2e3a36 LDR.W R8, [SP,#0x3C+arg_8] ; +0x20, 0x2e3a38 STR R3, [SP,#0x3C+var_34] ; +0x24, 0x2e3a3c LDR R3, [R5] ; +0x26, 0x2e3a3e STR R3, [SP,#0x3C+var_8] ; +0x28, 0x2e3a40 BL _ZN7cocos2d8CCSprite4initEv; cocos2d::CCSprite::init(void) ; +0x2a, 0x2e3a42 MOV R7, R0 ; +0x2e, 0x2e3a46 CMP R0, #0 ; +0x30, 0x2e3a48 BEQ loc_2E3B48 ; +0x32, 0x2e3a4a MOVS R3, #1 ; +0x34, 0x2e3a4c STR.W R3, [R4,#0x1FC] ; +0x36, 0x2e3a4e LDR R3, [SP,#0x3C+arg_0] ; +0x3a, 0x2e3a52 VCVT.F32.S32 S17, S17 ; +0x3c, 0x2e3a54 ADD R5, SP, #0x3C+var_18 ; +0x40, 0x2e3a58 ADD.W R9, R4, #0x224 ; +0x42, 0x2e3a5a MOV.W R2, #0x40000000; float ; +0x46, 0x2e3a5e MOVS R1, #0; float ; +0x4a, 0x2e3a62 STR.W R3, [R4,#0x208] ; +0x4c, 0x2e3a64 MOV R0, R5; this ; +0x50, 0x2e3a68 LDRB.W R3, [SP,#0x3C+arg_4] ; +0x52, 0x2e3a6a ADD R6, SP, #0x3C+var_20 ; +0x56, 0x2e3a6e VCVT.F32.S32 S16, S16 ; +0x58, 0x2e3a70 STRB.W R3, [R4,#0x210] ; +0x5c, 0x2e3a74 LDR R3, [SP,#0x3C+arg_10] ; +0x60, 0x2e3a78 VSTR S17, [R4,#0x200] ; +0x62, 0x2e3a7a STR.W R3, [R4,#0x20C] ; +0x66, 0x2e3a7e VSTR S16, [R4,#0x204] ; +0x6a, 0x2e3a82 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x6e, 0x2e3a86 MOV R1, R5 ; +0x72, 0x2e3a8a MOV R0, R9 ; +0x74, 0x2e3a8c BL _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x76, 0x2e3a8e MOV R1, R8; char * ; +0x7a, 0x2e3a92 ADD R2, SP, #0x3C+var_28 ; +0x7c, 0x2e3a94 MOV R0, R6; int ; +0x7e, 0x2e3a96 BL sub_776584 ; +0x80, 0x2e3a98 LDR R1, =(aBigfontFnt - 0x2E3AA6); "bigFont.fnt" ; +0x84, 0x2e3a9c MOV R0, R5; int ; +0x86, 0x2e3a9e ADD R2, SP, #0x3C+var_24 ; +0x88, 0x2e3aa0 ADD R1, PC; "bigFont.fnt" ; +0x8a, 0x2e3aa2 BL sub_776584 ; +0x8c, 0x2e3aa4 MOV R1, R5 ; +0x90, 0x2e3aa8 MOV R0, R6 ; +0x92, 0x2e3aaa BL sub_774DBC ; +0x94, 0x2e3aac STR R0, [SP,#0x3C+var_30] ; +0x98, 0x2e3ab0 MOV R0, R5 ; +0x9a, 0x2e3ab2 BL sub_774008 ; +0x9c, 0x2e3ab4 MOV R0, R6 ; +0xa0, 0x2e3ab8 BL sub_774008 ; +0xa2, 0x2e3aba LDR R3, [SP,#0x3C+var_30] ; +0xa6, 0x2e3abe CBNZ R3, loc_2E3AE0 ; +0xa8, 0x2e3ac0 MOVS R1, #0; float ; +0xaa, 0x2e3ac2 MOV.W R2, #0x40000000; float ; +0xac, 0x2e3ac4 MOV R0, R6; this ; +0xb0, 0x2e3ac8 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xb2, 0x2e3aca LDR R1, flt_2E3B6C; float ; +0xb6, 0x2e3ace MOV R0, R5; this ; +0xb8, 0x2e3ad0 LDR R2, [SP,#0x3C+var_1C]; float ; +0xba, 0x2e3ad2 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xbc, 0x2e3ad4 MOV R0, R9 ; +0xc0, 0x2e3ad8 MOV R1, R5 ; +0xc2, 0x2e3ada BL _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xc4, 0x2e3adc LDR R0, =(unk_939830 - 0x2E3AE8) ; +0xc8, 0x2e3ae0 MOV R1, R8; char * ; +0xca, 0x2e3ae2 ADD R0, PC; unk_939830 ; this ; +0xcc, 0x2e3ae4 BL _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0xce, 0x2e3ae6 LDR R3, [R4] ; +0xd2, 0x2e3aea MOVS R2, #1 ; +0xd4, 0x2e3aec MOV R1, R0 ; +0xd6, 0x2e3aee STR.W R0, [R4,#0x214] ; +0xd8, 0x2e3af0 MOV R0, R4 ; +0xdc, 0x2e3af4 LDR.W R3, [R3,#0xE0] ; +0xde, 0x2e3af6 BLX R3 ; +0xe2, 0x2e3afa LDR R3, flt_2E3B70; float ; +0xe4, 0x2e3afc MOVS R1, #0; float ; +0xe6, 0x2e3afe MOV R0, R5; this ; +0xe8, 0x2e3b00 MOV R2, R1; float ; +0xea, 0x2e3b02 STR R3, [SP,#0x3C+var_3C]; float ; +0xec, 0x2e3b04 BL _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xee, 0x2e3b06 MOV R1, R5 ; +0xf2, 0x2e3b0a LDR R0, [SP,#0x3C+var_34] ; +0xf4, 0x2e3b0c BL _ZN7cocos2d9extension14CCScale9Sprite6createEPKcNS_6CCRectE; cocos2d::extension::CCScale9Sprite::create(char const*,cocos2d::CCRect) ; +0xf6, 0x2e3b0e MOV.W R1, #0x41800000; float ; +0xfa, 0x2e3b12 MOV R2, R1; float ; +0xfe, 0x2e3b16 LDR R3, [R0] ; +0x100, 0x2e3b18 MOV R6, R0 ; +0x102, 0x2e3b1a STR.W R0, [R4,#0x220] ; +0x104, 0x2e3b1c MOV R0, R5; this ; +0x108, 0x2e3b20 LDR.W R8, [R3,#0x98] ; +0x10a, 0x2e3b22 BL _ZN7cocos2d6CCSizeC1Eff; cocos2d::CCSize::CCSize(float,float) ; +0x10e, 0x2e3b26 MOV R0, R6 ; +0x112, 0x2e3b2a MOV R1, R5 ; +0x114, 0x2e3b2c BLX R8 ; +0x116, 0x2e3b2e LDR R3, [R4] ; +0x118, 0x2e3b30 MOV R0, R4 ; +0x11a, 0x2e3b32 LDR.W R1, [R4,#0x220] ; +0x11c, 0x2e3b34 MOVS R2, #0 ; +0x120, 0x2e3b38 LDR.W R3, [R3,#0xE0] ; +0x122, 0x2e3b3a BLX R3 ; +0x126, 0x2e3b3e MOV R0, R4; this ; +0x128, 0x2e3b40 MOV R1, R10; char * ; +0x12a, 0x2e3b42 BL _ZN12ButtonSprite9setStringEPKc; ButtonSprite::setString(char const*) ; +0x12c, 0x2e3b44 LDR R2, [SP,#0x3C+var_8] ; +0x130, 0x2e3b48 MOV R0, R7 ; +0x132, 0x2e3b4a LDR.W R3, [R11] ; +0x134, 0x2e3b4c CMP R2, R3 ; +0x138, 0x2e3b50 BEQ loc_2E3B62 ; +0x13a, 0x2e3b52 BLX __stack_chk_fail ; +0x13c, 0x2e3b54 MOV R0, R6 ; +0x140, 0x2e3b58 BL sub_774008 ; +0x142, 0x2e3b5a BL __cxa_end_cleanup ; +0x146, 0x2e3b5e ADD SP, SP, #0x3C ; '<' ; +0x14a, 0x2e3b62 VPOP {D8} ; +0x14c, 0x2e3b64 POP.W {R4-R11,PC} ; +0x150, 0x2e3b68