	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_es1688_reset
_snd_es1688_reset:                      ## @snd_es1688_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	_RESET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_ES1688P
	movl	$3, %edi
	movl	%eax, %esi
	callq	_outb
	movl	$10, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_ES1688P
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_outb
	movl	$30, %edi
	callq	_udelay
	movl	$999, %ebx                      ## imm = 0x3E7
	movq	_DATA_AVAIL@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_ES1688P
	movl	%eax, %edi
	callq	_inb
	subl	$1, %ebx
	setb	%cl
	testb	$-128, %al
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	%cl, %cl
	je	LBB0_1
LBB0_3:
	movq	_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ES1688P
	movl	%eax, %edi
	callq	_inb
	cmpl	$170, %eax
	jne	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	movl	$198, %esi
	callq	_snd_es1688_dsp_command
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_snd_printd
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RESET,4,2                      ## @RESET
	.comm	_DATA_AVAIL,4,2                 ## @DATA_AVAIL
	.comm	_READ,4,2                       ## @READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ess_reset at 0x%lx: failed!!!\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_snd_es1688_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_es1688_reset
_snd_es1688_reset:                      ; @snd_es1688_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	x20, _RESET@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RESET@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_ES1688P
	mov	x1, x0
	mov	w0, #3
	bl	_outb
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ES1688P
	mov	x1, x0
	mov	w0, #0
	bl	_outb
	mov	w0, #30
	bl	_udelay
	mov	w8, #999
Lloh2:
	adrp	x20, _DATA_AVAIL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _DATA_AVAIL@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ES1688P
	bl	_inb
	tbnz	w0, #7, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	w8, w21, #1
	cbnz	w21, LBB0_1
LBB0_3:
Lloh4:
	adrp	x8, _READ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _READ@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ES1688P
	bl	_inb
	cmp	w0, #170
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #198
	bl	_snd_es1688_dsp_command
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	w1, [x19]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_printd
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RESET,4,2                      ; @RESET
	.comm	_DATA_AVAIL,4,2                 ; @DATA_AVAIL
	.comm	_READ,4,2                       ; @READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ess_reset at 0x%lx: failed!!!\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_snd_es1688_reset
.subsections_via_symbols
