	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_inline_send
_i40iw_inline_send:                     ## @i40iw_inline_send
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	24(%rsi), %edi
	movq	_I40IW_MAX_INLINE_DATA_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jle	LBB0_2
## %bb.1:
	movq	_I40IW_ERR_INVALID_INLINE_DATA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_12
LBB0_2:
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %r13
	leaq	-56(%rbp), %rsi
	callq	_i40iw_inline_data_size_to_wqesize
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	-56(%rbp), %edx
	movl	16(%r13), %r8d
	movl	24(%r13), %ecx
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	_i40iw_qp_get_next_send_wqe
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	(%r13), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_I40IWQPSQ_REMSTAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_LS_64
	movl	%eax, %ebx
	movl	4(%r13), %edi
	movq	_I40IWQPSQ_OPCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	movl	%eax, %r12d
	orl	%ebx, %r12d
	movl	24(%r13), %edi
	movq	_I40IWQPSQ_INLINEDATALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	movl	%eax, %ebx
	movq	_I40IWQPSQ_INLINEDATAFLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	callq	_LS_64
	movl	%eax, %r15d
	orl	%ebx, %r15d
	orl	%r12d, %r15d
	xorl	%edi, %edi
	cmpq	$0, 16(%r14)
	setne	%dil
	movq	_I40IWQPSQ_PUSHWQE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	movl	%eax, %r12d
	movq	_I40IWQPSQ_READFENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_LS_64
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movl	8(%r13), %edi
	movq	_I40IWQPSQ_LOCALFENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	movq	%r14, %r12
	movl	%eax, %r14d
	orl	%ebx, %r14d
	orl	%r15d, %r14d
	movl	12(%r13), %edi
	movq	_I40IWQPSQ_SIGCOMPL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	movl	%eax, %ebx
	movq	%r12, %r15
	movl	(%r12), %edi
	movq	_I40IWQPSQ_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	movl	%eax, %r12d
	orl	%ebx, %r12d
	orl	%r14d, %r12d
	movq	32(%r13), %rbx
	movl	24(%r13), %edx
	cmpl	$16, %edx
	jg	LBB0_7
## %bb.6:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	jmp	LBB0_8
LBB0_4:
	movq	_I40IW_ERR_QP_TOOMANY_WRS_POSTED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_12
LBB0_7:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_memcpy
	addq	$64, %rbx
	movq	%r14, %rdi
	subq	$-128, %rdi
	movl	24(%r13), %edx
	addl	$-16, %edx
LBB0_8:
	movq	%rbx, %rsi
	callq	_memcpy
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wmb
	movq	%r14, %rdi
	movl	$24, %esi
	movl	%r12d, %edx
	callq	_set_64bit_val
	movq	%r14, %rsi
	movq	%r15, %r14
	cmpq	$0, 16(%r15)
	je	LBB0_10
## %bb.9:
	movl	-44(%rbp), %edi
	shll	$5, %edi
	andl	$96, %edi
	addq	8(%r14), %rdi
	movl	24(%r13), %eax
	leal	16(%rax), %ecx
	cmpl	$17, %eax
	movl	$32, %edx
	cmovgel	%ecx, %edx
	callq	_memcpy
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	callq	_i40iw_qp_ring_push_db
	jmp	LBB0_12
LBB0_10:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_i40iw_qp_post_wr
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_MAX_INLINE_DATA_SIZE,4,2 ## @I40IW_MAX_INLINE_DATA_SIZE
	.comm	_I40IW_ERR_INVALID_INLINE_DATA_SIZE,4,2 ## @I40IW_ERR_INVALID_INLINE_DATA_SIZE
	.comm	_I40IW_ERR_QP_TOOMANY_WRS_POSTED,4,2 ## @I40IW_ERR_QP_TOOMANY_WRS_POSTED
	.comm	_I40IWQPSQ_REMSTAG,4,2          ## @I40IWQPSQ_REMSTAG
	.comm	_I40IWQPSQ_OPCODE,4,2           ## @I40IWQPSQ_OPCODE
	.comm	_I40IWQPSQ_INLINEDATALEN,4,2    ## @I40IWQPSQ_INLINEDATALEN
	.comm	_I40IWQPSQ_INLINEDATAFLAG,4,2   ## @I40IWQPSQ_INLINEDATAFLAG
	.comm	_I40IWQPSQ_PUSHWQE,4,2          ## @I40IWQPSQ_PUSHWQE
	.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_inline_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_inline_send
_i40iw_inline_send:                     ; @i40iw_inline_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x1, #24]
Lloh0:
	adrp	x8, _I40IW_MAX_INLINE_DATA_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_MAX_INLINE_DATA_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _I40IW_ERR_INVALID_INLINE_DATA_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40IW_ERR_INVALID_INLINE_DATA_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_2:
	mov	x21, x3
	mov	x23, x2
	mov	x20, x1
	add	x1, sp, #8
	bl	_i40iw_inline_data_size_to_wqesize
	cbnz	w0, LBB0_13
