	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pp_open
_pp_open:                               ## @pp_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_iminor
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_cycle_kernel_lock
	movq	_PARPORT_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jae	LBB0_3
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r15
	movq	_IEEE1284_MODE_COMPAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 32(%r15)
	callq	_init_phase
	movl	%eax, 36(%r15)
	leaq	12(%r15), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r15)
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%r15, %rdi
	addq	$8, %rdi
	callq	_init_waitqueue_head
	movq	$0, (%r15)
	movq	%r15, (%r14)
	jmp	LBB0_6
LBB0_3:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PARPORT_MAX,4,2                ## @PARPORT_MAX
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IEEE1284_MODE_COMPAT,4,2       ## @IEEE1284_MODE_COMPAT
	.no_dead_strip	_pp_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pp_open
_pp_open:                               ; @pp_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, x1
	bl	_iminor
	mov	x20, x0
	bl	_cycle_kernel_lock
Lloh0:
	adrp	x8, _PARPORT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PARPORT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, w8
	b.hs	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kmalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh6:
	adrp	x8, _IEEE1284_MODE_COMPAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE1284_MODE_COMPAT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	str	w0, [x20, #32]
	bl	_init_phase
	str	w0, [x20, #36]
	add	x0, x20, #12
	stp	xzr, xzr, [x20, #16]
	mov	w1, #0
	bl	_atomic_set
	add	x0, x20, #8
	bl	_init_waitqueue_head
	mov	w0, #0
	str	xzr, [x20]
	str	x20, [x19]
	b	LBB0_6
LBB0_3:
Lloh9:
	adrp	x8, _ENXIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PARPORT_MAX,4,2                ; @PARPORT_MAX
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IEEE1284_MODE_COMPAT,4,2       ; @IEEE1284_MODE_COMPAT
	.no_dead_strip	_pp_open
.subsections_via_symbols
