{"type": "func", "start": 4295015472, "end": 4295015537, "name": "EditorUI::getModeBtn", "pseudocode": "// \n// EditorUI::getModeBtn from 0x10000bc30 to 0x10000bc71 (65 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\nCCMenuItemSpriteExtra *__fastcall EditorUI::getModeBtn(EditorUI *a1, const char *a2, int a3)\n{\n  cocos2d::CCSprite *v4; // rax\n  CCMenuItemSpriteExtra *v5; // r14\n\n  v4 = cocos2d::CCSprite::createWithSpriteFrameName(a2);\n  v5 = CCMenuItemSpriteExtra::create(v4, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)EditorUI::toggleMode);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v5->setTag)(v5, (unsigned int)a3);\n  return v5;\n}", "assembly": "; \n; EditorUI::getModeBtn from 0x10000bc30 to 0x10000bc71 (65 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\npush    rbp                                                            ; +0x0, 0x10000bc30\nmov     rbp, rsp                                                       ; +0x1, 0x10000bc31\npush    r14                                                            ; +0x4, 0x10000bc34\npush    rbx                                                            ; +0x6, 0x10000bc36\nmov     ebx, edx                                                       ; +0x7, 0x10000bc37\nmov     r14, rdi                                                       ; +0x9, 0x10000bc39\nmov     rdi, rsi                                                       ; +0xc, 0x10000bc3c\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0xf, 0x10000bc3f\nlea     rcx, EditorUI__toggleMode                                      ; +0x14, 0x10000bc44\nmov     rdi, rax                                                       ; +0x1b, 0x10000bc4b\nxor     esi, esi                                                       ; +0x1e, 0x10000bc4e\nmov     rdx, r14                                                       ; +0x20, 0x10000bc50\nxor     r8d, r8d                                                       ; +0x23, 0x10000bc53\ncall    CCMenuItemSpriteExtra__create                                  ; +0x26, 0x10000bc56\nmov     r14, rax                                                       ; +0x2b, 0x10000bc5b\nmov     rax, [rax]                                                     ; +0x2e, 0x10000bc5e\nmov     rdi, r14                                                       ; +0x31, 0x10000bc61\nmov     esi, ebx                                                       ; +0x34, 0x10000bc64\ncall    qword ptr [rax+48h]                                            ; +0x36, 0x10000bc66\nmov     rax, r14                                                       ; +0x39, 0x10000bc69\npop     rbx                                                            ; +0x3c, 0x10000bc6c\npop     r14                                                            ; +0x3d, 0x10000bc6d\npop     rbp                                                            ; +0x3f, 0x10000bc6f\nretn                                                                   ; +0x40, 0x10000bc70", "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"}