	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sb_mixer_reset
_sb_mixer_reset:                        ## @sb_mixer_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	(%rdi), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	callq	_sprintf
	cmpq	$0, 24(%r15)
	jne	LBB0_1
## %bb.2:
	movq	_sb_default_levels@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_smg_default_levels@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_load_mixer_volumes
	movq	%rax, 16(%r15)
	movq	_SOUND_MIXER_NRDEVICES@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_7
## %bb.4:
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_sb_mixer_set
	cmpl	$2, (%r14)
	jl	LBB0_7
## %bb.5:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_sb_mixer_set
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movq	8(%r15), %rax
	movq	_MDL_ESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_ess_mixer_reset
	testl	%eax, %eax
	jne	LBB0_10
LBB0_9:
	movq	_SOUND_MASK_MIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_set_recmask
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SB_%d"

	.comm	_smg_default_levels,4,2         ## @smg_default_levels
	.comm	_sb_default_levels,4,2          ## @sb_default_levels
	.comm	_SOUND_MIXER_NRDEVICES,4,2      ## @SOUND_MIXER_NRDEVICES
	.comm	_MDL_ESS,8,3                    ## @MDL_ESS
	.comm	_SOUND_MASK_MIC,4,2             ## @SOUND_MASK_MIC
	.no_dead_strip	_sb_mixer_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sb_mixer_reset
_sb_mixer_reset:                        ; @sb_mixer_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	w2, [x0]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_sprintf
Lloh5:
	adrp	x8, _sb_default_levels@GOTPAGE
Lloh6:
	ldr	x8, [x8, _sb_default_levels@GOTPAGEOFF]
	ldr	x9, [x19, #24]
Lloh7:
	adrp	x10, _smg_default_levels@GOTPAGE
Lloh8:
	ldr	x10, [x10, _smg_default_levels@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x8, x10, eq
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #1
	bl	_load_mixer_volumes
	str	x0, [x19, #16]
Lloh9:
	adrp	x21, _SOUND_MIXER_NRDEVICES@GOTPAGE
Lloh10:
	ldr	x21, [x21, _SOUND_MIXER_NRDEVICES@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	w2, [x0]
	mov	x0, x19
	mov	w1, #0
	bl	_sb_mixer_set
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.2:
	mov	w20, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w2, [x8, x20, lsl #2]
	mov	x0, x19
	mov	x1, x20
	bl	_sb_mixer_set
	add	x20, x20, #1
	ldrsw	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_3
LBB0_4:
	ldr	x8, [x19, #8]
Lloh11:
	adrp	x9, _MDL_ESS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MDL_ESS@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_ess_mixer_reset
	cbnz	w0, LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, _SOUND_MASK_MIC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SOUND_MASK_MIC@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_recmask
LBB0_7:
	ldr	x8, [sp, #40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SB_%d"

	.comm	_smg_default_levels,4,2         ; @smg_default_levels
	.comm	_sb_default_levels,4,2          ; @sb_default_levels
	.comm	_SOUND_MIXER_NRDEVICES,4,2      ; @SOUND_MIXER_NRDEVICES
	.comm	_MDL_ESS,8,3                    ; @MDL_ESS
	.comm	_SOUND_MASK_MIC,4,2             ; @SOUND_MASK_MIC
	.no_dead_strip	_sb_mixer_reset
.subsections_via_symbols
