{"type": "func", "start": 423664, "end": 423806, "name": "sub_676F0", "pseudocode": "// \n// sub_676F0 from 0x676f0 to 0x6777e (142 bytes)\n// \n// 1 xrefs:\n// > sub_677E6 @ 0x677e8\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_676F0(int a1, int a2, _DWORD *a3, int a4)\n{\n  int v4; // r0\n  const char *v6; // r1\n\n  if ( (unsigned int)(a2 - 33) > 0x1F )\n  {\n    if ( a2 )\n      return 31;\n    *a3 = *(_DWORD *)(a1 + 9068);\n    if ( a4 )\n    {\n      switch ( *(_DWORD *)(a1 + 9068) )\n      {\n        case 0:\n          v6 = \"Default\";\n          goto LABEL_16;\n        case 1:\n          v6 = \"All Mono\";\n          goto LABEL_16;\n        case 2:\n          v6 = \"All Stereo\";\n          goto LABEL_16;\n        case 3:\n          v6 = \"All Quad\";\n          goto LABEL_16;\n        case 4:\n          v6 = \"All 5.1\";\n          goto LABEL_16;\n        case 5:\n          v6 = \"All 7.1\";\n          goto LABEL_16;\n        case 6:\n          v6 = \"All LFE\";\n          goto LABEL_16;\n        case 7:\n          v6 = \"All 7.1.4\";\nLABEL_16:\n          sub_BE220(a4, v6, 32);\n          break;\n        default:\n          return 0;\n      }\n    }\n  }\n  else\n  {\n    v4 = a1 + 4 * (a2 - 33);\n    *a3 = *(_DWORD *)(v4 + 9072);\n    if ( a4 )\n      sub_BE420(a4, 32, \"%d\", *(_DWORD *)(v4 + 9072));\n  }\n  return 0;\n}", "assembly": "; \n; sub_676F0 from 0x676f0 to 0x6777e (142 bytes)\n; \n; 1 xrefs:\n; > sub_677E6 @ 0x677e8\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,R6,R7,LR}                                          ; +0x0, 0x676f0\nADD             R7, SP, #8                                             ; +0x2, 0x676f2\nSUB.W           R4, R1, #0x21 ; '!'                                    ; +0x4, 0x676f4\nCMP             R4, #0x1F                                              ; +0x8, 0x676f8\nBHI             loc_67720                                              ; +0xa, 0x676fa\nADD.W           R0, R0, R4,LSL#2                                       ; +0xc, 0x676fc\nMOVW            R1, #0x2370                                            ; +0x10, 0x67700\nCMP             R3, #0                                                 ; +0x14, 0x67704\nLDR             R4, [R0,R1]                                            ; +0x16, 0x67706\nSTR             R4, [R2]                                               ; +0x18, 0x67708\nBEQ             def_67738; jumptable 00067738 default case             ; +0x1a, 0x6770a\nADD             R0, R1                                                 ; +0x1c, 0x6770c\nMOVS            R1, #0x20 ; ' '                                        ; +0x1e, 0x6770e\nLDR             R4, [R0]                                               ; +0x20, 0x67710\nMOV             R0, R3                                                 ; +0x22, 0x67712\nLDR             R2, =(aD - 0x6771A); \"%d\" ...                          ; +0x24, 0x67714\nADD             R2, PC; \"%d\"                                           ; +0x26, 0x67716\nMOV             R3, R4                                                 ; +0x28, 0x67718\nBL              sub_BE420                                              ; +0x2a, 0x6771a\nB               def_67738; jumptable 00067738 default case             ; +0x2e, 0x6771e\nCBZ             R1, loc_67726                                          ; +0x30, 0x67720\nMOVS            R0, #0x1F                                              ; +0x32, 0x67722\nPOP             {R4,R6,R7,PC}                                          ; +0x34, 0x67724\nMOVW            R1, #0x236C                                            ; +0x36, 0x67726\nLDR             R4, [R0,R1]                                            ; +0x3a, 0x6772a\nSTR             R4, [R2]                                               ; +0x3c, 0x6772c\nCBZ             R3, def_67738; jumptable 00067738 default case         ; +0x3e, 0x6772e\nADD             R0, R1                                                 ; +0x40, 0x67730\nLDR             R0, [R0]                                               ; +0x42, 0x67732\nCMP             R0, #7; switch 8 cases                                 ; +0x44, 0x67734\nBHI             def_67738; jumptable 00067738 default case             ; +0x46, 0x67736\nTBB.W           [PC,R0]; switch jump                                   ; +0x48, 0x67738\nDCB 4; jump table for switch statement                                 ; +0x4c, 0x6773c\nDCB 7                                                                  ; +0x4d, 0x6773d\nDCB 0xA                                                                ; +0x4e, 0x6773e\nDCB 0xD                                                                ; +0x4f, 0x6773f\nDCB 0x10                                                               ; +0x50, 0x67740\nDCB 0x13                                                               ; +0x51, 0x67741\nDCB 0x16                                                               ; +0x52, 0x67742\nDCB 0x19                                                               ; +0x53, 0x67743\nLDR             R1, =(aDefault - 0x6774A); jumptable 00067738 case 0   ; +0x54, 0x67744\nADD             R1, PC; \"Default\"                                      ; +0x56, 0x67746\nB               loc_67772                                              ; +0x58, 0x67748\nLDR             R1, =(aAllMono - 0x67750); jumptable 00067738 case 1   ; +0x5a, 0x6774a\nADD             R1, PC; \"All Mono\"                                     ; +0x5c, 0x6774c\nB               loc_67772                                              ; +0x5e, 0x6774e\nLDR             R1, =(aAllStereo - 0x67756); jumptable 00067738 case 2 ; +0x60, 0x67750\nADD             R1, PC; \"All Stereo\"                                   ; +0x62, 0x67752\nB               loc_67772                                              ; +0x64, 0x67754\nLDR             R1, =(aAllQuad - 0x6775C); jumptable 00067738 case 3   ; +0x66, 0x67756\nADD             R1, PC; \"All Quad\"                                     ; +0x68, 0x67758\nB               loc_67772                                              ; +0x6a, 0x6775a\nLDR             R1, =(aAll51 - 0x67762); jumptable 00067738 case 4     ; +0x6c, 0x6775c\nADD             R1, PC; \"All 5.1\"                                      ; +0x6e, 0x6775e\nB               loc_67772                                              ; +0x70, 0x67760\nLDR             R1, =(aAll71 - 0x67768); jumptable 00067738 case 5     ; +0x72, 0x67762\nADD             R1, PC; \"All 7.1\"                                      ; +0x74, 0x67764\nB               loc_67772                                              ; +0x76, 0x67766\nLDR             R1, =(aAllLfe - 0x6776E); jumptable 00067738 case 6    ; +0x78, 0x67768\nADD             R1, PC; \"All LFE\"                                      ; +0x7a, 0x6776a\nB               loc_67772                                              ; +0x7c, 0x6776c\nLDR             R1, =(aAll714 - 0x67774); jumptable 00067738 case 7    ; +0x7e, 0x6776e\nADD             R1, PC; \"All 7.1.4\"                                    ; +0x80, 0x67770\nMOV             R0, R3                                                 ; +0x82, 0x67772\nMOVS            R2, #0x20 ; ' '                                        ; +0x84, 0x67774\nBL              sub_BE220                                              ; +0x86, 0x67776\nMOVS            R0, #0; jumptable 00067738 default case                ; +0x8a, 0x6777a\nPOP             {R4,R6,R7,PC}                                          ; +0x8c, 0x6777c", "xrefs": ["sub_677E6 @ 0x677e8"], "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"}