	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pi_register_parport
_pi_register_parport:                   ## @pi_register_parport
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_parport_find_base
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	12(%rbx), %esi
	movq	_pi_wake_up@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, (%rsp)
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_parport_register_device
	movl	%eax, 20(%rbx)
	movq	%r14, %rdi
	callq	_parport_put_port
	cmpl	$0, 20(%rbx)
	je	LBB0_6
## %bb.3:
	leaq	16(%rbx), %rdi
	callq	_init_waitqueue_head
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	movq	(%r14), %rcx
	leaq	L_.str(%rip), %rdi
	callq	_printk
LBB0_5:
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movl	$1, %r12d
	jmp	LBB0_6
LBB0_1:
	xorl	%r12d, %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pi_wake_up,4,2                 ## @pi_wake_up
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: 0x%x is %s\n"

	.no_dead_strip	_pi_register_parport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pi_register_parport
_pi_register_parport:                   ; @pi_register_parport
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_parport_find_base
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	w1, [x19, #12]
Lloh0:
	adrp	x8, _pi_wake_up@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pi_wake_up@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x2, #0
	mov	x4, #0
	mov	w5, #0
	mov	x6, x19
	bl	_parport_register_device
	str	w0, [x19, #20]
	mov	x0, x20
	bl	_parport_put_port
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_5
; %bb.2:
	add	x0, x19, #16
	bl	_init_waitqueue_head
	cbz	w21, LBB0_4
; %bb.3:
	ldp	w2, w1, [x19, #8]
	ldr	x3, [x20]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
LBB0_4:
	ldr	x8, [x20]
	str	x8, [x19]
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_pi_wake_up,4,2                 ; @pi_wake_up
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: 0x%x is %s\n"

	.no_dead_strip	_pi_register_parport
.subsections_via_symbols
