	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ntb_transport_setup_qp_peer_msi
_ntb_transport_setup_qp_peer_msi:       ## @ntb_transport_setup_qp_peer_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 8(%rdi)
	je	LBB0_3
## %bb.1:
	movl	%esi, %r14d
	movq	16(%rdi), %r15
	leal	(%r14,%r14), %ebx
	addl	(%rdi), %ebx
	movl	4(%rdi), %edi
	callq	_ntb_spad_count
	cmpl	%eax, %ebx
	jge	LBB0_3
## %bb.2:
	movl	%r14d, %r12d
	shlq	$5, %r12
	movq	8(%r15,%r12), %rdi
	movq	_PIDX@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%ebx, %edx
	callq	_ntb_peer_spad_read
	movq	%rax, 16(%r15,%r12)
	movq	8(%r15,%r12), %rdi
	movl	(%r13), %esi
	incl	%ebx
	movl	%ebx, %edx
	callq	_ntb_peer_spad_read
	movq	%rax, 24(%r15,%r12)
	movq	8(%r15,%r12), %rdx
	movq	16(%r15,%r12), %rcx
	movq	(%rdx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movq	%rax, %r8
	callq	_dev_dbg
	cmpq	$0, 16(%r15,%r12)
	je	LBB0_3
## %bb.4:
	leaq	(%r15,%r12), %rax
	addq	$8, %rax
	movl	$1, (%r15,%r12)
	movq	(%rax), %rax
	movq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIDX,4,2                       ## @PIDX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QP%d Peer MSI addr=%x data=%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Using MSI interrupts for QP%d\n"

	.no_dead_strip	_ntb_transport_setup_qp_peer_msi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ntb_transport_setup_qp_peer_msi
_ntb_transport_setup_qp_peer_msi:       ; @ntb_transport_setup_qp_peer_msi
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x1
	ldr	x21, [x0, #16]
	ldp	w8, w0, [x0]
	add	w20, w8, w1, lsl #1
	bl	_ntb_spad_count
	cmp	w20, w0
	b.ge	LBB0_4
; %bb.2:
	mov	w22, w19
	add	x23, x21, x22, lsl #5
	ldr	x0, [x23, #8]!
Lloh0:
	adrp	x24, _PIDX@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PIDX@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x2, x20
	bl	_ntb_peer_spad_read
	str	x0, [x23, #8]
	ldr	x0, [x23]
	ldr	w1, [x24]
	add	w2, w20, #1
	bl	_ntb_peer_spad_read
	mov	x4, x0
	str	x0, [x23, #16]
	ldp	x8, x3, [x23]
	ldr	x0, [x8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_4
; %bb.3:
	lsl	x8, x22, #5
	mov	w9, #1
	str	w9, [x21, x8]
	ldr	x8, [x23]
	ldr	x0, [x8]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dev_info
LBB0_4:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PIDX,4,2                       ; @PIDX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QP%d Peer MSI addr=%x data=%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Using MSI interrupts for QP%d\n"

	.no_dead_strip	_ntb_transport_setup_qp_peer_msi
.subsections_via_symbols
