{"type": "func", "start": 5726728, "end": 5727088, "name": "CCMenuItemSpriteExtra::init", "pseudocode": "// \n// CCMenuItemSpriteExtra::init from 0x576208 to 0x576370 (360 bytes)\n// \n// 4 xrefs:\n// > CCMenuItemSpriteExtra::create @ 0x576478\n// > CreateMenuItem::init @ 0x69443c\n// > InfoAlertButton::init @ 0x8e634c\n// > <???> @ 0xbd7c8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool CCMenuItemSpriteExtra::init(\n        CCMenuItemSpriteExtra *a1,\n        cocos2d::CCNode *a2,\n        cocos2d::CCNode *a3,\n        cocos2d::CCObject *a4,\n        cocos2d::SEL_MenuHandler a5)\n{\n  bool v7; // w22\n  void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24\n  void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x24\n  float width; // s9\n  float v11; // s9\n  float height; // s8\n  float v13; // s0\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24\n  cocos2d::CCNode *v15; // x0\n  cocos2d::CCPoint v17; // [xsp+50h] [xbp+50h] BYREF\n  cocos2d::CCPoint v18; // 0:kr00_8.8\n\n  v7 = cocos2d::CCMenuItemSprite::initWithNormalSprite(a1, a2, a3, nullptr, a4, a5);\n  if ( v7 )\n  {\n    setAnchorPoint = a2->setAnchorPoint;\n    a1->m_baseScale = 1.0;\n    cocos2d::CCPoint::CCPoint(&v17, 0.5, 0.5);\n    setAnchorPoint(a2, &v17);\n    setContentSize = a1->setContentSize;\n    width = a2->getContentSize(a2)->width;\n    v11 = width * a2->getScaleX(a2);\n    height = a2->getContentSize(a2)->height;\n    v13 = a2->getScaleY(a2);\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v17, v11, height * v13);\n    setContentSize(a1, (const cocos2d::CCSize *)&v17);\n    setPosition = a2->setPosition;\n    v15 = a2->getParent(a2);\n    v18 = cocos2d::CCNode::convertToNodeSpace(v15, &stru_1241610);\n    ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCPoint *, float, float))setPosition)(a2, &v17, v18.x, v18.y);\n    a1->m_animationEnabled = 1;\n    a1->m_scaleMultiplier = 1.26;\n  }\n  return v7;\n}", "assembly": "; \n; CCMenuItemSpriteExtra::init from 0x576208 to 0x576370 (360 bytes)\n; \n; 4 xrefs:\n; > CCMenuItemSpriteExtra::create @ 0x576478\n; > CreateMenuItem::init @ 0x69443c\n; > InfoAlertButton::init @ 0x8e634c\n; > <???> @ 0xbd7c8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x576208\nMOV             X7, X3                                                 ; +0x4, 0x57620c\nMOV             X6, X5                                                 ; +0x8, 0x576210\nMOV             X29, SP                                                ; +0xc, 0x576214\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x10, 0x576218\nSTP             D8, D9, [SP,#0x60+var_20]                              ; +0x14, 0x57621c\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x18, 0x576220\nMOV             X5, X4                                                 ; +0x1c, 0x576224\nMOV             X4, X7                                                 ; +0x20, 0x576228\nMOV             X3, #0                                                 ; +0x24, 0x57622c\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x28, 0x576230\nLDR             X7, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x2c, 0x576234\nMOV             X19, X1                                                ; +0x30, 0x576238\nSTP             X23, X24, [SP,#0x60+var_30]                            ; +0x34, 0x57623c\nMOV             X23, X0                                                ; +0x38, 0x576240\nLDR             X7, [X7]                                               ; +0x3c, 0x576244\nSTR             X7, [X29,#0x60+var_8]                                  ; +0x40, 0x576248\nBL              _ZN7cocos2d16CCMenuItemSprite20initWithNormalSpriteEPNS_6CCNodeES2_S2_PNS_8CCObjectEMS3_FvS4_E; cocos2d::CCMenuItemSprite::initWithNormalSprite(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x44, 0x57624c\nUXTB            W0, W0                                                 ; +0x48, 0x576250\nMOV             W22, W0                                                ; +0x4c, 0x576254\nCBZ             W0, loc_57633C                                         ; +0x50, 0x576258\nFMOV            S0, #0.5; float                                        ; +0x54, 0x57625c\nADD             X21, X29, #0x60+var_10                                 ; +0x58, 0x576260\nLDR             X1, [X19]                                              ; +0x5c, 0x576264\nMOV             X0, X21; this                                          ; +0x60, 0x576268\nFMOV            S1, S0; float                                          ; +0x64, 0x57626c\nFMOV            S2, #1.0                                               ; +0x68, 0x576270\nLDR             X24, [X1,#0x118]                                       ; +0x6c, 0x576274\nSTR             S2, [X23,#0x194]                                       ; +0x70, 0x576278\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x74, 0x57627c\nMOV             X0, X19                                                ; +0x78, 0x576280\nMOV             X1, X21                                                ; +0x7c, 0x576284\nBLR             X24                                                    ; +0x80, 0x576288\nLDR             X1, [X19]                                              ; +0x84, 0x57628c\nMOV             X0, X19                                                ; +0x88, 0x576290\nLDR             X2, [X23]                                              ; +0x8c, 0x576294\nLDR             X1, [X1,#0x138]                                        ; +0x90, 0x576298\nLDR             X24, [X2,#0x130]                                       ; +0x94, 0x57629c\nBLR             X1                                                     ; +0x98, 0x5762a0\nLDR             X1, [X19]                                              ; +0x9c, 0x5762a4\nLDR             S9, [X0]                                               ; +0xa0, 0x5762a8\nMOV             X0, X19                                                ; +0xa4, 0x5762ac\nLDR             X1, [X1,#0x88]                                         ; +0xa8, 0x5762b0\nBLR             X1                                                     ; +0xac, 0x5762b4\nLDR             X1, [X19]                                              ; +0xb0, 0x5762b8\nMOV             X0, X19                                                ; +0xb4, 0x5762bc\nFMUL            S9, S9, S0                                             ; +0xb8, 0x5762c0\nLDR             X1, [X1,#0x138]                                        ; +0xbc, 0x5762c4\nBLR             X1                                                     ; +0xc0, 0x5762c8\nLDR             X1, [X19]                                              ; +0xc4, 0x5762cc\nLDR             S8, [X0,#4]                                            ; +0xc8, 0x5762d0\nMOV             X0, X19                                                ; +0xcc, 0x5762d4\nLDR             X1, [X1,#0x98]                                         ; +0xd0, 0x5762d8\nBLR             X1                                                     ; +0xd4, 0x5762dc\nFMUL            S1, S8, S0; float                                      ; +0xd8, 0x5762e0\nMOV             X0, X21; this                                          ; +0xdc, 0x5762e4\nFMOV            S0, S9; float                                          ; +0xe0, 0x5762e8\nBL              _ZN7cocos2d6CCSizeC1Eff; cocos2d::CCSize::CCSize(float,float) ; +0xe4, 0x5762ec\nMOV             X0, X23                                                ; +0xe8, 0x5762f0\nMOV             X1, X21                                                ; +0xec, 0x5762f4\nBLR             X24                                                    ; +0xf0, 0x5762f8\nLDR             X1, [X19]                                              ; +0xf4, 0x5762fc\nMOV             X0, X19                                                ; +0xf8, 0x576300\nLDR             X2, [X1,#0x1F0]                                        ; +0xfc, 0x576304\nLDR             X24, [X1,#0xB8]                                        ; +0x100, 0x576308\nBLR             X2                                                     ; +0x104, 0x57630c\nADRP            X1, #stru_1241610@PAGE                                 ; +0x108, 0x576310\nMOV             X8, X21                                                ; +0x10c, 0x576314\nADD             X1, X1, #stru_1241610@PAGEOFF; cocos2d::CCPoint *      ; +0x110, 0x576318\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x114, 0x57631c\nMOV             X0, X19                                                ; +0x118, 0x576320\nMOV             X1, X21                                                ; +0x11c, 0x576324\nBLR             X24                                                    ; +0x120, 0x576328\nMOV             W0, #1                                                 ; +0x124, 0x57632c\nSTRB            W0, [X23,#0x198]                                       ; +0x128, 0x576330\nLDR             W0, =0x3FA147AE                                        ; +0x12c, 0x576334\nSTR             W0, [X23,#0x190]                                       ; +0x130, 0x576338\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x134, 0x57633c\nMOV             W0, W22                                                ; +0x138, 0x576340\nLDR             X2, [X29,#0x60+var_8]                                  ; +0x13c, 0x576344\nLDR             X1, [X20]                                              ; +0x140, 0x576348\nCMP             X2, X1                                                 ; +0x144, 0x57634c\nB.NE            loc_57636C                                             ; +0x148, 0x576350\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x14c, 0x576354\nLDP             D8, D9, [SP,#0x60+var_20]                              ; +0x150, 0x576358\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x154, 0x57635c\nLDP             X23, X24, [SP,#0x60+var_30]                            ; +0x158, 0x576360\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x15c, 0x576364\nRET                                                                    ; +0x160, 0x576368\nBL              .__stack_chk_fail                                      ; +0x164, 0x57636c", "xrefs": ["CCMenuItemSpriteExtra::create @ 0x576478", "CreateMenuItem::init @ 0x69443c", "InfoAlertButton::init @ 0x8e634c", "<???> @ 0xbd7c8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}