	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ofw_pcib_gen_route_interrupt   ## -- Begin function ofw_pcib_gen_route_interrupt
	.p2align	4, 0x90
_ofw_pcib_gen_route_interrupt:          ## @ofw_pcib_gen_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r12d
	movl	%edi, %r15d
	callq	_device_get_softc
	cmpq	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movl	%r14d, -40(%rbp)
	movl	%r12d, %edi
	callq	_ofw_bus_get_node
	subq	$8, %rsp
	leaq	-36(%rbp), %r10
	leaq	-48(%rbp), %rdx
	leaq	-40(%rbp), %r8
	movl	%eax, %edi
	movq	%rbx, %rsi
	movl	$4, %ecx
	movl	$4, %r9d
	pushq	$0
	pushq	$4
	pushq	%r10
	callq	_ofw_bus_lookup_imap
	addq	$32, %rsp
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	-36(%rbp), %eax
	jmp	LBB0_5
LBB0_3:
	leal	-1(%r14), %eax
	cmpl	$3, %eax
	ja	LBB0_4
## %bb.6:
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%r14d, %edx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pcib_route_interrupt           ## TAILCALL
LBB0_4:
	movl	%r15d, %edi
	callq	_device_get_parent
	movl	%eax, %edi
	callq	_device_get_parent
	movl	%eax, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_PCIB_ROUTE_INTERRUPT
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ofw_pcib_gen_route_interrupt   ; -- Begin function ofw_pcib_gen_route_interrupt
	.p2align	2
_ofw_pcib_gen_route_interrupt:          ; @ofw_pcib_gen_route_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_device_get_softc
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, x0
	str	w19, [sp, #20]
	mov	x0, x22
	bl	_ofw_bus_get_node
	str	xzr, [sp]
	add	x2, sp, #24
	add	x4, sp, #20
	add	x6, sp, #16
	mov	x1, x21
	mov	w3, #4
	mov	w5, #4
	mov	w7, #4
	bl	_ofw_bus_lookup_imap
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [sp, #16]
	b	LBB0_6
LBB0_3:
	sub	w8, w19, #1
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_pcib_route_interrupt
LBB0_5:
	mov	x0, x20
	bl	_device_get_parent
	bl	_device_get_parent
	mov	x1, x20
	mov	x2, x19
	bl	_PCIB_ROUTE_INTERRUPT
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
