{"type": "func", "start": 8130700, "end": 8130952, "name": "EditorUI::getSimpleButton", "pseudocode": "// \n// EditorUI::getSimpleButton from 0x7c108c to 0x7c1188 (252 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0xe8960\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:54:06 +0000\n// \n\n__int64 __fastcall EditorUI::getSimpleButton(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)\n{\n  cocos2d::CCSprite *v8; // x0\n  __int64 v10; // x19\n  void (__fastcall *v11)(__int64, long double); // x24\n  float v12; // s9\n  float v13; // s0\n  __int64 (__fastcall *v14)(__int64); // x1\n  long double v15; // q0\n  __int64 v16; // x19\n\n  v8 = (cocos2d::CCSprite *)(a2 + 1);\n  if ( (*(_BYTE *)a2 & 1) != 0 )\n    v8 = *(cocos2d::CCSprite **)(a2 + 16);\n  v10 = cocos2d::CCSprite::createWithSpriteFrameName(v8, (const char *)a2);\n  v11 = *(void (__fastcall **)(__int64, long double))(*(_QWORD *)v10 + 160LL);\n  v12 = 18.0 / *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 328LL))(v10);\n  v13 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 328LL))(v10) + 4);\n  v14 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 328LL);\n  if ( v12 <= (float)(18.0 / v13) )\n    *(float *)&v15 = 18.0 / *(float *)v14(v10);\n  else\n    *(float *)&v15 = 18.0 / *(float *)(v14(v10) + 4);\n  v11(v10, v15);\n  v16 = CCMenuItemSpriteExtra::create(v10, 0, a1, a3, a4);\n  if ( a5 )\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a5 + 456LL))(a5, v16);\n  return v16;\n}", "assembly": "; \n; EditorUI::getSimpleButton from 0x7c108c to 0x7c1188 (252 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0xe8960\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:54:06 +0000\n; \nSTP             X29, X30, [SP,#-0x50+var_s0]!                          ; +0x0, 0x7c108c\nMOV             X29, SP                                                ; +0x4, 0x7c1090\nSTP             D8, D9, [SP,#var_s40]                                  ; +0x8, 0x7c1094\nSTP             X23, X24, [SP,#var_s30]                                ; +0xc, 0x7c1098\nMOV             X23, X0                                                ; +0x10, 0x7c109c\nMOV             X0, X1                                                 ; +0x14, 0x7c10a0\nSTP             X21, X22, [SP,#var_s20]                                ; +0x18, 0x7c10a4\nSTP             X19, X20, [SP,#var_s10]                                ; +0x1c, 0x7c10a8\nMOV             X20, X2                                                ; +0x20, 0x7c10ac\nMOV             X21, X3                                                ; +0x24, 0x7c10b0\nLDRB            W2, [X0],#1                                            ; +0x28, 0x7c10b4\nMOV             X22, X4                                                ; +0x2c, 0x7c10b8\nTBZ             W2, #0, loc_7C10C4                                     ; +0x30, 0x7c10bc\nLDR             X0, [X1,#0x10]; this                                   ; +0x34, 0x7c10c0\nFMOV            S8, #18.0                                              ; +0x38, 0x7c10c4\nBL              _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x3c, 0x7c10c8\nLDR             X1, [X0]                                               ; +0x40, 0x7c10cc\nMOV             X19, X0                                                ; +0x44, 0x7c10d0\nLDR             X2, [X1,#0x148]                                        ; +0x48, 0x7c10d4\nLDR             X24, [X1,#0xA0]                                        ; +0x4c, 0x7c10d8\nBLR             X2                                                     ; +0x50, 0x7c10dc\nLDR             S9, [X0]                                               ; +0x54, 0x7c10e0\nLDR             X1, [X19]                                              ; +0x58, 0x7c10e4\nMOV             X0, X19                                                ; +0x5c, 0x7c10e8\nFDIV            S9, S8, S9                                             ; +0x60, 0x7c10ec\nLDR             X1, [X1,#0x148]                                        ; +0x64, 0x7c10f0\nBLR             X1                                                     ; +0x68, 0x7c10f4\nLDR             S0, [X0,#4]                                            ; +0x6c, 0x7c10f8\nLDR             X1, [X19]                                              ; +0x70, 0x7c10fc\nMOV             X0, X19                                                ; +0x74, 0x7c1100\nFDIV            S0, S8, S0                                             ; +0x78, 0x7c1104\nLDR             X1, [X1,#0x148]                                        ; +0x7c, 0x7c1108\nFCMPE           S9, S0                                                 ; +0x80, 0x7c110c\nB.LE            loc_7C1178                                             ; +0x84, 0x7c1110\nBLR             X1                                                     ; +0x88, 0x7c1114\nLDR             S0, [X0,#4]                                            ; +0x8c, 0x7c1118\nFDIV            S0, S8, S0                                             ; +0x90, 0x7c111c\nMOV             X0, X19                                                ; +0x94, 0x7c1120\nBLR             X24                                                    ; +0x98, 0x7c1124\nMOV             X0, X19                                                ; +0x9c, 0x7c1128\nMOV             X1, #0                                                 ; +0xa0, 0x7c112c\nMOV             X2, X23                                                ; +0xa4, 0x7c1130\nMOV             X3, X20                                                ; +0xa8, 0x7c1134\nMOV             X4, X21                                                ; +0xac, 0x7c1138\nBL              _ZN21CCMenuItemSpriteExtra6createEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemSpriteExtra::create(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0xb0, 0x7c113c\nMOV             X19, X0                                                ; +0xb4, 0x7c1140\nCBZ             X22, loc_7C115C                                        ; +0xb8, 0x7c1144\nLDR             X2, [X22]                                              ; +0xbc, 0x7c1148\nMOV             X0, X22                                                ; +0xc0, 0x7c114c\nMOV             X1, X19                                                ; +0xc4, 0x7c1150\nLDR             X2, [X2,#0x1C8]                                        ; +0xc8, 0x7c1154\nBLR             X2                                                     ; +0xcc, 0x7c1158\nMOV             X0, X19                                                ; +0xd0, 0x7c115c\nLDP             D8, D9, [SP,#var_s40]                                  ; +0xd4, 0x7c1160\nLDP             X19, X20, [SP,#var_s10]                                ; +0xd8, 0x7c1164\nLDP             X21, X22, [SP,#var_s20]                                ; +0xdc, 0x7c1168\nLDP             X23, X24, [SP,#var_s30]                                ; +0xe0, 0x7c116c\nLDP             X29, X30, [SP+var_s0],#0x50                            ; +0xe4, 0x7c1170\nRET                                                                    ; +0xe8, 0x7c1174\nBLR             X1                                                     ; +0xec, 0x7c1178\nLDR             S0, [X0]                                               ; +0xf0, 0x7c117c\nFDIV            S0, S8, S0                                             ; +0xf4, 0x7c1180\nB               loc_7C1120                                             ; +0xf8, 0x7c1184", "xrefs": ["<???> @ 0xe8960"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}