	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ofw_pcib_pci_route_interrupt
_ofw_pcib_pci_route_interrupt:          ## @ofw_pcib_pci_route_interrupt
	.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
	movl	%edx, %ebx
	movl	%esi, %r13d
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_device_get_softc
	cmpq	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	movq	%rax, %r12
	movl	%ebx, -72(%rbp)
	movl	%r13d, %edi
	callq	_pci_get_bus
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	%eax, %ebx
	movq	_OFW_PCI_PHYS_HI_BUSSHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movl	%r13d, %edi
	callq	_pci_get_slot
	movl	%eax, %r14d
	movq	_OFW_PCI_PHYS_HI_DEVICESHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
	orl	%ebx, %r14d
	movl	%r13d, %edi
	callq	_pci_get_function
	movq	_OFW_PCI_PHYS_HI_FUNCTIONSHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%r14d, %eax
	movl	%eax, -64(%rbp)
	movl	%r13d, %edi
	callq	_ofw_bus_get_node
	subq	$8, %rsp
	leaq	-68(%rbp), %rbx
	leaq	-56(%rbp), %r10
	leaq	-64(%rbp), %rdx
	leaq	-72(%rbp), %r8
	movl	%eax, %edi
	movq	%r12, %rsi
	movl	$4, %ecx
	movl	$4, %r9d
	pushq	%rbx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	pushq	$8
	pushq	%r10
	callq	_ofw_bus_lookup_imap
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movl	-68(%rbp), %esi
	leaq	-56(%rbp), %rcx
	movl	%r13d, %edi
	movl	%eax, %edx
	callq	_ofw_bus_map_intr
	jmp	LBB0_7
LBB0_3:
	leal	-1(%rbx), %eax
	cmpl	$3, %eax
	ja	LBB0_6
## %bb.4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.5:
	movl	%r15d, %edi
	movl	%r13d, %esi
	movl	%ebx, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pcib_route_interrupt           ## TAILCALL
LBB0_6:
	movl	%r15d, %edi
	callq	_device_get_parent
	movl	%eax, %edi
	callq	_device_get_parent
	movl	%eax, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_PCIB_ROUTE_INTERRUPT
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_OFW_PCI_PHYS_HI_BUSSHIFT,4,2   ## @OFW_PCI_PHYS_HI_BUSSHIFT
	.comm	_OFW_PCI_PHYS_HI_DEVICESHIFT,4,2 ## @OFW_PCI_PHYS_HI_DEVICESHIFT
	.comm	_OFW_PCI_PHYS_HI_FUNCTIONSHIFT,4,2 ## @OFW_PCI_PHYS_HI_FUNCTIONSHIFT
	.no_dead_strip	_ofw_pcib_pci_route_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ofw_pcib_pci_route_interrupt
_ofw_pcib_pci_route_interrupt:          ; @ofw_pcib_pci_route_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	bl	_device_get_softc
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, x0
	str	w19, [sp, #20]
	mov	x0, x21
	bl	_pci_get_bus
Lloh3:
	adrp	x8, _OFW_PCI_PHYS_HI_BUSSHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OFW_PCI_PHYS_HI_BUSSHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w23, w0, w8
	mov	x0, x21
	bl	_pci_get_slot
Lloh6:
	adrp	x8, _OFW_PCI_PHYS_HI_DEVICESHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OFW_PCI_PHYS_HI_DEVICESHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	orr	w23, w8, w23
	mov	x0, x21
	bl	_pci_get_function
Lloh9:
	adrp	x8, _OFW_PCI_PHYS_HI_FUNCTIONSHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OFW_PCI_PHYS_HI_FUNCTIONSHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	orr	w8, w23, w8
	str	w8, [sp, #24]
	mov	x0, x21
	bl	_ofw_bus_get_node
	add	x8, sp, #16
	str	x8, [sp]
	add	x2, sp, #24
	add	x4, sp, #20
	add	x6, sp, #32
	mov	x1, x22
	mov	w3, #4
	mov	w5, #4
	mov	w7, #8
	bl	_ofw_bus_lookup_imap
	cbz	w0, LBB0_6
; %bb.2:
	mov	x2, x0
	ldr	w1, [sp, #16]
	add	x3, sp, #32
	mov	x0, x21
	bl	_ofw_bus_map_intr
	b	LBB0_7
LBB0_3:
	sub	w8, w19, #1
	cmp	w8, #3
	b.hi	LBB0_6
; %bb.4:
	ldr	x8, [sp, #40]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	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
	add	sp, sp, #112
	b	_pcib_route_interrupt
LBB0_6:
	mov	x0, x20
	bl	_device_get_parent
	bl	_device_get_parent
	mov	x1, x20
	mov	x2, x19
	bl	_PCIB_ROUTE_INTERRUPT
LBB0_7:
	ldr	x8, [sp, #40]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	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
	add	sp, sp, #112
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_OFW_PCI_PHYS_HI_BUSSHIFT,4,2   ; @OFW_PCI_PHYS_HI_BUSSHIFT
	.comm	_OFW_PCI_PHYS_HI_DEVICESHIFT,4,2 ; @OFW_PCI_PHYS_HI_DEVICESHIFT
	.comm	_OFW_PCI_PHYS_HI_FUNCTIONSHIFT,4,2 ; @OFW_PCI_PHYS_HI_FUNCTIONSHIFT
	.no_dead_strip	_ofw_pcib_pci_route_interrupt
.subsections_via_symbols
