{"type": "func", "start": 3891668, "end": 3891826, "name": "EditLevelLayer::textInputOpened", "pseudocode": "// \n// EditLevelLayer::textInputOpened from 0x3b61d4 to 0x3b6272 (158 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditLevelLayer::textInputOpened @ 0x3b6284\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::textInputOpened(EditLevelLayer *a1, CCTextInputNode *a2)\n{\n  int v3; // r9\n  int v4; // [sp+0h] [bp+0h] BYREF\n  _BYTE v5[4]; // [sp+4h] [bp+4h] BYREF\n  char *v6; // [sp+8h] [bp+8h] BYREF\n\n  CCTextInputNode::getString((CCTextInputNode *)&v4, (int)a2);\n  if ( a2->getTag(a2) == 1 )\n  {\n    sub_776584((int)v5, (char *)&unk_939830);\n    v3 = sub_774DBC(&v4, v5);\n    sub_774008(v5);\n    if ( !v3 )\n    {\n      sub_776584((int)&v6, \" \");\n      CCTextInputNode::updateLabel((int)a2, &v6);\n      sub_774008(&v6);\n    }\n  }\n  else\n  {\n    a2->getTag(a2);\n  }\n  sub_774008(&v4);\n}", "assembly": "; \n; EditLevelLayer::textInputOpened from 0x3b61d4 to 0x3b6272 (158 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditLevelLayer::textInputOpened @ 0x3b6284\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.W          {R4-R9,LR}                                             ; +0x0, 0x3b61d4\nSUB             SP, SP, #0x14                                          ; +0x4, 0x3b61d8\nLDR             R6, =(__stack_chk_guard_ptr - 0x3B61E6)                ; +0x6, 0x3b61da\nMOV             R8, R1                                                 ; +0x8, 0x3b61dc\nMOV             R0, SP; this                                           ; +0xa, 0x3b61de\nMOV             R7, SP                                                 ; +0xc, 0x3b61e0\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xe, 0x3b61e2\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x10, 0x3b61e4\nLDR             R3, [R6]                                               ; +0x12, 0x3b61e6\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x14, 0x3b61e8\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x16, 0x3b61ea\nLDR.W           R3, [R8]                                               ; +0x1a, 0x3b61ee\nMOV             R0, R8                                                 ; +0x1e, 0x3b61f2\nLDR             R3, [R3,#0x20]                                         ; +0x20, 0x3b61f4\nBLX             R3                                                     ; +0x22, 0x3b61f6\nCMP             R0, #1                                                 ; +0x24, 0x3b61f8\nBNE             loc_3B623E                                             ; +0x26, 0x3b61fa\nADD             R5, SP, #0x14+var_10                                   ; +0x28, 0x3b61fc\nADD             R4, SP, #0x14+var_C                                    ; +0x2a, 0x3b61fe\nLDR             R1, =(unk_939830 - 0x3B620A)                           ; +0x2c, 0x3b6200\nMOV             R0, R5; int                                            ; +0x2e, 0x3b6202\nMOV             R2, R4                                                 ; +0x30, 0x3b6204\nADD             R1, PC; unk_939830 ; char *                            ; +0x32, 0x3b6206\nBL              sub_776584                                             ; +0x34, 0x3b6208\nMOV             R0, SP                                                 ; +0x38, 0x3b620c\nMOV             R1, R5                                                 ; +0x3a, 0x3b620e\nBL              sub_774DBC                                             ; +0x3c, 0x3b6210\nMOV             R9, R0                                                 ; +0x40, 0x3b6214\nMOV             R0, R5                                                 ; +0x42, 0x3b6216\nBL              sub_774008                                             ; +0x44, 0x3b6218\nCMP.W           R9, #0                                                 ; +0x48, 0x3b621c\nBNE             loc_3B6248                                             ; +0x4c, 0x3b6220\nLDR             R1, =(asc_943A02 - 0x3B622C); \" \"                      ; +0x4e, 0x3b6222\nMOV             R0, R4; int                                            ; +0x50, 0x3b6224\nMOV             R2, R5                                                 ; +0x52, 0x3b6226\nADD             R1, PC; \" \"                                            ; +0x54, 0x3b6228\nBL              sub_776584                                             ; +0x56, 0x3b622a\nMOV             R0, R8                                                 ; +0x5a, 0x3b622e\nMOV             R1, R4                                                 ; +0x5c, 0x3b6230\nBL              _ZN15CCTextInputNode11updateLabelESs; CCTextInputNode::updateLabel(std::string) ; +0x5e, 0x3b6232\nMOV             R0, R4                                                 ; +0x62, 0x3b6236\nBL              sub_774008                                             ; +0x64, 0x3b6238\nB               loc_3B6248                                             ; +0x68, 0x3b623c\nLDR.W           R3, [R8]                                               ; +0x6a, 0x3b623e\nMOV             R0, R8                                                 ; +0x6e, 0x3b6242\nLDR             R3, [R3,#0x20]                                         ; +0x70, 0x3b6244\nBLX             R3                                                     ; +0x72, 0x3b6246\nMOV             R0, R7                                                 ; +0x74, 0x3b6248\nBL              sub_774008                                             ; +0x76, 0x3b624a\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x7a, 0x3b624e\nLDR             R3, [R6]                                               ; +0x7c, 0x3b6250\nCMP             R2, R3                                                 ; +0x7e, 0x3b6252\nBEQ             loc_3B626C                                             ; +0x80, 0x3b6254\nBLX             __stack_chk_fail                                       ; +0x82, 0x3b6256\nMOV             R0, R4                                                 ; +0x86, 0x3b625a\nBL              sub_774008                                             ; +0x88, 0x3b625c\nB               loc_3B6262                                             ; +0x8c, 0x3b6260\nMOV             R0, R7                                                 ; +0x8e, 0x3b6262\nBL              sub_774008                                             ; +0x90, 0x3b6264\nBL              __cxa_end_cleanup                                      ; +0x94, 0x3b6268\nADD             SP, SP, #0x14                                          ; +0x98, 0x3b626c\nPOP.W           {R4-R9,PC}                                             ; +0x9a, 0x3b626e", "xrefs": ["`non-virtual thunk to'EditLevelLayer::textInputOpened @ 0x3b6284"], "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"}