	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ct82c170_wait
_ct82c170_wait:                         ## @ct82c170_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
	movq	_CT82C710_STATUS@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_inb
	movq	_CT82C710_RX_FULL@GOTPCREL(%rip), %rbx
	movq	_CT82C710_TX_IDLE@GOTPCREL(%rip), %r15
	movq	_CT82C710_DEV_IDLE@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	orl	(%r15), %ecx
	movl	(%rbx), %edx
	orl	%ecx, %edx
	andl	%eax, %edx
	xorl	%eax, %eax
	cmpl	%ecx, %edx
	je	LBB0_7
## %bb.1:
	movl	$-59999, %eax                   ## imm = 0xFFFF15A1
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r13d
	movl	(%r14), %edi
	callq	_inb_p
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_CT82C710_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inb_p
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	_udelay
	movl	(%r14), %edi
	callq	_inb
	movl	(%r12), %ecx
	orl	(%r15), %ecx
	movl	(%rbx), %edx
	orl	%ecx, %edx
	andl	%eax, %edx
	cmpl	%ecx, %edx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%r13), %eax
	testl	%r13d, %r13d
	jne	LBB0_2
LBB0_6:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	sete	%al
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CT82C710_STATUS,4,2            ## @CT82C710_STATUS
	.comm	_CT82C710_RX_FULL,4,2           ## @CT82C710_RX_FULL
	.comm	_CT82C710_TX_IDLE,4,2           ## @CT82C710_TX_IDLE
	.comm	_CT82C710_DEV_IDLE,4,2          ## @CT82C710_DEV_IDLE
	.comm	_CT82C710_DATA,4,2              ## @CT82C710_DATA
	.no_dead_strip	_ct82c170_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ct82c170_wait
_ct82c170_wait:                         ; @ct82c170_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
Lloh0:
	adrp	x19, _CT82C710_STATUS@GOTPAGE
Lloh1:
	ldr	x19, [x19, _CT82C710_STATUS@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_inb
Lloh2:
	adrp	x20, _CT82C710_RX_FULL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _CT82C710_RX_FULL@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh4:
	adrp	x21, _CT82C710_TX_IDLE@GOTPAGE
Lloh5:
	ldr	x21, [x21, _CT82C710_TX_IDLE@GOTPAGEOFF]
Lloh6:
	adrp	x22, _CT82C710_DEV_IDLE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _CT82C710_DEV_IDLE@GOTPAGEOFF]
	ldr	w9, [x21]
	ldr	w10, [x22]
	orr	w9, w10, w9
	orr	w8, w9, w8
	and	w8, w8, w0
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_7
LBB0_2:
	mov	w8, #-59999
Lloh8:
	adrp	x23, _CT82C710_DATA@GOTPAGE
Lloh9:
	ldr	x23, [x23, _CT82C710_DATA@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	bl	_udelay
	ldr	w0, [x19]
	bl	_inb
	ldr	w8, [x20]
	ldr	w9, [x21]
	ldr	w10, [x22]
	orr	w9, w10, w9
	orr	w8, w9, w8
	and	w10, w8, w0
	add	w8, w24, #1
	cmp	w10, w9
	ccmp	w24, #0, #4, ne
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x8
	ldr	w0, [x19]
	bl	_inb_p
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23]
	bl	_inb_p
	b	LBB0_3
LBB0_6:
	cmp	w24, #0
	cset	w0, eq
LBB0_7:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CT82C710_STATUS,4,2            ; @CT82C710_STATUS
	.comm	_CT82C710_RX_FULL,4,2           ; @CT82C710_RX_FULL
	.comm	_CT82C710_TX_IDLE,4,2           ; @CT82C710_TX_IDLE
	.comm	_CT82C710_DEV_IDLE,4,2          ; @CT82C710_DEV_IDLE
	.comm	_CT82C710_DATA,4,2              ; @CT82C710_DATA
	.no_dead_strip	_ct82c170_wait
.subsections_via_symbols
