	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ofw_pcibus_assign_interrupt
_ofw_pcibus_assign_interrupt:           ## @ofw_pcibus_assign_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	%esi, %edi
	callq	_ofw_bus_get_node
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.3:
	movl	%eax, %ebx
	movl	$-1, -44(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movl	%eax, %edi
	movl	$4, %ecx
	callq	_OF_getencprop
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	-44(%rbp), %edi
	movl	$1, -48(%rbp)
	cmpl	$-1, %edi
	je	LBB0_7
## %bb.6:
	callq	_OF_node_from_xref
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movl	%eax, %edi
	movl	$4, %ecx
	callq	_OF_getencprop
	jmp	LBB0_7
LBB0_1:
	movl	%r15d, %edi
	callq	_pci_get_intpin
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_device_get_parent
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_19
## %bb.2:
	movl	%eax, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PCIB_ROUTE_INTERRUPT           ## TAILCALL
LBB0_4:
	movl	$-1, -44(%rbp)
	movl	$1, -48(%rbp)
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movl	%ebx, %edi
	movl	$8, %ecx
	callq	_OF_getencprop
	cltq
	movslq	-48(%rbp), %rdx
	leaq	(,%rdx,4), %rcx
	cmpq	%rax, %rcx
	jne	LBB0_11
## %bb.8:
	movl	-44(%rbp), %esi
	cmpl	$-1, %esi
	je	LBB0_9
## %bb.10:
	leaq	-40(%rbp), %rcx
	movl	%r14d, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ofw_bus_map_intr
	jmp	LBB0_17
LBB0_11:
	leaq	L_.str.3(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movl	%ebx, %edi
	movl	$8, %ecx
	callq	_OF_getencprop
	cltq
	movslq	-48(%rbp), %rdx
	leaq	(,%rdx,4), %rcx
	cmpq	%rax, %rcx
	jne	LBB0_14
## %bb.12:
	movl	-44(%rbp), %esi
	cmpl	$-1, %esi
	je	LBB0_16
## %bb.13:
	leaq	-40(%rbp), %rcx
	movl	%r14d, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ofw_bus_map_intr
	jmp	LBB0_15
LBB0_14:
	movl	%r15d, %edi
	callq	_pci_get_intpin
LBB0_15:
	movl	%eax, -40(%rbp)
LBB0_16:
	movl	%r14d, %edi
	callq	_device_get_parent
	movl	-40(%rbp), %edx
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_PCIB_ROUTE_INTERRUPT
	jmp	LBB0_17
LBB0_9:
	movl	-40(%rbp), %eax
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interrupt-parent"

L_.str.1:                               ## @.str.1
	.asciz	"#interrupt-cells"

L_.str.2:                               ## @.str.2
	.asciz	"AAPL,interrupts"

L_.str.3:                               ## @.str.3
	.asciz	"interrupts"

	.no_dead_strip	_ofw_pcibus_assign_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ofw_pcibus_assign_interrupt
_ofw_pcibus_assign_interrupt:           ; @ofw_pcibus_assign_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, 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, #24]
	mov	x0, x1
	bl	_ofw_bus_get_node
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	mov	x21, x0
	mov	w22, #-1
	str	w22, [sp, #12]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	w3, #4
	bl	_OF_getencprop
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	w0, [sp, #12]
	mov	w8, #1
	str	w8, [sp, #8]
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.3:
	bl	_OF_node_from_xref
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	w3, #4
	bl	_OF_getencprop
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_pci_get_intpin
	mov	x21, x0
	mov	x0, x20
	bl	_device_get_parent
	ldr	x8, [sp, #24]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.5:
	mov	x1, x19
	mov	x2, x21
	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_6:
	mov	w8, #1
	stp	w8, w22, [sp, #8]
LBB0_7:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #16
	mov	x0, x21
	mov	w3, #8
	bl	_OF_getencprop
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldrsw	x2, [sp, #8]
	cmp	x8, x2, lsl #2
	b.ne	LBB0_10
; %bb.8:
	ldr	w1, [sp, #12]
	cmn	w1, #1
	b.eq	LBB0_16
; %bb.9:
	add	x3, sp, #16
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_ofw_bus_map_intr
	b	LBB0_17
LBB0_10:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #16
	mov	x0, x21
	mov	w3, #8
	bl	_OF_getencprop
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldrsw	x2, [sp, #8]
	cmp	x8, x2, lsl #2
	b.ne	LBB0_13
; %bb.11:
	ldr	w1, [sp, #12]
	cmn	w1, #1
	b.eq	LBB0_15
; %bb.12:
	add	x3, sp, #16
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_ofw_bus_map_intr
	b	LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_pci_get_intpin
LBB0_14:
	str	w0, [sp, #16]
LBB0_15:
	mov	x0, x20
	bl	_device_get_parent
	ldr	w2, [sp, #16]
	mov	x1, x19
	bl	_PCIB_ROUTE_INTERRUPT
	b	LBB0_17
LBB0_16:
	ldr	w0, [sp, #16]
LBB0_17:
	ldr	x8, [sp, #24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	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
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interrupt-parent"

l_.str.1:                               ; @.str.1
	.asciz	"#interrupt-cells"

l_.str.2:                               ; @.str.2
	.asciz	"AAPL,interrupts"

l_.str.3:                               ; @.str.3
	.asciz	"interrupts"

	.no_dead_strip	_ofw_pcibus_assign_interrupt
.subsections_via_symbols
