	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iproc_pcie_msi_steer
_iproc_pcie_msi_steer:                  ## @iproc_pcie_msi_steer
	.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), %r15
	leaq	-28(%rbp), %rdx
	callq	_iproce_pcie_get_msi
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_5
## %bb.4:
	movl	-28(%rbp), %esi
	movq	%r14, %rdi
	callq	_iproc_pcie_paxb_v2_msi_steer
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_8
LBB0_6:
	movl	-28(%rbp), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_iproc_pcie_paxc_v2_msi_steer
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	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 steering failed\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_iproc_pcie_msi_steer
.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_steer
_iproc_pcie_msi_steer:                  ; @iproc_pcie_msi_steer
	.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	x21, [x0, #8]
	add	x2, sp, #12
	bl	_iproce_pcie_get_msi
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.3:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_iproc_pcie_paxb_v2_msi_steer
	mov	x20, x0
	cbnz	w0, LBB0_8
	b	LBB0_6
LBB0_4:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_8
LBB0_5:
	ldr	w1, [sp, #12]
	mov	x0, x19
	mov	w2, #1
	bl	_iproc_pcie_paxc_v2_msi_steer
LBB0_6:
	mov	w20, #0
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"msi steering failed\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_iproc_pcie_msi_steer
.subsections_via_symbols
