{"type": "func", "start": 4301136816, "end": 4301137031, "name": "ButtonPage::create", "pseudocode": "// \n// ButtonPage::create from 0x1005e23b0 to 0x1005e2487 (215 bytes)\n// \n// 1 xrefs:\n// > EditButtonBar::loadFromItems @ 0x1005e20bb\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 *__fastcall ButtonPage::create(cocos2d::CCArray *a1, cocos2d::CCPoint a2, int a3, float a4)\n{\n  ButtonPage *v4; // rbx\n  __int64 v6; // [rsp+Ch] [rbp-34h] BYREF\n  float x; // [rsp+14h] [rbp-2Ch]\n\n  x = a2.x;\n  v4 = (ButtonPage *)operator new(0x198u);\n  cocos2d::CCLayer::CCLayer((__int64)v4);\n  v4->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (ButtonPage_vtbl *)off_100976768;\n  v4->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_100976BE8;\n  v4->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_100976C58;\n  v4->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_100976C70;\n  v4->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)off_100976C90;\n  v4->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_100976CB0;\n  sub_10028CC60(&v6, *(double **)&a3);\n  if ( ButtonPage::init(v4, a1, (cocos2d::CCPoint)LODWORD(x), (int)&v6, a4) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n  }\n  else\n  {\n    ((void (__fastcall *)(ButtonPage *))v4->~ButtonPage_0)(v4);\n    return nullptr;\n  }\n  return v4;\n}", "assembly": "; \n; ButtonPage::create from 0x1005e23b0 to 0x1005e2487 (215 bytes)\n; \n; 1 xrefs:\n; > EditButtonBar::loadFromItems @ 0x1005e20bb\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    rbp                                                            ; +0x0, 0x1005e23b0\nmov     rbp, rsp                                                       ; +0x1, 0x1005e23b1\npush    r15                                                            ; +0x4, 0x1005e23b4\npush    r14                                                            ; +0x6, 0x1005e23b6\npush    r13                                                            ; +0x8, 0x1005e23b8\npush    r12                                                            ; +0xa, 0x1005e23ba\npush    rbx                                                            ; +0xc, 0x1005e23bc\nsub     rsp, 18h                                                       ; +0xd, 0x1005e23bd\nmovss   [rbp+var_2C], xmm0                                             ; +0x11, 0x1005e23c1\nmov     r14d, edx                                                      ; +0x16, 0x1005e23c6\nmov     r12, rsi                                                       ; +0x19, 0x1005e23c9\nmov     r15, rdi                                                       ; +0x1c, 0x1005e23cc\nmov     edi, 198h; __sz                                                ; +0x1f, 0x1005e23cf\ncall    __Znwm; operator new(ulong)                                    ; +0x24, 0x1005e23d4\nmov     rbx, rax                                                       ; +0x29, 0x1005e23d9\nmov     rdi, rax                                                       ; +0x2c, 0x1005e23dc\ncall    cocos2d__CCLayer__CCLayer                                      ; +0x2f, 0x1005e23df\nlea     rax, _ZTV10ButtonPage; `vtable for'ButtonPage                  ; +0x34, 0x1005e23e4\nlea     rcx, [rax+10h]                                                 ; +0x3b, 0x1005e23eb\nmov     [rbx], rcx                                                     ; +0x3f, 0x1005e23ef\nlea     rcx, [rax+490h]                                                ; +0x42, 0x1005e23f2\nmov     [rbx+140h], rcx                                                ; +0x49, 0x1005e23f9\nlea     rcx, [rax+500h]                                                ; +0x50, 0x1005e2400\nmov     [rbx+148h], rcx                                                ; +0x57, 0x1005e2407\nlea     rcx, [rax+518h]                                                ; +0x5e, 0x1005e240e\nmov     [rbx+150h], rcx                                                ; +0x65, 0x1005e2415\nlea     rcx, [rax+538h]                                                ; +0x6c, 0x1005e241c\nmov     [rbx+158h], rcx                                                ; +0x73, 0x1005e2423\nadd     rax, 558h                                                      ; +0x7a, 0x1005e242a\nmov     [rbx+160h], rax                                                ; +0x80, 0x1005e2430\nlea     r13, [rbp+var_34]                                              ; +0x87, 0x1005e2437\nmov     rdi, r13                                                       ; +0x8b, 0x1005e243b\nmov     rsi, r12                                                       ; +0x8e, 0x1005e243e\ncall    sub_10028CC60                                                  ; +0x91, 0x1005e2441\nmov     rdi, rbx                                                       ; +0x96, 0x1005e2446\nmov     rsi, r15                                                       ; +0x99, 0x1005e2449\nmov     rdx, r13                                                       ; +0x9c, 0x1005e244c\nmov     ecx, r14d                                                      ; +0x9f, 0x1005e244f\nmovss   xmm0, [rbp+var_2C]                                             ; +0xa2, 0x1005e2452\ncall    ButtonPage__init                                               ; +0xa7, 0x1005e2457\ntest    al, al                                                         ; +0xac, 0x1005e245c\njz      short loc_1005E246A                                            ; +0xae, 0x1005e245e\nmov     rdi, rbx                                                       ; +0xb0, 0x1005e2460\ncall    cocos2d__CCObject__autorelease                                 ; +0xb3, 0x1005e2463\njmp     short loc_1005E2475                                            ; +0xb8, 0x1005e2468\nmov     rax, [rbx]                                                     ; +0xba, 0x1005e246a\nmov     rdi, rbx                                                       ; +0xbd, 0x1005e246d\ncall    qword ptr [rax+10h]                                            ; +0xc0, 0x1005e2470\nxor     ebx, ebx                                                       ; +0xc3, 0x1005e2473\nmov     rax, rbx                                                       ; +0xc5, 0x1005e2475\nadd     rsp, 18h                                                       ; +0xc8, 0x1005e2478\npop     rbx                                                            ; +0xcc, 0x1005e247c\npop     r12                                                            ; +0xcd, 0x1005e247d\npop     r13                                                            ; +0xcf, 0x1005e247f\npop     r14                                                            ; +0xd1, 0x1005e2481\npop     r15                                                            ; +0xd3, 0x1005e2483\npop     rbp                                                            ; +0xd5, 0x1005e2485\nretn                                                                   ; +0xd6, 0x1005e2486", "xrefs": ["EditButtonBar::loadFromItems @ 0x1005e20bb"], "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"}