{"type": "func", "start": 625184, "end": 625398, "name": "sub_98A20", "pseudocode": "// \n// sub_98A20 from 0x98a20 to 0x98af6 (214 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x98a1e\n// > sub_56BEC @ 0x570bc\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_98A20()\n{\n  memset(&unk_10ACC8, 0, 0x44u);\n  sub_BE220(&unk_10ACCC, \"Fade in time\", 16);\n  sub_BE220(&unk_10ACDC, \"seconds\", 16);\n  dword_10ACEC = (int)\"Time to ramp the signal to full gain in ms.  0.0 to 20000.0. Default = 5000.0.\";\n  dword_10ACF0 = 0;\n  dword_10ACF4 = 1184645120;\n  dword_10ACF8 = 1167867904;\n  dword_10ACFC = 1;\n  memset(&unk_10AC18, 0, 0x44u);\n  sub_BE220(&unk_10AC1C, \"Threshold\", 16);\n  sub_BE220(&unk_10AC2C, &unk_2191F, 16);\n  dword_10AC3C = (int)\"Lower volume range threshold to ignore.  0.0 to 1.0.  Default = 0.1.  Raise higher to stop amplifi\"\n                      \"cation of very quiet signals.\";\n  dword_10AC40 = 0;\n  dword_10AC44 = 1065353216;\n  dword_10AC48 = 1036831949;\n  dword_10AC4C = 1;\n  memset(&unk_10AC60, 0, 0x44u);\n  sub_BE220(&unk_10AC64, \"Maximum amp\", 16);\n  sub_BE220(&unk_10AC74, \"x\", 16);\n  dword_10AC84 = (int)\"Maximum amplification allowed.  1.0 to 100000.0.  Default = 20.0.  1.0 = no amplifaction, higher v\"\n                      \"alues allow more boost.\";\n  dword_10AC88 = 0;\n  dword_10AC8C = 1203982336;\n  dword_10AC90 = 1101004800;\n  dword_10AC94 = 1;\n  dword_10ACB4 = 10;\n  dword_10ACA4 = (int)&unk_ECE20;\n  dword_10ACAC = 408;\n  return &dword_10ACA4;\n}", "assembly": "; \n; sub_98A20 from 0x98a20 to 0x98af6 (214 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x98a1e\n; > sub_56BEC @ 0x570bc\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-R7,LR}                                             ; +0x0, 0x98a20\nADD             R7, SP, #0xC                                           ; +0x2, 0x98a22\nPUSH.W          {R8,R9,R11}                                            ; +0x4, 0x98a24\nLDR             R4, =(dword_10ACA4 - 0x98A30)                          ; +0x8, 0x98a28\nMOVS            R1, #0x44 ; 'D'                                        ; +0xa, 0x98a2a\nADD             R4, PC; dword_10ACA4                                   ; +0xc, 0x98a2c\nADD.W           R0, R4, #(unk_10ACC8 - 0x10ACA4)                       ; +0xe, 0x98a2e\nBLX             __aeabi_memclr4                                        ; +0x12, 0x98a32\nLDR             R1, =(off_E61C4 - 0x98A42)                             ; +0x16, 0x98a36\nADD.W           R0, R4, #(unk_10ACCC - 0x10ACA4)                       ; +0x18, 0x98a38\nMOVS            R2, #0x10                                              ; +0x1c, 0x98a3c\nADD             R1, PC; off_E61C4                                      ; +0x1e, 0x98a3e\nLDR             R6, [R1]; sub_BE220                                    ; +0x20, 0x98a40\nLDR             R1, =(aFadeInTime - 0x98A48); \"Fade in time\" ...       ; +0x22, 0x98a42\nADD             R1, PC; \"Fade in time\"                                 ; +0x24, 0x98a44\nBLX             R6; sub_BE220                                          ; +0x26, 0x98a46\nLDR             R1, =(aSeconds - 0x98A54); \"seconds\" ...               ; +0x28, 0x98a48\nADD.W           R0, R4, #(unk_10ACDC - 0x10ACA4)                       ; +0x2a, 0x98a4a\nMOVS            R2, #0x10                                              ; +0x2e, 0x98a4e\nADD             R1, PC; \"seconds\"                                      ; +0x30, 0x98a50\nBLX             R6; sub_BE220                                          ; +0x32, 0x98a52\nLDR             R0, =0x459C4000                                        ; +0x34, 0x98a54\nMOV.W           R8, #1                                                 ; +0x36, 0x98a56\nLDR             R2, =(aTimeToRampTheS - 0x98A66); \"Time to ramp the signal to full gain in\"... ... ; +0x3a, 0x98a5a\nMOV.W           R9, #0                                                 ; +0x3c, 0x98a5c\nLDR             R1, =0x469C4000                                        ; +0x40, 0x98a60\nADD             R2, PC; \"Time to ramp the signal to full gain in\"...   ; +0x42, 0x98a62\nSTRD.W          R2, R9, [R4,#(dword_10ACEC - 0x10ACA4)]                ; +0x44, 0x98a64\nSTRD.W          R1, R0, [R4,#(dword_10ACF4 - 0x10ACA4)]                ; +0x48, 0x98a68\nMOVS            R1, #0x44 ; 'D'                                        ; +0x4c, 0x98a6c\nSTR.W           R8, [R4,#(dword_10ACFC - 0x10ACA4)]                    ; +0x4e, 0x98a6e\nLDR             R5, =(unk_10AC18 - 0x98A78)                            ; +0x52, 0x98a72\nADD             R5, PC; unk_10AC18                                     ; +0x54, 0x98a74\nMOV             R0, R5                                                 ; +0x56, 0x98a76\nBLX             __aeabi_memclr8                                        ; +0x58, 0x98a78\nLDR             R1, =(aThreshold - 0x98A86); \"Threshold\" ...           ; +0x5c, 0x98a7c\nADDS            R0, R5, #(unk_10AC1C - 0x10AC18)                       ; +0x5e, 0x98a7e\nMOVS            R2, #0x10                                              ; +0x60, 0x98a80\nADD             R1, PC; \"Threshold\"                                    ; +0x62, 0x98a82\nBLX             R6; sub_BE220                                          ; +0x64, 0x98a84\nLDR             R1, =(unk_2191F - 0x98A92)                             ; +0x66, 0x98a86\nADD.W           R0, R5, #(unk_10AC2C - 0x10AC18)                       ; +0x68, 0x98a88\nMOVS            R2, #0x10                                              ; +0x6c, 0x98a8c\nADD             R1, PC; unk_2191F                                      ; +0x6e, 0x98a8e\nBLX             R6; sub_BE220                                          ; +0x70, 0x98a90\nLDR             R0, =0x3DCCCCCD                                        ; +0x72, 0x98a92\nMOV.W           R1, #0x3F800000                                        ; +0x74, 0x98a94\nLDR             R2, =(aLowerVolumeRan - 0x98A9E); \"Lower volume range threshold to ignore.\"... ... ; +0x78, 0x98a98\nADD             R2, PC; \"Lower volume range threshold to ignore.\"...   ; +0x7a, 0x98a9a\nSTRD.W          R2, R9, [R5,#(dword_10AC3C - 0x10AC18)]                ; +0x7c, 0x98a9c\nSTRD.W          R1, R0, [R5,#(dword_10AC44 - 0x10AC18)]                ; +0x80, 0x98aa0\nMOVS            R1, #0x44 ; 'D'                                        ; +0x84, 0x98aa4\nSTR.W           R8, [R5,#(dword_10AC4C - 0x10AC18)]                    ; +0x86, 0x98aa6\nLDR             R5, =(unk_10AC60 - 0x98AB0)                            ; +0x8a, 0x98aaa\nADD             R5, PC; unk_10AC60                                     ; +0x8c, 0x98aac\nMOV             R0, R5                                                 ; +0x8e, 0x98aae\nBLX             __aeabi_memclr8                                        ; +0x90, 0x98ab0\nLDR             R1, =(aMaximumAmp - 0x98ABE); \"Maximum amp\" ...        ; +0x94, 0x98ab4\nADDS            R0, R5, #(unk_10AC64 - 0x10AC60)                       ; +0x96, 0x98ab6\nMOVS            R2, #0x10                                              ; +0x98, 0x98ab8\nADD             R1, PC; \"Maximum amp\"                                  ; +0x9a, 0x98aba\nBLX             R6; sub_BE220                                          ; +0x9c, 0x98abc\nLDR             R1, =(aX - 0x98ACA); \"x\" ...                           ; +0x9e, 0x98abe\nADD.W           R0, R5, #(unk_10AC74 - 0x10AC60)                       ; +0xa0, 0x98ac0\nMOVS            R2, #0x10                                              ; +0xa4, 0x98ac4\nADD             R1, PC; \"x\"                                            ; +0xa6, 0x98ac6\nBLX             R6; sub_BE220                                          ; +0xa8, 0x98ac8\nLDR             R0, =0x41A00000                                        ; +0xaa, 0x98aca\nLDR             R2, =(aMaximumAmplifi_0 - 0x98AD4); \"Maximum amplification allowed.  1.0 to \"... ... ; +0xac, 0x98acc\nLDR             R1, =0x47C35000                                        ; +0xae, 0x98ace\nADD             R2, PC; \"Maximum amplification allowed.  1.0 to \"...   ; +0xb0, 0x98ad0\nSTRD.W          R2, R9, [R5,#(dword_10AC84 - 0x10AC60)]                ; +0xb2, 0x98ad2\nSTRD.W          R1, R0, [R5,#(dword_10AC8C - 0x10AC60)]                ; +0xb6, 0x98ad6\nMOVS            R0, #0xA                                               ; +0xba, 0x98ada\nSTR.W           R8, [R5,#(dword_10AC94 - 0x10AC60)]                    ; +0xbc, 0x98adc\nSTR             R0, [R4,#(dword_10ACB4 - 0x10ACA4)]                    ; +0xc0, 0x98ae0\nLDR             R0, =(unk_ECE20 - 0x98AE8)                             ; +0xc2, 0x98ae2\nADD             R0, PC; unk_ECE20                                      ; +0xc4, 0x98ae4\nSTR             R0, [R4]                                               ; +0xc6, 0x98ae6\nMOV.W           R0, #0x198                                             ; +0xc8, 0x98ae8\nSTR             R0, [R4,#(dword_10ACAC - 0x10ACA4)]                    ; +0xcc, 0x98aec\nMOV             R0, R4                                                 ; +0xce, 0x98aee\nPOP.W           {R8,R9,R11}                                            ; +0xd0, 0x98af0\nPOP             {R4-R7,PC}                                             ; +0xd4, 0x98af4", "xrefs": ["<???> @ 0x98a1e", "sub_56BEC @ 0x570bc"], "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"}