{"type": "func", "start": 4299648976, "end": 4299649152, "name": "EditorUI::showMaxCoinError", "pseudocode": "// \n// EditorUI::showMaxCoinError from 0x100476fd0 to 0x100477080 (176 bytes)\n// \n// 1 xrefs:\n// > EditorUI::onCreate @ 0x100474574\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 11:05:41 +0000\n// \n\n__int64 __fastcall EditorUI::showMaxCoinError(__int64 result)\n{\n  __int64 v1; // x19\n  void *v2; // x0\n  char *CString; // x0\n  void *v4; // x19\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v6; // [xsp+1Fh] [xbp-11h]\n\n  if ( (*(_BYTE *)(result + 632) & 1) == 0 )\n  {\n    v1 = result;\n    *(_BYTE *)(result + 632) = 1;\n    v2 = sub_1003065B0(\"You cannot add more than <cy>3</c> <cg>coins</c> in a single level.\");\n    CString = (char *)cocos2d::CCString::getCString((__int64)v2);\n    sub_100009900(__p, CString);\n    v4 = FLAlertLayer::create_1(v1 + 408, (__int64)\"Max Coins\", (__int64)__p, (__int64)\"OK\", 0, 300.0);\n    if ( v6 < 0 )\n      operator delete(__p[0]);\n    (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v4 + 72LL))(v4, 122);\n    return (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v4 + 1312LL))(v4);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::showMaxCoinError from 0x100476fd0 to 0x100477080 (176 bytes)\n; \n; 1 xrefs:\n; > EditorUI::onCreate @ 0x100474574\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 11:05:41 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x100476fd0\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x100476fd4\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x100476fd8\nADD             X29, SP, #0x30                                         ; +0xc, 0x100476fdc\nLDRB            W8, [X0,#0x278]                                        ; +0x10, 0x100476fe0\nTBNZ            W8, #0, loc_100477070                                  ; +0x14, 0x100476fe4\nMOV             X19, X0                                                ; +0x18, 0x100476fe8\nMOV             W8, #1                                                 ; +0x1c, 0x100476fec\nSTRB            W8, [X0,#0x278]                                        ; +0x20, 0x100476ff0\nADRL            X0, aYouCannotAddMo; \"You cannot add more than <cy>3</c> <cg>\"... ; +0x24, 0x100476ff4\nBL              sub_1003065B0                                          ; +0x2c, 0x100476ffc\nBL              cocos2d__CCString__getCString                          ; +0x30, 0x100477000\nMOV             X1, X0; __s                                            ; +0x34, 0x100477004\nADD             X0, SP, #0x30+__p; int                                 ; +0x38, 0x100477008\nBL              sub_100009900                                          ; +0x3c, 0x10047700c\nADRL            X1, aMaxCoins_0; \"Max Coins\"                           ; +0x40, 0x100477010\nADRL            X3, aOk; \"OK\"                                          ; +0x48, 0x100477018\nMOV             W8, #0x43960000                                        ; +0x50, 0x100477020\nFMOV            S0, W8                                                 ; +0x54, 0x100477024\nADD             X0, X19, #0x198                                        ; +0x58, 0x100477028\nADD             X2, SP, #0x30+__p                                      ; +0x5c, 0x10047702c\nMOV             X4, #0                                                 ; +0x60, 0x100477030\nBL              FLAlertLayer__create_1                                 ; +0x64, 0x100477034\nMOV             X19, X0                                                ; +0x68, 0x100477038\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x6c, 0x10047703c\nTBZ             W8, #0x1F, loc_10047704C                               ; +0x70, 0x100477040\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x74, 0x100477044\nBL              __ZdlPv; operator delete(void *)                       ; +0x78, 0x100477048\nLDR             X8, [X19]                                              ; +0x7c, 0x10047704c\nLDR             X8, [X8,#0x48]                                         ; +0x80, 0x100477050\nMOV             X0, X19                                                ; +0x84, 0x100477054\nMOV             W1, #0x7A ; 'z'                                        ; +0x88, 0x100477058\nBLR             X8                                                     ; +0x8c, 0x10047705c\nLDR             X8, [X19]                                              ; +0x90, 0x100477060\nLDR             X8, [X8,#0x520]                                        ; +0x94, 0x100477064\nMOV             X0, X19                                                ; +0x98, 0x100477068\nBLR             X8                                                     ; +0x9c, 0x10047706c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xa0, 0x100477070\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xa4, 0x100477074\nADD             SP, SP, #0x40 ; '@'                                    ; +0xa8, 0x100477078\nRET                                                                    ; +0xac, 0x10047707c", "xrefs": ["EditorUI::onCreate @ 0x100474574"], "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"}