{"type": "func", "start": 774486, "end": 774522, "name": "sub_BD156", "pseudocode": "// \n// sub_BD156 from 0xbd156 to 0xbd17a (36 bytes)\n// \n// 1 xrefs:\n// > sub_BD0FE @ 0xbd14a\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\n_DWORD *__fastcall sub_BD156(_DWORD *result, int a2)\n{\n  _DWORD *v2; // r2\n  _DWORD *v3; // r3\n  _DWORD *v4; // r1\n\n  v2 = (_DWORD *)*result;\n  if ( (_DWORD *)*result == result )\n  {\n    v3 = (_DWORD *)result[1];\n    if ( v3 == result )\n      return result;\n  }\n  else\n  {\n    v3 = (_DWORD *)result[1];\n  }\n  v4 = *(_DWORD **)(a2 + 4);\n  *v3 = *v4;\n  v2[1] = v4;\n  *v4 = v2;\n  *result = result;\n  result[1] = result;\n  return result;\n}", "assembly": "; \n; sub_BD156 from 0xbd156 to 0xbd17a (36 bytes)\n; \n; 1 xrefs:\n; > sub_BD0FE @ 0xbd14a\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, 0xbd156\nADD             R7, SP, #8                                             ; +0x2, 0xbd158\nLDR             R2, [R0]                                               ; +0x4, 0xbd15a\nCMP             R2, R0                                                 ; +0x6, 0xbd15c\nBEQ             loc_BD164                                              ; +0x8, 0xbd15e\nLDR             R3, [R0,#4]                                            ; +0xa, 0xbd160\nB               loc_BD16A                                              ; +0xc, 0xbd162\nLDR             R3, [R0,#4]                                            ; +0xe, 0xbd164\nCMP             R3, R0                                                 ; +0x10, 0xbd166\nBEQ             locret_BD178                                           ; +0x12, 0xbd168\nLDR             R1, [R1,#4]                                            ; +0x14, 0xbd16a\nLDR             R4, [R1]                                               ; +0x16, 0xbd16c\nSTR             R4, [R3]                                               ; +0x18, 0xbd16e\nSTR             R1, [R2,#4]                                            ; +0x1a, 0xbd170\nSTR             R2, [R1]                                               ; +0x1c, 0xbd172\nSTRD.W          R0, R0, [R0]                                           ; +0x1e, 0xbd174\nPOP             {R4,R6,R7,PC}                                          ; +0x22, 0xbd178", "xrefs": ["sub_BD0FE @ 0xbd14a"], "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"}