{"type": "func", "start": 339956, "end": 340058, "name": "sub_52FF4", "pseudocode": "// \n// sub_52FF4 from 0x52ff4 to 0x5305a (102 bytes)\n// \n// 0 xrefs:\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_52FF4(int a1, int a2)\n{\n  int v3; // r0\n  int v4; // r5\n  int v5; // r0\n\n  if ( (unsigned __int8)(*(_BYTE *)(a2 + 10) - 5) <= 1u )\n  {\n    v3 = *(unsigned __int8 *)(a2 + 9);\n    switch ( v3 )\n    {\n      case 3:\n        FMOD::DSP::setBypass(*(FMOD::DSP **)(a2 + 12), *(_BYTE *)(a2 + 20) != 0);\n        break;\n      case 2:\n        FMOD::DSP::setActive(*(FMOD::DSP **)(a2 + 12), *(_BYTE *)(a2 + 20) != 0);\n        break;\n      case 1:\n        v4 = a2 + 12;\n        if ( !sub_BE2D6(a2 + 12, \"Show Delays\") )\n        {\n          v5 = 1;\n          goto LABEL_11;\n        }\n        if ( !sub_BE2D6(v4, \"Show None\") )\n        {\n          v5 = 0;\nLABEL_11:\n          *(_DWORD *)(a1 + 44) = v5;\n        }\n        break;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_52FF4 from 0x52ff4 to 0x5305a (102 bytes)\n; \n; 0 xrefs:\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,R5,R7,LR}                                          ; +0x0, 0x52ff4\nADD             R7, SP, #8                                             ; +0x2, 0x52ff6\nMOV             R4, R0                                                 ; +0x4, 0x52ff8\nLDRB            R0, [R1,#0xA]                                          ; +0x6, 0x52ffa\nSUBS            R0, #5                                                 ; +0x8, 0x52ffc\nUXTB            R0, R0                                                 ; +0xa, 0x52ffe\nCMP             R0, #1                                                 ; +0xc, 0x53000\nBHI             loc_53056                                              ; +0xe, 0x53002\nLDRB            R0, [R1,#9]                                            ; +0x10, 0x53004\nCMP             R0, #3                                                 ; +0x12, 0x53006\nBEQ             loc_53032                                              ; +0x14, 0x53008\nCMP             R0, #2                                                 ; +0x16, 0x5300a\nBEQ             loc_53042                                              ; +0x18, 0x5300c\nCMP             R0, #1                                                 ; +0x1a, 0x5300e\nBNE             loc_53056                                              ; +0x1c, 0x53010\nADD.W           R5, R1, #0xC                                           ; +0x1e, 0x53012\nLDR             R1, =(aShowDelays - 0x5301C); \"Show Delays\" ...        ; +0x22, 0x53016\nADD             R1, PC; \"Show Delays\"                                  ; +0x24, 0x53018\nMOV             R0, R5                                                 ; +0x26, 0x5301a\nBL              sub_BE2D6                                              ; +0x28, 0x5301c\nCBZ             R0, loc_53052                                          ; +0x2c, 0x53020\nLDR             R1, =(aShowNone - 0x5302A); \"Show None\" ...            ; +0x2e, 0x53022\nMOV             R0, R5                                                 ; +0x30, 0x53024\nADD             R1, PC; \"Show None\"                                    ; +0x32, 0x53026\nBL              sub_BE2D6                                              ; +0x34, 0x53028\nCBNZ            R0, loc_53056                                          ; +0x38, 0x5302c\nMOVS            R0, #0                                                 ; +0x3a, 0x5302e\nB               loc_53054                                              ; +0x3c, 0x53030\nLDR             R0, [R1,#0xC]; this                                    ; +0x3e, 0x53032\nLDRB            R1, [R1,#0x14]                                         ; +0x40, 0x53034\nCMP             R1, #0                                                 ; +0x42, 0x53036\nIT NE                                                                  ; +0x44, 0x53038\nMOVNE           R1, #1; bool                                           ; +0x46, 0x5303a\nBLX             j__ZN4FMOD3DSP9setBypassEb; FMOD::DSP::setBypass(bool) ; +0x48, 0x5303c\nB               loc_53056                                              ; +0x4c, 0x53040\nLDR             R0, [R1,#0xC]; this                                    ; +0x4e, 0x53042\nLDRB            R1, [R1,#0x14]                                         ; +0x50, 0x53044\nCMP             R1, #0                                                 ; +0x52, 0x53046\nIT NE                                                                  ; +0x54, 0x53048\nMOVNE           R1, #1; bool                                           ; +0x56, 0x5304a\nBLX             j__ZN4FMOD3DSP9setActiveEb; FMOD::DSP::setActive(bool) ; +0x58, 0x5304c\nB               loc_53056                                              ; +0x5c, 0x53050\nMOVS            R0, #1                                                 ; +0x5e, 0x53052\nSTR             R0, [R4,#0x2C]                                         ; +0x60, 0x53054\nMOVS            R0, #0                                                 ; +0x62, 0x53056\nPOP             {R4,R5,R7,PC}                                          ; +0x64, 0x53058", "xrefs": [], "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"}