{"type": "func", "start": 4296435180, "end": 4296435308, "name": "GameSettingsLayer::onButtonRows", "pseudocode": "// \n// GameSettingsLayer::onButtonRows from 0x1001665ec to 0x10016666c (128 bytes)\n// \n// 2 xrefs:\n// > GameSettingsLayer::addSpecialContent @ 0x100165de4\n// > GameSettingsLayer::addSpecialContent @ 0x100165ee0\n// \n// This function is hookable on this platform (idp: arm, 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 10:59:48 +0000\n// \n\n__int64 __fastcall GameSettingsLayer::onButtonRows(__int64 a1, __int64 a2)\n{\n  int v3; // w9\n  bool v4; // cc\n  int v5; // w8\n  int v6; // w9\n  __int64 v7; // x19\n  __int64 v8; // x0\n  __int64 CString; // x1\n\n  if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )\n    v3 = 1;\n  else\n    v3 = -1;\n  v4 = *(_DWORD *)(a1 + 1152) + v3 < 3;\n  v5 = 2;\n  if ( *(_DWORD *)(a1 + 1152) + v3 < 3 )\n    v6 = 2;\n  else\n    v6 = 3;\n  *(_DWORD *)(a1 + 1152) = v6;\n  v7 = *(_QWORD *)(a1 + 1168);\n  if ( !v4 )\n    v5 = 3;\n  v8 = sub_1003065B0(\"%i\", v5);\n  CString = cocos2d::CCString::getCString(v8);\n  return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 928LL))(v7, CString);\n}", "assembly": "; \n; GameSettingsLayer::onButtonRows from 0x1001665ec to 0x10016666c (128 bytes)\n; \n; 2 xrefs:\n; > GameSettingsLayer::addSpecialContent @ 0x100165de4\n; > GameSettingsLayer::addSpecialContent @ 0x100165ee0\n; \n; This function is hookable on this platform (idp: arm, 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 10:59:48 +0000\n; \nSUB             SP, SP, #0x30                                          ; +0x0, 0x1001665ec\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1001665f0\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1001665f4\nADD             X29, SP, #0x20                                         ; +0xc, 0x1001665f8\nMOV             X19, X0                                                ; +0x10, 0x1001665fc\nLDR             X8, [X1]                                               ; +0x14, 0x100166600\nLDR             X8, [X8,#0x40]                                         ; +0x18, 0x100166604\nMOV             X0, X1                                                 ; +0x1c, 0x100166608\nBLR             X8                                                     ; +0x20, 0x10016660c\nLDR             W8, [X19,#0x480]                                       ; +0x24, 0x100166610\nCMP             W0, #1                                                 ; +0x28, 0x100166614\nCSINV           W9, W0, WZR, EQ                                        ; +0x2c, 0x100166618\nADD             W8, W8, W9                                             ; +0x30, 0x10016661c\nCMP             W8, #3                                                 ; +0x34, 0x100166620\nMOV             W8, #2                                                 ; +0x38, 0x100166624\nCINC            W9, W8, GE                                             ; +0x3c, 0x100166628\nSTR             W9, [X19,#0x480]                                       ; +0x40, 0x10016662c\nLDR             X19, [X19,#0x490]                                      ; +0x44, 0x100166630\nCINC            X8, X8, GE                                             ; +0x48, 0x100166634\nSTR             X8, [SP,#0x20+var_20]                                  ; +0x4c, 0x100166638\nADRL            X0, aI; \"%i\"                                           ; +0x50, 0x10016663c\nBL              sub_1003065B0                                          ; +0x58, 0x100166644\nBL              cocos2d__CCString__getCString                          ; +0x5c, 0x100166648\nMOV             X1, X0                                                 ; +0x60, 0x10016664c\nLDR             X8, [X19]                                              ; +0x64, 0x100166650\nLDR             X2, [X8,#0x3A0]                                        ; +0x68, 0x100166654\nMOV             X0, X19                                                ; +0x6c, 0x100166658\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x70, 0x10016665c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x74, 0x100166660\nADD             SP, SP, #0x30 ; '0'                                    ; +0x78, 0x100166664\nBR              X2                                                     ; +0x7c, 0x100166668", "xrefs": ["GameSettingsLayer::addSpecialContent @ 0x100165de4", "GameSettingsLayer::addSpecialContent @ 0x100165ee0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}