{"type": "func", "start": 4301268288, "end": 4301268406, "name": "GameSettingsLayer::onButtonsPerRow", "pseudocode": "// \n// GameSettingsLayer::onButtonsPerRow from 0x100602540 to 0x1006025b6 (118 bytes)\n// \n// 2 xrefs:\n// > GameSettingsLayer::addSpecialContent @ 0x10060112b\n// > GameSettingsLayer::addSpecialContent @ 0x100601225\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:34:31 +0000\n// \n\n__int64 __fastcall GameSettingsLayer::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 + 1148) + 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 + 1148) = v5;\n  v6 = *(_QWORD *)(a1 + 1160);\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; GameSettingsLayer::onButtonsPerRow from 0x100602540 to 0x1006025b6 (118 bytes)\n; \n; 2 xrefs:\n; > GameSettingsLayer::addSpecialContent @ 0x10060112b\n; > GameSettingsLayer::addSpecialContent @ 0x100601225\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:34:31 +0000\n; \npush    rbp                                                            ; +0x0, 0x100602540\nmov     rbp, rsp                                                       ; +0x1, 0x100602541\npush    rbx                                                            ; +0x4, 0x100602544\npush    rax; char                                                      ; +0x5, 0x100602545\nmov     rbx, rdi                                                       ; +0x6, 0x100602546\nmov     rax, [rsi]                                                     ; +0x9, 0x100602549\nmov     rdi, rsi                                                       ; +0xc, 0x10060254c\ncall    qword ptr [rax+40h]                                            ; +0xf, 0x10060254f\nxor     ecx, ecx                                                       ; +0x12, 0x100602552\ncmp     eax, 1                                                         ; +0x14, 0x100602554\nsetz    cl                                                             ; +0x17, 0x100602557\nmov     eax, [rbx+47Ch]                                                ; +0x1a, 0x10060255a\nlea     eax, [rax+rcx*2]                                               ; +0x20, 0x100602560\ndec     eax                                                            ; +0x23, 0x100602563\ncmp     eax, 7                                                         ; +0x25, 0x100602565\nmov     ecx, 6                                                         ; +0x28, 0x100602568\ncmovge  ecx, eax                                                       ; +0x2d, 0x10060256d\ncmp     ecx, 0Ch                                                       ; +0x30, 0x100602570\nmov     esi, 0Ch                                                       ; +0x33, 0x100602573\ncmovl   esi, ecx                                                       ; +0x38, 0x100602578\nmov     [rbx+47Ch], esi                                                ; +0x3b, 0x10060257b\nmov     rbx, [rbx+488h]                                                ; +0x41, 0x100602581\nlea     rdi, aI_14; \"%i\"                                               ; +0x48, 0x100602588\nxor     eax, eax                                                       ; +0x4f, 0x10060258f\ncall    sub_10088E820                                                  ; +0x51, 0x100602591\nmov     rdi, rax                                                       ; +0x56, 0x100602596\ncall    cocos2d__CCString__getCString                                  ; +0x59, 0x100602599\nmov     rcx, [rbx]                                                     ; +0x5e, 0x10060259e\nmov     rcx, [rcx+3A0h]                                                ; +0x61, 0x1006025a1\nmov     rdi, rbx                                                       ; +0x68, 0x1006025a8\nmov     rsi, rax                                                       ; +0x6b, 0x1006025ab\nadd     rsp, 8                                                         ; +0x6e, 0x1006025ae\npop     rbx                                                            ; +0x72, 0x1006025b2\npop     rbp                                                            ; +0x73, 0x1006025b3\njmp     rcx                                                            ; +0x74, 0x1006025b4", "xrefs": ["GameSettingsLayer::addSpecialContent @ 0x10060112b", "GameSettingsLayer::addSpecialContent @ 0x100601225"], "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"}