{"type": "func", "start": 10602800, "end": 10602936, "name": "EditorOptionsLayer::onButtonsPerRow", "pseudocode": "// \n// EditorOptionsLayer::onButtonsPerRow from 0xa1c930 to 0xa1c9b8 (136 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0xd33d8\n// > EditorOptionsLayer::setupOptions @ 0xa35874\n// > EditorOptionsLayer::setupOptions @ 0xa35950\n// > <???> @ 0x1546428\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::onButtonsPerRow(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 + 280);\n  if ( v3 == 1 )\n    LODWORD(v5) = v4 + 1;\n  else\n    LODWORD(v5) = v4 - 1;\n  if ( (int)v5 < 6 )\n    LODWORD(v5) = 6;\n  v6 = *((_QWORD *)this + 141);\n  if ( (int)v5 > 12 )\n    v5 = 12;\n  else\n    v5 = (unsigned int)v5;\n  *((_DWORD *)this + 280) = 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::onButtonsPerRow from 0xa1c930 to 0xa1c9b8 (136 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0xd33d8\n; > EditorOptionsLayer::setupOptions @ 0xa35874\n; > EditorOptionsLayer::setupOptions @ 0xa35950\n; > <???> @ 0x1546428\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, 0xa1c930\nMOV             X29, SP                                                ; +0x4, 0xa1c934\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0xa1c938\nMOV             X19, X0                                                ; +0xc, 0xa1c93c\nMOV             X0, X1                                                 ; +0x10, 0xa1c940\nLDR             X1, [X1]                                               ; +0x14, 0xa1c944\nLDR             X1, [X1,#0x40]                                         ; +0x18, 0xa1c948\nBLR             X1                                                     ; +0x1c, 0xa1c94c\nCMP             W0, #1                                                 ; +0x20, 0xa1c950\nLDR             W1, [X19,#0x460]                                       ; +0x24, 0xa1c954\nB.EQ            loc_A1C9B0                                             ; +0x28, 0xa1c958\nSUB             W1, W1, #1                                             ; +0x2c, 0xa1c95c\nCMP             W1, #6                                                 ; +0x30, 0xa1c960\nMOV             W0, #6                                                 ; +0x34, 0xa1c964\nCSEL            W1, W1, W0, GE                                         ; +0x38, 0xa1c968\nLDR             X20, [X19,#0x468]                                      ; +0x3c, 0xa1c96c\nCMP             W1, #0xC                                               ; +0x40, 0xa1c970\nMOV             W0, #0xC                                               ; +0x44, 0xa1c974\nCSEL            W1, W1, W0, LE; char *                                 ; +0x48, 0xa1c978\nSTR             W1, [X19,#0x460]                                       ; +0x4c, 0xa1c97c\nADRP            X0, #(aSongidI+8)@PAGE; \"%i\"                           ; +0x50, 0xa1c980\nLDR             X2, [X20]                                              ; +0x54, 0xa1c984\nADD             X0, X0, #(aSongidI+8)@PAGEOFF; this                    ; +0x58, 0xa1c988\nLDR             X19, [X2,#0x3A0]                                       ; +0x5c, 0xa1c98c\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x60, 0xa1c990\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x64, 0xa1c994\nMOV             X1, X0                                                 ; +0x68, 0xa1c998\nMOV             X0, X20                                                ; +0x6c, 0xa1c99c\nBLR             X19                                                    ; +0x70, 0xa1c9a0\nLDP             X19, X20, [SP,#var_s10]                                ; +0x74, 0xa1c9a4\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x78, 0xa1c9a8\nRET                                                                    ; +0x7c, 0xa1c9ac\nADD             W1, W1, #1                                             ; +0x80, 0xa1c9b0\nB               loc_A1C960                                             ; +0x84, 0xa1c9b4", "xrefs": ["<???> @ 0xd33d8", "EditorOptionsLayer::setupOptions @ 0xa35874", "EditorOptionsLayer::setupOptions @ 0xa35950", "<???> @ 0x1546428"], "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"}