{"type": "func", "start": 9183360, "end": 9183500, "name": "EditorOptionsLayer::onButtonRows", "pseudocode": "// \n// EditorOptionsLayer::onButtonRows from 0x8c2080 to 0x8c210c (140 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0xbe3e0\n// > EditorOptionsLayer::setupOptions @ 0x8dbad8\n// > EditorOptionsLayer::setupOptions @ 0x8dbba4\n// > <???> @ 0x122e980\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 EditorOptionsLayer::onButtonRows(EditorOptionsLayer *a1, cocos2d::CCObject *a2)\n{\n  int v3; // w0\n  int m_buttonRows; // w2\n  int v5; // w2\n  cocos2d::CCLabelBMFont *m_buttonRowsLabel; // x20\n  cocos2d::CCLabelBMFont_vtbl *v7; // x3\n  void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // x19\n  cocos2d::CCString *v9; // x0\n  const char *CString; // x0\n\n  v3 = a2->getTag(a2);\n  m_buttonRows = a1->m_buttonRows;\n  if ( v3 == 1 )\n    v5 = m_buttonRows + 1;\n  else\n    v5 = m_buttonRows - 1;\n  m_buttonRowsLabel = a1->m_buttonRowsLabel;\n  if ( v5 < 2 )\n    v5 = 2;\n  v7 = m_buttonRowsLabel->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  if ( v5 > 3 )\n    v5 = 3;\n  a1->m_buttonRows = v5;\n  setString = v7->setString;\n  v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"%i\",\n                              (const char *)(unsigned int)v5);\n  CString = cocos2d::CCString::getCString(v9);\n  setString(m_buttonRowsLabel, (const unsigned __int8 *)CString);\n}", "assembly": "; \n; EditorOptionsLayer::onButtonRows from 0x8c2080 to 0x8c210c (140 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0xbe3e0\n; > EditorOptionsLayer::setupOptions @ 0x8dbad8\n; > EditorOptionsLayer::setupOptions @ 0x8dbba4\n; > <???> @ 0x122e980\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\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x8c2080\nMOV             X29, SP                                                ; +0x4, 0x8c2084\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x8c2088\nMOV             X19, X0                                                ; +0xc, 0x8c208c\nMOV             X0, X1                                                 ; +0x10, 0x8c2090\nLDR             X1, [X1]                                               ; +0x14, 0x8c2094\nLDR             X1, [X1,#0x40]                                         ; +0x18, 0x8c2098\nBLR             X1                                                     ; +0x1c, 0x8c209c\nCMP             W0, #1                                                 ; +0x20, 0x8c20a0\nLDR             W2, [X19,#0x444]                                       ; +0x24, 0x8c20a4\nB.EQ            loc_8C2104                                             ; +0x28, 0x8c20a8\nSUB             W2, W2, #1                                             ; +0x2c, 0x8c20ac\nLDR             X20, [X19,#0x450]                                      ; +0x30, 0x8c20b0\nCMP             W2, #2                                                 ; +0x34, 0x8c20b4\nMOV             W0, #2                                                 ; +0x38, 0x8c20b8\nCSEL            W2, W2, W0, GE                                         ; +0x3c, 0x8c20bc\nMOV             W0, #3                                                 ; +0x40, 0x8c20c0\nCMP             W2, #3                                                 ; +0x44, 0x8c20c4\nLDR             X3, [X20]                                              ; +0x48, 0x8c20c8\nCSEL            W2, W2, W0, LE                                         ; +0x4c, 0x8c20cc\nADRP            X0, #(aSongidI+8)@PAGE; \"%i\"                           ; +0x50, 0x8c20d0\nMOV             W1, W2; char *                                         ; +0x54, 0x8c20d4\nSTR             W2, [X19,#0x444]                                       ; +0x58, 0x8c20d8\nADD             X0, X0, #(aSongidI+8)@PAGEOFF; this                    ; +0x5c, 0x8c20dc\nLDR             X19, [X3,#0x390]                                       ; +0x60, 0x8c20e0\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x64, 0x8c20e4\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x68, 0x8c20e8\nMOV             X1, X0                                                 ; +0x6c, 0x8c20ec\nMOV             X0, X20                                                ; +0x70, 0x8c20f0\nBLR             X19                                                    ; +0x74, 0x8c20f4\nLDP             X19, X20, [SP,#var_s10]                                ; +0x78, 0x8c20f8\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x7c, 0x8c20fc\nRET                                                                    ; +0x80, 0x8c2100\nADD             W2, W2, #1                                             ; +0x84, 0x8c2104\nB               loc_8C20B0                                             ; +0x88, 0x8c2108", "xrefs": ["<???> @ 0xbe3e0", "EditorOptionsLayer::setupOptions @ 0x8dbad8", "EditorOptionsLayer::setupOptions @ 0x8dbba4", "<???> @ 0x122e980"], "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"}