{"type": "func", "start": 5369148544, "end": 5369149254, "name": "ListButtonPage::create", "pseudocode": "// \n// ListButtonPage::create from 0x14006b480 to 0x14006b746 (710 bytes)\n// \n// 2 xrefs:\n// > ListButtonBar::init @ 0x14006b06e\n// > <???> @ 0x1406c5fd0\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// Hidden C++ exception states: #wind=1\nListButtonPage *ListButtonPage::create(\n        cocos2d::CCArray *a1,\n        cocos2d::CCPoint a2,\n        int a3,\n        int a4,\n        float a5,\n        float a6,\n        float a7)\n{\n  ListButtonPage *v11; // r14\n  float *v12; // rbx\n  __int64 v13; // rcx\n  cocos2d::CCNode *v15; // r13\n  float v16; // xmm7_4\n  float v17; // xmm10_4\n  int v18; // edi\n  unsigned int i; // esi\n  int v20; // ebx\n  float v21; // xmm0_4\n  struct cocos2d::CCObject *v22; // r15\n  cocos2d::CCObject_vtbl *v23; // rbx\n  struct cocos2d::CCPoint v24; // rax\n  ListButtonPage *v25; // [rsp+20h] [rbp-C8h] BYREF\n  cocos2d::CCPoint v26; // [rsp+28h] [rbp-C0h] BYREF\n  struct cocos2d::CCPoint v27; // [rsp+30h] [rbp-B8h] BYREF\n\n  v11 = (ListButtonPage *)operator new(0x198u);\n  v25 = v11;\n  cocos2d::CCLayer::CCLayer(v11);\n  v11->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (ListButtonPage_vtbl *)&ListButtonPage::`vftable';\n  v11->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&ListButtonPage::`vftable';\n  v11->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&ListButtonPage::`vftable';\n  v11->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&ListButtonPage::`vftable';\n  v11->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&ListButtonPage::`vftable';\n  v11->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&ListButtonPage::`vftable';\n  v12 = (float *)cocos2d::CCPoint::CCPoint(&v26, *(const struct cocos2d::CCPoint **)&a2);\n  if ( cocos2d::CCLayer::init(v11) )\n  {\n    v15 = (cocos2d::CCNode *)cocos2d::CCMenu::create(v13);\n    v11->addChild_1(v11, v15);\n    v16 = (float)((float)((float)(a4 - 1) * 0.5) * (float)(a6 + a7)) + v12[1];\n    v17 = (float)(*v12 - (float)((float)((float)a3 * 0.5) * a7)) - (float)((float)((float)(a3 - 1) * 0.5) * a5);\n    v18 = 0;\n    for ( i = 0; i < cocos2d::CCArray::count(a1); ++i )\n    {\n      v20 = v18 % a3;\n      v21 = floorf((float)v18 / (float)a3);\n      v22 = cocos2d::CCArray::objectAtIndex(a1, i);\n      if ( v22->getTag(v22) == -2 )\n      {\n        v18 += a3 - v20;\n      }\n      else\n      {\n        v15->addChild_1(v15, (cocos2d::CCNode *)v22);\n        cocos2d::CCPoint::CCPoint(\n          (cocos2d::CCPoint *)&v25,\n          (float)((float)(a5 + a7) * (float)v20) + (float)((float)(a7 * 0.5) + v17),\n          v16 - (float)((float)(int)v21 * (float)(a6 + a7)));\n        v23 = v22->__vftable;\n        v24 = cocos2d::CCNode::convertToNodeSpace(v15, &v27);\n        ((void (__fastcall *)(struct cocos2d::CCObject *, struct cocos2d::CCPoint))v23[2].encodeWithCoder)(v22, v24);\n        ++v18;\n      }\n    }\n    cocos2d::CCObject::autorelease(v11);\n    return v11;\n  }\n  else\n  {\n    ((void (__fastcall *)(ListButtonPage *, __int64))v11->~ListButtonPage)(v11, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; ListButtonPage::create from 0x14006b480 to 0x14006b746 (710 bytes)\n; \n; 2 xrefs:\n; > ListButtonBar::init @ 0x14006b06e\n; > <???> @ 0x1406c5fd0\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\nmov     rax, rsp                                                       ; +0x0, 0x14006b480\nmov     [rax+8], rbx                                                   ; +0x3, 0x14006b483\nmov     [rax+10h], rbp                                                 ; +0x7, 0x14006b487\nmov     [rax+18h], rsi                                                 ; +0xb, 0x14006b48b\npush    rdi                                                            ; +0xf, 0x14006b48f\npush    r12                                                            ; +0x10, 0x14006b490\npush    r13                                                            ; +0x12, 0x14006b492\npush    r14                                                            ; +0x14, 0x14006b494\npush    r15                                                            ; +0x16, 0x14006b496\nsub     rsp, 0C0h                                                      ; +0x18, 0x14006b498\nmovaps  xmmword ptr [rax-38h], xmm6                                    ; +0x1f, 0x14006b49f\nmovaps  xmmword ptr [rax-48h], xmm7                                    ; +0x23, 0x14006b4a3\nmovaps  xmmword ptr [rax-58h], xmm8                                    ; +0x27, 0x14006b4a7\nmovaps  xmmword ptr [rax-68h], xmm9                                    ; +0x2c, 0x14006b4ac\nmovaps  xmmword ptr [rax-78h], xmm10                                   ; +0x31, 0x14006b4b1\nmovaps  [rsp+0E8h+var_88], xmm11                                       ; +0x36, 0x14006b4b6\nmovaps  [rsp+0E8h+var_98], xmm12                                       ; +0x3c, 0x14006b4bc\nmovaps  [rsp+0E8h+var_A8], xmm13                                       ; +0x42, 0x14006b4c2\nmov     edi, r9d                                                       ; +0x48, 0x14006b4c8\nmov     ebp, r8d                                                       ; +0x4b, 0x14006b4cb\nmov     rbx, rdx                                                       ; +0x4e, 0x14006b4ce\nmov     r12, rcx                                                       ; +0x51, 0x14006b4d1\nmov     ecx, 198h; Size                                                ; +0x54, 0x14006b4d4\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x59, 0x14006b4d9\nmov     r14, rax                                                       ; +0x5e, 0x14006b4de\nmov     [rsp+0E8h+var_C8], rax                                         ; +0x61, 0x14006b4e1\nmov     rcx, rax                                                       ; +0x66, 0x14006b4e6\ncall    cs:??0CCLayer@cocos2d@@QEAA@XZ; cocos2d::CCLayer::CCLayer(void) ; +0x69, 0x14006b4e9\nlea     rax, ??_7ListButtonPage@@6B@; const ListButtonPage::`vftable'  ; +0x6f, 0x14006b4ef\nmov     [r14], rax                                                     ; +0x76, 0x14006b4f6\nlea     rax, ??_7ListButtonPage@@6B@_0; const ListButtonPage::`vftable' ; +0x79, 0x14006b4f9\nmov     [r14+140h], rax                                                ; +0x80, 0x14006b500\nlea     rax, ??_7ListButtonPage@@6B@_1; const ListButtonPage::`vftable' ; +0x87, 0x14006b507\nmov     [r14+148h], rax                                                ; +0x8e, 0x14006b50e\nlea     rax, ??_7ListButtonPage@@6B@_2; const ListButtonPage::`vftable' ; +0x95, 0x14006b515\nmov     [r14+150h], rax                                                ; +0x9c, 0x14006b51c\nlea     rax, ??_7ListButtonPage@@6B@_3; const ListButtonPage::`vftable' ; +0xa3, 0x14006b523\nmov     [r14+158h], rax                                                ; +0xaa, 0x14006b52a\nlea     rax, ??_7ListButtonPage@@6B@_4; const ListButtonPage::`vftable' ; +0xb1, 0x14006b531\nmov     [r14+160h], rax                                                ; +0xb8, 0x14006b538\nmov     rdx, rbx                                                       ; +0xbf, 0x14006b53f\nlea     rcx, [rsp+0E8h+var_C0]                                         ; +0xc2, 0x14006b542\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xc7, 0x14006b547\nmov     rbx, rax                                                       ; +0xcd, 0x14006b54d\nmov     rcx, r14                                                       ; +0xd0, 0x14006b550\ncall    cs:__imp_?init@CCLayer@cocos2d@@UEAA_NXZ; cocos2d::CCLayer::init(void) ; +0xd3, 0x14006b553\ntest    al, al                                                         ; +0xd9, 0x14006b559\njnz     short loc_14006B574                                            ; +0xdb, 0x14006b55b\nmov     rax, [r14]                                                     ; +0xdd, 0x14006b55d\nmov     edx, 1                                                         ; +0xe0, 0x14006b560\nmov     rcx, r14                                                       ; +0xe5, 0x14006b565\ncall    qword ptr [rax+8]                                              ; +0xe8, 0x14006b568\nxor     edi, edi                                                       ; +0xeb, 0x14006b56b\nmov     eax, edi                                                       ; +0xed, 0x14006b56d\njmp     loc_14006B6FD                                                  ; +0xef, 0x14006b56f\ncall    cs:?create@CCMenu@cocos2d@@SAPEAV12@XZ; cocos2d::CCMenu::create(void) ; +0xf4, 0x14006b574\nmov     r13, rax                                                       ; +0xfa, 0x14006b57a\nmov     rax, [r14]                                                     ; +0xfd, 0x14006b57d\nmov     rdx, r13                                                       ; +0x100, 0x14006b580\nmov     rcx, r14                                                       ; +0x103, 0x14006b583\ncall    qword ptr [rax+1C0h]                                           ; +0x106, 0x14006b586\nmovss   xmm11, [rsp+0E8h+arg_28]                                       ; +0x10c, 0x14006b58c\nmovss   xmm9, [rsp+0E8h+arg_30]                                        ; +0x116, 0x14006b596\naddss   xmm11, xmm9                                                    ; +0x120, 0x14006b5a0\nlea     eax, [rdi-1]                                                   ; +0x125, 0x14006b5a5\nmovd    xmm7, eax                                                      ; +0x128, 0x14006b5a8\ncvtdq2ps xmm7, xmm7                                                    ; +0x12c, 0x14006b5ac\nmovss   xmm12, cs:dword_140622B08                                      ; +0x12f, 0x14006b5af\nmulss   xmm7, xmm12                                                    ; +0x138, 0x14006b5b8\nmulss   xmm7, xmm11                                                    ; +0x13d, 0x14006b5bd\naddss   xmm7, dword ptr [rbx+4]                                        ; +0x142, 0x14006b5c2\nmovd    xmm8, ebp                                                      ; +0x147, 0x14006b5c7\ncvtdq2ps xmm8, xmm8                                                    ; +0x14c, 0x14006b5cc\nmovaps  xmm0, xmm8                                                     ; +0x150, 0x14006b5d0\nmulss   xmm0, xmm12                                                    ; +0x154, 0x14006b5d4\nmulss   xmm0, xmm9                                                     ; +0x159, 0x14006b5d9\nmovss   xmm10, dword ptr [rbx]                                         ; +0x15e, 0x14006b5de\nsubss   xmm10, xmm0                                                    ; +0x163, 0x14006b5e3\nlea     eax, [rbp-1]                                                   ; +0x168, 0x14006b5e8\nmovd    xmm1, eax                                                      ; +0x16b, 0x14006b5eb\ncvtdq2ps xmm1, xmm1                                                    ; +0x16f, 0x14006b5ef\nmulss   xmm1, xmm12                                                    ; +0x172, 0x14006b5f2\nmovss   xmm13, [rsp+0E8h+arg_20]                                       ; +0x177, 0x14006b5f7\nmulss   xmm1, xmm13                                                    ; +0x181, 0x14006b601\nsubss   xmm10, xmm1                                                    ; +0x186, 0x14006b606\nxor     edi, edi                                                       ; +0x18b, 0x14006b60b\nmov     esi, edi                                                       ; +0x18d, 0x14006b60d\nmov     rcx, r12                                                       ; +0x18f, 0x14006b60f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x192, 0x14006b612\ntest    eax, eax                                                       ; +0x198, 0x14006b618\njz      loc_14006B6F1                                                  ; +0x19a, 0x14006b61a\nmov     eax, edi                                                       ; +0x1a0, 0x14006b620\ncdq                                                                    ; +0x1a2, 0x14006b622\nidiv    ebp                                                            ; +0x1a3, 0x14006b623\nmov     ebx, edx                                                       ; +0x1a5, 0x14006b625\nmovd    xmm0, edi                                                      ; +0x1a7, 0x14006b627\ncvtdq2ps xmm0, xmm0                                                    ; +0x1ab, 0x14006b62b\ndivss   xmm0, xmm8; X                                                  ; +0x1ae, 0x14006b62e\ncall    floorf                                                         ; +0x1b3, 0x14006b633\nmovaps  xmm6, xmm0                                                     ; +0x1b8, 0x14006b638\nmov     edx, esi                                                       ; +0x1bb, 0x14006b63b\nmov     rcx, r12                                                       ; +0x1bd, 0x14006b63d\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x1c0, 0x14006b640\nmov     r15, rax                                                       ; +0x1c6, 0x14006b646\nmov     rax, [rax]                                                     ; +0x1c9, 0x14006b649\nmov     rcx, r15                                                       ; +0x1cc, 0x14006b64c\ncall    qword ptr [rax+38h]                                            ; +0x1cf, 0x14006b64f\ncmp     eax, 0FFFFFFFEh                                                ; +0x1d2, 0x14006b652\njnz     short loc_14006B662                                            ; +0x1d5, 0x14006b655\nmov     eax, ebp                                                       ; +0x1d7, 0x14006b657\nsub     eax, ebx                                                       ; +0x1d9, 0x14006b659\nadd     edi, eax                                                       ; +0x1db, 0x14006b65b\njmp     loc_14006B6DE                                                  ; +0x1dd, 0x14006b65d\nmov     rax, [r13+0]                                                   ; +0x1e2, 0x14006b662\nmov     rdx, r15                                                       ; +0x1e6, 0x14006b666\nmov     rcx, r13                                                       ; +0x1e9, 0x14006b669\ncall    qword ptr [rax+1C0h]                                           ; +0x1ec, 0x14006b66c\ncvttss2si eax, xmm6                                                    ; +0x1f2, 0x14006b672\nmovd    xmm0, eax                                                      ; +0x1f6, 0x14006b676\ncvtdq2ps xmm0, xmm0                                                    ; +0x1fa, 0x14006b67a\nmulss   xmm0, xmm11                                                    ; +0x1fd, 0x14006b67d\nmovaps  xmm2, xmm7                                                     ; +0x202, 0x14006b682\nsubss   xmm2, xmm0                                                     ; +0x205, 0x14006b685\nmovaps  xmm1, xmm13                                                    ; +0x209, 0x14006b689\naddss   xmm1, xmm9                                                     ; +0x20d, 0x14006b68d\nmovd    xmm0, ebx                                                      ; +0x212, 0x14006b692\ncvtdq2ps xmm0, xmm0                                                    ; +0x216, 0x14006b696\nmulss   xmm1, xmm0                                                     ; +0x219, 0x14006b699\nmovaps  xmm3, xmm9                                                     ; +0x21d, 0x14006b69d\nmulss   xmm3, xmm12                                                    ; +0x221, 0x14006b6a1\naddss   xmm3, xmm10                                                    ; +0x226, 0x14006b6a6\naddss   xmm1, xmm3                                                     ; +0x22b, 0x14006b6ab\nlea     rcx, [rsp+0E8h+var_C8]                                         ; +0x22f, 0x14006b6af\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x234, 0x14006b6b4\nmov     rbx, [r15]                                                     ; +0x23a, 0x14006b6ba\nlea     r8, [rsp+0E8h+var_C8]                                          ; +0x23d, 0x14006b6bd\nlea     rdx, [rsp+0E8h+var_B8]                                         ; +0x242, 0x14006b6c2\nmov     rcx, r13                                                       ; +0x247, 0x14006b6c7\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x24a, 0x14006b6ca\nmov     rdx, rax                                                       ; +0x250, 0x14006b6d0\nmov     rcx, r15                                                       ; +0x253, 0x14006b6d3\ncall    qword ptr [rbx+0B8h]                                           ; +0x256, 0x14006b6d6\ninc     edi                                                            ; +0x25c, 0x14006b6dc\ninc     esi                                                            ; +0x25e, 0x14006b6de\nmov     rcx, r12                                                       ; +0x260, 0x14006b6e0\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x263, 0x14006b6e3\ncmp     esi, eax                                                       ; +0x269, 0x14006b6e9\njb      loc_14006B620                                                  ; +0x26b, 0x14006b6eb\nmov     rcx, r14                                                       ; +0x271, 0x14006b6f1\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x274, 0x14006b6f4\nmov     rax, r14                                                       ; +0x27a, 0x14006b6fa\nlea     r11, [rsp+0E8h+var_28]                                         ; +0x27d, 0x14006b6fd\nmov     rbx, [r11+30h]                                                 ; +0x285, 0x14006b705\nmov     rbp, [r11+38h]                                                 ; +0x289, 0x14006b709\nmov     rsi, [r11+40h]                                                 ; +0x28d, 0x14006b70d\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x291, 0x14006b711\nmovaps  xmm7, xmmword ptr [r11-20h]                                    ; +0x296, 0x14006b716\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x29b, 0x14006b71b\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x2a0, 0x14006b720\nmovaps  xmm10, xmmword ptr [r11-50h]                                   ; +0x2a5, 0x14006b725\nmovaps  xmm11, xmmword ptr [r11-60h]                                   ; +0x2aa, 0x14006b72a\nmovaps  xmm12, xmmword ptr [r11-70h]                                   ; +0x2af, 0x14006b72f\nmovaps  xmm13, xmmword ptr [r11-80h]                                   ; +0x2b4, 0x14006b734\nmov     rsp, r11                                                       ; +0x2b9, 0x14006b739\npop     r15                                                            ; +0x2bc, 0x14006b73c\npop     r14                                                            ; +0x2be, 0x14006b73e\npop     r13                                                            ; +0x2c0, 0x14006b740\npop     r12                                                            ; +0x2c2, 0x14006b742\npop     rdi                                                            ; +0x2c4, 0x14006b744\nretn                                                                   ; +0x2c5, 0x14006b745", "xrefs": ["ListButtonBar::init @ 0x14006b06e", "<???> @ 0x1406c5fd0"], "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"}