{"type": "func", "start": 7580976, "end": 7581264, "name": "ButtonPage::create", "pseudocode": "// \n// ButtonPage::create from 0x73ad30 to 0x73ae50 (288 bytes)\n// \n// 2 xrefs:\n// > EditButtonBar::loadFromItems @ 0x73b0b8\n// > <???> @ 0xc8478\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\n// local variable allocation has failed, the output may be wrong!\nButtonPage *ButtonPage::create(cocos2d::CCArray *a1, cocos2d::CCPoint a2, int a3, float a4)\n{\n  const cocos2d::CCPoint *v4; // x23\n  float x; // s8\n  ButtonPage *v7; // x19\n  float v8; // s2\n  ButtonPage_vtbl *v9; // x1\n  ButtonPage *v10; // x0\n  cocos2d::CCPoint v12; // [xsp+50h] [xbp+50h] BYREF\n  cocos2d::CCPoint v13; // 0:s0.4,4:s1.4\n\n  v4 = *(const cocos2d::CCPoint **)&a3;\n  x = a2.x;\n  v7 = (ButtonPage *)operator new(0x198u);\n  cocos2d::CCLayer::CCLayer(v7);\n  v7->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (ButtonPage_vtbl *)&off_1160320;\n  v7->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_11607A0;\n  v7->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_1160868;\n  v7->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_1160810;\n  v7->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_1160828;\n  v7->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_1160848;\n  cocos2d::CCPoint::CCPoint(&v12, v4);\n  v13.x = x;\n  if ( ButtonPage::init(v7, a1, v13, (int)&v12, v8) )\n  {\n    cocos2d::CCObject::autorelease(v7);\n  }\n  else\n  {\n    v9 = v7->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v10 = v7;\n    v7 = nullptr;\n    v9->~ButtonPage_0(v10);\n  }\n  return v7;\n}", "assembly": "; \n; ButtonPage::create from 0x73ad30 to 0x73ae50 (288 bytes)\n; \n; 2 xrefs:\n; > EditButtonBar::loadFromItems @ 0x73b0b8\n; > <???> @ 0xc8478\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, 0x73ad30\nMOV             X29, SP                                                ; +0x4, 0x73ad34\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x73ad38\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x73ad3c\nSTR             X23, [SP,#0x60+var_30]                                 ; +0x10, 0x73ad40\nMOV             X23, X1                                                ; +0x14, 0x73ad44\nSTR             D8, [SP,#0x60+var_28]                                  ; +0x18, 0x73ad48\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x73ad4c\nFMOV            S8, S0                                                 ; +0x20, 0x73ad50\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x24, 0x73ad54\nLDR             X1, [X1]                                               ; +0x28, 0x73ad58\nMOV             X22, X0                                                ; +0x2c, 0x73ad5c\nMOV             X0, #0x198; unsigned __int64                           ; +0x30, 0x73ad60\nMOV             W21, W2                                                ; +0x34, 0x73ad64\nSTR             X1, [X29,#0x60+var_8]                                  ; +0x38, 0x73ad68\nBL              _Znwm; operator new(ulong)                             ; +0x3c, 0x73ad6c\nMOV             X19, X0                                                ; +0x40, 0x73ad70\nBL              _ZN7cocos2d7CCLayerC2Ev; cocos2d::CCLayer::CCLayer(void) ; +0x44, 0x73ad74\nADRP            X3, #_ZTV10ButtonPage_ptr@PAGE                         ; +0x48, 0x73ad78\nADD             X2, X29, #0x60+var_10                                  ; +0x4c, 0x73ad7c\nMOV             X0, X2; this                                           ; +0x50, 0x73ad80\nMOV             X1, X23; cocos2d::CCPoint *                            ; +0x54, 0x73ad84\nSTR             X2, [X29,#0x60+var_18]                                 ; +0x58, 0x73ad88\nLDR             X3, [X3,#_ZTV10ButtonPage_ptr@PAGEOFF]; `vtable for'ButtonPage ... ; +0x5c, 0x73ad8c\nADD             X8, X3, #0x10                                          ; +0x60, 0x73ad90\nADD             X7, X3, #0x490                                         ; +0x64, 0x73ad94\nADD             X6, X3, #0x500                                         ; +0x68, 0x73ad98\nADD             X5, X3, #0x518                                         ; +0x6c, 0x73ad9c\nADD             X4, X3, #0x538                                         ; +0x70, 0x73ada0\nSTR             X8, [X19]                                              ; +0x74, 0x73ada4\nADD             X3, X3, #0x558                                         ; +0x78, 0x73ada8\nSTR             X7, [X19,#0x140]                                       ; +0x7c, 0x73adac\nSTR             X3, [X19,#0x160]                                       ; +0x80, 0x73adb0\nSTR             X6, [X19,#0x148]                                       ; +0x84, 0x73adb4\nSTR             X5, [X19,#0x150]                                       ; +0x88, 0x73adb8\nSTR             X4, [X19,#0x158]                                       ; +0x8c, 0x73adbc\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x90, 0x73adc0\nFMOV            S0, S8                                                 ; +0x94, 0x73adc4\nLDR             X2, [X29,#0x60+var_18]                                 ; +0x98, 0x73adc8\nMOV             X0, X19                                                ; +0x9c, 0x73adcc\nMOV             X1, X22                                                ; +0xa0, 0x73add0\nMOV             W3, W21                                                ; +0xa4, 0x73add4\nBL              _ZN10ButtonPage4initEPN7cocos2d7CCArrayENS0_7CCPointEif; ButtonPage::init(cocos2d::CCArray *,cocos2d::CCPoint,int,float) ; +0xa8, 0x73add8\nUXTB            W0, W0                                                 ; +0xac, 0x73addc\nCBNZ            W0, loc_73AE28                                         ; +0xb0, 0x73ade0\nLDR             X1, [X19]                                              ; +0xb4, 0x73ade4\nMOV             X0, X19                                                ; +0xb8, 0x73ade8\nMOV             X19, #0                                                ; +0xbc, 0x73adec\nLDR             X1, [X1,#0x10]                                         ; +0xc0, 0x73adf0\nBLR             X1                                                     ; +0xc4, 0x73adf4\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xc8, 0x73adf8\nMOV             X0, X19                                                ; +0xcc, 0x73adfc\nLDR             X2, [X29,#0x60+var_8]                                  ; +0xd0, 0x73ae00\nLDR             X1, [X20]                                              ; +0xd4, 0x73ae04\nCMP             X2, X1                                                 ; +0xd8, 0x73ae08\nB.NE            loc_73AE34                                             ; +0xdc, 0x73ae0c\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0xe0, 0x73ae10\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0xe4, 0x73ae14\nLDR             X23, [SP,#0x60+var_30]                                 ; +0xe8, 0x73ae18\nLDR             D8, [SP,#0x60+var_28]                                  ; +0xec, 0x73ae1c\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0xf0, 0x73ae20\nRET                                                                    ; +0xf4, 0x73ae24\nMOV             X0, X19; this                                          ; +0xf8, 0x73ae28\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0xfc, 0x73ae2c\nB               loc_73ADF8                                             ; +0x100, 0x73ae30\nBL              .__stack_chk_fail                                      ; +0x104, 0x73ae34\nBL              _Unwind_Resume                                         ; +0x108, 0x73ae38\nMOV             X20, X0                                                ; +0x10c, 0x73ae3c\nMOV             X0, X19; p                                             ; +0x110, 0x73ae40\nBL              _ZdlPv; operator delete(void *)                        ; +0x114, 0x73ae44\nMOV             X0, X20                                                ; +0x118, 0x73ae48\nB               loc_73AE38                                             ; +0x11c, 0x73ae4c", "xrefs": ["EditButtonBar::loadFromItems @ 0x73b0b8", "<???> @ 0xc8478"], "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"}