	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parport_wait_event             ## -- Begin function parport_wait_event
	.p2align	4, 0x90
_parport_wait_event:                    ## @parport_wait_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %rax
	movq	8(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_timeout_waiting_on_port@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	_jiffies@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mod_timer
	movq	8(%rbx), %rdi
	callq	_down_interruptible
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_del_timer_sync
	orl	%r14d, %eax
	movl	$1, %eax
	cmovnel	%r14d, %eax
	jmp	LBB0_3
LBB0_1:
	movl	$1, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_timeout_waiting_on_port,4,2    ## @timeout_waiting_on_port
	.comm	_jiffies,8,3                    ## @jiffies
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parport_wait_event             ; -- Begin function parport_wait_event
	.p2align	2
_parport_wait_event:                    ; @parport_wait_event
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #8]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _timeout_waiting_on_port@GOTPAGE
Lloh1:
	ldr	x8, [x8, _timeout_waiting_on_port@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x1, x8, x20
	mov	x0, x19
	bl	_mod_timer
	ldr	x0, [x19, #8]
	bl	_down_interruptible
	mov	x20, x0
	mov	x0, x19
	bl	_del_timer_sync
	orr	w8, w0, w20
	cmp	w8, #0
	csinc	w0, w20, wzr, ne
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_timeout_waiting_on_port,4,2    ; @timeout_waiting_on_port
	.comm	_jiffies,8,3                    ; @jiffies
.subsections_via_symbols
