{"type": "func", "start": 3898200, "end": 3898340, "name": "EditLevelLayer::textChanged", "pseudocode": "// \n// EditLevelLayer::textChanged from 0x3b7b58 to 0x3b7be4 (140 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditLevelLayer::textChanged @ 0x3b7bec\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 EditLevelLayer::textChanged(EditLevelLayer *a1, CCTextInputNode *a2)\n{\n  int v4; // r0\n  char **v5; // r6\n  GJGameLevel *m_level; // r7\n  char *v7; // [sp+4h] [bp-10h] BYREF\n  char *v8; // [sp+8h] [bp-Ch] BYREF\n\n  v4 = a2->getTag(a2);\n  if ( v4 == 1 )\n  {\n    v5 = &v7;\n    m_level = a1->m_level;\n    CCTextInputNode::getString((CCTextInputNode *)&v7, (int)a2);\n    sub_776584((int)&v8, v7);\n    sub_775D40(&m_level->m_levelName, &v8);\n    sub_774008(&v8);\n  }\n  else\n  {\n    if ( v4 != 2 )\n      return;\n    v5 = &v8;\n    CCTextInputNode::getString((CCTextInputNode *)&v8, (int)a2);\n    EditLevelLayer::updateDescText(a1, v8);\n  }\n  sub_774008(v5);\n}", "assembly": "; \n; EditLevelLayer::textChanged from 0x3b7b58 to 0x3b7be4 (140 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditLevelLayer::textChanged @ 0x3b7bec\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\nPUSH            {R4-R7,LR}                                             ; +0x0, 0x3b7b58\nSUB             SP, SP, #0x14                                          ; +0x2, 0x3b7b5a\nLDR             R5, =(__stack_chk_guard_ptr - 0x3B7B68)                ; +0x4, 0x3b7b5c\nMOV             R7, R0                                                 ; +0x6, 0x3b7b5e\nMOV             R0, R1                                                 ; +0x8, 0x3b7b60\nMOV             R4, R1                                                 ; +0xa, 0x3b7b62\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x3b7b64\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x3b7b66\nLDR             R3, [R5]                                               ; +0x10, 0x3b7b68\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x12, 0x3b7b6a\nLDR             R3, [R1]                                               ; +0x14, 0x3b7b6c\nLDR             R3, [R3,#0x20]                                         ; +0x16, 0x3b7b6e\nBLX             R3                                                     ; +0x18, 0x3b7b70\nCMP             R0, #1                                                 ; +0x1a, 0x3b7b72\nBEQ             loc_3B7B8E                                             ; +0x1c, 0x3b7b74\nCMP             R0, #2                                                 ; +0x1e, 0x3b7b76\nBNE             loc_3B7BD4                                             ; +0x20, 0x3b7b78\nADD             R6, SP, #0x14+var_C                                    ; +0x22, 0x3b7b7a\nMOV             R1, R4                                                 ; +0x24, 0x3b7b7c\nMOV             R0, R6; this                                           ; +0x26, 0x3b7b7e\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x28, 0x3b7b80\nMOV             R0, R7; this                                           ; +0x2c, 0x3b7b84\nLDR             R1, [SP,#0x14+var_C]; char *                           ; +0x2e, 0x3b7b86\nBL              _ZN14EditLevelLayer14updateDescTextEPKc; EditLevelLayer::updateDescText(char const*) ; +0x30, 0x3b7b88\nB               loc_3B7BB8                                             ; +0x34, 0x3b7b8c\nADD             R6, SP, #0x14+var_10                                   ; +0x36, 0x3b7b8e\nMOV             R1, R4                                                 ; +0x38, 0x3b7b90\nADD             R4, SP, #0x14+var_C                                    ; +0x3a, 0x3b7b92\nLDR.W           R7, [R7,#0x154]                                        ; +0x3c, 0x3b7b94\nMOV             R0, R6; this                                           ; +0x40, 0x3b7b98\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x42, 0x3b7b9a\nMOV             R0, R4; int                                            ; +0x46, 0x3b7b9e\nLDR             R1, [SP,#0x14+var_10]; char *                          ; +0x48, 0x3b7ba0\nMOV             R2, SP                                                 ; +0x4a, 0x3b7ba2\nBL              sub_776584                                             ; +0x4c, 0x3b7ba4\nADD.W           R0, R7, #0x118                                         ; +0x50, 0x3b7ba8\nMOV             R1, R4                                                 ; +0x54, 0x3b7bac\nBL              sub_775D40                                             ; +0x56, 0x3b7bae\nMOV             R0, R4                                                 ; +0x5a, 0x3b7bb2\nBL              sub_774008                                             ; +0x5c, 0x3b7bb4\nMOV             R0, R6                                                 ; +0x60, 0x3b7bb8\nBL              sub_774008                                             ; +0x62, 0x3b7bba\nB               loc_3B7BD4                                             ; +0x66, 0x3b7bbe\nB               loc_3B7BCA                                             ; +0x68, 0x3b7bc0\nMOV             R0, R4                                                 ; +0x6a, 0x3b7bc2\nBL              sub_774008                                             ; +0x6c, 0x3b7bc4\nB               loc_3B7BCA                                             ; +0x70, 0x3b7bc8\nMOV             R0, R6                                                 ; +0x72, 0x3b7bca\nBL              sub_774008                                             ; +0x74, 0x3b7bcc\nBL              __cxa_end_cleanup                                      ; +0x78, 0x3b7bd0\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x7c, 0x3b7bd4\nLDR             R3, [R5]                                               ; +0x7e, 0x3b7bd6\nCMP             R2, R3                                                 ; +0x80, 0x3b7bd8\nBEQ             loc_3B7BE0                                             ; +0x82, 0x3b7bda\nBLX             __stack_chk_fail                                       ; +0x84, 0x3b7bdc\nADD             SP, SP, #0x14                                          ; +0x88, 0x3b7be0\nPOP             {R4-R7,PC}                                             ; +0x8a, 0x3b7be2", "xrefs": ["`non-virtual thunk to'EditLevelLayer::textChanged @ 0x3b7bec"], "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"}