	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parport_wait_peripheral        ## -- Begin function parport_wait_peripheral
	.p2align	4, 0x90
_parport_wait_peripheral:               ## @parport_wait_peripheral
	.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	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rax), %rcx
	cmpl	$0, (%rcx)
	movl	$35000, %ecx                    ## imm = 0x88B8
	je	LBB0_2
## %bb.1:
	movl	(%rax), %ecx
LBB0_2:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_parport_poll_peripheral
	movl	%eax, %r14d
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.3:
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	movl	$1, %r14d
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.4:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	$40, %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r13
	addq	%r12, %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r13, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$10, %edi
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_parport_wait_event
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_parport_read_status
	andb	%r15b, %al
	cmpb	-44(%rbp), %al                  ## 1-byte Folded Reload
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_5
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$10, %edi
	callq	_msecs_to_jiffies
	movq	%rax, %rdi
	callq	_schedule_timeout_interruptible
	jmp	LBB0_5
LBB0_7:
	movq	_EINTR@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_10:
	movl	%r12d, %r14d
	jmp	LBB0_8
LBB0_12:
	xorl	%r14d, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_current,4,2                    ## @current
	.comm	_EINTR,4,2                      ## @EINTR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parport_wait_peripheral        ; -- Begin function parport_wait_peripheral
	.p2align	2
_parport_wait_peripheral:               ; @parport_wait_peripheral
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	w9, [x8]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	mov	w10, #35000
	cmp	w8, #0
	csel	w3, w10, w9, eq
	bl	_parport_poll_peripheral
	mov	x23, x0
	cmp	w0, #1
	b.ne	LBB0_11
; %bb.1:
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.2:
Lloh0:
	adrp	x24, _jiffies@GOTPAGE
Lloh1:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
	ldr	x22, [x24]
	mov	w0, #40
	bl	_msecs_to_jiffies
	add	x22, x0, x22
	ldr	x0, [x24]
	mov	x1, x22
	bl	_time_before
	cbz	x0, LBB0_10
; %bb.3:
Lloh2:
	adrp	x25, _current@GOTPAGE
Lloh3:
	ldr	x25, [x25, _current@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x24]
	mov	x1, x22
	bl	_time_before
	cbz	x0, LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	bl	_signal_pending
	cbnz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #10
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x21
	bl	_parport_wait_event
	mov	x23, x0
	tbnz	w0, #31, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_parport_read_status
	and	w8, w0, w20
	cmp	w8, w19
	b.eq	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w23, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #10
	bl	_msecs_to_jiffies
	bl	_schedule_timeout_interruptible
	b	LBB0_4
LBB0_10:
	mov	w23, #1
LBB0_11:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh4:
	adrp	x8, _EINTR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_11
LBB0_13:
	mov	w23, #0
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_current,4,2                    ; @current
	.comm	_EINTR,4,2                      ; @EINTR
.subsections_via_symbols
