	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iproc_pcie_msi_enable
_iproc_pcie_msi_enable:                 ## @iproc_pcie_msi_enable
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	cmpq	$0, (%r14)
	je	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_iproc_pcie_msi_steer
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_7
LBB0_1:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-28(%rbp), %rdx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	addq	$4, %rax
	movq	%rax, %rdi
	callq	_be32_to_cpup
	movl	%eax, %edi
	callq	_of_find_node_by_phandle
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	cmpq	$0, (%r14)
	jne	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_iproc_msi_init
	movl	%eax, %ebx
LBB0_8:
	movq	%r15, %rdi
	callq	_of_node_put
	jmp	LBB0_9
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"msi-parent"

L_.str.1:                               ## @.str.1
	.asciz	"msi-map"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_iproc_pcie_msi_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iproc_pcie_msi_enable
_iproc_pcie_msi_enable:                 ; @iproc_pcie_msi_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_of_parse_phandle
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_6
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_iproc_pcie_msi_steer
	mov	x21, x0
	cbnz	w0, LBB0_7
	b	LBB0_6
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	bl	_of_get_property
	cbz	x0, LBB0_8
; %bb.4:
	add	x0, x0, #4
	bl	_be32_to_cpup
	bl	_of_find_node_by_phandle
	cbz	x0, LBB0_8
; %bb.5:
	mov	x20, x0
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_iproc_msi_init
	mov	x21, x0
LBB0_7:
	mov	x0, x20
	bl	_of_node_put
	b	LBB0_9
LBB0_8:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"msi-parent"

l_.str.1:                               ; @.str.1
	.asciz	"msi-map"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_iproc_pcie_msi_enable
.subsections_via_symbols
