	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mips_pcib_route_interrupt
_mips_pcib_route_interrupt:             ## @mips_pcib_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	addl	$-5, %edx
	cmpl	$-4, %edx
	jae	LBB0_1
LBB0_4:
	movl	$255, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movl	%esi, %ebx
	movl	%edi, %r14d
	movl	%esi, %edi
	callq	_pci_get_bus
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movl	%ebx, %edi
	callq	_pci_get_vendor
	movq	_PCI_VENDOR_NETLOGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movl	%ebx, %edi
	callq	_pci_get_function
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_pci_get_slot
	andl	$-2147483641, %eax              ## imm = 0x80000007
	cmpl	$1, %eax
	jne	LBB0_4
	jmp	LBB0_6
LBB0_5:
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_xlp_pcie_link
	movl	%eax, %r14d
LBB0_6:
	movl	%r14d, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PIC_PCIE_IRQ                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VENDOR_NETLOGIC,8,3        ## @PCI_VENDOR_NETLOGIC
	.no_dead_strip	_mips_pcib_route_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mips_pcib_route_interrupt
_mips_pcib_route_interrupt:             ; @mips_pcib_route_interrupt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	sub	w8, w2, #5
	cmn	w8, #4
	b.hs	LBB0_2
LBB0_1:
	mov	w0, #255
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_pci_get_bus
	cbnz	x0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_pci_get_vendor
Lloh0:
	adrp	x8, _PCI_VENDOR_NETLOGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_VENDOR_NETLOGIC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_pci_get_function
	mov	x20, x0
	mov	x0, x19
	bl	_pci_get_slot
	and	w8, w0, #0x80000007
	cmp	w8, #1
	b.ne	LBB0_1
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_xlp_pcie_link
	mov	x20, x0
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PIC_PCIE_IRQ
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VENDOR_NETLOGIC,8,3        ; @PCI_VENDOR_NETLOGIC
	.no_dead_strip	_mips_pcib_route_interrupt
.subsections_via_symbols
