{"type": "func", "start": 3661044, "end": 3661178, "name": "EditorUI::showMaxCoinError", "pseudocode": "// \n// EditorUI::showMaxCoinError from 0x37dcf4 to 0x37dd7a (134 bytes)\n// \n// 1 xrefs:\n// > EditorUI::onCreate @ 0x3a408a\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 EditorUI::showMaxCoinError(EditorUI *a1)\n{\n  const char *v1; // r1\n  _BOOL4 m_alertShown; // r7\n  cocos2d::CCString *v4; // r0\n  char *CString; // r0\n  FLAlertLayer *v6; // r5\n  _BYTE v7[4]; // [sp+10h] [bp-Ch] BYREF\n\n  m_alertShown = a1->m_alertShown;\n  if ( !a1->m_alertShown )\n  {\n    a1->m_alertShown = 1;\n    v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                (cocos2d::CCString *)\"You cannot add more than <cy>3</c> <cg>coins</c> in a single level.\",\n                                v1);\n    CString = (char *)cocos2d::CCString::getCString(v4);\n    sub_776584((int)v7, CString);\n    v6 = FLAlertLayer::create((int)&a1->FLAlertLayerProtocol, (int)\"Max Coins\", (int)v7, (int)\"OK\", m_alertShown, 300.0);\n    sub_774008(v7);\n    v6->setTag(v6, 122);\n    v6->show(v6);\n  }\n}", "assembly": "; \n; EditorUI::showMaxCoinError from 0x37dcf4 to 0x37dd7a (134 bytes)\n; \n; 1 xrefs:\n; > EditorUI::onCreate @ 0x3a408a\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x37DCFC)                ; +0x0, 0x37dcf4\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x37dcf6\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x37dcf8\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x37dcfa\nLDRB.W          R7, [R0,#0x1C4]                                        ; +0x8, 0x37dcfc\nSUB             SP, SP, #0x1C                                          ; +0xc, 0x37dd00\nLDR             R2, [R3]                                               ; +0xe, 0x37dd02\nMOV             R5, R0                                                 ; +0x10, 0x37dd04\nMOV             R6, R3                                                 ; +0x12, 0x37dd06\nSTR             R2, [SP,#0x1C+var_8]                                   ; +0x14, 0x37dd08\nCBNZ            R7, loc_37DD6A                                         ; +0x16, 0x37dd0a\nMOVS            R3, #1                                                 ; +0x18, 0x37dd0c\nSTRB.W          R3, [R0,#0x1C4]                                        ; +0x1a, 0x37dd0e\nLDR             R0, =(aYouCannotAddMo - 0x37DD1A); \"You cannot add more than <cy>3</c> <cg>\"... ; +0x1e, 0x37dd12\nADD             R4, SP, #0x1C+var_C                                    ; +0x20, 0x37dd14\nADD             R0, PC; \"You cannot add more than <cy>3</c> <cg>\"...   ; +0x22, 0x37dd16\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x24, 0x37dd18\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x28, 0x37dd1c\nADD             R2, SP, #0x1C+var_10                                   ; +0x2c, 0x37dd20\nMOV             R1, R0; char *                                         ; +0x2e, 0x37dd22\nMOV             R0, R4; int                                            ; +0x30, 0x37dd24\nBL              sub_776584                                             ; +0x32, 0x37dd26\nLDR             R3, flt_37DD7C                                         ; +0x36, 0x37dd2a\nLDR             R1, =(aMaxCoins_0 - 0x37DD3C); \"Max Coins\"             ; +0x38, 0x37dd2c\nADD.W           R0, R5, #0x13C; int                                    ; +0x3a, 0x37dd2e\nSTR             R7, [SP,#0x1C+var_1C]; int                             ; +0x3e, 0x37dd32\nMOV             R2, R4; int                                            ; +0x40, 0x37dd34\nSTR             R3, [SP,#0x1C+var_18]; float                           ; +0x42, 0x37dd36\nADD             R1, PC; \"Max Coins\"                                    ; +0x44, 0x37dd38\nLDR             R3, =(aOk - 0x37DD40); \"OK\"                            ; +0x46, 0x37dd3a\nADD             R3, PC; \"OK\"                                           ; +0x48, 0x37dd3c\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcSsS3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x4a, 0x37dd3e\nMOV             R5, R0                                                 ; +0x4e, 0x37dd42\nMOV             R0, R4                                                 ; +0x50, 0x37dd44\nBL              sub_774008                                             ; +0x52, 0x37dd46\nLDR             R3, [R5]                                               ; +0x56, 0x37dd4a\nMOV             R0, R5                                                 ; +0x58, 0x37dd4c\nMOVS            R1, #0x7A ; 'z'                                        ; +0x5a, 0x37dd4e\nLDR             R3, [R3,#0x24]                                         ; +0x5c, 0x37dd50\nBLX             R3                                                     ; +0x5e, 0x37dd52\nLDR             R3, [R5]                                               ; +0x60, 0x37dd54\nMOV             R0, R5                                                 ; +0x62, 0x37dd56\nLDR.W           R3, [R3,#0x284]                                        ; +0x64, 0x37dd58\nBLX             R3                                                     ; +0x68, 0x37dd5c\nB               loc_37DD6A                                             ; +0x6a, 0x37dd5e\nMOV             R0, R4                                                 ; +0x6c, 0x37dd60\nBL              sub_774008                                             ; +0x6e, 0x37dd62\nBL              __cxa_end_cleanup                                      ; +0x72, 0x37dd66\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x76, 0x37dd6a\nLDR             R3, [R6]                                               ; +0x78, 0x37dd6c\nCMP             R2, R3                                                 ; +0x7a, 0x37dd6e\nBEQ             loc_37DD76                                             ; +0x7c, 0x37dd70\nBLX             __stack_chk_fail                                       ; +0x7e, 0x37dd72\nADD             SP, SP, #0x1C                                          ; +0x82, 0x37dd76\nPOP             {R4-R7,PC}                                             ; +0x84, 0x37dd78", "xrefs": ["EditorUI::onCreate @ 0x3a408a"], "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"}