	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28xx_is_ac97_ready
_em28xx_is_ac97_ready:                  ## @em28xx_is_ac97_ready
	.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	_EM28XX_R43_AC97BUSY@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_em28xx_read_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_30
## %bb.1:
	movl	%ebx, %eax
	xorl	%ebx, %ebx
	testb	$1, %al
	je	LBB0_30
## %bb.2:
	movl	$5, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_em28xx_read_reg
	testl	%eax, %eax
	js	LBB0_29
## %bb.3:
	testb	$1, %al
	je	LBB0_30
## %bb.4:
	movl	$5, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_em28xx_read_reg
	testl	%eax, %eax
	js	LBB0_29
## %bb.5:
	testb	$1, %al
	je	LBB0_30
## %bb.6:
	movl	$5, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_em28xx_read_reg
	testl	%eax, %eax
	js	LBB0_29
## %bb.7:
	testb	$1, %al
	je	LBB0_30
## %bb.8:
	movl	$5, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_em28xx_read_reg
	testl	%eax, %eax
	js	LBB0_29
## %bb.9:
	testb	$1, %al
	je	LBB0_30
## %bb.10:
	movl	$5, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_em28xx_read_reg
	testl	%eax, %eax
	js	LBB0_29
## %bb.11:
	testb	$1, %al
	je	LBB0_30
## %bb.12:
	movl	$5, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_em28xx_read_reg
	testl	%eax, %eax
	js	LBB0_29
## %bb.13:
	testb	$1, %al
	je	LBB0_30
## %bb.14:
	movl	$5, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_em28xx_read_reg
	testl	%eax, %eax
	js	LBB0_29
## %bb.15:
	testb	$1, %al
	je	LBB0_30
## %bb.16:
	movl	$5, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_em28xx_read_reg
	testl	%eax, %eax
	js	LBB0_29
## %bb.17:
	testb	$1, %al
	je	LBB0_30
## %bb.18:
	movl	$5, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_em28xx_read_reg
	testl	%eax, %eax
	js	LBB0_29
## %bb.19:
	testb	$1, %al
	je	LBB0_30
## %bb.20:
	movl	$5, %edi
	callq	_msleep
	leaq	L_.str(%rip), %rdi
	callq	_em28xx_warn
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_30
LBB0_29:
	movl	%eax, %ebx
LBB0_30:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EM28XX_R43_AC97BUSY,4,2        ## @EM28XX_R43_AC97BUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AC97 command still being executed: not handled properly!\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_em28xx_is_ac97_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function em28xx_is_ac97_ready
_em28xx_is_ac97_ready:                  ; @em28xx_is_ac97_ready
	.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	x20, _EM28XX_R43_AC97BUSY@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EM28XX_R43_AC97BUSY@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_em28xx_read_reg
	tbnz	w0, #31, LBB0_21
; %bb.1:
	tbz	w0, #0, LBB0_20
; %bb.2:
	mov	w0, #5
	bl	_msleep
	ldr	w1, [x20]
	mov	x0, x19
	bl	_em28xx_read_reg
	tbnz	w0, #31, LBB0_21
; %bb.3:
	tbz	w0, #0, LBB0_20
; %bb.4:
	mov	w0, #5
	bl	_msleep
	ldr	w1, [x20]
	mov	x0, x19
	bl	_em28xx_read_reg
	tbnz	w0, #31, LBB0_21
; %bb.5:
	tbz	w0, #0, LBB0_20
; %bb.6:
	mov	w0, #5
	bl	_msleep
	ldr	w1, [x20]
	mov	x0, x19
	bl	_em28xx_read_reg
	tbnz	w0, #31, LBB0_21
; %bb.7:
	tbz	w0, #0, LBB0_20
; %bb.8:
	mov	w0, #5
	bl	_msleep
	ldr	w1, [x20]
	mov	x0, x19
	bl	_em28xx_read_reg
	tbnz	w0, #31, LBB0_21
; %bb.9:
	tbz	w0, #0, LBB0_20
; %bb.10:
	mov	w0, #5
	bl	_msleep
	ldr	w1, [x20]
	mov	x0, x19
	bl	_em28xx_read_reg
	tbnz	w0, #31, LBB0_21
; %bb.11:
	tbz	w0, #0, LBB0_20
; %bb.12:
	mov	w0, #5
	bl	_msleep
	ldr	w1, [x20]
	mov	x0, x19
	bl	_em28xx_read_reg
	tbnz	w0, #31, LBB0_21
; %bb.13:
	tbz	w0, #0, LBB0_20
; %bb.14:
	mov	w0, #5
	bl	_msleep
	ldr	w1, [x20]
	mov	x0, x19
	bl	_em28xx_read_reg
	tbnz	w0, #31, LBB0_21
; %bb.15:
	tbz	w0, #0, LBB0_20
; %bb.16:
	mov	w0, #5
	bl	_msleep
	ldr	w1, [x20]
	mov	x0, x19
	bl	_em28xx_read_reg
	tbnz	w0, #31, LBB0_21
; %bb.17:
	tbz	w0, #0, LBB0_20
; %bb.18:
	mov	w0, #5
	bl	_msleep
	ldr	w1, [x20]
	mov	x0, x19
	bl	_em28xx_read_reg
	tbnz	w0, #31, LBB0_21
; %bb.19:
	tbnz	w0, #0, LBB0_22
LBB0_20:
	mov	w0, #0
LBB0_21:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_22:
	mov	w0, #5
	bl	_msleep
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_em28xx_warn
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_21
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EM28XX_R43_AC97BUSY,4,2        ; @EM28XX_R43_AC97BUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AC97 command still being executed: not handled properly!\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_em28xx_is_ac97_ready
.subsections_via_symbols
