	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oxygen_ac97_wait
_oxygen_ac97_wait:                      ## @oxygen_ac97_wait
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	movl	(%rdi), %r15d
	movq	_OXYGEN_AC97_INTERRUPT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_oxygen_read8
	movl	%eax, %r12d
	movl	%eax, %ebx
	andl	%r14d, %ebx
	movl	$1, %edi
	callq	_msecs_to_jiffies
	leaq	1(%rax), %rdx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_wait_event_timeout
	movq	_OXYGEN_AC97_INTERRUPT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_oxygen_read8
	orl	%r12d, %eax
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	xorl	%edx, %edx
	testl	%r14d, %eax
	cmovnel	%edx, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OXYGEN_AC97_INTERRUPT_STATUS,4,2 ## @OXYGEN_AC97_INTERRUPT_STATUS
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_oxygen_ac97_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oxygen_ac97_wait
_oxygen_ac97_wait:                      ; @oxygen_ac97_wait
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	w21, [x0]
Lloh0:
	adrp	x24, _OXYGEN_AC97_INTERRUPT_STATUS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _OXYGEN_AC97_INTERRUPT_STATUS@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_oxygen_read8
	mov	x22, x0
	and	w23, w0, w19
	mov	w0, #1
	bl	_msecs_to_jiffies
	add	x2, x0, #1
	mov	x0, x21
	mov	x1, x23
	bl	_wait_event_timeout
	ldr	w1, [x24]
	mov	x0, x20
	bl	_oxygen_read8
	orr	w8, w0, w22
Lloh2:
	adrp	x9, _EIO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w8, w19
	csneg	w0, wzr, w9, ne
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_OXYGEN_AC97_INTERRUPT_STATUS,4,2 ; @OXYGEN_AC97_INTERRUPT_STATUS
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_oxygen_ac97_wait
.subsections_via_symbols
