{"type": "func", "start": 6106272, "end": 6106348, "name": "EditorOptionsLayer::onButtonRows", "pseudocode": "// \n// EditorOptionsLayer::onButtonRows from 0x5d2ca0 to 0x5d2cec (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::onButtonRows(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 + 196);\n  if ( v3 == 1 )\n    v5 = (const char *)(v4 + 1);\n  else\n    v5 = (const char *)(v4 - 1);\n  if ( (int)v5 < 2 )\n    v5 = (_BYTE *)(&dword_0 + 2);\n  if ( (int)v5 >= 3 )\n    v5 = (char *)&dword_0 + 3;\n  *((_DWORD *)this + 196) = v5;\n  v6 = *((_DWORD *)this + 198);\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::onButtonRows from 0x5d2ca0 to 0x5d2cec (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, 0x5d2ca0\nMOV             R4, R0                                                 ; +0x2, 0x5d2ca2\nLDR             R3, [R1]                                               ; +0x4, 0x5d2ca4\nMOV             R0, R1                                                 ; +0x6, 0x5d2ca6\nLDR             R3, [R3,#0x20]                                         ; +0x8, 0x5d2ca8\nBLX             R3                                                     ; +0xa, 0x5d2caa\nLDR.W           R1, [R4,#0x310]                                        ; +0xc, 0x5d2cac\nCMP             R0, #1                                                 ; +0x10, 0x5d2cb0\nLDR             R0, =(aI - 0x5D2CC2); \"%i\"                             ; +0x12, 0x5d2cb2\nITE EQ                                                                 ; +0x14, 0x5d2cb4\nADDEQ           R1, #1                                                 ; +0x16, 0x5d2cb6\nADDNE.W         R1, R1, #0xFFFFFFFF                                    ; +0x18, 0x5d2cb8\nCMP             R1, #2                                                 ; +0x1c, 0x5d2cbc\nADD             R0, PC; \"%i\"                                           ; +0x1e, 0x5d2cbe\nIT LT                                                                  ; +0x20, 0x5d2cc0\nMOVLT           R1, #2                                                 ; +0x22, 0x5d2cc2\nCMP             R1, #3                                                 ; +0x24, 0x5d2cc4\nIT GE                                                                  ; +0x26, 0x5d2cc6\nMOVGE           R1, #(dword_0+3); char *                               ; +0x28, 0x5d2cc8\nSTR.W           R1, [R4,#0x310]                                        ; +0x2a, 0x5d2cca\nLDR.W           R4, [R4,#0x318]                                        ; +0x2e, 0x5d2cce\nLDR             R3, [R4]                                               ; +0x32, 0x5d2cd2\nLDR.W           R5, [R3,#0x1D0]                                        ; +0x34, 0x5d2cd4\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x38, 0x5d2cd8\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x3c, 0x5d2cdc\nMOV             R3, R5                                                 ; +0x40, 0x5d2ce0\nMOV             R1, R0                                                 ; +0x42, 0x5d2ce2\nMOV             R0, R4                                                 ; +0x44, 0x5d2ce4\nPOP.W           {R4-R6,LR}                                             ; +0x46, 0x5d2ce6\nBX              R3                                                     ; +0x4a, 0x5d2cea", "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"}