{"type": "func", "start": 4299076100, "end": 4299076276, "name": "EditorUI::showMaxCoinError", "pseudocode": "// \n// EditorUI::showMaxCoinError from 0x1003eb204 to 0x1003eb2b4 (176 bytes)\n// \n// 1 xrefs:\n// > EditorUI::onCreate @ 0x1003e6c1c\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 EditorUI::showMaxCoinError(EditorUI *a1)\n{\n  cocos2d::CCString *v2; // x0\n  char *CString; // x0\n  FLAlertLayer *v4; // x19\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v6; // [xsp+1Fh] [xbp-11h]\n\n  if ( !a1->m_alertShown )\n  {\n    a1->m_alertShown = 1;\n    v2 = (cocos2d::CCString *)sub_100268F4C(\"You cannot add more than <cy>3</c> <cg>coins</c> in a single level.\");\n    CString = (char *)cocos2d::CCString::getCString(v2);\n    sub_100009900(__p, CString);\n    v4 = FLAlertLayer::create_1(\n           (__int64)&a1->FLAlertLayerProtocol,\n           (__int64)\"Max Coins\",\n           (__int64)__p,\n           (__int64)\"OK\",\n           0,\n           300.0);\n    if ( v6 < 0 )\n      operator delete(__p[0]);\n    ((void (__fastcall *)(FLAlertLayer *, __int64))v4->setTag)(v4, 122);\n    ((void (__fastcall *)(FLAlertLayer *))v4->show)(v4);\n  }\n}", "assembly": "; \n; EditorUI::showMaxCoinError from 0x1003eb204 to 0x1003eb2b4 (176 bytes)\n; \n; 1 xrefs:\n; > EditorUI::onCreate @ 0x1003e6c1c\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x1003eb204\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1003eb208\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1003eb20c\nADD             X29, SP, #0x30                                         ; +0xc, 0x1003eb210\nLDRB            W8, [X0,#0x250]                                        ; +0x10, 0x1003eb214\nTBNZ            W8, #0, loc_1003EB2A4                                  ; +0x14, 0x1003eb218\nMOV             X19, X0                                                ; +0x18, 0x1003eb21c\nMOV             W8, #1                                                 ; +0x1c, 0x1003eb220\nSTRB            W8, [X0,#0x250]                                        ; +0x20, 0x1003eb224\nADRL            X0, aYouCannotAddMo; \"You cannot add more than <cy>3</c> <cg>\"... ; +0x24, 0x1003eb228\nBL              sub_100268F4C                                          ; +0x2c, 0x1003eb230\nBL              cocos2d__CCString__getCString                          ; +0x30, 0x1003eb234\nMOV             X1, X0; __s                                            ; +0x34, 0x1003eb238\nADD             X0, SP, #0x30+__p; int                                 ; +0x38, 0x1003eb23c\nBL              sub_100009900                                          ; +0x3c, 0x1003eb240\nADRL            X1, aMaxCoins_0; \"Max Coins\"                           ; +0x40, 0x1003eb244\nADRL            X3, aOk; \"OK\"                                          ; +0x48, 0x1003eb24c\nMOV             W8, #0x43960000                                        ; +0x50, 0x1003eb254\nFMOV            S0, W8                                                 ; +0x54, 0x1003eb258\nADD             X0, X19, #0x198                                        ; +0x58, 0x1003eb25c\nADD             X2, SP, #0x30+__p                                      ; +0x5c, 0x1003eb260\nMOV             X4, #0                                                 ; +0x60, 0x1003eb264\nBL              FLAlertLayer__create_1                                 ; +0x64, 0x1003eb268\nMOV             X19, X0                                                ; +0x68, 0x1003eb26c\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x6c, 0x1003eb270\nTBZ             W8, #0x1F, loc_1003EB280                               ; +0x70, 0x1003eb274\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x74, 0x1003eb278\nBL              __ZdlPv; operator delete(void *)                       ; +0x78, 0x1003eb27c\nLDR             X8, [X19]                                              ; +0x7c, 0x1003eb280\nLDR             X8, [X8,#0x48]                                         ; +0x80, 0x1003eb284\nMOV             X0, X19                                                ; +0x84, 0x1003eb288\nMOV             W1, #0x7A ; 'z'                                        ; +0x88, 0x1003eb28c\nBLR             X8                                                     ; +0x8c, 0x1003eb290\nLDR             X8, [X19]                                              ; +0x90, 0x1003eb294\nLDR             X8, [X8,#0x508]                                        ; +0x94, 0x1003eb298\nMOV             X0, X19                                                ; +0x98, 0x1003eb29c\nBLR             X8                                                     ; +0x9c, 0x1003eb2a0\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xa0, 0x1003eb2a4\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xa4, 0x1003eb2a8\nADD             SP, SP, #0x40 ; '@'                                    ; +0xa8, 0x1003eb2ac\nRET                                                                    ; +0xac, 0x1003eb2b0", "xrefs": ["EditorUI::onCreate @ 0x1003e6c1c"], "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"}