{"type": "func", "start": 7280180, "end": 7280444, "name": "EditorUI::showTextAlert", "pseudocode": "// \n// EditorUI::showTextAlert from 0x6f1634 to 0x6f173c (264 bytes)\n// \n// 21 xrefs:\n// > LevelEditorLayer::doAutoSave @ 0x4729d6\n// > LevelEditorLayer::doAutoBackup @ 0x472cb6\n// > EditorUI::showGridSizeAlert @ 0x485a4c\n// > EditorUI::createGradientFromSelection @ 0x4878fe\n// > EditorUI::createGradientFromSelection @ 0x487b58\n// > EditorUI::showLockedLayerAlert @ 0x6f17a8\n// > EditorUI::handleEditorAction @ 0x6f1d04\n// > EditorUI::handleEditorAction @ 0x6f1d4a\n// > EditorUI::handleEditorAction @ 0x6f1dc4\n// > EditorUI::handleEditorAction @ 0x6f1e5c\n// > EditorUI::handleEditorAction @ 0x6f1edc\n// > EditorUI::handleEditorAction @ 0x6f23c2\n// > EditorUI::handleEditorAction @ 0x6f2556\n// > EditorUI::handleEditorAction @ 0x6f2590\n// > EditorUI::handleEditorAction @ 0x6f25c4\n// > EditorUI::handleEditorAction @ 0x6f25fc\n// > EditorUI::handleEditorAction @ 0x6f2632\n// > EditorUI::handleEditorAction @ 0x6f267e\n// > EditorUI::handleEditorAction @ 0x6f26ae\n// > EditorUI::findObject @ 0x6f4cd8\n// > EditorUI::toggleViewOption @ 0x70c32e\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:57:35 +0000\n// \n\n_DWORD *__fastcall EditorUI::showTextAlert(int a1, _DWORD *a2, int a3, int a4, int a5)\n{\n  char *v7; // r1\n  int v8; // r3\n  int v9; // r3\n  size_t v10; // r0\n  float *v11; // r6\n  float v13[2]; // [sp+Ch] [bp-30h] BYREF\n  float v14[2]; // [sp+14h] [bp-28h] BYREF\n  int v15[3]; // [sp+1Ch] [bp-20h] BYREF\n  int v16[3]; // [sp+28h] [bp-14h] BYREF\n\n  if ( !a4 )\n  {\n    if ( a3 )\n      v7 = \"On\";\n    else\n      v7 = \"Off\";\n    std::string::append(a2, v7);\n  }\n  v8 = *(unsigned __int8 *)a2;\n  v15[0] = 0;\n  v9 = v8 << 31;\n  v15[1] = 0;\n  if ( v9 >= 0 )\n    a2 = (_DWORD *)((char *)a2 + 1);\n  v15[2] = 0;\n  if ( v9 < 0 )\n    a2 = (_DWORD *)a2[2];\n  v10 = strlen((const char *)a2);\n  std::string::__init(v15, a2, v10);\n  memset(v16, 0, sizeof(v16));\n  std::string::__init(v16, \"chatFont.fnt\", 0xCu);\n  v11 = (float *)TextAlertPopup::create((int)v15, (cocos2d::CCDelayTime *)0x3F19999A, 0.6, 100, (int)v16);\n  std::string::~string((int)v16);\n  std::string::~string((int)v15);\n  TextAlertPopup::setLabelColor((int)v11, 65280, (int)&byte_BF01BC);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, 0.0, 1.0);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 20.0, -20.0);\n  TextAlertPopup::setAlertPosition(v11, v13, v14);\n  if ( a5 )\n    return TextAlertPopup::replaceIn(a1, a5, v11, 100);\n  else\n    return (_DWORD *)(*(int (__fastcall **)(int, float *, int))(*(_DWORD *)a1 + 232))(a1, v11, 100);\n}", "assembly": "; \n; EditorUI::showTextAlert from 0x6f1634 to 0x6f173c (264 bytes)\n; \n; 21 xrefs:\n; > LevelEditorLayer::doAutoSave @ 0x4729d6\n; > LevelEditorLayer::doAutoBackup @ 0x472cb6\n; > EditorUI::showGridSizeAlert @ 0x485a4c\n; > EditorUI::createGradientFromSelection @ 0x4878fe\n; > EditorUI::createGradientFromSelection @ 0x487b58\n; > EditorUI::showLockedLayerAlert @ 0x6f17a8\n; > EditorUI::handleEditorAction @ 0x6f1d04\n; > EditorUI::handleEditorAction @ 0x6f1d4a\n; > EditorUI::handleEditorAction @ 0x6f1dc4\n; > EditorUI::handleEditorAction @ 0x6f1e5c\n; > EditorUI::handleEditorAction @ 0x6f1edc\n; > EditorUI::handleEditorAction @ 0x6f23c2\n; > EditorUI::handleEditorAction @ 0x6f2556\n; > EditorUI::handleEditorAction @ 0x6f2590\n; > EditorUI::handleEditorAction @ 0x6f25c4\n; > EditorUI::handleEditorAction @ 0x6f25fc\n; > EditorUI::handleEditorAction @ 0x6f2632\n; > EditorUI::handleEditorAction @ 0x6f267e\n; > EditorUI::handleEditorAction @ 0x6f26ae\n; > EditorUI::findObject @ 0x6f4cd8\n; > EditorUI::toggleViewOption @ 0x70c32e\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:57:35 +0000\n; \nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x6f1634\nMOV             R4, R1                                                 ; +0x4, 0x6f1638\nLDR             R5, =(__stack_chk_guard_ptr - 0x6F1644)                ; +0x6, 0x6f163a\nSUB             SP, SP, #0x3C                                          ; +0x8, 0x6f163c\nMOV             R8, R0                                                 ; +0xa, 0x6f163e\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x6f1640\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x6f1642\nLDR.W           R9, [SP,#0x3C+arg_0]                                   ; +0x10, 0x6f1644\nLDR             R1, [R5]                                               ; +0x14, 0x6f1648\nSTR             R1, [SP,#0x3C+var_8]                                   ; +0x16, 0x6f164a\nCBNZ            R3, loc_6F1660                                         ; +0x18, 0x6f164c\nMOV             R0, R4; int                                            ; +0x1a, 0x6f164e\nCBZ             R2, loc_6F1658                                         ; +0x1c, 0x6f1650\nLDR             R1, =(aOn - 0x6F1658); \"On\"                            ; +0x1e, 0x6f1652\nADD             R1, PC; \"On\"                                           ; +0x20, 0x6f1654\nB               loc_6F165C                                             ; +0x22, 0x6f1656\nLDR             R1, =(aOff - 0x6F165E); \"Off\"                          ; +0x24, 0x6f1658\nADD             R1, PC; \"Off\"                                          ; +0x26, 0x6f165a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x28, 0x6f165c\nLDRB            R3, [R4]                                               ; +0x2c, 0x6f1660\nMOVS            R6, #0                                                 ; +0x2e, 0x6f1662\nSTR             R6, [SP,#0x3C+var_20]                                  ; +0x30, 0x6f1664\nADD             R7, SP, #0x3C+var_20                                   ; +0x32, 0x6f1666\nLSLS            R3, R3, #0x1F                                          ; +0x34, 0x6f1668\nSTR             R6, [SP,#0x3C+var_1C]                                  ; +0x36, 0x6f166a\nIT PL                                                                  ; +0x38, 0x6f166c\nADDPL           R4, #1                                                 ; +0x3a, 0x6f166e\nSTR             R6, [SP,#0x3C+var_18]                                  ; +0x3c, 0x6f1670\nIT MI                                                                  ; +0x3e, 0x6f1672\nLDRMI           R4, [R4,#8]                                            ; +0x40, 0x6f1674\nMOV             R0, R4; char *                                         ; +0x42, 0x6f1676\nBLX             strlen                                                 ; +0x44, 0x6f1678\nMOV             R1, R4                                                 ; +0x48, 0x6f167c\nADD             R4, SP, #0x3C+var_14                                   ; +0x4a, 0x6f167e\nMOV             R2, R0                                                 ; +0x4c, 0x6f1680\nMOV             R0, R7                                                 ; +0x4e, 0x6f1682\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x50, 0x6f1684\nLDR             R1, =(aChatfontFnt - 0x6F1692); \"chatFont.fnt\"         ; +0x54, 0x6f1688\nMOV             R0, R4                                                 ; +0x56, 0x6f168a\nMOVS            R2, #0xC                                               ; +0x58, 0x6f168c\nADD             R1, PC; \"chatFont.fnt\"                                 ; +0x5a, 0x6f168e\nSTR             R6, [SP,#0x3C+var_14]                                  ; +0x5c, 0x6f1690\nSTR             R6, [SP,#0x3C+var_10]                                  ; +0x5e, 0x6f1692\nSTR             R6, [SP,#0x3C+var_C]                                   ; +0x60, 0x6f1694\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x62, 0x6f1696\nLDR             R1, =0x3F19999A                                        ; +0x66, 0x6f169a\nMOV             R0, R7                                                 ; +0x68, 0x6f169c\nSTR             R4, [SP,#0x3C+var_3C]                                  ; +0x6a, 0x6f169e\nMOVS            R3, #0x64 ; 'd'                                        ; +0x6c, 0x6f16a0\nMOV             R2, R1                                                 ; +0x6e, 0x6f16a2\nBL              _ZN14TextAlertPopup6createENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEffiS6_; TextAlertPopup::create(std::string,float,float,int,std::string) ; +0x70, 0x6f16a4\nMOV             R6, R0                                                 ; +0x74, 0x6f16a8\nMOV             R0, R4                                                 ; +0x76, 0x6f16aa\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x78, 0x6f16ac\nMOV             R0, R7                                                 ; +0x7c, 0x6f16b0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x7e, 0x6f16b2\nLDR             R2, =(byte_BF01BC - 0x6F16C0)                          ; +0x82, 0x6f16b6\nADD             R7, SP, #0x3C+var_30                                   ; +0x84, 0x6f16b8\nMOV             R0, R6                                                 ; +0x86, 0x6f16ba\nADD             R2, PC; byte_BF01BC                                    ; +0x88, 0x6f16bc\nADD             R4, SP, #0x3C+var_28                                   ; +0x8a, 0x6f16be\nLDRB            R1, [R2,#(byte_BF01BD - 0xBF01BC)]                     ; +0x8c, 0x6f16c0\nLDRB            R3, [R2]                                               ; +0x8e, 0x6f16c2\nORR.W           R3, R3, R1,LSL#8                                       ; +0x90, 0x6f16c4\nLDRB            R1, [R2,#(byte_BF01BE - 0xBF01BC)]                     ; +0x94, 0x6f16c8\nORR.W           R1, R3, R1,LSL#16                                      ; +0x96, 0x6f16ca\nBL              _ZN14TextAlertPopup13setLabelColorEN7cocos2d10_ccColor3BE; TextAlertPopup::setLabelColor(cocos2d::_ccColor3B) ; +0x9a, 0x6f16ce\nMOVS            R1, #0; float                                          ; +0x9e, 0x6f16d2\nMOV.W           R2, #0x3F800000; float                                 ; +0xa0, 0x6f16d4\nMOV             R0, R7; this                                           ; +0xa4, 0x6f16d8\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xa6, 0x6f16da\nLDR             R1, flt_6F1740; float                                  ; +0xaa, 0x6f16de\nLDR             R2, flt_6F1744; float                                  ; +0xac, 0x6f16e0\nMOV             R0, R4; this                                           ; +0xae, 0x6f16e2\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xb0, 0x6f16e4\nMOV             R0, R6                                                 ; +0xb4, 0x6f16e8\nMOV             R1, R7                                                 ; +0xb6, 0x6f16ea\nMOV             R2, R4                                                 ; +0xb8, 0x6f16ec\nBL              _ZN14TextAlertPopup16setAlertPositionEN7cocos2d7CCPointES1_; TextAlertPopup::setAlertPosition(cocos2d::CCPoint,cocos2d::CCPoint) ; +0xba, 0x6f16ee\nCMP.W           R9, #0                                                 ; +0xbe, 0x6f16f2\nBEQ             loc_6F1706                                             ; +0xc2, 0x6f16f6\nMOV             R0, R8                                                 ; +0xc4, 0x6f16f8\nMOV             R1, R9                                                 ; +0xc6, 0x6f16fa\nMOV             R2, R6                                                 ; +0xc8, 0x6f16fc\nMOVS            R3, #0x64 ; 'd'                                        ; +0xca, 0x6f16fe\nBL              _ZN14TextAlertPopup9replaceInEPN7cocos2d6CCNodeEiPS_i; TextAlertPopup::replaceIn(cocos2d::CCNode *,int,TextAlertPopup*,int) ; +0xcc, 0x6f1700\nB               loc_6F172A                                             ; +0xd0, 0x6f1704\nLDR.W           R3, [R8]                                               ; +0xd2, 0x6f1706\nMOV             R0, R8                                                 ; +0xd6, 0x6f170a\nMOV             R1, R6                                                 ; +0xd8, 0x6f170c\nMOVS            R2, #0x64 ; 'd'                                        ; +0xda, 0x6f170e\nLDR.W           R3, [R3,#0xE8]                                         ; +0xdc, 0x6f1710\nBLX             R3                                                     ; +0xe0, 0x6f1714\nB               loc_6F172A                                             ; +0xe2, 0x6f1716\nMOV             R0, R4                                                 ; +0xe4, 0x6f1718\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xe6, 0x6f171a\nB               loc_6F1720                                             ; +0xea, 0x6f171e\nMOV             R0, R7                                                 ; +0xec, 0x6f1720\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xee, 0x6f1722\nBL              __cxa_end_cleanup                                      ; +0xf2, 0x6f1726\nLDR             R2, [SP,#0x3C+var_8]                                   ; +0xf6, 0x6f172a\nLDR             R3, [R5]                                               ; +0xf8, 0x6f172c\nCMP             R2, R3                                                 ; +0xfa, 0x6f172e\nBEQ             loc_6F1736                                             ; +0xfc, 0x6f1730\nBLX             __stack_chk_fail                                       ; +0xfe, 0x6f1732\nADD             SP, SP, #0x3C ; '<'                                    ; +0x102, 0x6f1736\nPOP.W           {R4-R9,PC}                                             ; +0x104, 0x6f1738", "xrefs": ["LevelEditorLayer::doAutoSave @ 0x4729d6", "LevelEditorLayer::doAutoBackup @ 0x472cb6", "EditorUI::showGridSizeAlert @ 0x485a4c", "EditorUI::createGradientFromSelection @ 0x4878fe", "EditorUI::createGradientFromSelection @ 0x487b58", "EditorUI::showLockedLayerAlert @ 0x6f17a8", "EditorUI::handleEditorAction @ 0x6f1d04", "EditorUI::handleEditorAction @ 0x6f1d4a", "EditorUI::handleEditorAction @ 0x6f1dc4", "EditorUI::handleEditorAction @ 0x6f1e5c", "EditorUI::handleEditorAction @ 0x6f1edc", "EditorUI::handleEditorAction @ 0x6f23c2", "EditorUI::handleEditorAction @ 0x6f2556", "EditorUI::handleEditorAction @ 0x6f2590", "EditorUI::handleEditorAction @ 0x6f25c4", "EditorUI::handleEditorAction @ 0x6f25fc", "EditorUI::handleEditorAction @ 0x6f2632", "EditorUI::handleEditorAction @ 0x6f267e", "EditorUI::handleEditorAction @ 0x6f26ae", "EditorUI::findObject @ 0x6f4cd8", "EditorUI::toggleViewOption @ 0x70c32e"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}