{"type": "func", "start": 4936596, "end": 4936748, "name": "GJAccountSettingsLayer::closeAccInputNodes", "pseudocode": "// \n// GJAccountSettingsLayer::closeAccInputNodes from 0x4b5394 to 0x4b542c (152 bytes)\n// \n// 2 xrefs:\n// > GJAccountSettingsLayer::onClose @ 0x4b5438\n// > GJAccountSettingsLayer::onUpdate @ 0x4b5484\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 GJAccountSettingsLayer::closeAccInputNodes(GJAccountSettingsLayer *a1, cocos2d::CCArray *a2)\n{\n  cocos2d::ccArray *data; // r7\n  cocos2d::CCObject **arr; // r5\n  std::map<int,std::string> *p_m_links; // r9\n  cocos2d::CCObject **v5; // r6\n  _DWORD *v6; // r4\n  _DWORD *v7; // t1\n  int v8; // r2\n  int v9; // r10\n  int v10; // [sp+4h] [bp-10h] BYREF\n  char v11; // [sp+8h] [bp-Ch] BYREF\n\n  if ( a2 )\n  {\n    data = a2->data;\n    if ( data->num )\n    {\n      arr = data->arr;\n      p_m_links = &a1->m_links;\n      v5 = &arr[data->num] + 0x3FFFFFFF;\n      while ( arr <= v5 )\n      {\n        v7 = *arr++;\n        v6 = v7;\n        if ( !v7 )\n          break;\n        v6[96] = 0;\n        (*(void (__fastcall **)(_DWORD *, _DWORD))(*v6 + 572))(v6, 0);\n        v10 = (*(int (__fastcall **)(_DWORD *))(*v6 + 32))(v6);\n        v9 = std::map<int,std::string>::operator[](p_m_links, &v10, v8);\n        CCTextInputNode::getString((CCTextInputNode *)&v11, (int)v6);\n        sub_774794(v9, &v11);\n        sub_774008(&v11);\n      }\n    }\n  }\n}", "assembly": "; \n; GJAccountSettingsLayer::closeAccInputNodes from 0x4b5394 to 0x4b542c (152 bytes)\n; \n; 2 xrefs:\n; > GJAccountSettingsLayer::onClose @ 0x4b5438\n; > GJAccountSettingsLayer::onUpdate @ 0x4b5484\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 - 0x4B539E)                ; +0x0, 0x4b5394\nPUSH.W          {R4-R11,LR}                                            ; +0x2, 0x4b5396\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x4b539a\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x4b539c\nSUB             SP, SP, #0x14                                          ; +0xa, 0x4b539e\nLDR             R2, [R3]                                               ; +0xc, 0x4b53a0\nMOV             R8, R3                                                 ; +0xe, 0x4b53a2\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x10, 0x4b53a4\nCMP             R1, #0                                                 ; +0x12, 0x4b53a6\nBEQ             loc_4B5418                                             ; +0x14, 0x4b53a8\nLDR             R7, [R1,#0x34]                                         ; +0x16, 0x4b53aa\nLDR             R4, [R7]                                               ; +0x18, 0x4b53ac\nCBZ             R4, loc_4B5418                                         ; +0x1a, 0x4b53ae\nADD.W           R4, R4, #0x40000000                                    ; +0x1c, 0x4b53b0\nLDR             R5, [R7,#0xC]                                          ; +0x20, 0x4b53b4\nSUBS            R4, #1                                                 ; +0x22, 0x4b53b6\nADD.W           R9, R0, #0x208                                         ; +0x24, 0x4b53b8\nADD.W           R11, SP, #0x14+var_10                                  ; +0x28, 0x4b53bc\nADD.W           R6, R5, R4,LSL#2                                       ; +0x2c, 0x4b53c0\nCMP             R5, R6                                                 ; +0x30, 0x4b53c4\nBHI             loc_4B5418                                             ; +0x32, 0x4b53c6\nLDR.W           R4, [R5],#4                                            ; +0x34, 0x4b53c8\nCBZ             R4, loc_4B5418                                         ; +0x38, 0x4b53cc\nMOVS            R3, #0                                                 ; +0x3a, 0x4b53ce\nSTR.W           R3, [R4,#0x180]                                        ; +0x3c, 0x4b53d0\nLDR             R3, [R4]                                               ; +0x40, 0x4b53d4\nMOVS            R1, #0                                                 ; +0x42, 0x4b53d6\nMOV             R0, R4                                                 ; +0x44, 0x4b53d8\nADD             R7, SP, #0x14+var_C                                    ; +0x46, 0x4b53da\nLDR.W           R3, [R3,#0x23C]                                        ; +0x48, 0x4b53dc\nBLX             R3                                                     ; +0x4c, 0x4b53e0\nLDR             R3, [R4]                                               ; +0x4e, 0x4b53e2\nMOV             R0, R4                                                 ; +0x50, 0x4b53e4\nLDR             R3, [R3,#0x20]                                         ; +0x52, 0x4b53e6\nBLX             R3                                                     ; +0x54, 0x4b53e8\nMOV             R1, R11                                                ; +0x56, 0x4b53ea\nSTR             R0, [SP,#0x14+var_10]                                  ; +0x58, 0x4b53ec\nMOV             R0, R9                                                 ; +0x5a, 0x4b53ee\nBL              _ZNSt3mapIiSsSt4lessIiESaISt4pairIKiSsEEEixEOi; std::map<int,std::string>::operator[](int &&) ; +0x5c, 0x4b53f0\nMOV             R1, R4                                                 ; +0x60, 0x4b53f4\nMOV             R10, R0                                                ; +0x62, 0x4b53f6\nMOV             R0, R7; this                                           ; +0x64, 0x4b53f8\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x66, 0x4b53fa\nMOV             R0, R10                                                ; +0x6a, 0x4b53fe\nMOV             R1, R7                                                 ; +0x6c, 0x4b5400\nBL              sub_774794                                             ; +0x6e, 0x4b5402\nMOV             R0, R7                                                 ; +0x72, 0x4b5406\nBL              sub_774008                                             ; +0x74, 0x4b5408\nB               loc_4B53C4                                             ; +0x78, 0x4b540c\nMOV             R0, R7                                                 ; +0x7a, 0x4b540e\nBL              sub_774008                                             ; +0x7c, 0x4b5410\nBL              __cxa_end_cleanup                                      ; +0x80, 0x4b5414\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x84, 0x4b5418\nLDR.W           R3, [R8]                                               ; +0x86, 0x4b541a\nCMP             R2, R3                                                 ; +0x8a, 0x4b541e\nBEQ             loc_4B5426                                             ; +0x8c, 0x4b5420\nBLX             __stack_chk_fail                                       ; +0x8e, 0x4b5422\nADD             SP, SP, #0x14                                          ; +0x92, 0x4b5426\nPOP.W           {R4-R11,PC}                                            ; +0x94, 0x4b5428", "xrefs": ["GJAccountSettingsLayer::onClose @ 0x4b5438", "GJAccountSettingsLayer::onUpdate @ 0x4b5484"], "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"}