	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_rdma_read
_i40iw_rdma_read:                       ## @i40iw_rdma_read
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	-52(%rbp), %rsi
	movl	$1, %edi
	callq	_i40iw_fragcnt_to_wqesize_sq
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_1
LBB0_8:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	-52(%rbp), %edx
	movl	12(%r12), %r8d
	movl	16(%r12), %ecx
	leaq	-76(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_i40iw_qp_get_next_send_wqe
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	16(%r12), %rbx
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	20(%r12), %edi
	movq	_I40IWQPSQ_FRAG_TO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	movq	%r15, %rdi
	movl	$16, %esi
	movl	%eax, %edx
	callq	_set_64bit_val
	movl	24(%r12), %edi
	movq	_I40IWQPSQ_REMSTAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	movl	%eax, %r13d
	testl	%r14d, %r14d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	jne	LBB0_4
## %bb.5:
	movq	_I40IWQP_OP_RDMA_READ@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	_I40IW_ERR_QP_TOOMANY_WRS_POSTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_8
LBB0_4:
	movq	_I40IWQP_OP_RDMA_READ_LOC_INV@GOTPCREL(%rip), %rax
LBB0_6:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	(%rax), %edi
	movq	_I40IWQPSQ_OPCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	movl	%eax, %r14d
	movl	4(%r12), %edi
	movq	_I40IWQPSQ_READFENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	orl	%eax, %r13d
	movq	_I40IWQPSQ_LOCALFENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_LS_64
	orl	%eax, %r13d
	movl	8(%r12), %edi
	movq	_I40IWQPSQ_SIGCOMPL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	orl	%eax, %r13d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edi
	movq	_I40IWQPSQ_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	orl	%eax, %r13d
	orl	%r14d, %r13d
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_i40iw_set_fragment
	xorl	%eax, %eax
	callq	_wmb
	movq	%rbx, %rdi
	movl	$24, %esi
	movl	%r13d, %edx
	callq	_set_64bit_val
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_i40iw_qp_post_wr
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_ERR_QP_TOOMANY_WRS_POSTED,4,2 ## @I40IW_ERR_QP_TOOMANY_WRS_POSTED
	.comm	_I40IWQPSQ_FRAG_TO,4,2          ## @I40IWQPSQ_FRAG_TO
	.comm	_I40IWQPSQ_REMSTAG,4,2          ## @I40IWQPSQ_REMSTAG
	.comm	_I40IWQP_OP_RDMA_READ_LOC_INV,4,2 ## @I40IWQP_OP_RDMA_READ_LOC_INV
	.comm	_I40IWQP_OP_RDMA_READ,4,2       ## @I40IWQP_OP_RDMA_READ
	.comm	_I40IWQPSQ_OPCODE,4,2           ## @I40IWQPSQ_OPCODE
	.comm	_I40IWQPSQ_READFENCE,4,2        ## @I40IWQPSQ_READFENCE
	.comm	_I40IWQPSQ_LOCALFENCE,4,2       ## @I40IWQPSQ_LOCALFENCE
	.comm	_I40IWQPSQ_SIGCOMPL,4,2         ## @I40IWQPSQ_SIGCOMPL
	.comm	_I40IWQPSQ_VALID,4,2            ## @I40IWQPSQ_VALID
	.no_dead_strip	_i40iw_rdma_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_rdma_read
_i40iw_rdma_read:                       ; @i40iw_rdma_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x24, x2
	mov	x22, x1
	mov	x19, x0
	add	x1, sp, #8
	mov	w0, #1
	bl	_i40iw_fragcnt_to_wqesize_sq
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	w2, [sp, #8]
	ldp	w4, w3, [x22, #12]
	add	x1, sp, #12
	mov	x0, x19
	bl	_i40iw_qp_get_next_send_wqe
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	add	x23, x22, #16
	ldr	w25, [x22]
	ldr	w0, [x22, #20]
Lloh0:
	adrp	x8, _I40IWQPSQ_FRAG_TO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IWQPSQ_FRAG_TO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_LS_64
	mov	x2, x0
	mov	x0, x21
	mov	w1, #16
	bl	_set_64bit_val
	ldr	w0, [x22, #24]
Lloh3:
	adrp	x8, _I40IWQPSQ_REMSTAG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40IWQPSQ_REMSTAG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_LS_64
	mov	x26, x0
Lloh6:
	adrp	x8, _I40IWQP_OP_RDMA_READ_LOC_INV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40IWQP_OP_RDMA_READ_LOC_INV@GOTPAGEOFF]
Lloh8:
	adrp	x9, _I40IWQP_OP_RDMA_READ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _I40IWQP_OP_RDMA_READ@GOTPAGEOFF]
	cmp	w24, #0
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _I40IWQPSQ_OPCODE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _I40IWQPSQ_OPCODE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w24, w0, w26
	ldr	w0, [x22, #4]
Lloh13:
	adrp	x8, _I40IWQPSQ_READFENCE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _I40IWQPSQ_READFENCE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w24, w24, w0
Lloh16:
	adrp	x8, _I40IWQPSQ_LOCALFENCE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _I40IWQPSQ_LOCALFENCE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_LS_64
	orr	w24, w24, w0
	ldr	w0, [x22, #8]
Lloh19:
	adrp	x8, _I40IWQPSQ_SIGCOMPL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _I40IWQPSQ_SIGCOMPL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w22, w24, w0
	ldr	w0, [x19]
Lloh22:
	adrp	x8, _I40IWQPSQ_VALID@GOTPAGE
Lloh23:
	ldr	x8, [x8, _I40IWQPSQ_VALID@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w22, w22, w0
	mov	x0, x21
	mov	w1, #0
	mov	x2, x23
	bl	_i40iw_set_fragment
	bl	_wmb
	mov	x0, x21
	mov	w1, #24
	mov	x2, x22
	bl	_set_64bit_val
	cbz	w20, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_i40iw_qp_post_wr
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh25:
	adrp	x8, _I40IW_ERR_QP_TOOMANY_WRS_POSTED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _I40IW_ERR_QP_TOOMANY_WRS_POSTED@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_ERR_QP_TOOMANY_WRS_POSTED,4,2 ; @I40IW_ERR_QP_TOOMANY_WRS_POSTED
	.comm	_I40IWQPSQ_FRAG_TO,4,2          ; @I40IWQPSQ_FRAG_TO
	.comm	_I40IWQPSQ_REMSTAG,4,2          ; @I40IWQPSQ_REMSTAG
	.comm	_I40IWQP_OP_RDMA_READ_LOC_INV,4,2 ; @I40IWQP_OP_RDMA_READ_LOC_INV
	.comm	_I40IWQP_OP_RDMA_READ,4,2       ; @I40IWQP_OP_RDMA_READ
	.comm	_I40IWQPSQ_OPCODE,4,2           ; @I40IWQPSQ_OPCODE
	.comm	_I40IWQPSQ_READFENCE,4,2        ; @I40IWQPSQ_READFENCE
	.comm	_I40IWQPSQ_LOCALFENCE,4,2       ; @I40IWQPSQ_LOCALFENCE
	.comm	_I40IWQPSQ_SIGCOMPL,4,2         ; @I40IWQPSQ_SIGCOMPL
	.comm	_I40IWQPSQ_VALID,4,2            ; @I40IWQPSQ_VALID
	.no_dead_strip	_i40iw_rdma_read
.subsections_via_symbols
