{"type": "func", "start": 312934, "end": 312962, "name": "sub_4C666", "pseudocode": "// \n// sub_4C666 from 0x4c666 to 0x4c682 (28 bytes)\n// \n// 3 xrefs:\n// > sub_617EC @ 0x61816\n// > sub_65494 @ 0x65676\n// > sub_65494 @ 0x65778\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:40:41 +0000\n// \n\nint __fastcall sub_4C666(int a1, _DWORD *a2)\n{\n  int v2; // r0\n\n  if ( !a2 )\n    return 31;\n  v2 = *(_DWORD *)(a1 + 332);\n  if ( v2 )\n  {\n    *a2 = *(_DWORD *)(v2 + 24);\n    return 0;\n  }\n  else\n  {\n    *a2 = 0;\n    return 30;\n  }\n}", "assembly": "; \n; sub_4C666 from 0x4c666 to 0x4c682 (28 bytes)\n; \n; 3 xrefs:\n; > sub_617EC @ 0x61816\n; > sub_65494 @ 0x65676\n; > sub_65494 @ 0x65778\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:40:41 +0000\n; \nCBZ             R1, loc_4C676                                          ; +0x0, 0x4c666\nLDR.W           R0, [R0,#0x14C]                                        ; +0x2, 0x4c668\nCBZ             R0, loc_4C67A                                          ; +0x6, 0x4c66c\nLDR             R0, [R0,#0x18]                                         ; +0x8, 0x4c66e\nSTR             R0, [R1]                                               ; +0xa, 0x4c670\nMOVS            R0, #0                                                 ; +0xc, 0x4c672\nBX              LR                                                     ; +0xe, 0x4c674\nMOVS            R0, #0x1F                                              ; +0x10, 0x4c676\nBX              LR                                                     ; +0x12, 0x4c678\nMOVS            R0, #0                                                 ; +0x14, 0x4c67a\nSTR             R0, [R1]                                               ; +0x16, 0x4c67c\nMOVS            R0, #0x1E                                              ; +0x18, 0x4c67e\nBX              LR                                                     ; +0x1a, 0x4c680", "xrefs": ["sub_617EC @ 0x61816", "sub_65494 @ 0x65676", "sub_65494 @ 0x65778"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}