{"type": "func", "start": 589436, "end": 589714, "name": "sub_8FE7C", "pseudocode": "// \n// sub_8FE7C from 0x8fe7c to 0x8ff92 (278 bytes)\n// \n// 1 xrefs:\n// > sub_56BEC @ 0x56ffc\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_8FE7C()\n{\n  memset(&unk_10A1E8, 0, 0x44u);\n  sub_BE220(&unk_10A1EC, \"Delay\", 16);\n  sub_BE220(&unk_10A1FC, \"ms\", 16);\n  dword_10A20C = (int)\"Echo delay in ms.  1 to 5000.  Default = 500.\";\n  dword_10A210 = 1065353216;\n  dword_10A214 = 1167867904;\n  dword_10A218 = 1140457472;\n  dword_10A21C = 1;\n  memset(&unk_10A0F0, 0, 0x44u);\n  sub_BE220(&unk_10A0F4, \"Feedback\", 16);\n  sub_BE220(&unk_10A104, \"%\", 16);\n  dword_10A114 = (int)\"Echo decay per delay.  0 to 100.  100.0 = No decay, 0.0 = total decay.  Default = 50.0\";\n  dword_10A118 = 0;\n  dword_10A11C = 1120403456;\n  dword_10A120 = 1112014848;\n  dword_10A124 = 1;\n  memset(&unk_10A138, 0, 0x44u);\n  sub_BE220(&unk_10A13C, \"DryLevel\", 16);\n  sub_BE220(&unk_10A14C, \"dB\", 16);\n  dword_10A15C = (int)\"Volume of original signal to pass to output.  -80.0f to 10.0f. Default = 0.0.\";\n  dword_10A160 = -1029701632;\n  dword_10A164 = 1092616192;\n  dword_10A168 = 0;\n  dword_10A16C = 1;\n  memset(&unk_10A180, 0, 0x44u);\n  sub_BE220(&unk_10A184, \"WetLevel\", 16);\n  sub_BE220(&unk_10A194, \"dB\", 16);\n  dword_10A1A4 = (int)\"Volume of echo delay signal to pass to output.  -80.0f to 10.0f. Default = 0.0.\";\n  dword_10A1A8 = -1029701632;\n  dword_10A1AC = 1092616192;\n  dword_10A1B0 = 0;\n  dword_10A1B4 = 1;\n  dword_10A1E4 = (int)sub_8FFF4;\n  dword_10A1C4 = (int)&unk_EC6AC;\n  word_10A1E2 = 3;\n  dword_10A1D4 = 6;\n  dword_10A1CC = 480;\n  return &dword_10A1C4;\n}", "assembly": "; \n; sub_8FE7C from 0x8fe7c to 0x8ff92 (278 bytes)\n; \n; 1 xrefs:\n; > sub_56BEC @ 0x56ffc\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, 0x8fe7c\nADD             R7, SP, #0xC                                           ; +0x2, 0x8fe7e\nPUSH.W          {R7-R11}                                               ; +0x4, 0x8fe80\nLDR             R4, =(dword_10A1C4 - 0x8FE8C)                          ; +0x8, 0x8fe84\nMOVS            R1, #0x44 ; 'D'                                        ; +0xa, 0x8fe86\nADD             R4, PC; dword_10A1C4                                   ; +0xc, 0x8fe88\nADD.W           R0, R4, #(unk_10A1E8 - 0x10A1C4)                       ; +0xe, 0x8fe8a\nBLX             __aeabi_memclr4                                        ; +0x12, 0x8fe8e\nLDR             R1, =(off_E61C4 - 0x8FE9E)                             ; +0x16, 0x8fe92\nADD.W           R0, R4, #(unk_10A1EC - 0x10A1C4)                       ; +0x18, 0x8fe94\nMOVS            R2, #0x10                                              ; +0x1c, 0x8fe98\nADD             R1, PC; off_E61C4                                      ; +0x1e, 0x8fe9a\nLDR.W           R8, [R1]; sub_BE220                                    ; +0x20, 0x8fe9c\nLDR             R1, =(aDelay - 0x8FEA6); \"Delay\" ...                   ; +0x24, 0x8fea0\nADD             R1, PC; \"Delay\"                                        ; +0x26, 0x8fea2\nBLX             R8; sub_BE220                                          ; +0x28, 0x8fea4\nLDR             R1, =(aMs - 0x8FEB2); \"ms\" ...                         ; +0x2a, 0x8fea6\nADD.W           R0, R4, #(unk_10A1FC - 0x10A1C4)                       ; +0x2c, 0x8fea8\nMOVS            R2, #0x10                                              ; +0x30, 0x8feac\nADD             R1, PC; \"ms\"                                           ; +0x32, 0x8feae\nBLX             R8; sub_BE220                                          ; +0x34, 0x8feb0\nLDR             R0, =0x43FA0000                                        ; +0x36, 0x8feb2\nMOV.W           R9, #1                                                 ; +0x38, 0x8feb4\nLDR             R3, =(aEchoDelayInMs1 - 0x8FEC4); \"Echo delay in ms.  1 to 5000.  Default \"... ... ; +0x3c, 0x8feb8\nMOV.W           R2, #0x3F800000                                        ; +0x3e, 0x8feba\nLDR             R1, =0x459C4000                                        ; +0x42, 0x8febe\nADD             R3, PC; \"Echo delay in ms.  1 to 5000.  Default \"...   ; +0x44, 0x8fec0\nSTRD.W          R3, R2, [R4,#(dword_10A20C - 0x10A1C4)]                ; +0x46, 0x8fec2\nSTRD.W          R1, R0, [R4,#(dword_10A214 - 0x10A1C4)]                ; +0x4a, 0x8fec6\nMOVS            R1, #0x44 ; 'D'                                        ; +0x4e, 0x8feca\nSTR.W           R9, [R4,#(dword_10A21C - 0x10A1C4)]                    ; +0x50, 0x8fecc\nLDR             R5, =(unk_10A0F0 - 0x8FED6)                            ; +0x54, 0x8fed0\nADD             R5, PC; unk_10A0F0                                     ; +0x56, 0x8fed2\nMOV             R0, R5                                                 ; +0x58, 0x8fed4\nBLX             __aeabi_memclr8                                        ; +0x5a, 0x8fed6\nLDR             R1, =(aFeedback - 0x8FEE4); \"Feedback\" ...             ; +0x5e, 0x8feda\nADDS            R0, R5, #(unk_10A0F4 - 0x10A0F0)                       ; +0x60, 0x8fedc\nMOVS            R2, #0x10                                              ; +0x62, 0x8fede\nADD             R1, PC; \"Feedback\"                                     ; +0x64, 0x8fee0\nBLX             R8; sub_BE220                                          ; +0x66, 0x8fee2\nLDR             R1, =(asc_22575 - 0x8FEF0); \"%\" ...                    ; +0x68, 0x8fee4\nADD.W           R0, R5, #(unk_10A104 - 0x10A0F0)                       ; +0x6a, 0x8fee6\nMOVS            R2, #0x10                                              ; +0x6e, 0x8feea\nADD             R1, PC; \"%\"                                            ; +0x70, 0x8feec\nBLX             R8; sub_BE220                                          ; +0x72, 0x8feee\nLDR             R0, =0x42480000                                        ; +0x74, 0x8fef0\nMOV.W           R10, #0                                                ; +0x76, 0x8fef2\nLDR             R2, =(aEchoDecayPerDe - 0x8FEFE); \"Echo decay per delay.  0 to 100.  100.0\"... ... ; +0x7a, 0x8fef6\nLDR             R1, =0x42C80000                                        ; +0x7c, 0x8fef8\nADD             R2, PC; \"Echo decay per delay.  0 to 100.  100.0\"...   ; +0x7e, 0x8fefa\nSTRD.W          R2, R10, [R5,#(dword_10A114 - 0x10A0F0)]               ; +0x80, 0x8fefc\nSTRD.W          R1, R0, [R5,#(dword_10A11C - 0x10A0F0)]                ; +0x84, 0x8ff00\nMOVS            R1, #0x44 ; 'D'                                        ; +0x88, 0x8ff04\nSTR.W           R9, [R5,#(dword_10A124 - 0x10A0F0)]                    ; +0x8a, 0x8ff06\nLDR             R6, =(unk_10A138 - 0x8FF10)                            ; +0x8e, 0x8ff0a\nADD             R6, PC; unk_10A138                                     ; +0x90, 0x8ff0c\nMOV             R0, R6                                                 ; +0x92, 0x8ff0e\nBLX             __aeabi_memclr8                                        ; +0x94, 0x8ff10\nLDR             R1, =(aDrylevel - 0x8FF1E); \"DryLevel\" ...             ; +0x98, 0x8ff14\nADDS            R0, R6, #(unk_10A13C - 0x10A138)                       ; +0x9a, 0x8ff16\nMOVS            R2, #0x10                                              ; +0x9c, 0x8ff18\nADD             R1, PC; \"DryLevel\"                                     ; +0x9e, 0x8ff1a\nBLX             R8; sub_BE220                                          ; +0xa0, 0x8ff1c\nLDR             R5, =(aDb - 0x8FF2A); \"dB\" ...                         ; +0xa2, 0x8ff1e\nADD.W           R0, R6, #(unk_10A14C - 0x10A138)                       ; +0xa4, 0x8ff20\nMOVS            R2, #0x10                                              ; +0xa8, 0x8ff24\nADD             R5, PC; \"dB\"                                           ; +0xaa, 0x8ff26\nMOV             R1, R5                                                 ; +0xac, 0x8ff28\nBLX             R8; sub_BE220                                          ; +0xae, 0x8ff2a\nLDR             R2, =0xC2A00000                                        ; +0xb0, 0x8ff2c\nLDR             R0, =(aVolumeOfOrigin_0 - 0x8FF36); \"Volume of original signal to pass to ou\"... ... ; +0xb2, 0x8ff2e\nLDR             R1, =0x41200000                                        ; +0xb4, 0x8ff30\nADD             R0, PC; \"Volume of original signal to pass to ou\"...   ; +0xb6, 0x8ff32\nSTRD.W          R0, R2, [R6,#(dword_10A15C - 0x10A138)]                ; +0xb8, 0x8ff34\nSTR             R1, [R6,#(dword_10A164 - 0x10A138)]                    ; +0xbc, 0x8ff38\nSTRD.W          R10, R9, [R6,#(dword_10A168 - 0x10A138)]               ; +0xbe, 0x8ff3a\nMOV             R11, R1                                                ; +0xc2, 0x8ff3e\nLDR             R6, =(unk_10A180 - 0x8FF48)                            ; +0xc4, 0x8ff40\nMOVS            R1, #0x44 ; 'D'                                        ; +0xc6, 0x8ff42\nADD             R6, PC; unk_10A180                                     ; +0xc8, 0x8ff44\nMOV             R0, R6                                                 ; +0xca, 0x8ff46\nBLX             __aeabi_memclr8                                        ; +0xcc, 0x8ff48\nLDR             R1, =(aWetlevel - 0x8FF56); \"WetLevel\" ...             ; +0xd0, 0x8ff4c\nADDS            R0, R6, #(unk_10A184 - 0x10A180)                       ; +0xd2, 0x8ff4e\nMOVS            R2, #0x10                                              ; +0xd4, 0x8ff50\nADD             R1, PC; \"WetLevel\"                                     ; +0xd6, 0x8ff52\nBLX             R8; sub_BE220                                          ; +0xd8, 0x8ff54\nADD.W           R0, R6, #(unk_10A194 - 0x10A180)                       ; +0xda, 0x8ff56\nMOV             R1, R5                                                 ; +0xde, 0x8ff5a\nMOVS            R2, #0x10                                              ; +0xe0, 0x8ff5c\nBLX             R8; sub_BE220                                          ; +0xe2, 0x8ff5e\nLDR             R0, =(aVolumeOfEchoDe - 0x8FF66); \"Volume of echo delay signal to pass to \"... ... ; +0xe4, 0x8ff60\nADD             R0, PC; \"Volume of echo delay signal to pass to \"...   ; +0xe6, 0x8ff62\nSTR             R0, [R6,#(dword_10A1A4 - 0x10A180)]                    ; +0xe8, 0x8ff64\nLDR             R0, =0xC2A00000                                        ; +0xea, 0x8ff66\nSTRD.W          R0, R11, [R6,#(dword_10A1A8 - 0x10A180)]               ; +0xec, 0x8ff68\nSTRD.W          R10, R9, [R6,#(dword_10A1B0 - 0x10A180)]               ; +0xf0, 0x8ff6c\nLDR             R0, =(sub_8FFF4+1 - 0x8FF76)                           ; +0xf4, 0x8ff70\nADD             R0, PC; sub_8FFF4                                      ; +0xf6, 0x8ff72\nSTR             R0, [R4,#(dword_10A1E4 - 0x10A1C4)]                    ; +0xf8, 0x8ff74\nLDR             R0, =(unk_EC6AC - 0x8FF7C)                             ; +0xfa, 0x8ff76\nADD             R0, PC; unk_EC6AC                                      ; +0xfc, 0x8ff78\nSTR             R0, [R4]                                               ; +0xfe, 0x8ff7a\nMOVS            R0, #3                                                 ; +0x100, 0x8ff7c\nSTRH            R0, [R4,#(word_10A1E2 - 0x10A1C4)]                     ; +0x102, 0x8ff7e\nMOVS            R0, #6                                                 ; +0x104, 0x8ff80\nSTR             R0, [R4,#(dword_10A1D4 - 0x10A1C4)]                    ; +0x106, 0x8ff82\nMOV.W           R0, #0x1E0                                             ; +0x108, 0x8ff84\nSTR             R0, [R4,#(dword_10A1CC - 0x10A1C4)]                    ; +0x10c, 0x8ff88\nMOV             R0, R4                                                 ; +0x10e, 0x8ff8a\nPOP.W           {R3,R8-R11}                                            ; +0x110, 0x8ff8c\nPOP             {R4-R7,PC}                                             ; +0x114, 0x8ff90", "xrefs": ["sub_56BEC @ 0x56ffc"], "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"}