{"type": "func", "start": 6442821312, "end": 6442821481, "name": "cocos2d::CCMenu::alignItemsInRows", "pseudocode": "// \n// cocos2d::CCMenu::alignItemsInRows from 0x18005a6c0 to 0x18005a769 (169 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCMenu::alignItemsInRows @ 0x18005a787\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bcce8\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:48 +0000\n// \n\nvoid __fastcall cocos2d::CCMenu::alignItemsInRows(cocos2d::CCMenu *this, int a2, char *a3)\n{\n  cocos2d::CCArray *v6; // rbp\n  char *v7; // rsi\n  cocos2d::CCObject *v8; // rax\n  cocos2d::CCObject *v9; // rbx\n\n  v6 = cocos2d::CCArray::create();\n  if ( a2 )\n  {\n    v7 = a3 - 8;\n    do\n    {\n      v8 = (cocos2d::CCObject *)sub_1800E4AC0(0x40u);\n      v9 = v8;\n      if ( v8 )\n      {\n        cocos2d::CCObject::CCObject(v8);\n        *(_QWORD *)v9 = &cocos2d::CCInteger::`vftable';\n        *((_DWORD *)v9 + 14) = a2;\n      }\n      else\n      {\n        v9 = nullptr;\n      }\n      cocos2d::CCObject::autorelease(v9);\n      cocos2d::CCArray::addObject(v6, v9);\n      v7 += 8;\n      a2 = *(_DWORD *)v7;\n    }\n    while ( *(_DWORD *)v7 );\n  }\n  cocos2d::CCMenu::alignItemsInRowsWithArray(this, v6);\n}", "assembly": "; \n; cocos2d::CCMenu::alignItemsInRows from 0x18005a6c0 to 0x18005a769 (169 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCMenu::alignItemsInRows @ 0x18005a787\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bcce8\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:48 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18005a6c0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x18005a6c5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18005a6ca\npush    rdi                                                            ; +0xf, 0x18005a6cf\npush    r14                                                            ; +0x10, 0x18005a6d0\npush    r15                                                            ; +0x12, 0x18005a6d2\nsub     rsp, 20h                                                       ; +0x14, 0x18005a6d4\nmov     rsi, r8                                                        ; +0x18, 0x18005a6d8\nmov     edi, edx                                                       ; +0x1b, 0x18005a6db\nmov     r14, rcx                                                       ; +0x1d, 0x18005a6dd\ncall    ?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x20, 0x18005a6e0\nmov     rbp, rax                                                       ; +0x25, 0x18005a6e5\ntest    edi, edi                                                       ; +0x28, 0x18005a6e8\njz      short loc_18005A746                                            ; +0x2a, 0x18005a6ea\nadd     rsi, 0FFFFFFFFFFFFFFF8h                                        ; +0x2c, 0x18005a6ec\nlea     r15, ??_7CCInteger@cocos2d@@6B@; const cocos2d::CCInteger::`vftable' ; +0x30, 0x18005a6f0\nnop     word ptr [rax+rax+00000000h]                                   ; +0x37, 0x18005a6f7\nmov     ecx, 40h ; '@'; Size                                           ; +0x40, 0x18005a700\ncall    sub_1800E4AC0                                                  ; +0x45, 0x18005a705\nmov     rbx, rax                                                       ; +0x4a, 0x18005a70a\nmov     [rsp+38h+arg_18], rax                                          ; +0x4d, 0x18005a70d\ntest    rax, rax                                                       ; +0x52, 0x18005a712\njz      short loc_18005A727                                            ; +0x55, 0x18005a715\nmov     rcx, rax; this                                                 ; +0x57, 0x18005a717\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x5a, 0x18005a71a\nmov     [rbx], r15                                                     ; +0x5f, 0x18005a71f\nmov     [rbx+38h], edi                                                 ; +0x62, 0x18005a722\njmp     short loc_18005A729                                            ; +0x65, 0x18005a725\nxor     ebx, ebx                                                       ; +0x67, 0x18005a727\nmov     rcx, rbx; this                                                 ; +0x69, 0x18005a729\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x6c, 0x18005a72c\nmov     rdx, rbx; struct cocos2d::CCObject *                           ; +0x71, 0x18005a731\nmov     rcx, rbp; this                                                 ; +0x74, 0x18005a734\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x77, 0x18005a737\nadd     rsi, 8                                                         ; +0x7c, 0x18005a73c\nmov     edi, [rsi]                                                     ; +0x80, 0x18005a740\ntest    edi, edi                                                       ; +0x82, 0x18005a742\njnz     short loc_18005A700                                            ; +0x84, 0x18005a744\nmov     rdx, rbp; struct cocos2d::CCArray *                            ; +0x86, 0x18005a746\nmov     rcx, r14; this                                                 ; +0x89, 0x18005a749\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x8c, 0x18005a74c\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x91, 0x18005a751\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x96, 0x18005a756\nadd     rsp, 20h                                                       ; +0x9b, 0x18005a75b\npop     r15                                                            ; +0x9f, 0x18005a75f\npop     r14                                                            ; +0xa1, 0x18005a761\npop     rdi                                                            ; +0xa3, 0x18005a763\njmp     ?alignItemsInRowsWithArray@CCMenu@cocos2d@@QEAAXPEAVCCArray@2@@Z; cocos2d::CCMenu::alignItemsInRowsWithArray(cocos2d::CCArray *) ; +0xa4, 0x18005a764", "xrefs": ["cocos2d::CCMenu::alignItemsInRows @ 0x18005a787", "<???> @ 0x18014cf68", "<???> @ 0x1801bcce8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}