	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function waveartist_mixer_reset
_waveartist_mixer_reset:                ## @waveartist_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_debug_flg@GOTPCREL(%rip), %rax
	movq	_DEBUG_MIXER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_printk
LBB0_2:
	movq	_WACMD_RST_MIXER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_waveartist_cmd1
	movq	_WACMD_SET_MIXER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$38912, %edx                    ## imm = 0x9800
	movl	$43062, %ecx                    ## imm = 0xA836
	callq	_waveartist_cmd3
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$19456, %edx                    ## imm = 0x4C00
	movl	$35840, %ecx                    ## imm = 0x8C00
	callq	_waveartist_cmd3
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$10241, %edx                    ## imm = 0x2801
	movl	$26624, %ecx                    ## imm = 0x6800
	callq	_waveartist_cmd3
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_waveartist_set_recmask
	movq	_SOUND_MIXER_NRDEVICES@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_waveartist_mixer_update
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_3
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug_flg,4,2                  ## @debug_flg
	.comm	_DEBUG_MIXER,4,2                ## @DEBUG_MIXER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: mixer_reset\n"

	.comm	_WACMD_RST_MIXER,4,2            ## @WACMD_RST_MIXER
	.comm	_WACMD_SET_MIXER,4,2            ## @WACMD_SET_MIXER
	.comm	_SOUND_MIXER_NRDEVICES,4,2      ## @SOUND_MIXER_NRDEVICES
	.no_dead_strip	_waveartist_mixer_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function waveartist_mixer_reset
_waveartist_mixer_reset:                ; @waveartist_mixer_reset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, _debug_flg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug_flg@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DEBUG_MIXER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DEBUG_MIXER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x19]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
LBB0_2:
Lloh8:
	adrp	x8, _WACMD_RST_MIXER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WACMD_RST_MIXER@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_waveartist_cmd1
Lloh11:
	adrp	x20, _WACMD_SET_MIXER@GOTPAGE
Lloh12:
	ldr	x20, [x20, _WACMD_SET_MIXER@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #38912
	mov	w3, #43062
	bl	_waveartist_cmd3
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #19456
	mov	w3, #35840
	bl	_waveartist_cmd3
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #10241
	mov	w3, #26624
	bl	_waveartist_cmd3
	mov	x0, x19
	mov	w1, #0
	bl	_waveartist_set_recmask
Lloh13:
	adrp	x21, _SOUND_MIXER_NRDEVICES@GOTPAGE
Lloh14:
	ldr	x21, [x21, _SOUND_MIXER_NRDEVICES@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w20, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_waveartist_mixer_update
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.lt	LBB0_4
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_debug_flg,4,2                  ; @debug_flg
	.comm	_DEBUG_MIXER,4,2                ; @DEBUG_MIXER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: mixer_reset\n"

	.comm	_WACMD_RST_MIXER,4,2            ; @WACMD_RST_MIXER
	.comm	_WACMD_SET_MIXER,4,2            ; @WACMD_SET_MIXER
	.comm	_SOUND_MIXER_NRDEVICES,4,2      ; @SOUND_MIXER_NRDEVICES
	.no_dead_strip	_waveartist_mixer_reset
.subsections_via_symbols
