{"type": "func", "start": 4035176, "end": 4035348, "name": "ButtonPage::create", "pseudocode": "// \n// ButtonPage::create from 0x3d9268 to 0x3d9314 (172 bytes)\n// \n// 1 xrefs:\n// > EditButtonBar::loadFromItems @ 0x3d94f8\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\nButtonPage *ButtonPage::create(cocos2d::CCArray *a1, cocos2d::CCPoint a2, int a3, float a4)\n{\n  float x; // r9\n  float y; // r6\n  ButtonPage *v8; // r4\n  cocos2d::CCPoint v9; // r2\n  ButtonPage_vtbl *v10; // r3\n  ButtonPage *v11; // r0\n  float v13; // [sp+4h] [bp-14h]\n  cocos2d::CCPoint v14; // [sp+Ch] [bp-Ch] BYREF\n\n  x = a2.x;\n  y = a2.y;\n  v8 = (ButtonPage *)operator new(0x13Cu);\n  cocos2d::CCLayer::CCLayer(v8);\n  v8->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (ButtonPage_vtbl *)&off_A51368;\n  v8->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A515A8;\n  v8->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A515E0;\n  v8->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A515EC;\n  v8->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A515FC;\n  v8->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A5160C;\n  cocos2d::CCPoint::CCPoint(&v14, (const cocos2d::CCPoint *)LODWORD(x));\n  LODWORD(v9.x) = &v14;\n  v9.y = y;\n  if ( ButtonPage::init(v8, a1, v9, a3, v13) )\n  {\n    cocos2d::CCObject::autorelease(v8);\n  }\n  else\n  {\n    v10 = v8->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v11 = v8;\n    v8 = nullptr;\n    v10->~ButtonPage_0(v11);\n  }\n  return v8;\n}", "assembly": "; \n; ButtonPage::create from 0x3d9268 to 0x3d9314 (172 bytes)\n; \n; 1 xrefs:\n; > EditButtonBar::loadFromItems @ 0x3d94f8\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\nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x3d9268\nMOV             R8, R3                                                 ; +0x4, 0x3d926c\nLDR             R5, =(__stack_chk_guard_ptr - 0x3D927C)                ; +0x6, 0x3d926e\nSUB             SP, SP, #0x18                                          ; +0x8, 0x3d9270\nMOV             R7, R0                                                 ; +0xa, 0x3d9272\nMOV.W           R0, #0x13C; unsigned int                               ; +0xc, 0x3d9274\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x10, 0x3d9278\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x12, 0x3d927a\nMOV             R9, R1                                                 ; +0x14, 0x3d927c\nMOV             R6, R2                                                 ; +0x16, 0x3d927e\nLDR             R3, [R5]                                               ; +0x18, 0x3d9280\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x1a, 0x3d9282\nBL              _Znwj; operator new(uint)                              ; +0x1c, 0x3d9284\nMOV             R4, R0                                                 ; +0x20, 0x3d9288\nBL              _ZN7cocos2d7CCLayerC2Ev; cocos2d::CCLayer::CCLayer(void) ; +0x22, 0x3d928a\nLDR             R3, =(_ZTV10ButtonPage_ptr - 0x3D929A)                 ; +0x26, 0x3d928e\nADD.W           R10, SP, #0x18+var_C                                   ; +0x28, 0x3d9290\nMOV             R1, R9; cocos2d::CCPoint *                             ; +0x2c, 0x3d9294\nADD             R3, PC; _ZTV10ButtonPage_ptr                           ; +0x2e, 0x3d9296\nLDR             R3, [R3]; `vtable for'ButtonPage ...                   ; +0x30, 0x3d9298\nMOV             R0, R10; this                                          ; +0x32, 0x3d929a\nADD.W           R2, R3, #8                                             ; +0x34, 0x3d929c\nSTR             R2, [R4]                                               ; +0x38, 0x3d92a0\nADD.W           R2, R3, #0x248                                         ; +0x3a, 0x3d92a2\nSTR.W           R2, [R4,#0x108]                                        ; +0x3e, 0x3d92a6\nADD.W           R2, R3, #0x280                                         ; +0x42, 0x3d92aa\nSTR.W           R2, [R4,#0x10C]                                        ; +0x46, 0x3d92ae\nADD.W           R2, R3, #0x28C                                         ; +0x4a, 0x3d92b2\nSTR.W           R2, [R4,#0x110]                                        ; +0x4e, 0x3d92b6\nADD.W           R2, R3, #0x29C                                         ; +0x52, 0x3d92ba\nADD.W           R3, R3, #0x2AC                                         ; +0x56, 0x3d92be\nSTR.W           R2, [R4,#0x114]                                        ; +0x5a, 0x3d92c2\nSTR.W           R3, [R4,#0x118]                                        ; +0x5e, 0x3d92c6\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x62, 0x3d92ca\nSTR.W           R8, [SP,#0x18+var_18]                                  ; +0x66, 0x3d92ce\nMOV             R0, R4                                                 ; +0x6a, 0x3d92d2\nMOV             R1, R7                                                 ; +0x6c, 0x3d92d4\nMOV             R2, R10                                                ; +0x6e, 0x3d92d6\nMOV             R3, R6                                                 ; +0x70, 0x3d92d8\nBL              _ZN10ButtonPage4initEPN7cocos2d7CCArrayENS0_7CCPointEif; ButtonPage::init(cocos2d::CCArray *,cocos2d::CCPoint,int,float) ; +0x72, 0x3d92da\nMOV             R6, R0                                                 ; +0x76, 0x3d92de\nCBZ             R0, loc_3D92EC                                         ; +0x78, 0x3d92e0\nMOV             R0, R4; this                                           ; +0x7a, 0x3d92e2\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x7c, 0x3d92e4\nB               loc_3D92F6                                             ; +0x80, 0x3d92e8\nB               loc_3D930A                                             ; +0x82, 0x3d92ea\nLDR             R3, [R4]                                               ; +0x84, 0x3d92ec\nMOV             R0, R4                                                 ; +0x86, 0x3d92ee\nMOV             R4, R6                                                 ; +0x88, 0x3d92f0\nLDR             R3, [R3,#8]                                            ; +0x8a, 0x3d92f2\nBLX             R3                                                     ; +0x8c, 0x3d92f4\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x8e, 0x3d92f6\nMOV             R0, R4                                                 ; +0x90, 0x3d92f8\nLDR             R3, [R5]                                               ; +0x92, 0x3d92fa\nCMP             R2, R3                                                 ; +0x94, 0x3d92fc\nBEQ             loc_3D930E                                             ; +0x96, 0x3d92fe\nBLX             __stack_chk_fail                                       ; +0x98, 0x3d9300\nMOV             R0, R4; p                                              ; +0x9c, 0x3d9304\nBL              _ZdlPv; operator delete(void *)                        ; +0x9e, 0x3d9306\nBL              __cxa_end_cleanup                                      ; +0xa2, 0x3d930a\nADD             SP, SP, #0x18                                          ; +0xa6, 0x3d930e\nPOP.W           {R4-R10,PC}                                            ; +0xa8, 0x3d9310", "xrefs": ["EditButtonBar::loadFromItems @ 0x3d94f8"], "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"}