{"type": "func", "start": 4297713280, "end": 4297713388, "name": "EditorOptionsLayer::onButtonRows", "pseudocode": "// \n// EditorOptionsLayer::onButtonRows from 0x10029e680 to 0x10029e6ec (108 bytes)\n// \n// 2 xrefs:\n// > EditorOptionsLayer::setupOptions @ 0x10029e47b\n// > EditorOptionsLayer::setupOptions @ 0x10029e551\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::onButtonRows(EditorOptionsLayer *a1, cocos2d::CCObject *a2)\n{\n  char v2; // al\n  cocos2d::CCLabelBMFont *m_buttonRowsLabel; // rbx\n  cocos2d::CCString *v4; // rax\n  const char *CString; // rax\n  char v6; // [rsp-8h] [rbp-10h]\n\n  v6 = v2;\n  a1->m_buttonRows = (a1->m_buttonRows\n                    + 2 * (((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 1)\n                    - 1 < 3)\n                   ^ 3;\n  m_buttonRowsLabel = a1->m_buttonRowsLabel;\n  v4 = (cocos2d::CCString *)sub_1007AB580(\"%i\", v6);\n  CString = cocos2d::CCString::getCString(v4);\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))m_buttonRowsLabel->setString)(\n    m_buttonRowsLabel,\n    CString);\n}", "assembly": "; \n; EditorOptionsLayer::onButtonRows from 0x10029e680 to 0x10029e6ec (108 bytes)\n; \n; 2 xrefs:\n; > EditorOptionsLayer::setupOptions @ 0x10029e47b\n; > EditorOptionsLayer::setupOptions @ 0x10029e551\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\npush    rbp                                                            ; +0x0, 0x10029e680\nmov     rbp, rsp                                                       ; +0x1, 0x10029e681\npush    rbx                                                            ; +0x4, 0x10029e684\npush    rax; char                                                      ; +0x5, 0x10029e685\nmov     rbx, rdi                                                       ; +0x6, 0x10029e686\nmov     rax, [rsi]                                                     ; +0x9, 0x10029e689\nmov     rdi, rsi                                                       ; +0xc, 0x10029e68c\ncall    qword ptr [rax+40h]                                            ; +0xf, 0x10029e68f\nxor     ecx, ecx                                                       ; +0x12, 0x10029e692\ncmp     eax, 1                                                         ; +0x14, 0x10029e694\nsetz    cl                                                             ; +0x17, 0x10029e697\nmov     eax, [rbx+3F0h]                                                ; +0x1a, 0x10029e69a\nlea     eax, [rax+rcx*2]                                               ; +0x20, 0x10029e6a0\ndec     eax                                                            ; +0x23, 0x10029e6a3\nxor     esi, esi                                                       ; +0x25, 0x10029e6a5\ncmp     eax, 3                                                         ; +0x27, 0x10029e6a7\nsetl    sil                                                            ; +0x2a, 0x10029e6aa\nxor     esi, 3                                                         ; +0x2e, 0x10029e6ae\nmov     [rbx+3F0h], esi                                                ; +0x31, 0x10029e6b1\nmov     rbx, [rbx+400h]                                                ; +0x37, 0x10029e6b7\nlea     rdi, aI; \"%i\"                                                  ; +0x3e, 0x10029e6be\nxor     eax, eax                                                       ; +0x45, 0x10029e6c5\ncall    sub_1007AB580                                                  ; +0x47, 0x10029e6c7\nmov     rdi, rax                                                       ; +0x4c, 0x10029e6cc\ncall    cocos2d__CCString__getCString                                  ; +0x4f, 0x10029e6cf\nmov     rcx, [rbx]                                                     ; +0x54, 0x10029e6d4\nmov     rcx, [rcx+390h]                                                ; +0x57, 0x10029e6d7\nmov     rdi, rbx                                                       ; +0x5e, 0x10029e6de\nmov     rsi, rax                                                       ; +0x61, 0x10029e6e1\nadd     rsp, 8                                                         ; +0x64, 0x10029e6e4\npop     rbx                                                            ; +0x68, 0x10029e6e8\npop     rbp                                                            ; +0x69, 0x10029e6e9\njmp     rcx                                                            ; +0x6a, 0x10029e6ea", "xrefs": ["EditorOptionsLayer::setupOptions @ 0x10029e47b", "EditorOptionsLayer::setupOptions @ 0x10029e551"], "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"}