{"type": "func", "start": 6106192, "end": 6106268, "name": "EditorOptionsLayer::onButtonsPerRow", "pseudocode": "// \n// EditorOptionsLayer::onButtonsPerRow from 0x5d2c50 to 0x5d2c9c (76 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:54:06 +0000\n// \n\nint __fastcall EditorOptionsLayer::onButtonsPerRow(EditorOptionsLayer *this, cocos2d::CCObject *a2)\n{\n  int v3; // r0\n  int v4; // r1\n  const char *v5; // r1\n  int v6; // r4\n  int (__fastcall *v7)(int, int); // r5\n  cocos2d::CCString *v8; // r0\n  int CString; // r0\n\n  v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);\n  v4 = *((_DWORD *)this + 195);\n  if ( v3 == 1 )\n    v5 = (const char *)(v4 + 1);\n  else\n    v5 = (const char *)(v4 - 1);\n  if ( (int)v5 < 6 )\n    v5 = &byte_6;\n  if ( (int)v5 >= 12 )\n    v5 = &byte_9[3];\n  *((_DWORD *)this + 195) = v5;\n  v6 = *((_DWORD *)this + 197);\n  v7 = *(int (__fastcall **)(int, int))(*(_DWORD *)v6 + 464);\n  v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", v5);\n  CString = cocos2d::CCString::getCString(v8);\n  return v7(v6, CString);\n}", "assembly": "; \n; EditorOptionsLayer::onButtonsPerRow from 0x5d2c50 to 0x5d2c9c (76 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:54:06 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x5d2c50\nMOV             R4, R0                                                 ; +0x2, 0x5d2c52\nLDR             R3, [R1]                                               ; +0x4, 0x5d2c54\nMOV             R0, R1                                                 ; +0x6, 0x5d2c56\nLDR             R3, [R3,#0x20]                                         ; +0x8, 0x5d2c58\nBLX             R3                                                     ; +0xa, 0x5d2c5a\nLDR.W           R1, [R4,#0x30C]                                        ; +0xc, 0x5d2c5c\nCMP             R0, #1                                                 ; +0x10, 0x5d2c60\nLDR             R0, =(aI - 0x5D2C72); \"%i\"                             ; +0x12, 0x5d2c62\nITE EQ                                                                 ; +0x14, 0x5d2c64\nADDEQ           R1, #1                                                 ; +0x16, 0x5d2c66\nADDNE.W         R1, R1, #0xFFFFFFFF                                    ; +0x18, 0x5d2c68\nCMP             R1, #6                                                 ; +0x1c, 0x5d2c6c\nADD             R0, PC; \"%i\"                                           ; +0x1e, 0x5d2c6e\nIT LT                                                                  ; +0x20, 0x5d2c70\nMOVLT           R1, #6                                                 ; +0x22, 0x5d2c72\nCMP             R1, #0xC                                               ; +0x24, 0x5d2c74\nIT GE                                                                  ; +0x26, 0x5d2c76\nMOVGE           R1, #(byte_9+3); char *                                ; +0x28, 0x5d2c78\nSTR.W           R1, [R4,#0x30C]                                        ; +0x2a, 0x5d2c7a\nLDR.W           R4, [R4,#0x314]                                        ; +0x2e, 0x5d2c7e\nLDR             R3, [R4]                                               ; +0x32, 0x5d2c82\nLDR.W           R5, [R3,#0x1D0]                                        ; +0x34, 0x5d2c84\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x38, 0x5d2c88\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x3c, 0x5d2c8c\nMOV             R3, R5                                                 ; +0x40, 0x5d2c90\nMOV             R1, R0                                                 ; +0x42, 0x5d2c92\nMOV             R0, R4                                                 ; +0x44, 0x5d2c94\nPOP.W           {R4-R6,LR}                                             ; +0x46, 0x5d2c96\nBX              R3                                                     ; +0x4a, 0x5d2c9a", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}