{"type": "func", "start": 4297144272, "end": 4297144588, "name": "CCMenuItemSpriteExtra::init", "pseudocode": "// \n// CCMenuItemSpriteExtra::init from 0x1002137d0 to 0x10021390c (316 bytes)\n// \n// 3 xrefs:\n// > InfoAlertButton::init @ 0x10016b3e8\n// > CCMenuItemSpriteExtra::create @ 0x10021377c\n// > CreateMenuItem::create @ 0x1003e73d8\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 __fastcall CCMenuItemSpriteExtra::init(\n        CCMenuItemSpriteExtra *a1,\n        cocos2d::CCNode *a2,\n        cocos2d::CCNode *a3,\n        cocos2d::CCObject *a4,\n        cocos2d::SEL_MenuHandler a5)\n{\n  _BOOL4 v7; // w21\n  __n128 v8; // q0\n  __n128 v9; // q1\n  float v10; // s8\n  float v11; // s8\n  float v12; // s9\n  float v13; // s0\n  cocos2d::CCNode *v14; // x0\n  int v16; // [xsp+8h] [xbp-38h] BYREF\n  cocos2d::CCPoint v17; // 0:kr00_8.8\n\n  v7 = cocos2d::CCMenuItemSprite::initWithNormalSprite(a1, a2, a3, nullptr, a4, a5);\n  if ( v7 )\n  {\n    a1->m_baseScale = 1.0;\n    v8.n128_u32[0] = 0.5;\n    v9.n128_u32[0] = 0.5;\n    sub_100022980(v8, v9, &v16);\n    ((void (__fastcall *)(cocos2d::CCNode *, int *))a2->setAnchorPoint)(a2, &v16);\n    v10 = *(float *)((__int64 (__fastcall *)(cocos2d::CCNode *))a2->getContentSize)(a2);\n    v11 = v10 * ((float (__fastcall *)(cocos2d::CCNode *))a2->getScaleX)(a2);\n    v12 = *(float *)(((__int64 (__fastcall *)(cocos2d::CCNode *))a2->getContentSize)(a2) + 4);\n    v13 = ((float (__fastcall *)(cocos2d::CCNode *))a2->getScaleY)(a2);\n    sub_100022988((float *)&v16, v11, v12 * v13);\n    ((void (__fastcall *)(CCMenuItemSpriteExtra *, int *))a1->setContentSize)(a1, &v16);\n    v14 = (cocos2d::CCNode *)((__int64 (__fastcall *)(cocos2d::CCNode *))a2->getParent)(a2);\n    v17 = cocos2d::CCNode::convertToNodeSpace(v14, &stru_10086CA50);\n    ((void (__fastcall *)(cocos2d::CCNode *, int *, float, float))a2->setPosition)(a2, &v16, v17.x, v17.y);\n    a1->m_animationEnabled = 1;\n    a1->m_scaleMultiplier = 1.26;\n  }\n  return v7;\n}", "assembly": "; \n; CCMenuItemSpriteExtra::init from 0x1002137d0 to 0x10021390c (316 bytes)\n; \n; 3 xrefs:\n; > InfoAlertButton::init @ 0x10016b3e8\n; > CCMenuItemSpriteExtra::create @ 0x10021377c\n; > CreateMenuItem::create @ 0x1003e73d8\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\nSUB             SP, SP, #0x50                                          ; +0x0, 0x1002137d0\nSTP             D9, D8, [SP,#0x40+var_30]                              ; +0x4, 0x1002137d4\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x1002137d8\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x1002137dc\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x1002137e0\nADD             X29, SP, #0x40                                         ; +0x14, 0x1002137e4\nMOV             X6, X5                                                 ; +0x18, 0x1002137e8\nMOV             X5, X4                                                 ; +0x1c, 0x1002137ec\nMOV             X4, X3                                                 ; +0x20, 0x1002137f0\nMOV             X20, X1                                                ; +0x24, 0x1002137f4\nMOV             X19, X0                                                ; +0x28, 0x1002137f8\nMOV             X3, #0                                                 ; +0x2c, 0x1002137fc\nBL              cocos2d__CCMenuItemSprite__initWithNormalSprite        ; +0x30, 0x100213800\nMOV             X21, X0                                                ; +0x34, 0x100213804\nCBZ             W0, loc_1002138F0                                      ; +0x38, 0x100213808\nMOV             W8, #0x3F800000                                        ; +0x3c, 0x10021380c\nSTR             W8, [X19,#0x194]                                       ; +0x40, 0x100213810\nADD             X0, SP, #0x40+var_38                                   ; +0x44, 0x100213814\nFMOV            S0, #0.5                                               ; +0x48, 0x100213818\nFMOV            S1, #0.5                                               ; +0x4c, 0x10021381c\nBL              sub_100022980                                          ; +0x50, 0x100213820\nLDR             X8, [X20]                                              ; +0x54, 0x100213824\nLDR             X8, [X8,#0x118]                                        ; +0x58, 0x100213828\nADD             X1, SP, #0x40+var_38                                   ; +0x5c, 0x10021382c\nMOV             X0, X20                                                ; +0x60, 0x100213830\nBLR             X8                                                     ; +0x64, 0x100213834\nLDR             X8, [X20]                                              ; +0x68, 0x100213838\nLDR             X8, [X8,#0x138]                                        ; +0x6c, 0x10021383c\nMOV             X0, X20                                                ; +0x70, 0x100213840\nBLR             X8                                                     ; +0x74, 0x100213844\nLDR             S8, [X0]                                               ; +0x78, 0x100213848\nLDR             X8, [X20]                                              ; +0x7c, 0x10021384c\nLDR             X8, [X8,#0x88]                                         ; +0x80, 0x100213850\nMOV             X0, X20                                                ; +0x84, 0x100213854\nBLR             X8                                                     ; +0x88, 0x100213858\nFMUL            S8, S8, S0                                             ; +0x8c, 0x10021385c\nLDR             X8, [X20]                                              ; +0x90, 0x100213860\nLDR             X8, [X8,#0x138]                                        ; +0x94, 0x100213864\nMOV             X0, X20                                                ; +0x98, 0x100213868\nBLR             X8                                                     ; +0x9c, 0x10021386c\nLDR             S9, [X0,#4]                                            ; +0xa0, 0x100213870\nLDR             X8, [X20]                                              ; +0xa4, 0x100213874\nLDR             X8, [X8,#0x98]                                         ; +0xa8, 0x100213878\nMOV             X0, X20                                                ; +0xac, 0x10021387c\nBLR             X8                                                     ; +0xb0, 0x100213880\nFMUL            S1, S9, S0                                             ; +0xb4, 0x100213884\nADD             X0, SP, #0x40+var_38                                   ; +0xb8, 0x100213888\nFMOV            S0, S8                                                 ; +0xbc, 0x10021388c\nBL              sub_100022988                                          ; +0xc0, 0x100213890\nLDR             X8, [X19]                                              ; +0xc4, 0x100213894\nLDR             X8, [X8,#0x130]                                        ; +0xc8, 0x100213898\nADD             X1, SP, #0x40+var_38                                   ; +0xcc, 0x10021389c\nMOV             X0, X19                                                ; +0xd0, 0x1002138a0\nBLR             X8                                                     ; +0xd4, 0x1002138a4\nLDR             X8, [X20]                                              ; +0xd8, 0x1002138a8\nLDR             X8, [X8,#0x1F0]                                        ; +0xdc, 0x1002138ac\nMOV             X0, X20                                                ; +0xe0, 0x1002138b0\nBLR             X8                                                     ; +0xe4, 0x1002138b4\nADRL            X1, stru_10086CA50                                     ; +0xe8, 0x1002138b8\nADD             X8, SP, #0x40+var_38                                   ; +0xf0, 0x1002138c0\nBL              cocos2d__CCNode__convertToNodeSpace                    ; +0xf4, 0x1002138c4\nLDR             X8, [X20]                                              ; +0xf8, 0x1002138c8\nLDR             X8, [X8,#0xB8]                                         ; +0xfc, 0x1002138cc\nADD             X1, SP, #0x40+var_38                                   ; +0x100, 0x1002138d0\nMOV             X0, X20                                                ; +0x104, 0x1002138d4\nBLR             X8                                                     ; +0x108, 0x1002138d8\nMOV             W8, #1                                                 ; +0x10c, 0x1002138dc\nSTRB            W8, [X19,#0x198]                                       ; +0x110, 0x1002138e0\nMOV             W8, #0x3FA147AE                                        ; +0x114, 0x1002138e4\nSTR             W8, [X19,#0x190]                                       ; +0x11c, 0x1002138ec\nMOV             X0, X21                                                ; +0x120, 0x1002138f0\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x124, 0x1002138f4\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x128, 0x1002138f8\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x12c, 0x1002138fc\nLDP             D9, D8, [SP,#0x40+var_30]                              ; +0x130, 0x100213900\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x134, 0x100213904\nRET                                                                    ; +0x138, 0x100213908", "xrefs": ["InfoAlertButton::init @ 0x10016b3e8", "CCMenuItemSpriteExtra::create @ 0x10021377c", "CreateMenuItem::create @ 0x1003e73d8"], "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"}