	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_lintr_route
_pci_lintr_route:                       ## @pci_lintr_route
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 16(%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r12
	movq	_pci_businfo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movq	(%rax,%rcx,8), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	(%rbx), %rax
	movq	8(%r12), %rcx
	movq	(%rax,%rcx,8), %r15
	movslq	16(%r12), %rbx
	decq	%rbx
	shlq	$4, %rbx
	leaq	(%r15,%rbx), %r14
	movq	(%r15,%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_ioapic_pci_alloc_irq
	movq	%rax, (%r14)
LBB0_3:
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_assert
	movq	8(%r15,%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	addq	%r15, %rbx
	addq	$8, %rbx
	movq	%r12, %rdi
	callq	_pirq_alloc_pin
	movq	%rax, (%rbx)
LBB0_5:
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_assert
	movq	8(%r14), %rdi
	movups	(%r14), %xmm0
	movups	%xmm0, 24(%r12)
	movq	_PCIR_INTLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_pirq_irq
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_set_cfgdata8               ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pci_businfo,8,3                ## @pci_businfo
	.comm	_PCIR_INTLINE,4,2               ## @PCIR_INTLINE
	.no_dead_strip	_pci_lintr_route
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_lintr_route
_pci_lintr_route:                       ; @pci_lintr_route
	.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, #16]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _pci_businfo@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pci_businfo@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	x20, [x8, x9, lsl #3]
	cmp	x20, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	ldr	x8, [x8, x9, lsl #3]
	ldrsw	x9, [x19, #16]
	sub	x9, x9, #1
	add	x20, x8, x9, lsl #4
	mov	x21, x20
	ldr	x0, [x20]
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_ioapic_pci_alloc_irq
	str	x0, [x21]
LBB0_3:
	cmp	x0, #0
	cset	w0, gt
	bl	_assert
	ldr	x0, [x20, #8]!
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_pirq_alloc_pin
	str	x0, [x20]
LBB0_5:
	cmp	x0, #0
	cset	w0, gt
	bl	_assert
	ldr	x8, [x21]
	ldr	x0, [x20]
	stp	x8, x0, [x19, #24]
Lloh3:
	adrp	x8, _PCIR_INTLINE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCIR_INTLINE@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	bl	_pirq_irq
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	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
	b	_pci_set_cfgdata8
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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_pci_businfo,8,3                ; @pci_businfo
	.comm	_PCIR_INTLINE,4,2               ; @PCIR_INTLINE
	.no_dead_strip	_pci_lintr_route
.subsections_via_symbols
