{"type": "func", "start": 777468, "end": 777500, "name": "sub_BDCFC", "pseudocode": "// \n// sub_BDCFC from 0xbdcfc to 0xbdd1c (32 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xbdcfa\n// > sub_52028 @ 0x52032\n// > sub_BCC7C @ 0xbcc96\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 sub_BDCFC()\n{\n  int v0; // r0\n  int result; // r0\n\n  v0 = dword_126180;\n  if ( dword_126180 )\n    goto LABEL_2;\n  result = sub_509CE();\n  if ( !result )\n  {\n    v0 = dword_126180;\nLABEL_2:\n    dword_126180 = v0 + 1;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_BDCFC from 0xbdcfc to 0xbdd1c (32 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xbdcfa\n; > sub_52028 @ 0x52032\n; > sub_BCC7C @ 0xbcc96\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            {R4,R6,R7,LR}                                          ; +0x0, 0xbdcfc\nADD             R7, SP, #8                                             ; +0x2, 0xbdcfe\nLDR             R4, =(dword_126180 - 0xBDD06)                          ; +0x4, 0xbdd00\nADD             R4, PC; dword_126180                                   ; +0x6, 0xbdd02\nLDR             R0, [R4]                                               ; +0x8, 0xbdd04\nCBZ             R0, loc_BDD10                                          ; +0xa, 0xbdd06\nADDS            R0, #1                                                 ; +0xc, 0xbdd08\nSTR             R0, [R4]                                               ; +0xe, 0xbdd0a\nMOVS            R0, #0                                                 ; +0x10, 0xbdd0c\nPOP             {R4,R6,R7,PC}                                          ; +0x12, 0xbdd0e\nBL              sub_509CE                                              ; +0x14, 0xbdd10\nCBZ             R0, loc_BDD18                                          ; +0x18, 0xbdd14\nPOP             {R4,R6,R7,PC}                                          ; +0x1a, 0xbdd16\nLDR             R0, [R4]                                               ; +0x1c, 0xbdd18\nB               loc_BDD08                                              ; +0x1e, 0xbdd1a", "xrefs": ["<???> @ 0xbdcfa", "sub_52028 @ 0x52032", "sub_BCC7C @ 0xbcc96"], "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"}