	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wait_for_rx_byte
_wait_for_rx_byte:                      ## @wait_for_rx_byte
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_wait_xfer_done
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	imull	$100, (%r15), %ebx
	cmpl	$2, %ebx
	jl	LBB0_1
## %bb.3:
	movq	8(%r15), %r15
	incl	%ebx
	movq	_PSC_SMBSTAT_RE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %r13d
	xorl	%eax, %eax
	callq	_au_sync
	testl	%r13d, (%r12)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	callq	_udelay
	decl	%ebx
	cmpl	$3, %ebx
	jge	LBB0_4
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	4(%r15), %r15d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_au_sync
	movl	%r15d, (%r14)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_PSC_SMBSTAT_RE,4,2             ## @PSC_SMBSTAT_RE
	.no_dead_strip	_wait_for_rx_byte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wait_for_rx_byte
_wait_for_rx_byte:                      ; @wait_for_rx_byte
	.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
	bl	_wait_xfer_done
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x20]
	mov	w9, #100
	mul	w8, w8, w9
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.2:
	ldr	x20, [x20, #8]
	add	w21, w8, #1
Lloh0:
	adrp	x22, _PSC_SMBSTAT_RE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PSC_SMBSTAT_RE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x20]
	bl	_au_sync
	ldr	w8, [x22]
	tst	w8, w23
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	bl	_udelay
	sub	w21, w21, #1
	cmp	w21, #3
	b.ge	LBB0_3
LBB0_5:
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
LBB0_7:
	ldr	w20, [x20, #4]
	bl	_au_sync
	mov	w0, #0
	str	w20, [x19]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_PSC_SMBSTAT_RE,4,2             ; @PSC_SMBSTAT_RE
	.no_dead_strip	_wait_for_rx_byte
.subsections_via_symbols
