	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parport_ip32_drain_fifo
_parport_ip32_drain_fifo:               ## @parport_ip32_drain_fifo
	.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	_jiffies@GOTPCREL(%rip), %r13
	addq	(%r13), %r14
	movq	%rdi, %r15
	movl	$40, %ebx
	movq	_ECR_F_EMPTY@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_parport_ip32_read_econtrol
	testl	%eax, (%r12)
	jne	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rdi
	movq	%r14, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$5, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_1
LBB0_5:
	movq	%r15, %rdi
	callq	_parport_ip32_read_econtrol
	testl	%eax, (%r12)
	je	LBB0_6
LBB0_10:
	movq	%r15, %rdi
	callq	_parport_ip32_read_econtrol
	xorl	%ecx, %ecx
	testl	%eax, (%r12)
	setne	%cl
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	movq	%r14, %rsi
	callq	_time_after_eq
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %edi
	callq	_msleep_interruptible
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$128, %ebx
	setb	%cl
	shll	%cl, %ebx
	movq	%r15, %rdi
	callq	_parport_ip32_read_econtrol
	testl	%eax, (%r12)
	je	LBB0_7
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_ECR_F_EMPTY,4,2                ## @ECR_F_EMPTY
	.comm	_current,4,2                    ## @current
	.no_dead_strip	_parport_ip32_drain_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parport_ip32_drain_fifo
_parport_ip32_drain_fifo:               ; @parport_ip32_drain_fifo
	.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, x0
Lloh0:
	adrp	x23, _jiffies@GOTPAGE
Lloh1:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x20, x8, x1
	mov	w21, #40
Lloh2:
	adrp	x22, _ECR_F_EMPTY@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ECR_F_EMPTY@GOTPAGEOFF]
Lloh4:
	adrp	x24, _current@GOTPAGE
Lloh5:
	ldr	x24, [x24, _current@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_parport_ip32_read_econtrol
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x23]
	mov	x1, x20
	bl	_time_after
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x24]
	bl	_signal_pending
	cbnz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #5
	bl	_udelay
	subs	w21, w21, #1
	b.ne	LBB0_1
LBB0_5:
	mov	x0, x19
	bl	_parport_ip32_read_econtrol
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_parport_ip32_read_econtrol
	ldr	w8, [x22]
	tst	w8, w0
	cset	w0, 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
LBB0_7:
	mov	w21, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	mov	x1, x20
	bl	_time_after_eq
	cbnz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_msleep_interruptible
	ldr	w0, [x24]
	bl	_signal_pending
	cbnz	x0, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w21, #128
	cset	w8, lo
	lsl	w21, w21, w8
	mov	x0, x19
	bl	_parport_ip32_read_econtrol
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_8
	b	LBB0_6
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_ECR_F_EMPTY,4,2                ; @ECR_F_EMPTY
	.comm	_current,4,2                    ; @current
	.no_dead_strip	_parport_ip32_drain_fifo
.subsections_via_symbols
