{"type": "func", "start": 5369637120, "end": 5369637439, "name": "EditorUI::getSpriteButton", "pseudocode": "// \n// EditorUI::getSpriteButton from 0x1400e2900 to 0x1400e2a3f (319 bytes)\n// \n// 9 xrefs:\n// > EditorUI::init @ 0x1400dff20\n// > EditorUI::getSpriteButton_1 @ 0x1400e28d7\n// > EditorUI::setupDeleteMenu @ 0x1400e50a0\n// > EditorUI::setupDeleteMenu @ 0x1400e550e\n// > EditorUI::setupDeleteMenu @ 0x1400e55b7\n// > EditorUI::setupDeleteMenu @ 0x1400e5641\n// > EditorUI::setupDeleteMenu @ 0x1400e5b99\n// > EditorUI::setupDeleteMenu @ 0x1400e5c3b\n// > <???> @ 0x1406c8bd4\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 *EditorUI::getSpriteButton(\n        EditorUI *a1,\n        cocos2d::CCSprite *a2,\n        cocos2d::SEL_MenuHandler *a3,\n        cocos2d::CCMenu *a4,\n        float a5,\n        int a6,\n        cocos2d::CCPoint a7)\n{\n  const char *v10; // rax\n  ButtonSprite *v11; // rsi\n  CCMenuItemSpriteExtra *v12; // rax\n  float v13; // xmm6_4\n  CCMenuItemSpriteExtra *v14; // rdi\n  __int64 v15; // rax\n  bool v17; // [rsp+28h] [rbp-30h]\n  cocos2d::CCPoint v18; // [rsp+78h] [rbp+20h] BYREF\n\n  switch ( a6 )\n  {\n    case 2:\n      v10 = \"GJ_button_02.png\";\n      break;\n    case 3:\n      v10 = \"GJ_button_03.png\";\n      break;\n    case 4:\n      v10 = \"GJ_button_04.png\";\n      break;\n    case 5:\n      v10 = \"GJ_button_05.png\";\n      break;\n    case 6:\n      v10 = \"GJ_button_06.png\";\n      break;\n    default:\n      v10 = \"GJ_button_01.png\";\n      break;\n  }\n  v11 = ButtonSprite::create(a2, 32, (int)a2, 32.0, 1.0, v17, v10, 1);\n  v12 = CCMenuItemSpriteExtra::create(v11, nullptr, a1, a3);\n  v13 = a5;\n  v14 = v12;\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *))v12->setScale_0)(v12);\n  *((float *)&v14->m_pDisabledImage + 1) = v13;\n  if ( a4 )\n    a4->addChild_1(a4, v14);\n  cocos2d::CCPoint::CCPoint(&v18, *(const struct cocos2d::CCPoint **)&a7);\n  cocos2d::CCPoint::operator=(&v11->m_spritePosition, v15);\n  ButtonSprite::updateSpriteBGSize(v11);\n  return v14;\n}", "assembly": "; \n; EditorUI::getSpriteButton from 0x1400e2900 to 0x1400e2a3f (319 bytes)\n; \n; 9 xrefs:\n; > EditorUI::init @ 0x1400dff20\n; > EditorUI::getSpriteButton_1 @ 0x1400e28d7\n; > EditorUI::setupDeleteMenu @ 0x1400e50a0\n; > EditorUI::setupDeleteMenu @ 0x1400e550e\n; > EditorUI::setupDeleteMenu @ 0x1400e55b7\n; > EditorUI::setupDeleteMenu @ 0x1400e5641\n; > EditorUI::setupDeleteMenu @ 0x1400e5b99\n; > EditorUI::setupDeleteMenu @ 0x1400e5c3b\n; > <???> @ 0x1406c8bd4\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400e2900\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1400e2905\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1400e290a\npush    rdi                                                            ; +0xf, 0x1400e290f\nsub     rsp, 50h                                                       ; +0x10, 0x1400e2910\nmov     r10d, [rsp+58h+arg_28]                                         ; +0x14, 0x1400e2914\nmov     rdi, r8                                                        ; +0x1c, 0x1400e291c\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x1f, 0x1400e291f\nmov     rbx, r9                                                        ; +0x24, 0x1400e2924\nmov     r8, rdx                                                        ; +0x27, 0x1400e2927\nmov     rbp, rcx                                                       ; +0x2a, 0x1400e292a\nsub     r10d, 2                                                        ; +0x2d, 0x1400e292d\njz      short loc_1400E2978                                            ; +0x31, 0x1400e2931\nsub     r10d, 1                                                        ; +0x33, 0x1400e2933\njz      short loc_1400E296F                                            ; +0x37, 0x1400e2937\nsub     r10d, 1                                                        ; +0x39, 0x1400e2939\njz      short loc_1400E2966                                            ; +0x3d, 0x1400e293d\nsub     r10d, 1                                                        ; +0x3f, 0x1400e293f\njz      short loc_1400E295D                                            ; +0x43, 0x1400e2943\ncmp     r10d, 1                                                        ; +0x45, 0x1400e2945\njz      short loc_1400E2954                                            ; +0x49, 0x1400e2949\nlea     rax, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x4b, 0x1400e294b\njmp     short loc_1400E297F                                            ; +0x52, 0x1400e2952\nlea     rax, aGjButton06Png; \"GJ_button_06.png\"                        ; +0x54, 0x1400e2954\njmp     short loc_1400E297F                                            ; +0x5b, 0x1400e295b\nlea     rax, aGjButton05Png; \"GJ_button_05.png\"                        ; +0x5d, 0x1400e295d\njmp     short loc_1400E297F                                            ; +0x64, 0x1400e2964\nlea     rax, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x66, 0x1400e2966\njmp     short loc_1400E297F                                            ; +0x6d, 0x1400e296d\nlea     rax, aGjButton03Png; \"GJ_button_03.png\"                        ; +0x6f, 0x1400e296f\njmp     short loc_1400E297F                                            ; +0x76, 0x1400e2976\nlea     rax, aGjButton02Png; \"GJ_button_02.png\"                        ; +0x78, 0x1400e2978\nmovss   xmm0, cs:flt_140622C24                                         ; +0x7f, 0x1400e297f\nmov     edx, 20h ; ' '                                                 ; +0x87, 0x1400e2987\nmovss   xmm3, cs:dword_140623180                                       ; +0x8c, 0x1400e298c\nmov     rcx, r8                                                        ; +0x94, 0x1400e2994\nmov     [rsp+58h+var_20], 1                                            ; +0x97, 0x1400e2997\nmov     [rsp+58h+var_28], rax                                          ; +0x9c, 0x1400e299c\nmovss   [rsp+58h+var_38], xmm0                                         ; +0xa1, 0x1400e29a1\ncall    ButtonSprite__create                                           ; +0xa7, 0x1400e29a7\nmov     r9, rdi                                                        ; +0xac, 0x1400e29ac\nmov     r8, rbp                                                        ; +0xaf, 0x1400e29af\nxor     edx, edx                                                       ; +0xb2, 0x1400e29b2\nmov     rcx, rax                                                       ; +0xb4, 0x1400e29b4\nmov     rsi, rax                                                       ; +0xb7, 0x1400e29b7\ncall    CCMenuItemSpriteExtra__create                                  ; +0xba, 0x1400e29ba\nmovss   xmm6, [rsp+58h+arg_20]                                         ; +0xbf, 0x1400e29bf\nmov     rcx, rax                                                       ; +0xc8, 0x1400e29c8\nmovaps  xmm1, xmm6                                                     ; +0xcb, 0x1400e29cb\nmov     rdi, rax                                                       ; +0xce, 0x1400e29ce\nmov     rdx, [rax]                                                     ; +0xd1, 0x1400e29d1\ncall    qword ptr [rdx+0A0h]                                           ; +0xd4, 0x1400e29d4\nmovss   dword ptr [rdi+194h], xmm6                                     ; +0xda, 0x1400e29da\ntest    rbx, rbx                                                       ; +0xe2, 0x1400e29e2\njz      short loc_1400E29F7                                            ; +0xe5, 0x1400e29e5\nmov     r8, [rbx]                                                      ; +0xe7, 0x1400e29e7\nmov     rdx, rdi                                                       ; +0xea, 0x1400e29ea\nmov     rcx, rbx                                                       ; +0xed, 0x1400e29ed\ncall    qword ptr [r8+1C0h]                                            ; +0xf0, 0x1400e29f0\nmov     rdx, [rsp+58h+arg_30]                                          ; +0xf7, 0x1400e29f7\nlea     rcx, [rsp+58h+arg_18]                                          ; +0xff, 0x1400e29ff\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x104, 0x1400e2a04\nmov     rdx, rax                                                       ; +0x10a, 0x1400e2a0a\nlea     rcx, [rsi+298h]                                                ; +0x10d, 0x1400e2a0d\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x114, 0x1400e2a14\nmov     rcx, rsi                                                       ; +0x11a, 0x1400e2a1a\ncall    ButtonSprite__updateSpriteBGSize                               ; +0x11d, 0x1400e2a1d\nmov     rbx, [rsp+58h+arg_0]                                           ; +0x122, 0x1400e2a22\nmov     rax, rdi                                                       ; +0x127, 0x1400e2a27\nmov     rbp, [rsp+58h+arg_8]                                           ; +0x12a, 0x1400e2a2a\nmov     rsi, [rsp+58h+arg_10]                                          ; +0x12f, 0x1400e2a2f\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0x134, 0x1400e2a34\nadd     rsp, 50h                                                       ; +0x139, 0x1400e2a39\npop     rdi                                                            ; +0x13d, 0x1400e2a3d\nretn                                                                   ; +0x13e, 0x1400e2a3e", "xrefs": ["EditorUI::init @ 0x1400dff20", "EditorUI::getSpriteButton_1 @ 0x1400e28d7", "EditorUI::setupDeleteMenu @ 0x1400e50a0", "EditorUI::setupDeleteMenu @ 0x1400e550e", "EditorUI::setupDeleteMenu @ 0x1400e55b7", "EditorUI::setupDeleteMenu @ 0x1400e5641", "EditorUI::setupDeleteMenu @ 0x1400e5b99", "EditorUI::setupDeleteMenu @ 0x1400e5c3b", "<???> @ 0x1406c8bd4"], "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"}