{"type": "func", "start": 3660868, "end": 3661014, "name": "EditorUI::showMaxBasicError", "pseudocode": "// \n// EditorUI::showMaxBasicError from 0x37dc44 to 0x37dcd6 (146 bytes)\n// \n// 3 xrefs:\n// > EditorUI::onCreate @ 0x3a405e\n// > EditorUI::doPasteObjects @ 0x3a5e6a\n// > EditorUI::onDuplicate @ 0x3a6938\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::showMaxBasicError(EditorUI *a1)\n{\n  cocos2d::CCString *v2; // r0\n  char *CString; // r0\n  FLAlertLayer *v4; // r5\n  _BYTE v5[4]; // [sp+10h] [bp-8h] BYREF\n\n  if ( !a1->m_alertShown )\n  {\n    a1->m_alertShown = 1;\n    v2 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                (cocos2d::CCString *)\"You have reached the max limit of <cg>%i</c> objects. You can incre\"\n                                                     \"ase it to <cy>%i</c>, but your level may become unstable on some de\"\n                                                     \"vices, so it is recommended to stay below this limit. Levels with o\"\n                                                     \"bject count above this limit will display a <co>warning</c> when played online.\",\n                                (const char *)&stru_9C3C.st_value,\n                                80000);\n    CString = (char *)cocos2d::CCString::getCString(v2);\n    sub_776584((int)v5, CString);\n    v4 = FLAlertLayer::create(\n           (int)&a1->FLAlertLayerProtocol,\n           (int)\"Max Objects\",\n           (int)v5,\n           (int)\"Cancel\",\n           (int)\"Increase\",\n           380.0);\n    sub_774008(v5);\n    v4->setTag(v4, 125);\n    v4->show(v4);\n  }\n}", "assembly": "; \n; EditorUI::showMaxBasicError from 0x37dc44 to 0x37dcd6 (146 bytes)\n; \n; 3 xrefs:\n; > EditorUI::onCreate @ 0x3a405e\n; > EditorUI::doPasteObjects @ 0x3a5e6a\n; > EditorUI::onDuplicate @ 0x3a6938\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 - 0x37DC4C)                ; +0x0, 0x37dc44\nPUSH            {R4-R6,LR}                                             ; +0x2, 0x37dc46\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x37dc48\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x37dc4a\nSUB             SP, SP, #0x18                                          ; +0x8, 0x37dc4c\nMOV             R5, R0                                                 ; +0xa, 0x37dc4e\nLDR             R2, [R3]                                               ; +0xc, 0x37dc50\nMOV             R6, R3                                                 ; +0xe, 0x37dc52\nSTR             R2, [SP,#0x18+var_4]                                   ; +0x10, 0x37dc54\nLDRB.W          R2, [R0,#0x1C4]                                        ; +0x12, 0x37dc56\nCMP             R2, #0                                                 ; +0x16, 0x37dc5a\nBNE             loc_37DCC6                                             ; +0x18, 0x37dc5c\nMOVS            R3, #1                                                 ; +0x1a, 0x37dc5e\nSTRB.W          R3, [R0,#0x1C4]                                        ; +0x1c, 0x37dc60\nLDR             R0, =(aYouHaveReached_0 - 0x37DC72); \"You have reached the max limit of <cg>%\"... ; +0x20, 0x37dc64\nMOVW            R1, #stru_9C3C.st_value; char *                        ; +0x22, 0x37dc66\nLDR             R2, =0x13880                                           ; +0x26, 0x37dc6a\nADD             R4, SP, #0x18+var_8                                    ; +0x28, 0x37dc6c\nADD             R0, PC; \"You have reached the max limit of <cg>%\"...   ; +0x2a, 0x37dc6e\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x2c, 0x37dc70\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x30, 0x37dc74\nADD             R2, SP, #0x18+var_C                                    ; +0x34, 0x37dc78\nMOV             R1, R0; char *                                         ; +0x36, 0x37dc7a\nMOV             R0, R4; int                                            ; +0x38, 0x37dc7c\nBL              sub_776584                                             ; +0x3a, 0x37dc7e\nLDR             R3, =(aIncrease - 0x37DC8E); \"Increase\"                ; +0x3e, 0x37dc82\nLDR             R1, =(aMaxObjects - 0x37DC94); \"Max Objects\"           ; +0x40, 0x37dc84\nADD.W           R0, R5, #0x13C; int                                    ; +0x42, 0x37dc86\nADD             R3, PC; \"Increase\"                                     ; +0x46, 0x37dc8a\nSTR             R3, [SP,#0x18+var_18]; int                             ; +0x48, 0x37dc8c\nLDR             R3, flt_37DCDC                                         ; +0x4a, 0x37dc8e\nADD             R1, PC; \"Max Objects\"                                  ; +0x4c, 0x37dc90\nMOV             R2, R4; int                                            ; +0x4e, 0x37dc92\nSTR             R3, [SP,#0x18+var_14]; float                           ; +0x50, 0x37dc94\nLDR             R3, =(aCancel - 0x37DC9C); \"Cancel\"                    ; +0x52, 0x37dc96\nADD             R3, PC; \"Cancel\"                                       ; +0x54, 0x37dc98\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcSsS3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x56, 0x37dc9a\nMOV             R5, R0                                                 ; +0x5a, 0x37dc9e\nMOV             R0, R4                                                 ; +0x5c, 0x37dca0\nBL              sub_774008                                             ; +0x5e, 0x37dca2\nLDR             R3, [R5]                                               ; +0x62, 0x37dca6\nMOV             R0, R5                                                 ; +0x64, 0x37dca8\nMOVS            R1, #0x7D ; '}'                                        ; +0x66, 0x37dcaa\nLDR             R3, [R3,#0x24]                                         ; +0x68, 0x37dcac\nBLX             R3                                                     ; +0x6a, 0x37dcae\nLDR             R3, [R5]                                               ; +0x6c, 0x37dcb0\nMOV             R0, R5                                                 ; +0x6e, 0x37dcb2\nLDR.W           R3, [R3,#0x284]                                        ; +0x70, 0x37dcb4\nBLX             R3                                                     ; +0x74, 0x37dcb8\nB               loc_37DCC6                                             ; +0x76, 0x37dcba\nMOV             R0, R4                                                 ; +0x78, 0x37dcbc\nBL              sub_774008                                             ; +0x7a, 0x37dcbe\nBL              __cxa_end_cleanup                                      ; +0x7e, 0x37dcc2\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x82, 0x37dcc6\nLDR             R3, [R6]                                               ; +0x84, 0x37dcc8\nCMP             R2, R3                                                 ; +0x86, 0x37dcca\nBEQ             loc_37DCD2                                             ; +0x88, 0x37dccc\nBLX             __stack_chk_fail                                       ; +0x8a, 0x37dcce\nADD             SP, SP, #0x18                                          ; +0x8e, 0x37dcd2\nPOP             {R4-R6,PC}                                             ; +0x90, 0x37dcd4", "xrefs": ["EditorUI::onCreate @ 0x3a405e", "EditorUI::doPasteObjects @ 0x3a5e6a", "EditorUI::onDuplicate @ 0x3a6938"], "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"}