{"type": "func", "start": 668544, "end": 668764, "name": "sub_A3380", "pseudocode": "// \n// sub_A3380 from 0xa3380 to 0xa345c (220 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0xa337e\n// > sub_56BEC @ 0x571fc\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_A3380()\n{\n  memset(&unk_125930, 0, 0x40u);\n  dword_12592C = 1;\n  sub_BE220(&unk_125930, \"Return ID\", 16);\n  sub_BE220(&unk_125940, &unk_2191F, 16);\n  dword_125950 = (int)\"ID of the Return DSP this send is connected to (integer values only). -1 indicates no connected Return DSP.\";\n  dword_125954 = -1;\n  unk_125958 = &unk_F4240;\n  unk_12595C = -1;\n  unk_125960 = 0;\n  dword_125964 = 0;\n  memset(&unk_125880, 0, 0x44u);\n  sub_BE220(&unk_125884, \"Send Level\", 16);\n  sub_BE220(&unk_125894, &unk_2191F, 16);\n  dword_1258A4 = (int)\"Send Level\";\n  dword_1258A8 = 0;\n  dword_1258AC = 1092616192;\n  dword_1258B0 = 1065353216;\n  dword_1258B4 = 1;\n  memset(&unk_1258C8, 0, 0x40u);\n  dword_1258C4 = 3;\n  sub_BE220(&unk_1258C8, \"Overall Gain\", 16);\n  sub_BE220(&unk_1258D8, &unk_2191F, 16);\n  dword_1258E8 = (int)\"Overall Gain\";\n  dword_1258EC = -1;\n  dword_125918 = 24;\n  dword_125908 = (int)&unk_ED2D8;\n  dword_125928 = (int)sub_A3490;\n  dword_125910 = 424;\n  word_125926 = 128;\n  return &dword_125908;\n}", "assembly": "; \n; sub_A3380 from 0xa3380 to 0xa345c (220 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0xa337e\n; > sub_56BEC @ 0x571fc\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, 0xa3380\nADD             R7, SP, #0xC                                           ; +0x2, 0xa3382\nPUSH.W          {R7-R11}                                               ; +0x4, 0xa3384\nLDR             R4, =(dword_125908 - 0xA3390)                          ; +0x8, 0xa3388\nMOVS            R1, #0x40 ; '@'                                        ; +0xa, 0xa338a\nADD             R4, PC; dword_125908                                   ; +0xc, 0xa338c\nADD.W           R5, R4, #(unk_125930 - 0x125908)                       ; +0xe, 0xa338e\nMOV             R0, R5                                                 ; +0x12, 0xa3392\nBLX             __aeabi_memclr4                                        ; +0x14, 0xa3394\nMOVS            R0, #1                                                 ; +0x18, 0xa3398\nMOVS            R2, #0x10                                              ; +0x1a, 0xa339a\nSTR             R0, [R4,#(dword_12592C - 0x125908)]                    ; +0x1c, 0xa339c\nLDR             R0, =(off_E61C4 - 0xA33A6)                             ; +0x1e, 0xa339e\nLDR             R1, =(aReturnId - 0xA33A8); \"Return ID\" ...            ; +0x20, 0xa33a0\nADD             R0, PC; off_E61C4                                      ; +0x22, 0xa33a2\nADD             R1, PC; \"Return ID\"                                    ; +0x24, 0xa33a4\nLDR.W           R8, [R0]; sub_BE220                                    ; +0x26, 0xa33a6\nMOV             R0, R5                                                 ; +0x2a, 0xa33aa\nBLX             R8; sub_BE220                                          ; +0x2c, 0xa33ac\nLDR             R1, =(unk_2191F - 0xA33BA)                             ; +0x2e, 0xa33ae\nADD.W           R0, R4, #(unk_125940 - 0x125908)                       ; +0x30, 0xa33b0\nMOVS            R2, #0x10                                              ; +0x34, 0xa33b4\nADD             R1, PC; unk_2191F                                      ; +0x36, 0xa33b6\nMOV             R10, R1                                                ; +0x38, 0xa33b8\nBLX             R8; sub_BE220                                          ; +0x3a, 0xa33ba\nLDR             R1, =(aIdOfTheReturnD - 0xA33CC); \"ID of the Return DSP this send is conne\"... ... ; +0x3c, 0xa33bc\nMOV.W           R9, #0xFFFFFFFF                                        ; +0x3e, 0xa33be\nLDR             R0, =unk_F4240                                         ; +0x42, 0xa33c2\nMOV.W           R11, #0                                                ; +0x44, 0xa33c4\nADD             R1, PC; \"ID of the Return DSP this send is conne\"...   ; +0x48, 0xa33c8\nSTRD.W          R1, R9, [R4,#(dword_125950 - 0x125908)]                ; +0x4a, 0xa33ca\nADD.W           R1, R4, #(unk_125958 - 0x125908)                       ; +0x4e, 0xa33ce\nSTM.W           R1, {R0,R9,R11}                                        ; +0x52, 0xa33d2\nMOVS            R1, #0x44 ; 'D'                                        ; +0x56, 0xa33d6\nSTR.W           R11, [R4,#(dword_125964 - 0x125908)]                   ; +0x58, 0xa33d8\nLDR             R6, =(unk_125880 - 0xA33E2)                            ; +0x5c, 0xa33dc\nADD             R6, PC; unk_125880                                     ; +0x5e, 0xa33de\nMOV             R0, R6                                                 ; +0x60, 0xa33e0\nBLX             __aeabi_memclr8                                        ; +0x62, 0xa33e2\nLDR             R5, =(aSendLevel - 0xA33F0); \"Send Level\" ...          ; +0x66, 0xa33e6\nADDS            R0, R6, #(unk_125884 - 0x125880)                       ; +0x68, 0xa33e8\nMOVS            R2, #0x10                                              ; +0x6a, 0xa33ea\nADD             R5, PC; \"Send Level\"                                   ; +0x6c, 0xa33ec\nMOV             R1, R5                                                 ; +0x6e, 0xa33ee\nBLX             R8; sub_BE220                                          ; +0x70, 0xa33f0\nADD.W           R0, R6, #(unk_125894 - 0x125880)                       ; +0x72, 0xa33f2\nMOV             R1, R10                                                ; +0x76, 0xa33f6\nMOVS            R2, #0x10                                              ; +0x78, 0xa33f8\nBLX             R8; sub_BE220                                          ; +0x7a, 0xa33fa\nMOV.W           R0, #0x3F800000                                        ; +0x7c, 0xa33fc\nLDR             R1, =0x41200000                                        ; +0x80, 0xa3400\nSTRD.W          R5, R11, [R6,#(dword_1258A4 - 0x125880)]               ; +0x82, 0xa3402\nSTRD.W          R1, R0, [R6,#(dword_1258AC - 0x125880)]                ; +0x86, 0xa3406\nMOVS            R0, #1                                                 ; +0x8a, 0xa340a\nSTR             R0, [R6,#(dword_1258B4 - 0x125880)]                    ; +0x8c, 0xa340c\nMOVS            R1, #0x40 ; '@'                                        ; +0x8e, 0xa340e\nLDR             R6, =(dword_1258C4 - 0xA3416)                          ; +0x90, 0xa3410\nADD             R6, PC; dword_1258C4                                   ; +0x92, 0xa3412\nADDS            R5, R6, #(unk_1258C8 - 0x1258C4)                       ; +0x94, 0xa3414\nMOV             R0, R5                                                 ; +0x96, 0xa3416\nBLX             __aeabi_memclr4                                        ; +0x98, 0xa3418\nMOVS            R0, #3                                                 ; +0x9c, 0xa341c\nMOVS            R2, #0x10                                              ; +0x9e, 0xa341e\nSTR             R0, [R6]                                               ; +0xa0, 0xa3420\nMOV             R0, R5                                                 ; +0xa2, 0xa3422\nLDR             R1, =(aOverallGain - 0xA342A); \"Overall Gain\" ...      ; +0xa4, 0xa3424\nADD             R1, PC; \"Overall Gain\"                                 ; +0xa6, 0xa3426\nMOV             R5, R1                                                 ; +0xa8, 0xa3428\nBLX             R8; sub_BE220                                          ; +0xaa, 0xa342a\nADD.W           R0, R6, #(unk_1258D8 - 0x1258C4)                       ; +0xac, 0xa342c\nMOV             R1, R10                                                ; +0xb0, 0xa3430\nMOVS            R2, #0x10                                              ; +0xb2, 0xa3432\nBLX             R8; sub_BE220                                          ; +0xb4, 0xa3434\nMOVS            R0, #0x18                                              ; +0xb6, 0xa3436\nSTRD.W          R5, R9, [R6,#(dword_1258E8 - 0x1258C4)]                ; +0xb8, 0xa3438\nSTR             R0, [R4,#(dword_125918 - 0x125908)]                    ; +0xbc, 0xa343c\nLDR             R0, =(unk_ED2D8 - 0xA3444)                             ; +0xbe, 0xa343e\nADD             R0, PC; unk_ED2D8                                      ; +0xc0, 0xa3440\nSTR             R0, [R4]                                               ; +0xc2, 0xa3442\nLDR             R0, =(sub_A3490+1 - 0xA344A)                           ; +0xc4, 0xa3444\nADD             R0, PC; sub_A3490                                      ; +0xc6, 0xa3446\nSTR             R0, [R4,#(dword_125928 - 0x125908)]                    ; +0xc8, 0xa3448\nMOV.W           R0, #0x1A8                                             ; +0xca, 0xa344a\nSTR             R0, [R4,#(dword_125910 - 0x125908)]                    ; +0xce, 0xa344e\nMOVS            R0, #0x80                                              ; +0xd0, 0xa3450\nSTRH            R0, [R4,#(word_125926 - 0x125908)]                     ; +0xd2, 0xa3452\nMOV             R0, R4                                                 ; +0xd4, 0xa3454\nPOP.W           {R3,R8-R11}                                            ; +0xd6, 0xa3456\nPOP             {R4-R7,PC}                                             ; +0xda, 0xa345a", "xrefs": ["<???> @ 0xa337e", "sub_56BEC @ 0x571fc"], "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"}