{"type": "func", "start": 685516, "end": 685594, "name": "sub_A75CC", "pseudocode": "// \n// sub_A75CC from 0xa75cc to 0xa761a (78 bytes)\n// \n// 6 xrefs:\n// > sub_45A6C @ 0x45b4e\n// > sub_45A6C @ 0x45b82\n// > sub_45A6C @ 0x45ba8\n// > sub_45A6C @ 0x45bb0\n// > sub_753C4 @ 0x773d6\n// > FMOD::DSP::setBypass @ 0xb1218\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_A75CC(int a1, int a2)\n{\n  int v2; // r2\n  unsigned int *v3; // r0\n  unsigned int v4; // r1\n  unsigned int v5; // r1\n\n  v2 = *(_DWORD *)(a1 + 92);\n  __dmb(0xBu);\n  if ( (v2 & 1 ^ a2) == 1 )\n    *(_DWORD *)(*(_DWORD *)(*(_DWORD *)(a1 + 128) + 66892) + 32) = 1;\n  v3 = (unsigned int *)(a1 + 92);\n  __dmb(0xBu);\n  if ( a2 )\n  {\n    do\n      v4 = __ldrex(v3);\n    while ( __strex(v4 | 1, v3) );\n  }\n  else\n  {\n    do\n      v5 = __ldrex(v3);\n    while ( __strex(v5 & 0xFFFFFFFE, v3) );\n  }\n  __dmb(0xBu);\n  return 0;\n}", "assembly": "; \n; sub_A75CC from 0xa75cc to 0xa761a (78 bytes)\n; \n; 6 xrefs:\n; > sub_45A6C @ 0x45b4e\n; > sub_45A6C @ 0x45b82\n; > sub_45A6C @ 0x45ba8\n; > sub_45A6C @ 0x45bb0\n; > sub_753C4 @ 0x773d6\n; > FMOD::DSP::setBypass @ 0xb1218\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\nLDR             R2, [R0,#0x5C]                                         ; +0x0, 0xa75cc\nDMB.W           ISH                                                    ; +0x2, 0xa75ce\nAND.W           R2, R2, #1                                             ; +0x6, 0xa75d2\nEORS            R2, R1                                                 ; +0xa, 0xa75d6\nCMP             R2, #1                                                 ; +0xc, 0xa75d8\nBNE             loc_A75E8                                              ; +0xe, 0xa75da\nLDR.W           R2, [R0,#0x80]                                         ; +0x10, 0xa75dc\nLDR             R3, =0x1054C                                           ; +0x14, 0xa75e0\nLDR             R2, [R2,R3]                                            ; +0x16, 0xa75e2\nMOVS            R3, #1                                                 ; +0x18, 0xa75e4\nSTR             R3, [R2,#0x20]                                         ; +0x1a, 0xa75e6\nADDS            R0, #0x5C ; '\\'                                        ; +0x1c, 0xa75e8\nDMB.W           ISH                                                    ; +0x1e, 0xa75ea\nCBZ             R1, loc_A7602                                          ; +0x22, 0xa75ee\nLDREX.W         R1, [R0]                                               ; +0x24, 0xa75f0\nORR.W           R1, R1, #1                                             ; +0x28, 0xa75f4\nSTREX.W         R2, R1, [R0]                                           ; +0x2c, 0xa75f8\nCMP             R2, #0                                                 ; +0x30, 0xa75fc\nBNE             loc_A75F0                                              ; +0x32, 0xa75fe\nB               loc_A7612                                              ; +0x34, 0xa7600\nLDREX.W         R1, [R0]                                               ; +0x36, 0xa7602\nBIC.W           R1, R1, #1                                             ; +0x3a, 0xa7606\nSTREX.W         R2, R1, [R0]                                           ; +0x3e, 0xa760a\nCMP             R2, #0                                                 ; +0x42, 0xa760e\nBNE             loc_A7602                                              ; +0x44, 0xa7610\nMOVS            R0, #0                                                 ; +0x46, 0xa7612\nDMB.W           ISH                                                    ; +0x48, 0xa7614\nBX              LR                                                     ; +0x4c, 0xa7618", "xrefs": ["sub_45A6C @ 0x45b4e", "sub_45A6C @ 0x45b82", "sub_45A6C @ 0x45ba8", "sub_45A6C @ 0x45bb0", "sub_753C4 @ 0x773d6", "FMOD::DSP::setBypass @ 0xb1218"], "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"}