	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iproce_pcie_get_msi
_iproce_pcie_get_msi:                   ## @iproce_pcie_get_msi
	.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
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	(%rdi), %r15
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_device_is_compatible
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	xorl	%r12d, %r12d
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_of_address_to_resource
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_GITS_TRANSLATER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	-40(%rbp), %rax
	movq	%rax, (%r14)
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_5
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movl	%ebx, %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"arm,gic-v3-its"

L_.str.1:                               ## @.str.1
	.asciz	"unable to find compatible MSI controller\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"unable to obtain MSI controller resources\n"

	.comm	_GITS_TRANSLATER,8,3            ## @GITS_TRANSLATER
	.no_dead_strip	_iproce_pcie_get_msi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iproce_pcie_get_msi
_iproce_pcie_get_msi:                   ; @iproce_pcie_get_msi
	.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, x2
	mov	x21, x1
	ldr	x20, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_of_device_is_compatible
	cbz	w0, LBB0_3
; %bb.1:
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #0
	bl	_of_address_to_resource
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	w21, #0
	ldr	x8, [sp, #8]
Lloh2:
	adrp	x9, _GITS_TRANSLATER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GITS_TRANSLATER@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x19]
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_4:
	mov	x21, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_5:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"arm,gic-v3-its"

l_.str.1:                               ; @.str.1
	.asciz	"unable to find compatible MSI controller\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"unable to obtain MSI controller resources\n"

	.comm	_GITS_TRANSLATER,8,3            ; @GITS_TRANSLATER
	.no_dead_strip	_iproce_pcie_get_msi
.subsections_via_symbols
