{"type": "func", "start": 777504, "end": 777532, "name": "sub_BDD20", "pseudocode": "// \n// sub_BDD20 from 0xbdd20 to 0xbdd3c (28 bytes)\n// \n// 2 xrefs:\n// > sub_52054 @ 0x520e8\n// > sub_BCD40 @ 0xbcd8c\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_BDD20()\n{\n  int result; // r0\n\n  if ( --dword_126180 )\n    return 0;\n  result = sub_509D2();\n  if ( !result )\n    return 0;\n  return result;\n}", "assembly": "; \n; sub_BDD20 from 0xbdd20 to 0xbdd3c (28 bytes)\n; \n; 2 xrefs:\n; > sub_52054 @ 0x520e8\n; > sub_BCD40 @ 0xbcd8c\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            {R7,LR}                                                ; +0x0, 0xbdd20\nMOV             R7, SP                                                 ; +0x2, 0xbdd22\nLDR             R0, =(dword_126180 - 0xBDD2A)                          ; +0x4, 0xbdd24\nADD             R0, PC; dword_126180                                   ; +0x6, 0xbdd26\nLDR             R1, [R0]                                               ; +0x8, 0xbdd28\nSUBS            R1, #1                                                 ; +0xa, 0xbdd2a\nSTR             R1, [R0]                                               ; +0xc, 0xbdd2c\nBNE             loc_BDD38                                              ; +0xe, 0xbdd2e\nBL              sub_509D2                                              ; +0x10, 0xbdd30\nCBZ             R0, loc_BDD38                                          ; +0x14, 0xbdd34\nPOP             {R7,PC}                                                ; +0x16, 0xbdd36\nMOVS            R0, #0                                                 ; +0x18, 0xbdd38\nPOP             {R7,PC}                                                ; +0x1a, 0xbdd3a", "xrefs": ["sub_52054 @ 0x520e8", "sub_BCD40 @ 0xbcd8c"], "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"}