{"type": "func", "start": 3958324, "end": 3958568, "name": "CCMenuItemSpriteExtra::init", "pseudocode": "// \n// CCMenuItemSpriteExtra::init from 0x3c6634 to 0x3c6728 (244 bytes)\n// \n// 4 xrefs:\n// > CCMenuItemSpriteExtra::create @ 0x3c68ba\n// > RowPressItem::create @ 0x4279e0\n// > InfoAlertButton::init @ 0x5e8394\n// > CreateMenuItem::init @ 0x6e7d0a\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:46:34 +0000\n// \n\nint __fastcall CCMenuItemSpriteExtra::init(int a1, int a2, int a3, int a4, int a5, int a6)\n{\n  int v8; // r8\n  void (__fastcall *v9)(int, _BYTE *); // r9\n  void (__fastcall *v10)(int, _BYTE *); // r9\n  float v11; // s17\n  float v12; // s15\n  float v13; // s16\n  float v14; // r0\n  void (__fastcall *v15)(int, _BYTE *); // r9\n  const cocos2d::CCPoint *v16; // r0\n  _BYTE v18[8]; // [sp+14h] [bp-10h] BYREF\n\n  v8 = cocos2d::CCMenuItemSprite::initWithNormalSprite(a1, a2, a3, 0, a4, a5, a6);\n  if ( v8 )\n  {\n    *(_DWORD *)(a1 + 316) = 1065353216;\n    v9 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)a2 + 148);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 0.5, 0.5);\n    v9(a2, v18);\n    v10 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)a1 + 160);\n    v11 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)a2 + 164))(a2);\n    v12 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)a2 + 68))(a2));\n    v13 = *(float *)((*(int (__fastcall **)(int))(*(_DWORD *)a2 + 164))(a2) + 4);\n    v14 = (*(float (__fastcall **)(int))(*(_DWORD *)a2 + 76))(a2);\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)v18, v11 * v12, v13 * v14);\n    v10(a1, v18);\n    v15 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)a2 + 92);\n    v16 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)a2 + 256))(a2);\n    cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v18, v16);\n    v15(a2, v18);\n    *(_BYTE *)(a1 + 320) = 1;\n    *(_DWORD *)(a1 + 312) = 1067534254;\n  }\n  return v8;\n}", "assembly": "; \n; CCMenuItemSpriteExtra::init from 0x3c6634 to 0x3c6728 (244 bytes)\n; \n; 4 xrefs:\n; > CCMenuItemSpriteExtra::create @ 0x3c68ba\n; > RowPressItem::create @ 0x4279e0\n; > InfoAlertButton::init @ 0x5e8394\n; > CreateMenuItem::init @ 0x6e7d0a\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:46:34 +0000\n; \nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x3c6634\nMOV             R4, R1                                                 ; +0x4, 0x3c6638\nVPUSH           {D8}                                                   ; +0x6, 0x3c663a\nMOV             R7, R0                                                 ; +0xa, 0x3c663e\nLDR             R6, =(__stack_chk_guard_ptr - 0x3C6646)                ; +0xc, 0x3c6640\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xe, 0x3c6642\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x10, 0x3c6644\nSUB             SP, SP, #0x24                                          ; +0x12, 0x3c6646\nLDR             R1, [R6]                                               ; +0x14, 0x3c6648\nMOV             R5, SP                                                 ; +0x16, 0x3c664a\nSTR             R1, [SP,#0x24+var_8]                                   ; +0x18, 0x3c664c\nSTR.W           R3, [R5+0x24+var_24],#4                                ; +0x1a, 0x3c664e\nADD             R3, SP, #0x24+arg_0                                    ; +0x1e, 0x3c6652\nLDM.W           R3, {R0,R1}                                            ; +0x20, 0x3c6654\nMOVS            R3, #0                                                 ; +0x24, 0x3c6658\nSTM.W           R5, {R0,R1}                                            ; +0x26, 0x3c665a\nMOV             R0, R7                                                 ; +0x2a, 0x3c665e\nMOV             R1, R4                                                 ; +0x2c, 0x3c6660\nBL              _ZN7cocos2d16CCMenuItemSprite20initWithNormalSpriteEPNS_6CCNodeES2_S2_PNS_8CCObjectEMS3_FvS4_E; cocos2d::CCMenuItemSprite::initWithNormalSprite(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x2e, 0x3c6662\nMOV             R8, R0                                                 ; +0x32, 0x3c6666\nCMP             R0, #0                                                 ; +0x34, 0x3c6668\nBEQ             loc_3C6710                                             ; +0x36, 0x3c666a\nADD             R5, SP, #0x24+var_10                                   ; +0x38, 0x3c666c\nMOV.W           R3, #0x3F800000                                        ; +0x3a, 0x3c666e\nSTR.W           R3, [R7,#0x13C]                                        ; +0x3e, 0x3c6672\nMOV.W           R1, #0x3F000000; float                                 ; +0x42, 0x3c6676\nLDR             R3, [R4]                                               ; +0x46, 0x3c667a\nMOV             R2, R1; float                                          ; +0x48, 0x3c667c\nMOV             R0, R5; this                                           ; +0x4a, 0x3c667e\nLDR.W           R9, [R3,#0x94]                                         ; +0x4c, 0x3c6680\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x50, 0x3c6684\nMOV             R1, R5                                                 ; +0x54, 0x3c6688\nMOV             R0, R4                                                 ; +0x56, 0x3c668a\nBLX             R9                                                     ; +0x58, 0x3c668c\nLDR             R3, [R7]                                               ; +0x5a, 0x3c668e\nMOV             R0, R4                                                 ; +0x5c, 0x3c6690\nLDR.W           R9, [R3,#0xA0]                                         ; +0x5e, 0x3c6692\nLDR             R3, [R4]                                               ; +0x62, 0x3c6696\nLDR.W           R3, [R3,#0xA4]                                         ; +0x64, 0x3c6698\nBLX             R3                                                     ; +0x68, 0x3c669c\nLDR             R3, [R4]                                               ; +0x6a, 0x3c669e\nLDR             R3, [R3,#0x44]                                         ; +0x6c, 0x3c66a0\nVLDR            S17, [R0]                                              ; +0x6e, 0x3c66a2\nMOV             R0, R4                                                 ; +0x72, 0x3c66a6\nBLX             R3                                                     ; +0x74, 0x3c66a8\nLDR             R3, [R4]                                               ; +0x76, 0x3c66aa\nLDR.W           R3, [R3,#0xA4]                                         ; +0x78, 0x3c66ac\nVMOV            S15, R0                                                ; +0x7c, 0x3c66b0\nMOV             R0, R4                                                 ; +0x80, 0x3c66b4\nVMUL.F32        S17, S17, S15                                          ; +0x82, 0x3c66b6\nBLX             R3                                                     ; +0x86, 0x3c66ba\nLDR             R3, [R4]                                               ; +0x88, 0x3c66bc\nLDR             R3, [R3,#0x4C]                                         ; +0x8a, 0x3c66be\nVLDR            S16, [R0,#4]                                           ; +0x8c, 0x3c66c0\nMOV             R0, R4                                                 ; +0x90, 0x3c66c4\nBLX             R3                                                     ; +0x92, 0x3c66c6\nVMOV            R1, S17; float                                         ; +0x94, 0x3c66c8\nVMOV            S15, R0                                                ; +0x98, 0x3c66cc\nMOV             R0, R5; this                                           ; +0x9c, 0x3c66d0\nVMUL.F32        S16, S16, S15                                          ; +0x9e, 0x3c66d2\nVMOV            R2, S16; float                                         ; +0xa2, 0x3c66d6\nBL              _ZN7cocos2d6CCSizeC1Eff; cocos2d::CCSize::CCSize(float,float) ; +0xa6, 0x3c66da\nMOV             R1, R5                                                 ; +0xaa, 0x3c66de\nMOV             R0, R7                                                 ; +0xac, 0x3c66e0\nBLX             R9                                                     ; +0xae, 0x3c66e2\nLDR             R3, [R4]                                               ; +0xb0, 0x3c66e4\nMOV             R0, R4                                                 ; +0xb2, 0x3c66e6\nLDR.W           R9, [R3,#0x5C]                                         ; +0xb4, 0x3c66e8\nLDR.W           R3, [R3,#0x100]                                        ; +0xb8, 0x3c66ec\nBLX             R3                                                     ; +0xbc, 0x3c66f0\nLDR             R2, =(unk_D2A4E4 - 0x3C66F8)                           ; +0xbe, 0x3c66f2\nADD             R2, PC; unk_D2A4E4                                     ; +0xc0, 0x3c66f4\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0xc2, 0x3c66f6\nMOV             R0, R5; this                                           ; +0xc4, 0x3c66f8\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0xc6, 0x3c66fa\nMOV             R0, R4                                                 ; +0xca, 0x3c66fe\nMOV             R1, R5                                                 ; +0xcc, 0x3c6700\nBLX             R9                                                     ; +0xce, 0x3c6702\nMOVS            R3, #1                                                 ; +0xd0, 0x3c6704\nSTRB.W          R3, [R7,#0x140]                                        ; +0xd2, 0x3c6706\nLDR             R3, =0x3FA147AE                                        ; +0xd6, 0x3c670a\nSTR.W           R3, [R7,#0x138]                                        ; +0xd8, 0x3c670c\nLDR             R2, [SP,#0x24+var_8]                                   ; +0xdc, 0x3c6710\nMOV             R0, R8                                                 ; +0xde, 0x3c6712\nLDR             R3, [R6]                                               ; +0xe0, 0x3c6714\nCMP             R2, R3                                                 ; +0xe2, 0x3c6716\nBEQ             loc_3C671E                                             ; +0xe4, 0x3c6718\nBLX             __stack_chk_fail                                       ; +0xe6, 0x3c671a\nADD             SP, SP, #0x24 ; '$'                                    ; +0xea, 0x3c671e\nVPOP            {D8}                                                   ; +0xec, 0x3c6720\nPOP.W           {R4-R9,PC}                                             ; +0xf0, 0x3c6724", "xrefs": ["CCMenuItemSpriteExtra::create @ 0x3c68ba", "RowPressItem::create @ 0x4279e0", "InfoAlertButton::init @ 0x5e8394", "CreateMenuItem::init @ 0x6e7d0a"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}