{"type": "func", "start": 10602936, "end": 10603072, "name": "EditorOptionsLayer::onButtonRows", "pseudocode": "// \n// EditorOptionsLayer::onButtonRows from 0xa1c9b8 to 0xa1ca40 (136 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0xf8068\n// > EditorOptionsLayer::setupOptions @ 0xa35b34\n// > EditorOptionsLayer::setupOptions @ 0xa35c00\n// > <???> @ 0x1547870\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 12:59:38 +0000\n// \n\n__int64 __fastcall EditorOptionsLayer::onButtonRows(EditorOptionsLayer *this, cocos2d::CCObject *a2)\n{\n  int v3; // w0\n  int v4; // w1\n  unsigned __int64 v5; // x1\n  __int64 v6; // x20\n  __int64 (__fastcall *v7)(__int64, __int64); // x19\n  cocos2d::CCString *v8; // x0\n  __int64 CString; // x0\n\n  v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);\n  v4 = *((_DWORD *)this + 281);\n  if ( v3 == 1 )\n    LODWORD(v5) = v4 + 1;\n  else\n    LODWORD(v5) = v4 - 1;\n  if ( (int)v5 < 2 )\n    LODWORD(v5) = 2;\n  v6 = *((_QWORD *)this + 142);\n  if ( (int)v5 > 3 )\n    v5 = 3;\n  else\n    v5 = (unsigned int)v5;\n  *((_DWORD *)this + 281) = v5;\n  v7 = *(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 928LL);\n  v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", (const char *)v5);\n  CString = cocos2d::CCString::getCString(v8);\n  return v7(v6, CString);\n}", "assembly": "; \n; EditorOptionsLayer::onButtonRows from 0xa1c9b8 to 0xa1ca40 (136 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0xf8068\n; > EditorOptionsLayer::setupOptions @ 0xa35b34\n; > EditorOptionsLayer::setupOptions @ 0xa35c00\n; > <???> @ 0x1547870\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 12:59:38 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0xa1c9b8\nMOV             X29, SP                                                ; +0x4, 0xa1c9bc\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0xa1c9c0\nMOV             X19, X0                                                ; +0xc, 0xa1c9c4\nMOV             X0, X1                                                 ; +0x10, 0xa1c9c8\nLDR             X1, [X1]                                               ; +0x14, 0xa1c9cc\nLDR             X1, [X1,#0x40]                                         ; +0x18, 0xa1c9d0\nBLR             X1                                                     ; +0x1c, 0xa1c9d4\nCMP             W0, #1                                                 ; +0x20, 0xa1c9d8\nLDR             W1, [X19,#0x464]                                       ; +0x24, 0xa1c9dc\nB.EQ            loc_A1CA38                                             ; +0x28, 0xa1c9e0\nSUB             W1, W1, #1                                             ; +0x2c, 0xa1c9e4\nCMP             W1, #2                                                 ; +0x30, 0xa1c9e8\nMOV             W0, #2                                                 ; +0x34, 0xa1c9ec\nCSEL            W1, W1, W0, GE                                         ; +0x38, 0xa1c9f0\nLDR             X20, [X19,#0x470]                                      ; +0x3c, 0xa1c9f4\nCMP             W1, #3                                                 ; +0x40, 0xa1c9f8\nMOV             W0, #3                                                 ; +0x44, 0xa1c9fc\nCSEL            W1, W1, W0, LE; char *                                 ; +0x48, 0xa1ca00\nSTR             W1, [X19,#0x464]                                       ; +0x4c, 0xa1ca04\nADRP            X0, #(aSongidI+8)@PAGE; \"%i\"                           ; +0x50, 0xa1ca08\nLDR             X2, [X20]                                              ; +0x54, 0xa1ca0c\nADD             X0, X0, #(aSongidI+8)@PAGEOFF; this                    ; +0x58, 0xa1ca10\nLDR             X19, [X2,#0x3A0]                                       ; +0x5c, 0xa1ca14\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x60, 0xa1ca18\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x64, 0xa1ca1c\nMOV             X1, X0                                                 ; +0x68, 0xa1ca20\nMOV             X0, X20                                                ; +0x6c, 0xa1ca24\nBLR             X19                                                    ; +0x70, 0xa1ca28\nLDP             X19, X20, [SP,#var_s10]                                ; +0x74, 0xa1ca2c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x78, 0xa1ca30\nRET                                                                    ; +0x7c, 0xa1ca34\nADD             W1, W1, #1                                             ; +0x80, 0xa1ca38\nB               loc_A1C9E8                                             ; +0x84, 0xa1ca3c", "xrefs": ["<???> @ 0xf8068", "EditorOptionsLayer::setupOptions @ 0xa35b34", "EditorOptionsLayer::setupOptions @ 0xa35c00", "<???> @ 0x1547870"], "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"}