	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function plip_open
_plip_open:                             ## @plip_open
	.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	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	cmpl	$0, (%rax)
	je	LBB0_1
LBB0_4:
	movq	$0, 56(%rbx)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_write_data
	movq	%r14, %rdi
	callq	_enable_parport_interrupts
	cmpl	$-1, (%r14)
	jne	LBB0_6
## %bb.5:
	leaq	52(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%rbx, %rdi
	addq	$48, %rdi
	movl	$1, %esi
	callq	_schedule_delayed_work
LBB0_6:
	movq	_PLIP_PK_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	%eax, 44(%rbx)
	movq	$0, 24(%rbx)
	movl	$0, 40(%rbx)
	movq	_PLIP_CN_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	%r14, %rdi
	callq	___in_dev_get_rtnl
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	(%rax), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	8(%r14), %rdi
	addq	$2, %rdi
	movq	%rax, %rsi
	movl	$4, %edx
	callq	_memcpy
LBB0_9:
	movq	%r14, %rdi
	callq	_netif_start_queue
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_1:
	movl	64(%rbx), %edi
	callq	_parport_claim
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	$1, (%rbx)
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_PLIP_PK_DONE,4,2               ## @PLIP_PK_DONE
	.comm	_PLIP_CN_NONE,4,2               ## @PLIP_CN_NONE
	.no_dead_strip	_plip_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function plip_open
_plip_open:                             ; @plip_open
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_7
LBB0_1:
	str	xzr, [x20, #56]
	mov	x0, x19
	mov	w1, #0
	bl	_write_data
	mov	x0, x19
	bl	_enable_parport_interrupts
	ldr	w8, [x19]
	cmn	w8, #1
	b.ne	LBB0_3
; %bb.2:
	add	x0, x20, #52
	mov	w1, #0
	bl	_atomic_set
	add	x0, x20, #48
	mov	w1, #1
	bl	_schedule_delayed_work
LBB0_3:
Lloh0:
	adrp	x8, _PLIP_PK_DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PLIP_PK_DONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	str	xzr, [x20, #24]
	stp	wzr, w8, [x20, #40]
Lloh3:
	adrp	x8, _PLIP_CN_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PLIP_CN_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	str	xzr, [x20, #8]
	mov	x0, x19
	bl	___in_dev_get_rtnl
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w0, [x0]
	bl	_rcu_dereference
	cbz	x0, LBB0_6
; %bb.5:
	mov	x1, x0
	ldr	x8, [x19, #8]
	add	x0, x8, #2
	mov	w2, #4
	bl	_memcpy
LBB0_6:
	mov	x0, x19
	bl	_netif_start_queue
	mov	w0, #0
	b	LBB0_9
LBB0_7:
	ldr	w0, [x20, #64]
	bl	_parport_claim
	cbz	x0, LBB0_10
; %bb.8:
Lloh6:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_PLIP_PK_DONE,4,2               ; @PLIP_PK_DONE
	.comm	_PLIP_CN_NONE,4,2               ; @PLIP_CN_NONE
	.no_dead_strip	_plip_open
.subsections_via_symbols
