{"type": "func", "start": 646012, "end": 646032, "name": "sub_9DB7C", "pseudocode": "// \n// sub_9DB7C from 0x9db7c to 0x9db90 (20 bytes)\n// \n// 3 xrefs:\n// > sub_9D7EC @ 0x9d85e\n// > sub_9D7EC @ 0x9d89a\n// > sub_9D7EC @ 0x9d8ba\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:41:31 +0000\n// \n\nint __fastcall sub_9DB7C(int a1)\n{\n  int result; // r0\n\n  result = *(_DWORD *)a1;\n  if ( result )\n  {\n    if ( !*(_BYTE *)(a1 + 4) )\n    {\n      *(_BYTE *)(a1 + 4) = 1;\n      return sub_6502C(result);\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_9DB7C from 0x9db7c to 0x9db90 (20 bytes)\n; \n; 3 xrefs:\n; > sub_9D7EC @ 0x9d85e\n; > sub_9D7EC @ 0x9d89a\n; > sub_9D7EC @ 0x9d8ba\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:41:31 +0000\n; \nMOV             R1, R0                                                 ; +0x0, 0x9db7c\nLDR             R0, [R0]                                               ; +0x2, 0x9db7e\nCBZ             R0, locret_9DB86                                       ; +0x4, 0x9db80\nLDRB            R2, [R1,#4]                                            ; +0x6, 0x9db82\nCBZ             R2, loc_9DB88                                          ; +0x8, 0x9db84\nBX              LR                                                     ; +0xa, 0x9db86\nMOVS            R2, #1                                                 ; +0xc, 0x9db88\nSTRB            R2, [R1,#4]                                            ; +0xe, 0x9db8a\nB.W             sub_6502C                                              ; +0x10, 0x9db8c", "xrefs": ["sub_9D7EC @ 0x9d85e", "sub_9D7EC @ 0x9d89a", "sub_9D7EC @ 0x9d8ba"], "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"}