{"type": "func", "start": 4297625056, "end": 4297625174, "name": "EditorOptionsLayer::onButtonsPerRow", "pseudocode": "// \n// EditorOptionsLayer::onButtonsPerRow from 0x100288de0 to 0x100288e56 (118 bytes)\n// \n// 2 xrefs:\n// > EditorOptionsLayer::setupOptions @ 0x100288998\n// > EditorOptionsLayer::setupOptions @ 0x100288a6e\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 12:27:46 +0000\n// \n\n__int64 __fastcall EditorOptionsLayer::onButtonsPerRow(__int64 a1, __int64 a2)\n{\n  char v2; // al\n  int v3; // eax\n  int v4; // ecx\n  int v5; // esi\n  __int64 v6; // rbx\n  __int64 v7; // rax\n  __int64 CString; // rax\n  char v10; // [rsp-8h] [rbp-10h]\n\n  v10 = v2;\n  v3 = *(_DWORD *)(a1 + 1120) + 2 * ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1) - 1;\n  v4 = 6;\n  if ( v3 >= 7 )\n    v4 = v3;\n  v5 = 12;\n  if ( v4 < 12 )\n    v5 = v4;\n  *(_DWORD *)(a1 + 1120) = v5;\n  v6 = *(_QWORD *)(a1 + 1128);\n  v7 = sub_10088E820(\"%i\", v10);\n  CString = cocos2d::CCString::getCString(v7);\n  return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 928LL))(v6, CString);\n}", "assembly": "; \n; EditorOptionsLayer::onButtonsPerRow from 0x100288de0 to 0x100288e56 (118 bytes)\n; \n; 2 xrefs:\n; > EditorOptionsLayer::setupOptions @ 0x100288998\n; > EditorOptionsLayer::setupOptions @ 0x100288a6e\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 12:27:46 +0000\n; \npush    rbp                                                            ; +0x0, 0x100288de0\nmov     rbp, rsp                                                       ; +0x1, 0x100288de1\npush    rbx                                                            ; +0x4, 0x100288de4\npush    rax; char                                                      ; +0x5, 0x100288de5\nmov     rbx, rdi                                                       ; +0x6, 0x100288de6\nmov     rax, [rsi]                                                     ; +0x9, 0x100288de9\nmov     rdi, rsi                                                       ; +0xc, 0x100288dec\ncall    qword ptr [rax+40h]                                            ; +0xf, 0x100288def\nxor     ecx, ecx                                                       ; +0x12, 0x100288df2\ncmp     eax, 1                                                         ; +0x14, 0x100288df4\nsetz    cl                                                             ; +0x17, 0x100288df7\nmov     eax, [rbx+460h]                                                ; +0x1a, 0x100288dfa\nlea     eax, [rax+rcx*2]                                               ; +0x20, 0x100288e00\ndec     eax                                                            ; +0x23, 0x100288e03\ncmp     eax, 7                                                         ; +0x25, 0x100288e05\nmov     ecx, 6                                                         ; +0x28, 0x100288e08\ncmovge  ecx, eax                                                       ; +0x2d, 0x100288e0d\ncmp     ecx, 0Ch                                                       ; +0x30, 0x100288e10\nmov     esi, 0Ch                                                       ; +0x33, 0x100288e13\ncmovl   esi, ecx                                                       ; +0x38, 0x100288e18\nmov     [rbx+460h], esi                                                ; +0x3b, 0x100288e1b\nmov     rbx, [rbx+468h]                                                ; +0x41, 0x100288e21\nlea     rdi, aI_14; \"%i\"                                               ; +0x48, 0x100288e28\nxor     eax, eax                                                       ; +0x4f, 0x100288e2f\ncall    sub_10088E820                                                  ; +0x51, 0x100288e31\nmov     rdi, rax                                                       ; +0x56, 0x100288e36\ncall    cocos2d__CCString__getCString                                  ; +0x59, 0x100288e39\nmov     rcx, [rbx]                                                     ; +0x5e, 0x100288e3e\nmov     rcx, [rcx+3A0h]                                                ; +0x61, 0x100288e41\nmov     rdi, rbx                                                       ; +0x68, 0x100288e48\nmov     rsi, rax                                                       ; +0x6b, 0x100288e4b\nadd     rsp, 8                                                         ; +0x6e, 0x100288e4e\npop     rbx                                                            ; +0x72, 0x100288e52\npop     rbp                                                            ; +0x73, 0x100288e53\njmp     rcx                                                            ; +0x74, 0x100288e54", "xrefs": ["EditorOptionsLayer::setupOptions @ 0x100288998", "EditorOptionsLayer::setupOptions @ 0x100288a6e"], "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"}