; %bb.3:
	ldr	w2, [sp, #8]
	ldr	w3, [x20, #24]
	ldr	w4, [x20, #16]
	add	x1, sp, #12
	mov	x0, x19
	bl	_i40iw_qp_get_next_send_wqe
	cbz	x0, LBB0_6
; %bb.4:
	mov	x22, x0
	ldr	w24, [x20]
Lloh6:
	adrp	x8, _I40IWQPSQ_REMSTAG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40IWQPSQ_REMSTAG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_LS_64
	mov	x23, x0
	ldr	w0, [x20, #4]
Lloh9:
	adrp	x8, _I40IWQPSQ_OPCODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I40IWQPSQ_OPCODE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w23, w0, w23
	ldr	w0, [x20, #24]
Lloh12:
	adrp	x8, _I40IWQPSQ_INLINEDATALEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I40IWQPSQ_INLINEDATALEN@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w23, w23, w0
Lloh15:
	adrp	x8, _I40IWQPSQ_INLINEDATAFLAG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I40IWQPSQ_INLINEDATAFLAG@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w0, #1
	bl	_LS_64
	orr	w23, w23, w0
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, ne
Lloh18:
	adrp	x8, _I40IWQPSQ_PUSHWQE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _I40IWQPSQ_PUSHWQE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w23, w23, w0
Lloh21:
	adrp	x8, _I40IWQPSQ_READFENCE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _I40IWQPSQ_READFENCE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_LS_64
	orr	w23, w23, w0
	ldr	w0, [x20, #8]
Lloh24:
	adrp	x8, _I40IWQPSQ_LOCALFENCE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _I40IWQPSQ_LOCALFENCE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w23, w23, w0
	ldr	w0, [x20, #12]
Lloh27:
	adrp	x8, _I40IWQPSQ_SIGCOMPL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _I40IWQPSQ_SIGCOMPL@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w23, w23, w0
	ldr	w0, [x19]
Lloh30:
	adrp	x8, _I40IWQPSQ_VALID@GOTPAGE
Lloh31:
	ldr	x8, [x8, _I40IWQPSQ_VALID@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	bl	_LS_64
	orr	w23, w23, w0
	ldr	x24, [x20, #32]
	ldr	w2, [x20, #24]
	mov	x0, x22
	cmp	w2, #16
	b.gt	LBB0_7
; %bb.5:
	mov	x1, x24
	b	LBB0_8
LBB0_6:
Lloh33:
	adrp	x8, _I40IW_ERR_QP_TOOMANY_WRS_POSTED@GOTPAGE
Lloh34:
	ldr	x8, [x8, _I40IW_ERR_QP_TOOMANY_WRS_POSTED@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_7:
	mov	x1, x24
	mov	w2, #16
	bl	_memcpy
	add	x1, x24, #64
	add	x0, x22, #128
	ldr	w8, [x20, #24]
	sub	w2, w8, #16
LBB0_8:
	bl	_memcpy
	bl	_wmb
	mov	x0, x22
	mov	w1, #24
	mov	x2, x23
	bl	_set_64bit_val
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	x8, [x19, #8]
	ldr	w9, [sp, #12]
	lsl	w9, w9, #5
	and	x9, x9, #0x60
	add	x0, x8, x9
	ldr	w8, [x20, #24]
	add	w9, w8, #16
	mov	w10, #32
	cmp	w8, #16
	csel	w2, w9, w10, gt
	mov	x1, x22
	bl	_memcpy
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_i40iw_qp_ring_push_db
	b	LBB0_12
LBB0_10:
	cbz	w21, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_i40iw_qp_post_wr
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_MAX_INLINE_DATA_SIZE,4,2 ; @I40IW_MAX_INLINE_DATA_SIZE
	.comm	_I40IW_ERR_INVALID_INLINE_DATA_SIZE,4,2 ; @I40IW_ERR_INVALID_INLINE_DATA_SIZE
	.comm	_I40IW_ERR_QP_TOOMANY_WRS_POSTED,4,2 ; @I40IW_ERR_QP_TOOMANY_WRS_POSTED
	.comm	_I40IWQPSQ_REMSTAG,4,2          ; @I40IWQPSQ_REMSTAG
	.comm	_I40IWQPSQ_OPCODE,4,2           ; @I40IWQPSQ_OPCODE
	.comm	_I40IWQPSQ_INLINEDATALEN,4,2    ; @I40IWQPSQ_INLINEDATALEN
	.comm	_I40IWQPSQ_INLINEDATAFLAG,4,2   ; @I40IWQPSQ_INLINEDATAFLAG
	.comm	_I40IWQPSQ_PUSHWQE,4,2          ; @I40IWQPSQ_PUSHWQE
	.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_inline_send
.subsections_via_symbols
