{"type": "func", "start": 4879968, "end": 4880044, "name": "EditorOptionsLayer::onButtonRows", "pseudocode": "// \n// EditorOptionsLayer::onButtonRows from 0x4a7660 to 0x4a76ac (76 bytes)\n// \n// 0 xrefs:\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; // r0\n  int m_buttonRows; // r1\n  const char *v5; // r1\n  cocos2d::CCLabelBMFont *m_buttonRowsLabel; // r4\n  void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // r5\n  cocos2d::CCString *v8; // r0\n  const char *CString; // r0\n\n  v3 = a2->getTag(a2);\n  m_buttonRows = a1->m_buttonRows;\n  if ( v3 == 1 )\n    v5 = (const char *)(m_buttonRows + 1);\n  else\n    v5 = (const char *)(m_buttonRows - 1);\n  if ( (int)v5 < 2 )\n    v5 = (_BYTE *)(&dword_0 + 2);\n  if ( (int)v5 >= 3 )\n    v5 = (char *)&dword_0 + 3;\n  a1->m_buttonRows = (int)v5;\n  m_buttonRowsLabel = a1->m_buttonRowsLabel;\n  setString = m_buttonRowsLabel->setString;\n  v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", v5);\n  CString = cocos2d::CCString::getCString(v8);\n  setString(m_buttonRowsLabel, (const unsigned __int8 *)CString);\n}", "assembly": "; \n; EditorOptionsLayer::onButtonRows from 0x4a7660 to 0x4a76ac (76 bytes)\n; \n; 0 xrefs:\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\nLDR             R3, [R1]                                               ; +0x0, 0x4a7660\nPUSH            {R4-R6,LR}                                             ; +0x2, 0x4a7662\nMOV             R4, R0                                                 ; +0x4, 0x4a7664\nLDR             R3, [R3,#0x20]                                         ; +0x6, 0x4a7666\nMOV             R0, R1                                                 ; +0x8, 0x4a7668\nBLX             R3                                                     ; +0xa, 0x4a766a\nLDR.W           R1, [R4,#0x2F8]                                        ; +0xc, 0x4a766c\nCMP             R0, #1                                                 ; +0x10, 0x4a7670\nLDR             R0, =(aI - 0x4A7682); \"%i\"                             ; +0x12, 0x4a7672\nITE EQ                                                                 ; +0x14, 0x4a7674\nADDEQ           R1, #1                                                 ; +0x16, 0x4a7676\nADDNE.W         R1, R1, #0xFFFFFFFF                                    ; +0x18, 0x4a7678\nCMP             R1, #2                                                 ; +0x1c, 0x4a767c\nADD             R0, PC; \"%i\"                                           ; +0x1e, 0x4a767e\nIT LT                                                                  ; +0x20, 0x4a7680\nMOVLT           R1, #2                                                 ; +0x22, 0x4a7682\nCMP             R1, #3                                                 ; +0x24, 0x4a7684\nIT GE                                                                  ; +0x26, 0x4a7686\nMOVGE           R1, #(dword_0+3); char *                               ; +0x28, 0x4a7688\nSTR.W           R1, [R4,#0x2F8]                                        ; +0x2a, 0x4a768a\nLDR.W           R4, [R4,#0x300]                                        ; +0x2e, 0x4a768e\nLDR             R3, [R4]                                               ; +0x32, 0x4a7692\nLDR.W           R5, [R3,#0x1C8]                                        ; +0x34, 0x4a7694\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x38, 0x4a7698\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x3c, 0x4a769c\nMOV             R3, R5                                                 ; +0x40, 0x4a76a0\nMOV             R1, R0                                                 ; +0x42, 0x4a76a2\nMOV             R0, R4                                                 ; +0x44, 0x4a76a4\nPOP.W           {R4-R6,LR}                                             ; +0x46, 0x4a76a6\nBX              R3                                                     ; +0x4a, 0x4a76aa", "xrefs": [], "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"}