{"type": "func", "start": 4204668, "end": 4204868, "name": "GJGarageLayer::textInputClosed", "pseudocode": "// \n// GJGarageLayer::textInputClosed from 0x40287c to 0x402944 (200 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'GJGarageLayer::textInputClosed @ 0x402954\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 GJGarageLayer::textInputClosed(GJGarageLayer *a1, CCTextInputNode *a2)\n{\n  int v4; // r10\n  GameManager *v5; // r10\n  char *v6; // r2\n  char *v7; // [sp+4h] [bp-14h] BYREF\n  _BYTE v8[4]; // [sp+8h] [bp-10h] BYREF\n  _BYTE v9[4]; // [sp+Ch] [bp-Ch] BYREF\n  char v10[4]; // [sp+10h] [bp-8h] BYREF\n\n  CCTextInputNode::getString((CCTextInputNode *)&v7, (int)a2);\n  sub_776584((int)v8, (char *)&unk_939830);\n  v4 = sub_774DBC(&v7, v8);\n  sub_774008(v8);\n  if ( !v4 )\n    sub_7753D4((int)&v7, \"Player\");\n  GameManager::sharedState()->m_scoreValid = 0;\n  v5 = GameManager::sharedState();\n  sub_775C20(v9);\n  sub_775D40(&v5->m_playerName, v9);\n  sub_774008(v9);\n  GJGarageLayer::updatePlayerName(a1, v7);\n  sub_776584((int)v10, v7);\n  CCTextInputNode::setString((int)a2, v10, v6);\n  sub_774008(v10);\n  sub_774008(&v7);\n}", "assembly": "; \n; GJGarageLayer::textInputClosed from 0x40287c to 0x402944 (200 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'GJGarageLayer::textInputClosed @ 0x402954\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-R10,LR}                                            ; +0x0, 0x40287c\nSUB             SP, SP, #0x18                                          ; +0x4, 0x402880\nLDR             R7, =(__stack_chk_guard_ptr - 0x40288E)                ; +0x6, 0x402882\nADD             R4, SP, #0x18+var_14                                   ; +0x8, 0x402884\nMOV             R9, R0                                                 ; +0xa, 0x402886\nMOV             R8, R1                                                 ; +0xc, 0x402888\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0xe, 0x40288a\nLDR             R7, [R7]; __stack_chk_guard                            ; +0x10, 0x40288c\nMOV             R0, R4; this                                           ; +0x12, 0x40288e\nADD             R6, SP, #0x18+var_10                                   ; +0x14, 0x402890\nADD             R5, SP, #0x18+var_8                                    ; +0x16, 0x402892\nLDR             R3, [R7]                                               ; +0x18, 0x402894\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x1a, 0x402896\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x1c, 0x402898\nLDR             R1, =(unk_939830 - 0x4028A6)                           ; +0x20, 0x40289c\nMOV             R0, R6; int                                            ; +0x22, 0x40289e\nMOV             R2, R5                                                 ; +0x24, 0x4028a0\nADD             R1, PC; unk_939830 ; char *                            ; +0x26, 0x4028a2\nBL              sub_776584                                             ; +0x28, 0x4028a4\nMOV             R0, R4                                                 ; +0x2c, 0x4028a8\nMOV             R1, R6                                                 ; +0x2e, 0x4028aa\nBL              sub_774DBC                                             ; +0x30, 0x4028ac\nMOV             R10, R0                                                ; +0x34, 0x4028b0\nMOV             R0, R6                                                 ; +0x36, 0x4028b2\nBL              sub_774008                                             ; +0x38, 0x4028b4\nCMP.W           R10, #0                                                ; +0x3c, 0x4028b8\nBEQ             loc_4028CE                                             ; +0x40, 0x4028bc\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x42, 0x4028be\nMOVS            R3, #0                                                 ; +0x46, 0x4028c2\nSTRB.W          R3, [R0,#0x194]                                        ; +0x48, 0x4028c4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x4c, 0x4028c8\nB               loc_4028DA                                             ; +0x50, 0x4028cc\nLDR             R1, =(aPlayer - 0x4028D6); \"Player\"                    ; +0x52, 0x4028ce\nMOV             R0, R4; int                                            ; +0x54, 0x4028d0\nADD             R1, PC; \"Player\"                                       ; +0x56, 0x4028d2\nBL              sub_7753D4                                             ; +0x58, 0x4028d4\nB               loc_4028BE                                             ; +0x5c, 0x4028d8\nADD             R6, SP, #0x18+var_C                                    ; +0x5e, 0x4028da\nMOV             R10, R0                                                ; +0x60, 0x4028dc\nMOV             R1, R4                                                 ; +0x62, 0x4028de\nMOV             R0, R6                                                 ; +0x64, 0x4028e0\nBL              sub_775C20                                             ; +0x66, 0x4028e2\nADD.W           R0, R10, #0x190                                        ; +0x6a, 0x4028e6\nMOV             R1, R6                                                 ; +0x6e, 0x4028ea\nBL              sub_775D40                                             ; +0x70, 0x4028ec\nMOV             R0, R6                                                 ; +0x74, 0x4028f0\nBL              sub_774008                                             ; +0x76, 0x4028f2\nMOV             R0, R9; this                                           ; +0x7a, 0x4028f6\nLDR             R1, [SP,#0x18+var_14]; char *                          ; +0x7c, 0x4028f8\nBL              _ZN13GJGarageLayer16updatePlayerNameEPKc; GJGarageLayer::updatePlayerName(char const*) ; +0x7e, 0x4028fa\nMOV             R0, R5; int                                            ; +0x82, 0x4028fe\nLDR             R1, [SP,#0x18+var_14]; char *                          ; +0x84, 0x402900\nMOV             R2, R6                                                 ; +0x86, 0x402902\nBL              sub_776584                                             ; +0x88, 0x402904\nMOV             R0, R8                                                 ; +0x8c, 0x402908\nMOV             R1, R5                                                 ; +0x8e, 0x40290a\nBL              _ZN15CCTextInputNode9setStringESs; CCTextInputNode::setString(std::string) ; +0x90, 0x40290c\nMOV             R0, R5                                                 ; +0x94, 0x402910\nBL              sub_774008                                             ; +0x96, 0x402912\nMOV             R0, R4                                                 ; +0x9a, 0x402916\nBL              sub_774008                                             ; +0x9c, 0x402918\nLDR             R2, [SP,#0x18+var_4]                                   ; +0xa0, 0x40291c\nLDR             R3, [R7]                                               ; +0xa2, 0x40291e\nCMP             R2, R3                                                 ; +0xa4, 0x402920\nBEQ             loc_40293E                                             ; +0xa6, 0x402922\nBLX             __stack_chk_fail                                       ; +0xa8, 0x402924\nMOV             R0, R6                                                 ; +0xac, 0x402928\nB               loc_40292E                                             ; +0xae, 0x40292a\nMOV             R0, R5                                                 ; +0xb0, 0x40292c\nBL              sub_774008                                             ; +0xb2, 0x40292e\nB               loc_402934                                             ; +0xb6, 0x402932\nMOV             R0, R4                                                 ; +0xb8, 0x402934\nBL              sub_774008                                             ; +0xba, 0x402936\nBL              __cxa_end_cleanup                                      ; +0xbe, 0x40293a\nADD             SP, SP, #0x18                                          ; +0xc2, 0x40293e\nPOP.W           {R4-R10,PC}                                            ; +0xc4, 0x402940", "xrefs": ["`non-virtual thunk to'GJGarageLayer::textInputClosed @ 0x402954"], "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"}