	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parport_register
_parport_register:                      ## @parport_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_pci_get_drvdata
	leaq	16(%rax), %r13
	movq	_cards@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	(%r15), %rcx
	shlq	$5, %rcx
	movups	(%rdx,%rcx), %xmm0
	movups	16(%rdx,%rcx), %xmm1
	movups	%xmm1, 32(%rax)
	movups	%xmm0, 16(%rax)
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	40(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_PARPORT_IRQ_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_PARPORT_DMA_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_20
LBB0_3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r13)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jle	LBB0_17
## %bb.4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	4(%rax), %r8
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	jge	LBB0_17
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	32(%rcx), %rax
	movl	(%rax,%r15,8), %ebx
	movl	4(%rax,%r15,8), %r14d
	movq	(%rcx), %r12
	movq	8(%rcx), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %r12
	je	LBB0_21
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_pci_resource_start
	movq	%rax, %r12
	cmpl	$6, %r14d
	ja	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_pci_resource_start
	movq	%rax, %r14
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$7, %r14d
	jl	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%r14, %r12
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r14d, %r14d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %ebx
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_PARPORT_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_PARPORT_DMA_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movq	%r13, %r8
	callq	_parport_pc_probe_port
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rcx
	movq	8(%rdi), %rdx
	leaq	1(%rcx), %rsi
	movq	%rsi, (%rdi)
	movq	%rax, (%rdx,%rcx,8)
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_16
LBB0_21:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdi
	callq	_ARRAY_SIZE
	movl	16(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rdx
	callq	_dev_warn
LBB0_17:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.18:
	xorl	%edx, %edx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	sete	%dl
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	*%rcx
LBB0_19:
	xorl	%eax, %eax
LBB0_20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cards,8,3                      ## @cards
	.comm	_PARPORT_IRQ_NONE,4,2           ## @PARPORT_IRQ_NONE
	.comm	_PARPORT_DMA_NONE,4,2           ## @PARPORT_DMA_NONE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"only %zu parallel ports supported (%d reported)\n"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
L_.str.1:                               ## @.str.1
	.asciz	"PCI parallel port detected: I/O at %#lx(%#lx)\n"

L_.str.2:                               ## @.str.2
	.asciz	"PCI parallel port detected: I/O at %#lx(%#lx), IRQ %d\n"

	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.no_dead_strip	_parport_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parport_register
_parport_register:                      ; @parport_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x19, x0
	bl	_pci_get_drvdata
	mov	x21, x0
	add	x20, x0, #16
Lloh0:
	adrp	x8, _cards@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cards@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x22]
	add	x8, x8, x9, lsl #5
	ldp	q0, q1, [x8]
	stp	q0, q1, [x0, #16]
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _PARPORT_IRQ_NONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PARPORT_IRQ_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x9]
Lloh6:
	adrp	x9, _PARPORT_DMA_NONE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PARPORT_DMA_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x9]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	cbz	x0, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_3:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.4:
	mov	x23, #0
	mov	x24, #0
	mov	w28, #0
	add	x22, x19, #4
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x20]
	add	x23, x23, #8
	cmp	x24, x8
	b.ge	LBB0_16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #32]
	add	x8, x8, x23
	ldp	w25, w26, [x8]
	ldp	x27, x0, [x21]
	bl	_ARRAY_SIZE
	cmp	x27, x0
	b.eq	LBB0_20
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x25
	bl	_pci_resource_start
	mov	x25, x0
	cmp	w26, #6
	b.hi	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x26
	bl	_pci_resource_start
	mov	x26, x0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w26, #7
	add	x8, x25, x26
	csel	x25, x25, x8, lt
	csel	x26, xzr, xzr, lt
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w27, [x19]
Lloh12:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w27, w8
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x25
	mov	x3, x26
	bl	_dev_dbg
Lloh17:
	adrp	x8, _PARPORT_IRQ_NONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PARPORT_IRQ_NONE@GOTPAGEOFF]
Lloh19:
	ldr	w27, [x8]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x27, [sp]
	mov	x0, x22
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x25
	mov	x3, x26
	bl	_dev_dbg
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh22:
	adrp	x8, _PARPORT_DMA_NONE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PARPORT_DMA_NONE@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
Lloh25:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh27:
	ldr	w5, [x8]
	mov	x0, x25
	mov	x1, x26
	mov	x2, x27
	mov	x4, x22
	bl	_parport_pc_probe_port
	cbz	x0, LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	ldp	x9, x8, [x21]
	add	x10, x9, #1
	str	x10, [x21]
	str	x0, [x8, x9, lsl #3]
	mov	w28, #1
	b	LBB0_5
LBB0_15:
	mov	w28, #0
LBB0_16:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_18
LBB0_17:
	cmp	w28, #0
	cset	w2, eq
	mov	x0, x19
	mov	x1, x20
	blr	x8
LBB0_18:
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_20:
	ldr	x0, [x21, #8]
	bl	_ARRAY_SIZE
	mov	x2, x0
	ldr	w3, [x21, #16]
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_warn
	ldr	x8, [x21, #24]
	cbnz	x8, LBB0_17
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_cards,8,3                      ; @cards
	.comm	_PARPORT_IRQ_NONE,4,2           ; @PARPORT_IRQ_NONE
	.comm	_PARPORT_DMA_NONE,4,2           ; @PARPORT_DMA_NONE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"only %zu parallel ports supported (%d reported)\n"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
l_.str.1:                               ; @.str.1
	.asciz	"PCI parallel port detected: I/O at %#lx(%#lx)\n"

l_.str.2:                               ; @.str.2
	.asciz	"PCI parallel port detected: I/O at %#lx(%#lx), IRQ %d\n"

	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.no_dead_strip	_parport_register
.subsections_via_symbols
