{"type": "func", "start": 5371618960, "end": 5371619093, "name": "GameSettingsLayer::onButtonRows", "pseudocode": "// \n// GameSettingsLayer::onButtonRows from 0x1402c6690 to 0x1402c6715 (133 bytes)\n// \n// 3 xrefs:\n// > GameSettingsLayer::addSpecialContent @ 0x1402c63ba\n// > GameSettingsLayer::addSpecialContent @ 0x1402c64b8\n// > <???> @ 0x14091dbc4\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:29:22 +0000\n// \n\n__int64 __fastcall GameSettingsLayer::onButtonRows(__int64 a1, __int64 a2)\n{\n  int v3; // eax\n  int v4; // edx\n  int v5; // edx\n  __int64 v6; // rdi\n  __int64 (__fastcall **v7)(__int64, const char *); // rbx\n  cocos2d::CCString *v8; // rax\n  const char *CString; // rax\n\n  v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  v4 = 1;\n  if ( v3 != 1 )\n    v4 = -1;\n  v5 = *(_DWORD *)(a1 + 1160) + v4;\n  if ( v5 < 2 )\n  {\n    v5 = 2;\n  }\n  else if ( v5 >= 3 )\n  {\n    v5 = 3;\n  }\n  v6 = *(_QWORD *)(a1 + 1176);\n  *(_DWORD *)(a1 + 1160) = v5;\n  v7 = *(__int64 (__fastcall ***)(__int64, const char *))(v6 + 360);\n  v8 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8);\n  CString = cocos2d::CCString::getCString(v8);\n  return (*v7)(v6 + 360, CString);\n}", "assembly": "; \n; GameSettingsLayer::onButtonRows from 0x1402c6690 to 0x1402c6715 (133 bytes)\n; \n; 3 xrefs:\n; > GameSettingsLayer::addSpecialContent @ 0x1402c63ba\n; > GameSettingsLayer::addSpecialContent @ 0x1402c64b8\n; > <???> @ 0x14091dbc4\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:29:22 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1402c6690\npush    rdi                                                            ; +0x5, 0x1402c6695\nsub     rsp, 20h                                                       ; +0x6, 0x1402c6696\nmov     rax, [rdx]                                                     ; +0xa, 0x1402c669a\nmov     rbx, rcx                                                       ; +0xd, 0x1402c669d\nmov     rcx, rdx                                                       ; +0x10, 0x1402c66a0\ncall    qword ptr [rax+38h]                                            ; +0x13, 0x1402c66a3\nmov     edx, 1                                                         ; +0x16, 0x1402c66a6\nmov     ecx, 0FFFFFFFFh                                                ; +0x1b, 0x1402c66ab\ncmp     eax, edx                                                       ; +0x20, 0x1402c66b0\ncmovnz  edx, ecx                                                       ; +0x22, 0x1402c66b2\nadd     edx, [rbx+488h]                                                ; +0x25, 0x1402c66b5\ncmp     edx, 2                                                         ; +0x2b, 0x1402c66bb\njl      short loc_1402C66CC                                            ; +0x2e, 0x1402c66be\ncmp     edx, 3                                                         ; +0x30, 0x1402c66c0\njl      short loc_1402C66D1                                            ; +0x33, 0x1402c66c3\nmov     edx, 3                                                         ; +0x35, 0x1402c66c5\njmp     short loc_1402C66D1                                            ; +0x3a, 0x1402c66ca\nmov     edx, 2                                                         ; +0x3c, 0x1402c66cc\nmov     rdi, [rbx+498h]                                                ; +0x41, 0x1402c66d1\nlea     rcx, word_1406ED6F8                                            ; +0x48, 0x1402c66d8\nmov     [rbx+488h], edx                                                ; +0x4f, 0x1402c66df\nmov     rbx, [rdi+168h]                                                ; +0x55, 0x1402c66e5\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x5c, 0x1402c66ec\nmov     rcx, rax                                                       ; +0x62, 0x1402c66f2\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x65, 0x1402c66f5\nmov     rdx, rax                                                       ; +0x6b, 0x1402c66fb\nlea     rcx, [rdi+168h]                                                ; +0x6e, 0x1402c66fe\nmov     rax, [rbx]                                                     ; +0x75, 0x1402c6705\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x78, 0x1402c6708\nadd     rsp, 20h                                                       ; +0x7d, 0x1402c670d\npop     rdi                                                            ; +0x81, 0x1402c6711\njmp     rax                                                            ; +0x82, 0x1402c6712", "xrefs": ["GameSettingsLayer::addSpecialContent @ 0x1402c63ba", "GameSettingsLayer::addSpecialContent @ 0x1402c64b8", "<???> @ 0x14091dbc4"], "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"}