{"type": "func", "start": 4297935336, "end": 4297935464, "name": "EditorOptionsLayer::onButtonRows", "pseudocode": "// \n// EditorOptionsLayer::onButtonRows from 0x1002d49e8 to 0x1002d4a68 (128 bytes)\n// \n// 1 xrefs:\n// > EditorOptionsLayer::setupOptions @ 0x1002d47d0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall EditorOptionsLayer::onButtonRows(EditorOptionsLayer *a1, cocos2d::CCObject *a2)\n{\n  int v3; // w9\n  bool v4; // cc\n  int v5; // w8\n  int v6; // w9\n  cocos2d::CCLabelBMFont *m_buttonRowsLabel; // x19\n  cocos2d::CCString *v8; // x0\n  const char *CString; // x1\n\n  if ( ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 1 )\n    v3 = 1;\n  else\n    v3 = -1;\n  v4 = a1->m_buttonRows + v3 < 3;\n  v5 = 2;\n  if ( a1->m_buttonRows + v3 < 3 )\n    v6 = 2;\n  else\n    v6 = 3;\n  a1->m_buttonRows = v6;\n  m_buttonRowsLabel = a1->m_buttonRowsLabel;\n  if ( !v4 )\n    v5 = 3;\n  v8 = (cocos2d::CCString *)sub_100268F4C(\"%i\", v5);\n  CString = cocos2d::CCString::getCString(v8);\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))m_buttonRowsLabel->setString)(\n    m_buttonRowsLabel,\n    CString);\n}", "assembly": "; \n; EditorOptionsLayer::onButtonRows from 0x1002d49e8 to 0x1002d4a68 (128 bytes)\n; \n; 1 xrefs:\n; > EditorOptionsLayer::setupOptions @ 0x1002d47d0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             SP, SP, #0x30                                          ; +0x0, 0x1002d49e8\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1002d49ec\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1002d49f0\nADD             X29, SP, #0x20                                         ; +0xc, 0x1002d49f4\nMOV             X19, X0                                                ; +0x10, 0x1002d49f8\nLDR             X8, [X1]                                               ; +0x14, 0x1002d49fc\nLDR             X8, [X8,#0x40]                                         ; +0x18, 0x1002d4a00\nMOV             X0, X1                                                 ; +0x1c, 0x1002d4a04\nBLR             X8                                                     ; +0x20, 0x1002d4a08\nLDR             W8, [X19,#0x41C]                                       ; +0x24, 0x1002d4a0c\nCMP             W0, #1                                                 ; +0x28, 0x1002d4a10\nCSINV           W9, W0, WZR, EQ                                        ; +0x2c, 0x1002d4a14\nADD             W8, W8, W9                                             ; +0x30, 0x1002d4a18\nCMP             W8, #3                                                 ; +0x34, 0x1002d4a1c\nMOV             W8, #2                                                 ; +0x38, 0x1002d4a20\nCINC            W9, W8, GE                                             ; +0x3c, 0x1002d4a24\nSTR             W9, [X19,#0x41C]                                       ; +0x40, 0x1002d4a28\nLDR             X19, [X19,#0x428]                                      ; +0x44, 0x1002d4a2c\nCINC            X8, X8, GE                                             ; +0x48, 0x1002d4a30\nSTR             X8, [SP,#0x20+var_20]                                  ; +0x4c, 0x1002d4a34\nADRL            X0, aI; \"%i\"                                           ; +0x50, 0x1002d4a38\nBL              sub_100268F4C                                          ; +0x58, 0x1002d4a40\nBL              cocos2d__CCString__getCString                          ; +0x5c, 0x1002d4a44\nMOV             X1, X0                                                 ; +0x60, 0x1002d4a48\nLDR             X8, [X19]                                              ; +0x64, 0x1002d4a4c\nLDR             X2, [X8,#0x390]                                        ; +0x68, 0x1002d4a50\nMOV             X0, X19                                                ; +0x6c, 0x1002d4a54\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x70, 0x1002d4a58\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x74, 0x1002d4a5c\nADD             SP, SP, #0x30 ; '0'                                    ; +0x78, 0x1002d4a60\nBR              X2                                                     ; +0x7c, 0x1002d4a64", "xrefs": ["EditorOptionsLayer::setupOptions @ 0x1002d47d0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}