	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sb_dsp_reset                   ## -- Begin function sb_dsp_reset
	.p2align	4, 0x90
_sb_dsp_reset:                          ## @sb_dsp_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_printk
	movl	%eax, %edi
	callq	_DEB
	movq	(%rbx), %rax
	movq	_MDL_ESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.8:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ess_dsp_reset                  ## TAILCALL
LBB0_1:
	movq	_DSP_RESET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$1, %edi
	callq	_outb
	movl	$10, %edi
	callq	_udelay
	movl	(%rbx), %esi
	xorl	%edi, %edi
	callq	_outb
	movl	$30, %edi
	callq	_udelay
	movl	$999, %ebx                      ## imm = 0x3E7
	movq	_DSP_DATA_AVAIL@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_inb
	subl	$1, %ebx
	setb	%cl
	testb	$-128, %al
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	%cl, %cl
	je	LBB0_2
LBB0_4:
	movq	_DSP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inb
	cmpl	$170, %eax
	jne	LBB0_5
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	callq	_printk
	movl	%eax, %edi
	callq	_DEB
	movl	$1, %eax
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_printk
	movl	%eax, %edi
	callq	_DDB
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Entered sb_dsp_reset()\n"

	.comm	_MDL_ESS,8,3                    ## @MDL_ESS
	.comm	_DSP_RESET,4,2                  ## @DSP_RESET
	.comm	_DSP_DATA_AVAIL,4,2             ## @DSP_DATA_AVAIL
	.comm	_DSP_READ,4,2                   ## @DSP_READ
L_.str.1:                               ## @.str.1
	.asciz	"sb: No response to RESET\n"

L_.str.2:                               ## @.str.2
	.asciz	"sb_dsp_reset() OK\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sb_dsp_reset                   ; -- Begin function sb_dsp_reset
	.p2align	2
_sb_dsp_reset:                          ; @sb_dsp_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	bl	_DEB
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _MDL_ESS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MDL_ESS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ess_dsp_reset
LBB0_2:
Lloh5:
	adrp	x19, _DSP_RESET@GOTPAGE
Lloh6:
	ldr	x19, [x19, _DSP_RESET@GOTPAGEOFF]
	ldr	w1, [x19]
	mov	w0, #1
	bl	_outb
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x19]
	mov	w0, #0
	bl	_outb
	mov	w0, #30
	bl	_udelay
	mov	w8, #999
Lloh7:
	adrp	x19, _DSP_DATA_AVAIL@GOTPAGE
Lloh8:
	ldr	x19, [x19, _DSP_DATA_AVAIL@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x8
	ldr	w0, [x19]
	bl	_inb
	tbnz	w0, #7, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w8, w20, #1
	cbnz	w20, LBB0_3
LBB0_5:
Lloh9:
	adrp	x8, _DSP_READ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DSP_READ@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_inb
	cmp	w0, #170
	b.ne	LBB0_7
; %bb.6:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printk
	bl	_DEB
	mov	w0, #1
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printk
	bl	_DDB
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Entered sb_dsp_reset()\n"

	.comm	_MDL_ESS,8,3                    ; @MDL_ESS
	.comm	_DSP_RESET,4,2                  ; @DSP_RESET
	.comm	_DSP_DATA_AVAIL,4,2             ; @DSP_DATA_AVAIL
	.comm	_DSP_READ,4,2                   ; @DSP_READ
l_.str.1:                               ; @.str.1
	.asciz	"sb: No response to RESET\n"

l_.str.2:                               ; @.str.2
	.asciz	"sb_dsp_reset() OK\n"

.subsections_via_symbols
