	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpia_pp_register
_cpia_pp_register:                      ## @cpia_pp_register
	.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
	movq	_PARPORT_MODE_PCSPP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r14
	movq	%rax, (%rsp)
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_parport_register_device
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r12
	movq	%rax, 32(%r14)
	movq	%r15, 24(%r14)
	movq	%r14, %rdi
	addq	$16, %rdi
	callq	_init_waitqueue_head
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	movq	_cpia_pp_ops@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_cpia_register_camera
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %rbx
	movq	_cam_list_lock_pp@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_cam_list@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_list_add
	movq	%r14, %rdi
	callq	_spin_unlock
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_LOG
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_LOG
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
	callq	_LOG
	movq	%r14, %rdi
	callq	_kfree
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str.4(%rip), %rdi
	callq	_LOG
	movq	%r12, %rdi
	callq	_parport_unregister_device
	movq	%r14, %rdi
	callq	_kfree
LBB0_9:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PARPORT_MODE_PCSPP,4,2         ## @PARPORT_MODE_PCSPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port is not supported by CPiA driver\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"failed to allocate camera structure\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"cpia_pp"

L_.str.3:                               ## @.str.3
	.asciz	"failed to parport_register_device\n"

	.comm	_cpia_pp_ops,4,2                ## @cpia_pp_ops
L_.str.4:                               ## @.str.4
	.asciz	"failed to cpia_register_camera\n"

	.comm	_cam_list_lock_pp,4,2           ## @cam_list_lock_pp
	.comm	_cam_list,4,2                   ## @cam_list
	.no_dead_strip	_cpia_pp_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpia_pp_register
_cpia_pp_register:                      ; @cpia_pp_register
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _PARPORT_MODE_PCSPP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PARPORT_MODE_PCSPP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	w5, #0
	mov	x6, x19
	bl	_parport_register_device
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
	stp	x20, x0, [x19, #24]
	add	x0, x19, #16
	bl	_init_waitqueue_head
	stp	xzr, xzr, [x19]
Lloh8:
	adrp	x0, _cpia_pp_ops@GOTPAGE
Lloh9:
	ldr	x0, [x0, _cpia_pp_ops@GOTPAGEOFF]
	mov	x1, x19
	bl	_cpia_register_camera
	cbz	x0, LBB0_8
; %bb.4:
	mov	x20, x0
Lloh10:
	adrp	x19, _cam_list_lock_pp@GOTPAGE
Lloh11:
	ldr	x19, [x19, _cam_list_lock_pp@GOTPAGEOFF]
	mov	x0, x19
	bl	_spin_lock
Lloh12:
	adrp	x1, _cam_list@GOTPAGE
Lloh13:
	ldr	x1, [x1, _cam_list@GOTPAGEOFF]
	mov	x0, x20
	bl	_list_add
	mov	x0, x19
	bl	_spin_unlock
	mov	w0, #0
	b	LBB0_12
LBB0_5:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG
	b	LBB0_10
LBB0_6:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_LOG
	b	LBB0_9
LBB0_8:
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_LOG
	mov	x0, x21
	bl	_parport_unregister_device
LBB0_9:
	mov	x0, x19
	bl	_kfree
LBB0_10:
Lloh24:
	adrp	x8, _ENXIO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_PARPORT_MODE_PCSPP,4,2         ; @PARPORT_MODE_PCSPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port is not supported by CPiA driver\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"failed to allocate camera structure\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"cpia_pp"

l_.str.3:                               ; @.str.3
	.asciz	"failed to parport_register_device\n"

	.comm	_cpia_pp_ops,4,2                ; @cpia_pp_ops
l_.str.4:                               ; @.str.4
	.asciz	"failed to cpia_register_camera\n"

	.comm	_cam_list_lock_pp,4,2           ; @cam_list_lock_pp
	.comm	_cam_list,4,2                   ; @cam_list
	.no_dead_strip	_cpia_pp_register
.subsections_via_symbols
