{"type": "func", "start": 4297935200, "end": 4297935336, "name": "EditorOptionsLayer::onButtonsPerRow", "pseudocode": "// \n// EditorOptionsLayer::onButtonsPerRow from 0x1002d4960 to 0x1002d49e8 (136 bytes)\n// \n// 1 xrefs:\n// > EditorOptionsLayer::setupOptions @ 0x1002d4530\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::onButtonsPerRow(EditorOptionsLayer *a1, cocos2d::CCObject *a2)\n{\n  int v3; // w9\n  int v4; // w8\n  cocos2d::CCLabelBMFont *m_buttonsPerRowLabel; // x19\n  cocos2d::CCString *v6; // 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_buttonsPerRow + v3;\n  if ( v4 <= 6 )\n    v4 = 6;\n  if ( v4 >= 12 )\n    v4 = 12;\n  a1->m_buttonsPerRow = v4;\n  m_buttonsPerRowLabel = a1->m_buttonsPerRowLabel;\n  v6 = (cocos2d::CCString *)sub_100268F4C(\"%i\", v4);\n  CString = cocos2d::CCString::getCString(v6);\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))m_buttonsPerRowLabel->setString)(\n    m_buttonsPerRowLabel,\n    CString);\n}", "assembly": "; \n; EditorOptionsLayer::onButtonsPerRow from 0x1002d4960 to 0x1002d49e8 (136 bytes)\n; \n; 1 xrefs:\n; > EditorOptionsLayer::setupOptions @ 0x1002d4530\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, 0x1002d4960\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1002d4964\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1002d4968\nADD             X29, SP, #0x20                                         ; +0xc, 0x1002d496c\nMOV             X19, X0                                                ; +0x10, 0x1002d4970\nLDR             X8, [X1]                                               ; +0x14, 0x1002d4974\nLDR             X8, [X8,#0x40]                                         ; +0x18, 0x1002d4978\nMOV             X0, X1                                                 ; +0x1c, 0x1002d497c\nBLR             X8                                                     ; +0x20, 0x1002d4980\nLDR             W8, [X19,#0x418]                                       ; +0x24, 0x1002d4984\nCMP             W0, #1                                                 ; +0x28, 0x1002d4988\nCSINV           W9, W0, WZR, EQ                                        ; +0x2c, 0x1002d498c\nADD             W8, W8, W9                                             ; +0x30, 0x1002d4990\nCMP             W8, #6                                                 ; +0x34, 0x1002d4994\nMOV             W9, #6                                                 ; +0x38, 0x1002d4998\nCSEL            W8, W8, W9, GT                                         ; +0x3c, 0x1002d499c\nCMP             W8, #0xC                                               ; +0x40, 0x1002d49a0\nMOV             W9, #0xC                                               ; +0x44, 0x1002d49a4\nCSEL            W8, W8, W9, LT                                         ; +0x48, 0x1002d49a8\nSTR             W8, [X19,#0x418]                                       ; +0x4c, 0x1002d49ac\nLDR             X19, [X19,#0x420]                                      ; +0x50, 0x1002d49b0\nSTR             X8, [SP,#0x20+var_20]                                  ; +0x54, 0x1002d49b4\nADRL            X0, aI; \"%i\"                                           ; +0x58, 0x1002d49b8\nBL              sub_100268F4C                                          ; +0x60, 0x1002d49c0\nBL              cocos2d__CCString__getCString                          ; +0x64, 0x1002d49c4\nMOV             X1, X0                                                 ; +0x68, 0x1002d49c8\nLDR             X8, [X19]                                              ; +0x6c, 0x1002d49cc\nLDR             X2, [X8,#0x390]                                        ; +0x70, 0x1002d49d0\nMOV             X0, X19                                                ; +0x74, 0x1002d49d4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x78, 0x1002d49d8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x7c, 0x1002d49dc\nADD             SP, SP, #0x30 ; '0'                                    ; +0x80, 0x1002d49e0\nBR              X2                                                     ; +0x84, 0x1002d49e4", "xrefs": ["EditorOptionsLayer::setupOptions @ 0x1002d4530"], "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"}