{"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!\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\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!\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\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_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"}