{"type": "func", "start": 5369153856, "end": 5369154294, "name": "GameToolbox::alignItemsVertically", "pseudocode": "// \n// GameToolbox::alignItemsVertically from 0x14006c940 to 0x14006caf6 (438 bytes)\n// \n// 2 xrefs:\n// > AccountLoginLayer::init @ 0x14009136b\n// > <???> @ 0x1409115d0\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:25:48 +0000\n// \n\nvoid __fastcall GameToolbox::alignItemsVertically(__int64 a1, float a2, __int64 a3)\n{\n  float v4; // xmm7_4\n  unsigned int *v6; // rdi\n  __int64 v7; // rax\n  __int64 *v8; // rdi\n  __int64 *i; // rsi\n  __int64 v10; // rbx\n  float v11; // xmm6_4\n  float v12; // xmm7_4\n  unsigned int *v13; // rsi\n  __int64 v14; // rax\n  __int64 **v15; // rsi\n  __int64 **j; // rbp\n  __int64 *v17; // rdi\n  const struct cocos2d::CCSize *v18; // rax\n  __int64 v19; // rbx\n  double v20; // xmm0_8\n  __int64 v21; // rax\n  __int64 v22; // rax\n  float v23; // xmm0_4\n  _BYTE v24[16]; // [rsp+20h] [rbp-58h] BYREF\n  char v25; // [rsp+80h] [rbp+8h] BYREF\n  float v26; // [rsp+84h] [rbp+Ch]\n  char v27; // [rsp+98h] [rbp+20h] BYREF\n\n  v4 = -a2;\n  if ( a1 )\n  {\n    v6 = *(unsigned int **)(a1 + 56);\n    v7 = *v6;\n    if ( (_DWORD)v7 )\n    {\n      v8 = *((__int64 **)v6 + 2);\n      for ( i = &v8[v7 - 1];\n            v8 <= i;\n            v4 = v4 + (float)((float)((*(float (__fastcall **)(__int64))(*(_QWORD *)v10 + 144LL))(v10) * v11) + a2) )\n      {\n        v10 = *v8;\n        if ( !*v8 )\n          break;\n        v11 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v10 + 320LL))(*v8++) + 4);\n      }\n    }\n  }\n  v12 = (float)-v4 * 0.5;\n  if ( a1 )\n  {\n    v13 = *(unsigned int **)(a1 + 56);\n    v14 = *v13;\n    if ( (_DWORD)v14 )\n    {\n      v15 = *((__int64 ***)v13 + 2);\n      for ( j = &v15[v14 - 1]; v15 <= j; v12 = v12 + (float)((float)(v23 * v26) + a2) )\n      {\n        v17 = *v15;\n        if ( !*v15 )\n          break;\n        v18 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(__int64 *))(*v17 + 320))(*v15);\n        cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v25, v18);\n        v19 = *v17;\n        v20 = (*(double (__fastcall **)(__int64 *))(*v17 + 144))(v17);\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 0.0, (float)((float)(*(float *)&v20 * v26) * 0.5) + v12);\n        (*(void (__fastcall **)(__int64 *, __int64))(v19 + 184))(v17, v21);\n        v22 = (*(__int64 (__fastcall **)(__int64 *))(*v17 + 200))(v17);\n        cocos2d::CCPoint::operator+(a3, &v27, v22);\n        (*(void (__fastcall **)(__int64 *, char *))(*v17 + 184))(v17, &v27);\n        v23 = (*(float (__fastcall **)(__int64 *))(*v17 + 144))(v17);\n        ++v15;\n      }\n    }\n  }\n}", "assembly": "; \n; GameToolbox::alignItemsVertically from 0x14006c940 to 0x14006caf6 (438 bytes)\n; \n; 2 xrefs:\n; > AccountLoginLayer::init @ 0x14009136b\n; > <???> @ 0x1409115d0\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:25:48 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14006c940\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14006c945\npush    rsi                                                            ; +0xa, 0x14006c94a\npush    rdi                                                            ; +0xb, 0x14006c94b\npush    r14                                                            ; +0xc, 0x14006c94c\nsub     rsp, 60h                                                       ; +0xe, 0x14006c94e\nmovaps  [rsp+78h+var_28], xmm6                                         ; +0x12, 0x14006c952\nmov     r14, r8                                                        ; +0x17, 0x14006c957\nmovaps  [rsp+78h+var_38], xmm7                                         ; +0x1a, 0x14006c95a\nmovaps  xmm7, xmm1                                                     ; +0x1f, 0x14006c95f\nxorps   xmm7, cs:xmmword_140836CC0                                     ; +0x22, 0x14006c962\nmov     rbp, rcx                                                       ; +0x29, 0x14006c969\nmovaps  [rsp+78h+var_48], xmm8                                         ; +0x2c, 0x14006c96c\nmovaps  xmm8, xmm1                                                     ; +0x32, 0x14006c972\ntest    rcx, rcx                                                       ; +0x36, 0x14006c976\njz      short loc_14006C9D1                                            ; +0x39, 0x14006c979\nmov     rdi, [rcx+38h]                                                 ; +0x3b, 0x14006c97b\nmov     eax, [rdi]                                                     ; +0x3f, 0x14006c97f\ntest    eax, eax                                                       ; +0x41, 0x14006c981\njz      short loc_14006C9D1                                            ; +0x43, 0x14006c983\nmov     rdi, [rdi+10h]                                                 ; +0x45, 0x14006c985\nlea     rsi, [rax-1]                                                   ; +0x49, 0x14006c989\nlea     rsi, [rdi+rsi*8]                                               ; +0x4d, 0x14006c98d\ncmp     rdi, rsi                                                       ; +0x51, 0x14006c991\nja      short loc_14006C9D1                                            ; +0x54, 0x14006c994\nmov     rbx, [rdi]                                                     ; +0x56, 0x14006c996\ntest    rbx, rbx                                                       ; +0x59, 0x14006c999\njz      short loc_14006C9D1                                            ; +0x5c, 0x14006c99c\nmov     rax, [rbx]                                                     ; +0x5e, 0x14006c99e\nmov     rcx, rbx                                                       ; +0x61, 0x14006c9a1\ncall    qword ptr [rax+140h]                                           ; +0x64, 0x14006c9a4\nmov     rcx, rbx                                                       ; +0x6a, 0x14006c9aa\nmovss   xmm6, dword ptr [rax+4]                                        ; +0x6d, 0x14006c9ad\nmov     rax, [rbx]                                                     ; +0x72, 0x14006c9b2\ncall    qword ptr [rax+90h]                                            ; +0x75, 0x14006c9b5\nmulss   xmm0, xmm6                                                     ; +0x7b, 0x14006c9bb\nadd     rdi, 8                                                         ; +0x7f, 0x14006c9bf\naddss   xmm0, xmm8                                                     ; +0x83, 0x14006c9c3\naddss   xmm7, xmm0                                                     ; +0x88, 0x14006c9c8\ncmp     rdi, rsi                                                       ; +0x8c, 0x14006c9cc\njbe     short loc_14006C996                                            ; +0x8f, 0x14006c9cf\nxorps   xmm7, cs:xmmword_140836CC0                                     ; +0x91, 0x14006c9d1\nmovss   xmm6, cs:dword_140834F20                                       ; +0x98, 0x14006c9d8\nmulss   xmm7, xmm6                                                     ; +0xa0, 0x14006c9e0\ntest    rbp, rbp                                                       ; +0xa4, 0x14006c9e4\njz      loc_14006CAD2                                                  ; +0xa7, 0x14006c9e7\nmov     rsi, [rbp+38h]                                                 ; +0xad, 0x14006c9ed\nmov     eax, [rsi]                                                     ; +0xb1, 0x14006c9f1\ntest    eax, eax                                                       ; +0xb3, 0x14006c9f3\njz      loc_14006CAD2                                                  ; +0xb5, 0x14006c9f5\nmov     rsi, [rsi+10h]                                                 ; +0xbb, 0x14006c9fb\nlea     rbp, [rax-1]                                                   ; +0xbf, 0x14006c9ff\nlea     rbp, [rsi+rbp*8]                                               ; +0xc3, 0x14006ca03\ncmp     rsi, rbp                                                       ; +0xc7, 0x14006ca07\nja      loc_14006CAD2                                                  ; +0xca, 0x14006ca0a\nmov     rdi, [rsi]                                                     ; +0xd0, 0x14006ca10\ntest    rdi, rdi                                                       ; +0xd3, 0x14006ca13\njz      loc_14006CAD2                                                  ; +0xd6, 0x14006ca16\nmov     rax, [rdi]                                                     ; +0xdc, 0x14006ca1c\nmov     rcx, rdi                                                       ; +0xdf, 0x14006ca1f\ncall    qword ptr [rax+140h]                                           ; +0xe2, 0x14006ca22\nmov     rdx, rax                                                       ; +0xe8, 0x14006ca28\nlea     rcx, [rsp+78h+arg_0]                                           ; +0xeb, 0x14006ca2b\ncall    cs:??0CCSize@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCSize::CCSize(cocos2d::CCSize const &) ; +0xf3, 0x14006ca33\nmov     rbx, [rdi]                                                     ; +0xf9, 0x14006ca39\nmov     rcx, rdi                                                       ; +0xfc, 0x14006ca3c\ncall    qword ptr [rbx+90h]                                            ; +0xff, 0x14006ca3f\nmulss   xmm0, [rsp+78h+arg_4]                                          ; +0x105, 0x14006ca45\nxorps   xmm1, xmm1                                                     ; +0x10e, 0x14006ca4e\nlea     rcx, [rsp+78h+var_58]                                          ; +0x111, 0x14006ca51\nmulss   xmm0, xmm6                                                     ; +0x116, 0x14006ca56\naddss   xmm0, xmm7                                                     ; +0x11a, 0x14006ca5a\nmovaps  xmm2, xmm0                                                     ; +0x11e, 0x14006ca5e\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x121, 0x14006ca61\nmov     rdx, rax                                                       ; +0x127, 0x14006ca67\nmov     rcx, rdi                                                       ; +0x12a, 0x14006ca6a\ncall    qword ptr [rbx+0B8h]                                           ; +0x12d, 0x14006ca6d\nmov     rax, [rdi]                                                     ; +0x133, 0x14006ca73\nmov     rcx, rdi                                                       ; +0x136, 0x14006ca76\ncall    qword ptr [rax+0C8h]                                           ; +0x139, 0x14006ca79\nlea     rdx, [rsp+78h+arg_18]                                          ; +0x13f, 0x14006ca7f\nmov     rcx, r14                                                       ; +0x147, 0x14006ca87\nmov     r8, rax                                                        ; +0x14a, 0x14006ca8a\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x14d, 0x14006ca8d\nmov     rax, [rdi]                                                     ; +0x153, 0x14006ca93\nlea     rdx, [rsp+78h+arg_18]                                          ; +0x156, 0x14006ca96\nmov     rcx, rdi                                                       ; +0x15e, 0x14006ca9e\ncall    qword ptr [rax+0B8h]                                           ; +0x161, 0x14006caa1\nmov     rax, [rdi]                                                     ; +0x167, 0x14006caa7\nmov     rcx, rdi                                                       ; +0x16a, 0x14006caaa\ncall    qword ptr [rax+90h]                                            ; +0x16d, 0x14006caad\nmulss   xmm0, [rsp+78h+arg_4]                                          ; +0x173, 0x14006cab3\nadd     rsi, 8                                                         ; +0x17c, 0x14006cabc\naddss   xmm0, xmm8                                                     ; +0x180, 0x14006cac0\naddss   xmm7, xmm0                                                     ; +0x185, 0x14006cac5\ncmp     rsi, rbp                                                       ; +0x189, 0x14006cac9\njbe     loc_14006CA10                                                  ; +0x18c, 0x14006cacc\nmovaps  xmm6, [rsp+78h+var_28]                                         ; +0x192, 0x14006cad2\nlea     r11, [rsp+78h+var_18]                                          ; +0x197, 0x14006cad7\nmov     rbx, [r11+28h]                                                 ; +0x19c, 0x14006cadc\nmov     rbp, [r11+30h]                                                 ; +0x1a0, 0x14006cae0\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x1a4, 0x14006cae4\nmovaps  xmm7, [rsp+78h+var_38]                                         ; +0x1a9, 0x14006cae9\nmov     rsp, r11                                                       ; +0x1ae, 0x14006caee\npop     r14                                                            ; +0x1b1, 0x14006caf1\npop     rdi                                                            ; +0x1b3, 0x14006caf3\npop     rsi                                                            ; +0x1b4, 0x14006caf4\nretn                                                                   ; +0x1b5, 0x14006caf5", "xrefs": ["AccountLoginLayer::init @ 0x14009136b", "<???> @ 0x1409115d0"], "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"}