{"type": "func", "start": 3123396, "end": 3123738, "name": "CCTextInputNode::updateLabel", "pseudocode": "// \n// CCTextInputNode::updateLabel from 0x2fa8c4 to 0x2faa1a (342 bytes)\n// \n// 32 xrefs:\n// > CCTextInputNode::addTextArea @ 0x2faa9a\n// > CCTextInputNode::setString @ 0x2fab10\n// > CCTextInputNode::textChanged @ 0x2fab72\n// > CCTextInputNode::onTextFieldDetachWithIME @ 0x2fad9a\n// > LevelSearchLayer::textInputOpened @ 0x3ac7e4\n// > LevelSearchLayer::updateSearchLabel @ 0x3ac8e6\n// > EditLevelLayer::textInputOpened @ 0x3b6232\n// > EditLevelLayer::textInputClosed @ 0x3b7a72\n// > ColorSelectPopup::updateTextInputLabel @ 0x3da550\n// > ColorSelectPopup::colorSelectClosed @ 0x3da77c\n// > ColorSelectPopup::colorSelectClosed @ 0x3da7e6\n// > ColorSelectPopup::updateCopyColorTextInputLabel @ 0x3da8a8\n// > GJGarageLayer::textInputOpened @ 0x402828\n// > CustomizeObjectLayer::textInputOpened @ 0x461280\n// > SetColorIDPopup::colorSelectClosed @ 0x4a8976\n// > SetColorIDPopup::init @ 0x4b00b6\n// > SetupPulsePopup::colorSelectClosed @ 0x4bdc58\n// > SetupPulsePopup::colorSelectClosed @ 0x4bdcbc\n// > SetupPulsePopup::updateTextInputLabel @ 0x4be1e4\n// > SetupPulsePopup::updateCopyColorTextInputLabel @ 0x4be438\n// > SecretLayer::textInputOpened @ 0x4c94d4\n// > SecretLayer::updateSearchLabel @ 0x4c96ee\n// > SecretLayer2::textInputOpened @ 0x4eb1e8\n// > SecretLayer2::updateSearchLabel @ 0x4ec21e\n// > SecretLayer4::textInputOpened @ 0x4f01f8\n// > SecretLayer4::updateSearchLabel @ 0x4f082a\n// > SetupSmartTemplateLayer::textInputOpened @ 0x53d730\n// > LevelListLayer::textInputClosed @ 0x58f42c\n// > LevelListLayer::textInputOpened @ 0x58fbc6\n// > SecretLayer5::textInputOpened @ 0x59c540\n// > SecretLayer5::updateSearchLabel @ 0x59db66\n// > SecretLayer5::onSubmit @ 0x59eb48\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 CCTextInputNode::updateLabel(int a1, char **a2)\n{\n  int v4; // r2\n  int v5; // r10\n  unsigned int i; // r9\n  int v7; // r0\n  int v8; // r9\n  char *v9; // r0\n  int v10; // r8\n  _BYTE v11[4]; // [sp+Ch] [bp-Ch] BYREF\n  int v12; // [sp+10h] [bp-8h] BYREF\n\n  v4 = *(_DWORD *)(a1 + 392);\n  if ( v4 )\n  {\n    *(_DWORD *)(v4 + 360) = *(_DWORD *)(a1 + 412);\n  }\n  else if ( !*(_DWORD *)(a1 + 400) )\n  {\n    return;\n  }\n  sub_776584((int)&v12, (char *)&unk_939830);\n  v5 = sub_774DBC(a2, &v12);\n  sub_774008(&v12);\n  if ( v5 )\n  {\n    if ( *(_BYTE *)(a1 + 397) )\n    {\n      sub_776584((int)&v12, (char *)&unk_939830);\n      for ( i = 0; i < *((_DWORD *)*a2 - 3); ++i )\n        sub_774544((int)&v12, (char *)&off_949500);\n      sub_775D40(a2, &v12);\n      sub_774008(&v12);\n    }\n  }\n  else\n  {\n    sub_7753D4((int)a2, *(char **)(a1 + 328));\n  }\n  v7 = *(_DWORD *)(a1 + 392);\n  if ( v7 )\n  {\n    (*(void (__fastcall **)(int, char *))(*(_DWORD *)v7 + 456))(v7, *a2);\n  }\n  else\n  {\n    v8 = *(_DWORD *)(a1 + 400);\n    if ( v8 )\n    {\n      sub_776584((int)&v12, *a2);\n      TextArea::setString(v8, &v12);\n      sub_774008(&v12);\n    }\n  }\n  CCTextInputNode::refreshLabel((CCTextInputNode *)a1);\n  v9 = (char *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 380) + 616))(*(_DWORD *)(a1 + 380));\n  sub_776584((int)v11, v9);\n  sub_776584((int)&v12, (char *)&unk_939830);\n  v10 = sub_774DBC(v11, &v12);\n  sub_774008(&v12);\n  sub_774008(v11);\n  if ( !v10 )\n    *(_DWORD *)(*(_DWORD *)(a1 + 380) + 600) = -1;\n  CCTextInputNode::updateBlinkLabel((CCTextInputNode *)a1);\n}", "assembly": "; \n; CCTextInputNode::updateLabel from 0x2fa8c4 to 0x2faa1a (342 bytes)\n; \n; 32 xrefs:\n; > CCTextInputNode::addTextArea @ 0x2faa9a\n; > CCTextInputNode::setString @ 0x2fab10\n; > CCTextInputNode::textChanged @ 0x2fab72\n; > CCTextInputNode::onTextFieldDetachWithIME @ 0x2fad9a\n; > LevelSearchLayer::textInputOpened @ 0x3ac7e4\n; > LevelSearchLayer::updateSearchLabel @ 0x3ac8e6\n; > EditLevelLayer::textInputOpened @ 0x3b6232\n; > EditLevelLayer::textInputClosed @ 0x3b7a72\n; > ColorSelectPopup::updateTextInputLabel @ 0x3da550\n; > ColorSelectPopup::colorSelectClosed @ 0x3da77c\n; > ColorSelectPopup::colorSelectClosed @ 0x3da7e6\n; > ColorSelectPopup::updateCopyColorTextInputLabel @ 0x3da8a8\n; > GJGarageLayer::textInputOpened @ 0x402828\n; > CustomizeObjectLayer::textInputOpened @ 0x461280\n; > SetColorIDPopup::colorSelectClosed @ 0x4a8976\n; > SetColorIDPopup::init @ 0x4b00b6\n; > SetupPulsePopup::colorSelectClosed @ 0x4bdc58\n; > SetupPulsePopup::colorSelectClosed @ 0x4bdcbc\n; > SetupPulsePopup::updateTextInputLabel @ 0x4be1e4\n; > SetupPulsePopup::updateCopyColorTextInputLabel @ 0x4be438\n; > SecretLayer::textInputOpened @ 0x4c94d4\n; > SecretLayer::updateSearchLabel @ 0x4c96ee\n; > SecretLayer2::textInputOpened @ 0x4eb1e8\n; > SecretLayer2::updateSearchLabel @ 0x4ec21e\n; > SecretLayer4::textInputOpened @ 0x4f01f8\n; > SecretLayer4::updateSearchLabel @ 0x4f082a\n; > SetupSmartTemplateLayer::textInputOpened @ 0x53d730\n; > LevelListLayer::textInputClosed @ 0x58f42c\n; > LevelListLayer::textInputOpened @ 0x58fbc6\n; > SecretLayer5::textInputOpened @ 0x59c540\n; > SecretLayer5::updateSearchLabel @ 0x59db66\n; > SecretLayer5::onSubmit @ 0x59eb48\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 - 0x2FA8CE)                ; +0x0, 0x2fa8c4\nPUSH.W          {R4-R10,LR}                                            ; +0x2, 0x2fa8c6\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x2fa8ca\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x2fa8cc\nSUB             SP, SP, #0x18                                          ; +0xa, 0x2fa8ce\nMOV             R5, R0                                                 ; +0xc, 0x2fa8d0\nLDR             R2, [R3]                                               ; +0xe, 0x2fa8d2\nMOV             R8, R1                                                 ; +0x10, 0x2fa8d4\nMOV             R7, R3                                                 ; +0x12, 0x2fa8d6\nSTR             R2, [SP,#0x18+var_4]                                   ; +0x14, 0x2fa8d8\nLDR.W           R2, [R0,#0x188]                                        ; +0x16, 0x2fa8da\nCBNZ            R2, loc_2FA8E8                                         ; +0x1a, 0x2fa8de\nLDR.W           R3, [R0,#0x190]                                        ; +0x1c, 0x2fa8e0\nCBNZ            R3, loc_2FA8F0                                         ; +0x20, 0x2fa8e4\nB               loc_2FAA08                                             ; +0x22, 0x2fa8e6\nLDR.W           R3, [R0,#0x19C]                                        ; +0x24, 0x2fa8e8\nSTR.W           R3, [R2,#0x168]                                        ; +0x28, 0x2fa8ec\nLDR.W           R9, =(unk_939830 - 0x2FA8FC)                           ; +0x2c, 0x2fa8f0\nADD             R4, SP, #0x18+var_8                                    ; +0x30, 0x2fa8f4\nADD             R6, SP, #0x18+var_C                                    ; +0x32, 0x2fa8f6\nADD             R9, PC; unk_939830                                     ; +0x34, 0x2fa8f8\nMOV             R0, R4; int                                            ; +0x36, 0x2fa8fa\nMOV             R2, R6                                                 ; +0x38, 0x2fa8fc\nMOV             R1, R9; char *                                         ; +0x3a, 0x2fa8fe\nBL              sub_776584                                             ; +0x3c, 0x2fa900\nMOV             R0, R8                                                 ; +0x40, 0x2fa904\nMOV             R1, R4                                                 ; +0x42, 0x2fa906\nBL              sub_774DBC                                             ; +0x44, 0x2fa908\nMOV             R10, R0                                                ; +0x48, 0x2fa90c\nMOV             R0, R4                                                 ; +0x4a, 0x2fa90e\nBL              sub_774008                                             ; +0x4c, 0x2fa910\nCMP.W           R10, #0                                                ; +0x50, 0x2fa914\nBNE             loc_2FA926                                             ; +0x54, 0x2fa918\nMOV             R0, R8; int                                            ; +0x56, 0x2fa91a\nLDR.W           R1, [R5,#0x148]; char *                                ; +0x58, 0x2fa91c\nBL              sub_7753D4                                             ; +0x5c, 0x2fa920\nB               loc_2FA968                                             ; +0x60, 0x2fa924\nLDRB.W          R3, [R5,#0x18D]                                        ; +0x62, 0x2fa926\nCBZ             R3, loc_2FA968                                         ; +0x66, 0x2fa92a\nMOV             R1, R9; char *                                         ; +0x68, 0x2fa92c\nMOV             R0, R4; int                                            ; +0x6a, 0x2fa92e\nMOV             R2, R6                                                 ; +0x6c, 0x2fa930\nLDR.W           R10, =(off_949500 - 0x2FA942)                          ; +0x6e, 0x2fa932\nBL              sub_776584                                             ; +0x72, 0x2fa936\nMOV.W           R9, #0                                                 ; +0x76, 0x2fa93a\nADD             R10, PC; off_949500                                    ; +0x7a, 0x2fa93e\nLDR.W           R3, [R8]                                               ; +0x7c, 0x2fa940\nLDR.W           R3, [R3,#-0xC]                                         ; +0x80, 0x2fa944\nCMP             R9, R3                                                 ; +0x84, 0x2fa948\nBCS             loc_2FA95A                                             ; +0x86, 0x2fa94a\nMOV             R0, R4; int                                            ; +0x88, 0x2fa94c\nMOV             R1, R10; char *                                        ; +0x8a, 0x2fa94e\nBL              sub_774544                                             ; +0x8c, 0x2fa950\nADD.W           R9, R9, #1                                             ; +0x90, 0x2fa954\nB               loc_2FA940                                             ; +0x94, 0x2fa958\nMOV             R0, R8                                                 ; +0x96, 0x2fa95a\nMOV             R1, R4                                                 ; +0x98, 0x2fa95c\nBL              sub_775D40                                             ; +0x9a, 0x2fa95e\nMOV             R0, R4                                                 ; +0x9e, 0x2fa962\nBL              sub_774008                                             ; +0xa0, 0x2fa964\nLDR.W           R0, [R5,#0x188]                                        ; +0xa4, 0x2fa968\nCBZ             R0, loc_2FA97C                                         ; +0xa8, 0x2fa96c\nLDR             R3, [R0]                                               ; +0xaa, 0x2fa96e\nLDR.W           R1, [R8]                                               ; +0xac, 0x2fa970\nLDR.W           R3, [R3,#0x1C8]                                        ; +0xb0, 0x2fa974\nBLX             R3                                                     ; +0xb4, 0x2fa978\nB               loc_2FA9A0                                             ; +0xb6, 0x2fa97a\nLDR.W           R9, [R5,#0x190]                                        ; +0xb8, 0x2fa97c\nCMP.W           R9, #0                                                 ; +0xbc, 0x2fa980\nBEQ             loc_2FA9A0                                             ; +0xc0, 0x2fa984\nLDR.W           R1, [R8]; char *                                       ; +0xc2, 0x2fa986\nMOV             R0, R4; int                                            ; +0xc6, 0x2fa98a\nMOV             R2, R6                                                 ; +0xc8, 0x2fa98c\nBL              sub_776584                                             ; +0xca, 0x2fa98e\nMOV             R0, R9                                                 ; +0xce, 0x2fa992\nMOV             R1, R4                                                 ; +0xd0, 0x2fa994\nBL              _ZN8TextArea9setStringESs; TextArea::setString(std::string) ; +0xd2, 0x2fa996\nMOV             R0, R4                                                 ; +0xd6, 0x2fa99a\nBL              sub_774008                                             ; +0xd8, 0x2fa99c\nMOV             R0, R5; this                                           ; +0xdc, 0x2fa9a0\nBL              _ZN15CCTextInputNode12refreshLabelEv; CCTextInputNode::refreshLabel(void) ; +0xde, 0x2fa9a2\nLDR.W           R0, [R5,#0x17C]                                        ; +0xe2, 0x2fa9a6\nLDR             R3, [R0]                                               ; +0xe6, 0x2fa9aa\nLDR.W           R3, [R3,#0x268]                                        ; +0xe8, 0x2fa9ac\nBLX             R3                                                     ; +0xec, 0x2fa9b0\nADD             R2, SP, #0x18+var_14                                   ; +0xee, 0x2fa9b2\nMOV             R1, R0; char *                                         ; +0xf0, 0x2fa9b4\nMOV             R0, R6; int                                            ; +0xf2, 0x2fa9b6\nBL              sub_776584                                             ; +0xf4, 0x2fa9b8\nLDR             R1, =(unk_939830 - 0x2FA9C6)                           ; +0xf8, 0x2fa9bc\nMOV             R0, R4; int                                            ; +0xfa, 0x2fa9be\nADD             R2, SP, #0x18+var_10                                   ; +0xfc, 0x2fa9c0\nADD             R1, PC; unk_939830 ; char *                            ; +0xfe, 0x2fa9c2\nBL              sub_776584                                             ; +0x100, 0x2fa9c4\nMOV             R1, R4                                                 ; +0x104, 0x2fa9c8\nMOV             R0, R6                                                 ; +0x106, 0x2fa9ca\nBL              sub_774DBC                                             ; +0x108, 0x2fa9cc\nMOV             R8, R0                                                 ; +0x10c, 0x2fa9d0\nMOV             R0, R4                                                 ; +0x10e, 0x2fa9d2\nBL              sub_774008                                             ; +0x110, 0x2fa9d4\nMOV             R0, R6                                                 ; +0x114, 0x2fa9d8\nBL              sub_774008                                             ; +0x116, 0x2fa9da\nCMP.W           R8, #0                                                 ; +0x11a, 0x2fa9de\nBNE             loc_2FA9F0                                             ; +0x11e, 0x2fa9e2\nLDR.W           R3, [R5,#0x17C]                                        ; +0x120, 0x2fa9e4\nMOV.W           R2, #0xFFFFFFFF                                        ; +0x124, 0x2fa9e8\nSTR.W           R2, [R3,#0x258]                                        ; +0x128, 0x2fa9ec\nMOV             R0, R5; this                                           ; +0x12c, 0x2fa9f0\nBL              _ZN15CCTextInputNode16updateBlinkLabelEv; CCTextInputNode::updateBlinkLabel(void) ; +0x12e, 0x2fa9f2\nB               loc_2FAA08                                             ; +0x132, 0x2fa9f6\nB               loc_2FA9FA                                             ; +0x134, 0x2fa9f8\nMOV             R0, R4                                                 ; +0x136, 0x2fa9fa\nBL              sub_774008                                             ; +0x138, 0x2fa9fc\nBL              __cxa_end_cleanup                                      ; +0x13c, 0x2faa00\nMOV             R0, R6                                                 ; +0x140, 0x2faa04\nB               loc_2FA9FC                                             ; +0x142, 0x2faa06\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x144, 0x2faa08\nLDR             R3, [R7]                                               ; +0x146, 0x2faa0a\nCMP             R2, R3                                                 ; +0x148, 0x2faa0c\nBEQ             loc_2FAA14                                             ; +0x14a, 0x2faa0e\nBLX             __stack_chk_fail                                       ; +0x14c, 0x2faa10\nADD             SP, SP, #0x18                                          ; +0x150, 0x2faa14\nPOP.W           {R4-R10,PC}                                            ; +0x152, 0x2faa16", "xrefs": ["CCTextInputNode::addTextArea @ 0x2faa9a", "CCTextInputNode::setString @ 0x2fab10", "CCTextInputNode::textChanged @ 0x2fab72", "CCTextInputNode::onTextFieldDetachWithIME @ 0x2fad9a", "LevelSearchLayer::textInputOpened @ 0x3ac7e4", "LevelSearchLayer::updateSearchLabel @ 0x3ac8e6", "EditLevelLayer::textInputOpened @ 0x3b6232", "EditLevelLayer::textInputClosed @ 0x3b7a72", "ColorSelectPopup::updateTextInputLabel @ 0x3da550", "ColorSelectPopup::colorSelectClosed @ 0x3da77c", "ColorSelectPopup::colorSelectClosed @ 0x3da7e6", "ColorSelectPopup::updateCopyColorTextInputLabel @ 0x3da8a8", "GJGarageLayer::textInputOpened @ 0x402828", "CustomizeObjectLayer::textInputOpened @ 0x461280", "SetColorIDPopup::colorSelectClosed @ 0x4a8976", "SetColorIDPopup::init @ 0x4b00b6", "SetupPulsePopup::colorSelectClosed @ 0x4bdc58", "SetupPulsePopup::colorSelectClosed @ 0x4bdcbc", "SetupPulsePopup::updateTextInputLabel @ 0x4be1e4", "SetupPulsePopup::updateCopyColorTextInputLabel @ 0x4be438", "SecretLayer::textInputOpened @ 0x4c94d4", "SecretLayer::updateSearchLabel @ 0x4c96ee", "SecretLayer2::textInputOpened @ 0x4eb1e8", "SecretLayer2::updateSearchLabel @ 0x4ec21e", "SecretLayer4::textInputOpened @ 0x4f01f8", "SecretLayer4::updateSearchLabel @ 0x4f082a", "SetupSmartTemplateLayer::textInputOpened @ 0x53d730", "LevelListLayer::textInputClosed @ 0x58f42c", "LevelListLayer::textInputOpened @ 0x58fbc6", "SecretLayer5::textInputOpened @ 0x59c540", "SecretLayer5::updateSearchLabel @ 0x59db66", "SecretLayer5::onSubmit @ 0x59eb48"], "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"}