{"type": "func", "start": 4879888, "end": 4879964, "name": "EditorOptionsLayer::onButtonsPerRow", "pseudocode": "// \n// EditorOptionsLayer::onButtonsPerRow from 0x4a7610 to 0x4a765c (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::onButtonsPerRow(EditorOptionsLayer *a1, cocos2d::CCObject *a2)\n{\n  int v3; // r0\n  int m_buttonsPerRow; // r1\n  const char *v5; // r1\n  cocos2d::CCLabelBMFont *m_buttonsPerRowLabel; // 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_buttonsPerRow = a1->m_buttonsPerRow;\n  if ( v3 == 1 )\n    v5 = (const char *)(m_buttonsPerRow + 1);\n  else\n    v5 = (const char *)(m_buttonsPerRow - 1);\n  if ( (int)v5 < 6 )\n    v5 = &byte_6;\n  if ( (int)v5 >= 12 )\n    v5 = &byte_9[3];\n  a1->m_buttonsPerRow = (int)v5;\n  m_buttonsPerRowLabel = a1->m_buttonsPerRowLabel;\n  setString = m_buttonsPerRowLabel->setString;\n  v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", v5);\n  CString = cocos2d::CCString::getCString(v8);\n  setString(m_buttonsPerRowLabel, (const unsigned __int8 *)CString);\n}", "assembly": "; \n; EditorOptionsLayer::onButtonsPerRow from 0x4a7610 to 0x4a765c (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, 0x4a7610\nPUSH            {R4-R6,LR}                                             ; +0x2, 0x4a7612\nMOV             R4, R0                                                 ; +0x4, 0x4a7614\nLDR             R3, [R3,#0x20]                                         ; +0x6, 0x4a7616\nMOV             R0, R1                                                 ; +0x8, 0x4a7618\nBLX             R3                                                     ; +0xa, 0x4a761a\nLDR.W           R1, [R4,#0x2F4]                                        ; +0xc, 0x4a761c\nCMP             R0, #1                                                 ; +0x10, 0x4a7620\nLDR             R0, =(aI - 0x4A7632); \"%i\"                             ; +0x12, 0x4a7622\nITE EQ                                                                 ; +0x14, 0x4a7624\nADDEQ           R1, #1                                                 ; +0x16, 0x4a7626\nADDNE.W         R1, R1, #0xFFFFFFFF                                    ; +0x18, 0x4a7628\nCMP             R1, #6                                                 ; +0x1c, 0x4a762c\nADD             R0, PC; \"%i\"                                           ; +0x1e, 0x4a762e\nIT LT                                                                  ; +0x20, 0x4a7630\nMOVLT           R1, #6                                                 ; +0x22, 0x4a7632\nCMP             R1, #0xC                                               ; +0x24, 0x4a7634\nIT GE                                                                  ; +0x26, 0x4a7636\nMOVGE           R1, #(byte_9+3); char *                                ; +0x28, 0x4a7638\nSTR.W           R1, [R4,#0x2F4]                                        ; +0x2a, 0x4a763a\nLDR.W           R4, [R4,#0x2FC]                                        ; +0x2e, 0x4a763e\nLDR             R3, [R4]                                               ; +0x32, 0x4a7642\nLDR.W           R5, [R3,#0x1C8]                                        ; +0x34, 0x4a7644\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x38, 0x4a7648\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x3c, 0x4a764c\nMOV             R3, R5                                                 ; +0x40, 0x4a7650\nMOV             R1, R0                                                 ; +0x42, 0x4a7652\nMOV             R0, R4                                                 ; +0x44, 0x4a7654\nPOP.W           {R4-R6,LR}                                             ; +0x46, 0x4a7656\nBX              R3                                                     ; +0x4a, 0x4a765a", "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"}