{"type": "func", "start": 8158548, "end": 8158824, "name": "EditorUI::showMaxCoinError", "pseudocode": "// \n// EditorUI::showMaxCoinError from 0x7c7d54 to 0x7c7e68 (276 bytes)\n// \n// 2 xrefs:\n// > EditorUI::onCreate @ 0x7ca8d0\n// > <???> @ 0xbbe40\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:09 +0000\n// \n\n__int64 __fastcall EditorUI::showMaxCoinError(EditorUI *this)\n{\n  cocos2d::CCString *v3; // x0\n  const char *CString; // x0\n  size_t v5; // x0\n  __int64 v6; // x20\n  char *v7; // [xsp+38h] [xbp+38h]\n  __int64 v8[2]; // [xsp+40h] [xbp+40h] BYREF\n  void *v9; // [xsp+50h] [xbp+50h]\n\n  if ( !*((_BYTE *)this + 632) )\n  {\n    *((_BYTE *)this + 632) = (unsigned __int8)&dword_0 + 1;\n    v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                (cocos2d::CCString *)\"You cannot add more than <cy>3</c> <cg>coins</c> in a single level.\",\n                                (const char *)&dword_0 + 1);\n    CString = (const char *)cocos2d::CCString::getCString(v3);\n    v8[0] = 0;\n    v7 = (char *)CString;\n    v8[1] = 0;\n    v9 = nullptr;\n    v5 = strlen(CString);\n    std::string::__init(v8, v7, v5);\n    v6 = FLAlertLayer::create(\n           (__int64)this + 408,\n           (cocos2d::CCLabelBMFont *)\"Max Coins\",\n           (char *)v8,\n           (ButtonSprite *)\"OK\",\n           nullptr,\n           300.0);\n    if ( (v8[0] & 1) != 0 )\n      operator delete(v9);\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 72LL))(v6, 122);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorUI::showMaxCoinError from 0x7c7d54 to 0x7c7e68 (276 bytes)\n; \n; 2 xrefs:\n; > EditorUI::onCreate @ 0x7ca8d0\n; > <???> @ 0xbbe40\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:09 +0000\n; \nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x7c7d54\nMOV             X29, SP                                                ; +0x4, 0x7c7d58\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x7c7d5c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x7c7d60\nSTR             X21, [SP,#0x60+var_40]                                 ; +0x10, 0x7c7d64\nMOV             X20, X0                                                ; +0x14, 0x7c7d68\nLDRB            W0, [X0,#0x278]                                        ; +0x18, 0x7c7d6c\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x7c7d70\nLDR             X1, [X1]                                               ; +0x20, 0x7c7d74\nSTR             X1, [X29,#0x60+var_8]                                  ; +0x24, 0x7c7d78\nCBZ             W0, loc_7C7DA4                                         ; +0x28, 0x7c7d7c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x2c, 0x7c7d80\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x30, 0x7c7d84\nLDR             X0, [X19]                                              ; +0x34, 0x7c7d88\nCMP             X1, X0                                                 ; +0x38, 0x7c7d8c\nB.NE            loc_7C7E48                                             ; +0x3c, 0x7c7d90\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x40, 0x7c7d94\nLDR             X21, [SP,#0x60+var_40]                                 ; +0x44, 0x7c7d98\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x48, 0x7c7d9c\nRET                                                                    ; +0x4c, 0x7c7da0\nADRP            X0, #aYouCannotAddMo@PAGE; \"You cannot add more than <cy>3</c> <cg>\"... ; +0x50, 0x7c7da4\nMOV             W1, #(dword_0+1); char *                               ; +0x54, 0x7c7da8\nADD             X0, X0, #aYouCannotAddMo@PAGEOFF; \"You cannot add more than <cy>3</c> <cg>\"... ; +0x58, 0x7c7dac\nSTRB            W1, [X20,#0x278]                                       ; +0x5c, 0x7c7db0\nADD             X21, X29, #0x60+var_20                                 ; +0x60, 0x7c7db4\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x64, 0x7c7db8\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x68, 0x7c7dbc\nSTR             XZR, [X29,#0x60+var_20]                                ; +0x6c, 0x7c7dc0\nSTR             X0, [X29,#0x60+var_28]                                 ; +0x70, 0x7c7dc4\nSTR             XZR, [X29,#0x60+var_18]                                ; +0x74, 0x7c7dc8\nSTR             XZR, [X29,#0x60+var_10]                                ; +0x78, 0x7c7dcc\nBL              .strlen                                                ; +0x7c, 0x7c7dd0\nLDR             X1, [X29,#0x60+var_28]                                 ; +0x80, 0x7c7dd4\nMOV             X2, X0                                                 ; +0x84, 0x7c7dd8\nMOV             X0, X21                                                ; +0x88, 0x7c7ddc\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x8c, 0x7c7de0\nLDR             S0, =0x43960000                                        ; +0x90, 0x7c7de4\nADRP            X1, #aMaxCoins_0@PAGE; \"Max Coins\"                     ; +0x94, 0x7c7de8\nADRP            X3, #aOk@PAGE; \"OK\"                                    ; +0x98, 0x7c7dec\nADD             X0, X20, #0x198                                        ; +0x9c, 0x7c7df0\nADD             X1, X1, #aMaxCoins_0@PAGEOFF; \"Max Coins\"              ; +0xa0, 0x7c7df4\nMOV             X2, X21                                                ; +0xa4, 0x7c7df8\nADD             X3, X3, #aOk@PAGEOFF; \"OK\"                             ; +0xa8, 0x7c7dfc\nMOV             X4, #0                                                 ; +0xac, 0x7c7e00\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0xb0, 0x7c7e04\nMOV             X20, X0                                                ; +0xb4, 0x7c7e08\nLDRB            W0, [X29,#0x60+var_20]                                 ; +0xb8, 0x7c7e0c\nTBNZ            W0, #0, loc_7C7E3C                                     ; +0xbc, 0x7c7e10\nLDR             X2, [X20]                                              ; +0xc0, 0x7c7e14\nMOV             X0, X20                                                ; +0xc4, 0x7c7e18\nMOV             W1, #0x7A ; 'z'                                        ; +0xc8, 0x7c7e1c\nLDR             X2, [X2,#0x48]                                         ; +0xcc, 0x7c7e20\nBLR             X2                                                     ; +0xd0, 0x7c7e24\nLDR             X1, [X20]                                              ; +0xd4, 0x7c7e28\nMOV             X0, X20                                                ; +0xd8, 0x7c7e2c\nLDR             X1, [X1,#0x520]                                        ; +0xdc, 0x7c7e30\nBLR             X1                                                     ; +0xe0, 0x7c7e34\nB               loc_7C7D80                                             ; +0xe4, 0x7c7e38\nLDR             X0, [X29,#0x60+var_10]; void *                         ; +0xe8, 0x7c7e3c\nBL              _ZdlPv; operator delete(void *)                        ; +0xec, 0x7c7e40\nB               loc_7C7E14                                             ; +0xf0, 0x7c7e44\nBL              .__stack_chk_fail                                      ; +0xf4, 0x7c7e48\nLDRB            W1, [X29,#0x60+var_20]                                 ; +0xf8, 0x7c7e4c\nMOV             X19, X0                                                ; +0xfc, 0x7c7e50\nTBZ             W1, #0, loc_7C7E60                                     ; +0x100, 0x7c7e54\nLDR             X0, [X29,#0x60+var_10]; void *                         ; +0x104, 0x7c7e58\nBL              _ZdlPv; operator delete(void *)                        ; +0x108, 0x7c7e5c\nMOV             X0, X19                                                ; +0x10c, 0x7c7e60\nBL              _Unwind_Resume                                         ; +0x110, 0x7c7e64", "xrefs": ["EditorUI::onCreate @ 0x7ca8d0", "<???> @ 0xbbe40"], "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"}