{"type": "func", "start": 4592148, "end": 4592300, "name": "CustomizeObjectLayer::textInputOpened", "pseudocode": "// \n// CustomizeObjectLayer::textInputOpened from 0x461214 to 0x4612ac (152 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CustomizeObjectLayer::textInputOpened @ 0x4612bc\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 CustomizeObjectLayer::textInputOpened(CustomizeObjectLayer *a1, CCTextInputNode *a2)\n{\n  int v4; // r8\n  char v5; // [sp+4h] [bp-10h] BYREF\n  char *v6; // [sp+8h] [bp-Ch] BYREF\n\n  if ( a2->getTag(a2) == 1 )\n  {\n    CCTextInputNode::getString((CCTextInputNode *)&v5, (int)a2);\n    sub_776584((int)&v6, \"A\");\n    v4 = sub_774DBC(&v5, &v6);\n    sub_774008(&v6);\n    sub_774008(&v5);\n    if ( !v4 )\n    {\n      CustomizeObjectLayer::onClear(a1, nullptr);\n      sub_776584((int)&v6, \" \");\n      CCTextInputNode::updateLabel((int)a2, &v6);\n      sub_774008(&v6);\n    }\n  }\n}", "assembly": "; \n; CustomizeObjectLayer::textInputOpened from 0x461214 to 0x4612ac (152 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CustomizeObjectLayer::textInputOpened @ 0x4612bc\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, 0x461214\nSUB             SP, SP, #0x14                                          ; +0x4, 0x461218\nLDR             R5, =(__stack_chk_guard_ptr - 0x461226)                ; +0x6, 0x46121a\nMOV             R9, R0                                                 ; +0x8, 0x46121c\nMOV             R0, R1                                                 ; +0xa, 0x46121e\nMOV             R7, R1                                                 ; +0xc, 0x461220\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xe, 0x461222\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x10, 0x461224\nLDR             R3, [R5]                                               ; +0x12, 0x461226\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x14, 0x461228\nLDR             R3, [R1]                                               ; +0x16, 0x46122a\nLDR             R3, [R3,#0x20]                                         ; +0x18, 0x46122c\nBLX             R3                                                     ; +0x1a, 0x46122e\nCMP             R0, #1                                                 ; +0x1c, 0x461230\nBNE             loc_46129A                                             ; +0x1e, 0x461232\nADD             R6, SP, #0x14+var_10                                   ; +0x20, 0x461234\nMOV             R1, R7                                                 ; +0x22, 0x461236\nADD             R4, SP, #0x14+var_C                                    ; +0x24, 0x461238\nMOV             R0, R6; this                                           ; +0x26, 0x46123a\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x28, 0x46123c\nLDR             R1, =(aA_0 - 0x46124A); \"A\"                            ; +0x2c, 0x461240\nMOV             R0, R4; int                                            ; +0x2e, 0x461242\nMOV             R2, SP                                                 ; +0x30, 0x461244\nADD             R1, PC; \"A\"                                            ; +0x32, 0x461246\nBL              sub_776584                                             ; +0x34, 0x461248\nMOV             R1, R4                                                 ; +0x38, 0x46124c\nMOV             R0, R6                                                 ; +0x3a, 0x46124e\nBL              sub_774DBC                                             ; +0x3c, 0x461250\nMOV             R8, R0                                                 ; +0x40, 0x461254\nMOV             R0, R4                                                 ; +0x42, 0x461256\nBL              sub_774008                                             ; +0x44, 0x461258\nMOV             R0, R6                                                 ; +0x48, 0x46125c\nBL              sub_774008                                             ; +0x4a, 0x46125e\nCMP.W           R8, #0                                                 ; +0x4e, 0x461262\nBNE             loc_46129A                                             ; +0x52, 0x461266\nMOV             R0, R9; this                                           ; +0x54, 0x461268\nMOV             R1, R8; cocos2d::CCObject *                            ; +0x56, 0x46126a\nBL              _ZN20CustomizeObjectLayer7onClearEPN7cocos2d8CCObjectE; CustomizeObjectLayer::onClear(cocos2d::CCObject *) ; +0x58, 0x46126c\nLDR             R1, =(asc_943A02 - 0x46127A); \" \"                      ; +0x5c, 0x461270\nMOV             R0, R4; int                                            ; +0x5e, 0x461272\nMOV             R2, R6                                                 ; +0x60, 0x461274\nADD             R1, PC; \" \"                                            ; +0x62, 0x461276\nBL              sub_776584                                             ; +0x64, 0x461278\nMOV             R0, R7                                                 ; +0x68, 0x46127c\nMOV             R1, R4                                                 ; +0x6a, 0x46127e\nBL              _ZN15CCTextInputNode11updateLabelESs; CCTextInputNode::updateLabel(std::string) ; +0x6c, 0x461280\nMOV             R0, R4                                                 ; +0x70, 0x461284\nBL              sub_774008                                             ; +0x72, 0x461286\nB               loc_46129A                                             ; +0x76, 0x46128a\nMOV             R0, R6                                                 ; +0x78, 0x46128c\nB               loc_461292                                             ; +0x7a, 0x46128e\nMOV             R0, R4                                                 ; +0x7c, 0x461290\nBL              sub_774008                                             ; +0x7e, 0x461292\nBL              __cxa_end_cleanup                                      ; +0x82, 0x461296\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x86, 0x46129a\nLDR             R3, [R5]                                               ; +0x88, 0x46129c\nCMP             R2, R3                                                 ; +0x8a, 0x46129e\nBEQ             loc_4612A6                                             ; +0x8c, 0x4612a0\nBLX             __stack_chk_fail                                       ; +0x8e, 0x4612a2\nADD             SP, SP, #0x14                                          ; +0x92, 0x4612a6\nPOP.W           {R4-R9,PC}                                             ; +0x94, 0x4612a8", "xrefs": ["`non-virtual thunk to'CustomizeObjectLayer::textInputOpened @ 0x4612bc"], "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"}