; ; CustomizeObjectLayer::createToggleButton from 0x46159c to 0x46170e (370 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.W {R4-R11,LR} ; +0x0, 0x46159c MOV R11, R1 ; +0x4, 0x4615a0 VPUSH {D8} ; +0x6, 0x4615a2 MOV R7, R0 ; +0xa, 0x4615a6 LDR.W R9, =(__stack_chk_guard_ptr - 0x4615B2) ; +0xc, 0x4615a8 LDR R0, =(aGjCheckon001Pn - 0x4615BE); "GJ_checkOn_001.png" ; +0x10, 0x4615ac ADD R9, PC; __stack_chk_guard_ptr ; +0x12, 0x4615ae LDR.W R9, [R9]; __stack_chk_guard ; +0x14, 0x4615b0 VLDR S16, =0.8 ; +0x18, 0x4615b4 SUB SP, SP, #0x3C ; +0x1c, 0x4615b8 ADD R0, PC; "GJ_checkOn_001.png" ; +0x1e, 0x4615ba ADD R1, SP, #0x3C+var_2C; char * ; +0x20, 0x4615bc ADD R6, SP, #0x3C+var_10 ; +0x22, 0x4615be LDR R4, [SP,#0x3C+arg_4] ; +0x24, 0x4615c0 VMOV.F32 S17, #0.5 ; +0x26, 0x4615c2 STM.W R1, {R2,R3} ; +0x2a, 0x4615c6 LDR.W R3, [R9] ; +0x2e, 0x4615ca LDR.W R10, [SP,#0x3C+arg_8] ; +0x32, 0x4615ce STR R3, [SP,#0x3C+var_8] ; +0x36, 0x4615d2 BL _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x38, 0x4615d4 MOV R8, R0 ; +0x3c, 0x4615d8 LDR R0, =(aGjCheckoff001P - 0x4615E0); "GJ_checkOff_001.png" ; +0x3e, 0x4615da ADD R0, PC; "GJ_checkOff_001.png" ; +0x40, 0x4615dc BL _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x42, 0x4615de LDR.W R3, [R8] ; +0x46, 0x4615e2 VMOV R1, S16 ; +0x4a, 0x4615e6 LDR R3, [R3,#0x50] ; +0x4e, 0x4615ea MOV R5, R0 ; +0x50, 0x4615ec MOV R0, R8 ; +0x52, 0x4615ee BLX R3 ; +0x54, 0x4615f0 LDR R3, [R5] ; +0x56, 0x4615f2 MOV R0, R5 ; +0x58, 0x4615f4 VMOV R1, S16 ; +0x5a, 0x4615f6 LDR R3, [R3,#0x50] ; +0x5e, 0x4615fa BLX R3 ; +0x60, 0x4615fc LDR R3, [SP,#0x3C+var_28] ; +0x62, 0x4615fe MOV R2, R7 ; +0x64, 0x461600 MOV R1, R8 ; +0x66, 0x461602 MOV R0, R5 ; +0x68, 0x461604 STR R3, [SP,#0x3C+var_3C] ; +0x6a, 0x461606 LDR R3, [SP,#0x3C+var_2C] ; +0x6c, 0x461608 BL _ZN17CCMenuItemToggler6createEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemToggler::create(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x6e, 0x46160a LDRB.W R1, [SP,#0x3C+arg_0]; bool ; +0x72, 0x46160e MOV R5, R0 ; +0x76, 0x461612 BL _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x78, 0x461614 LDR R3, [R4] ; +0x7c, 0x461618 MOV R0, R4 ; +0x7e, 0x46161a MOV R1, R5 ; +0x80, 0x46161c LDR.W R3, [R3,#0xDC] ; +0x82, 0x46161e BLX R3 ; +0x86, 0x461622 LDR R3, [R5] ; +0x88, 0x461624 MOV R2, R10 ; +0x8a, 0x461626 MOV R1, R4; cocos2d::CCPoint * ; +0x8c, 0x461628 MOV R0, R6; this ; +0x8e, 0x46162a LDR R3, [R3,#0x5C] ; +0x90, 0x46162c STR R3, [SP,#0x3C+var_34] ; +0x92, 0x46162e BL _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x94, 0x461630 LDR R3, [SP,#0x3C+var_34] ; +0x98, 0x461634 MOV R0, R5 ; +0x9a, 0x461636 MOV R1, R6 ; +0x9c, 0x461638 BLX R3 ; +0x9e, 0x46163a MOV R0, R5; this ; +0xa0, 0x46163c MOV.W R1, #0x3FC00000; float ; +0xa2, 0x46163e BL _ZN17CCMenuItemToggler11setSizeMultEf; CCMenuItemToggler::setSizeMult(float) ; +0xa6, 0x461642 LDR.W R0, [R7,#0x218]; this ; +0xaa, 0x461646 MOV R1, R5; cocos2d::CCObject * ; +0xae, 0x46164a BL _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0xb0, 0x46164c LDR R1, =(aBigfontFnt - 0x46165A); "bigFont.fnt" ; +0xb4, 0x461650 LDR.W R0, [R11]; this ; +0xb6, 0x461652 ADD R1, PC; "bigFont.fnt" ; +0xba, 0x461656 BL _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0xbc, 0x461658 MOV R4, R0 ; +0xc0, 0x46165c LDR.W R0, [R7,#0x1C8] ; +0xc2, 0x46165e MOV R1, R4 ; +0xc6, 0x461662 LDR R3, [R0] ; +0xc8, 0x461664 LDR.W R3, [R3,#0xDC] ; +0xca, 0x461666 BLX R3 ; +0xce, 0x46166a LDR R3, [R4] ; +0xd0, 0x46166c MOV.W R2, #0x3F000000; float ; +0xd2, 0x46166e MOVS R1, #0; float ; +0xd6, 0x461672 MOV R0, R6; this ; +0xd8, 0x461674 LDR.W R11, [R3,#0x8C] ; +0xda, 0x461676 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xde, 0x46167a MOV R1, R6 ; +0xe2, 0x46167e MOV R0, R4 ; +0xe4, 0x461680 BLX R11 ; +0xe6, 0x461682 LDR R3, [R4] ; +0xe8, 0x461684 LDR.W R2, [R8] ; +0xea, 0x461686 MOV R0, R8 ; +0xee, 0x46168a ADD.W R8, SP, #0x3C+var_20 ; +0xf0, 0x46168c ADD.W R11, SP, #0x3C+var_18 ; +0xf4, 0x461690 LDR R3, [R3,#0x5C] ; +0xf8, 0x461694 LDR.W R2, [R2,#0x9C] ; +0xfa, 0x461696 STR R3, [SP,#0x3C+var_34] ; +0xfe, 0x46169a LDR.W R3, [R7,#0x1C8] ; +0x100, 0x46169c STR R3, [SP,#0x3C+var_30] ; +0x104, 0x4616a0 BLX R2 ; +0x106, 0x4616a2 VMOV.F32 S14, #7.0 ; +0x108, 0x4616a4 MOVS R2, #0; float ; +0x10c, 0x4616a8 VLDR S15, [R0] ; +0x10e, 0x4616aa MOV R0, R8; this ; +0x112, 0x4616ae VMUL.F32 S15, S15, S17 ; +0x114, 0x4616b0 VMLA.F32 S14, S15, S16 ; +0x118, 0x4616b4 VMOV R1, S14; float ; +0x11c, 0x4616b8 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x120, 0x4616bc MOV R0, R11 ; +0x124, 0x4616c0 MOV R1, R10 ; +0x126, 0x4616c2 MOV R2, R8 ; +0x128, 0x4616c4 BL _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x12a, 0x4616c6 LDR R3, [SP,#0x3C+var_30] ; +0x12e, 0x4616ca MOV R2, R11 ; +0x130, 0x4616cc MOV R0, R6; this ; +0x132, 0x4616ce MOV R1, R3; cocos2d::CCPoint * ; +0x134, 0x4616d0 BL _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x136, 0x4616d2 MOV R0, R4 ; +0x13a, 0x4616d6 MOV R1, R6 ; +0x13c, 0x4616d8 LDR R3, [SP,#0x3C+var_34] ; +0x13e, 0x4616da BLX R3 ; +0x140, 0x4616dc LDR R3, [R4] ; +0x142, 0x4616de MOV R0, R4 ; +0x144, 0x4616e0 VMOV R1, S17 ; +0x146, 0x4616e2 LDR R3, [R3,#0x50] ; +0x14a, 0x4616e6 BLX R3 ; +0x14c, 0x4616e8 LDR.W R0, [R7,#0x218]; this ; +0x14e, 0x4616ea MOV R1, R4; cocos2d::CCObject * ; +0x152, 0x4616ee BL _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x154, 0x4616f0 LDR R2, [SP,#0x3C+var_8] ; +0x158, 0x4616f4 LDR.W R3, [R9] ; +0x15a, 0x4616f6 MOV R0, R5 ; +0x15e, 0x4616fa CMP R2, R3 ; +0x160, 0x4616fc BEQ loc_461704 ; +0x162, 0x4616fe BLX __stack_chk_fail ; +0x164, 0x461700 ADD SP, SP, #0x3C ; '<' ; +0x168, 0x461704 VPOP {D8} ; +0x16a, 0x461706 POP.W {R4-R11,PC} ; +0x16e, 0x46170a