	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_mw_bind
_i40iw_mw_bind:                         ## @i40iw_mw_bind
	.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
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	(%rsi), %r15d
	movl	12(%rsi), %r8d
	movq	_I40IW_QP_WQE_MIN_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-60(%rbp), %rsi
	xorl	%ecx, %ecx
	callq	_i40iw_qp_get_next_send_wqe
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	48(%r12), %rdx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_set_64bit_val
	movl	16(%r12), %edi
	movq	_I40IWQPSQ_PARENTMRSTAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	movl	20(%r12), %edi
	movq	_I40IWQPSQ_MWSTAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	orq	%rax, %rbx
	movq	%r13, %rdi
	movl	$8, %esi
	movq	%rbx, %rdx
	callq	_set_64bit_val
	movq	24(%r12), %rdx
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_set_64bit_val
	movq	_I40IW_OP_TYPE_BIND_MW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_I40IWQPSQ_OPCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	movl	%r15d, %r14d
	movq	%rax, %r15
	movl	32(%r12), %eax
	movl	36(%r12), %edi
	shll	$2, %eax
	shll	$3, %edi
	orl	%eax, %edi
	movq	_I40IWQPSQ_STAGRIGHTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	orq	%rax, %r15
	movq	40(%r12), %rax
	movq	_I40IW_ADDR_TYPE_VA_BASED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	movq	_I40IWQPSQ_VABASEDTO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	movq	%rax, %rbx
	movl	4(%r12), %edi
	movq	_I40IWQPSQ_READFENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	orq	%rax, %r15
	orq	%rbx, %r15
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	_I40IWQPSQ_LOCALFENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_LS_64
	movq	%rax, %r14
	movl	8(%r12), %edi
	movq	_I40IWQPSQ_SIGCOMPL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	orq	%rax, %r14
	movl	(%rbx), %edi
	movq	_I40IWQPSQ_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LS_64
	orq	%rax, %r14
	orq	%r15, %r14
	xorl	%eax, %eax
	callq	_wmb
	movq	%r13, %rdi
	movl	$24, %esi
	movq	%r14, %rdx
	callq	_set_64bit_val
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_i40iw_qp_post_wr
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_I40IW_ERR_QP_TOOMANY_WRS_POSTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_QP_WQE_MIN_SIZE,4,2      ## @I40IW_QP_WQE_MIN_SIZE
	.comm	_I40IW_ERR_QP_TOOMANY_WRS_POSTED,4,2 ## @I40IW_ERR_QP_TOOMANY_WRS_POSTED
	.comm	_I40IWQPSQ_PARENTMRSTAG,4,2     ## @I40IWQPSQ_PARENTMRSTAG
	.comm	_I40IWQPSQ_MWSTAG,4,2           ## @I40IWQPSQ_MWSTAG
	.comm	_I40IW_OP_TYPE_BIND_MW,4,2      ## @I40IW_OP_TYPE_BIND_MW
	.comm	_I40IWQPSQ_OPCODE,4,2           ## @I40IWQPSQ_OPCODE
	.comm	_I40IWQPSQ_STAGRIGHTS,4,2       ## @I40IWQPSQ_STAGRIGHTS
	.comm	_I40IW_ADDR_TYPE_VA_BASED,8,3   ## @I40IW_ADDR_TYPE_VA_BASED
	.comm	_I40IWQPSQ_VABASEDTO,4,2        ## @I40IWQPSQ_VABASEDTO
	.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_mw_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_mw_bind
_i40iw_mw_bind:                         ; @i40iw_mw_bind
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w23, [x1]
Lloh0:
	adrp	x8, _I40IW_QP_WQE_MIN_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_QP_WQE_MIN_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	ldr	w4, [x1, #12]
	add	x1, sp, #12
	mov	w3, #0
	bl	_i40iw_qp_get_next_send_wqe
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	x2, [x22, #48]
	mov	w1, #0
	bl	_set_64bit_val
	ldr	w0, [x22, #16]
Lloh3:
	adrp	x8, _I40IWQPSQ_PARENTMRSTAG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40IWQPSQ_PARENTMRSTAG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_LS_64
	mov	x24, x0
	ldr	w0, [x22, #20]
Lloh6:
	adrp	x8, _I40IWQPSQ_MWSTAG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40IWQPSQ_MWSTAG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_LS_64
	orr	x2, x0, x24
	mov	x0, x21
	mov	w1, #8
	bl	_set_64bit_val
	ldr	x2, [x22, #24]
	mov	x0, x21
	mov	w1, #16
	bl	_set_64bit_val
Lloh9:
	adrp	x8, _I40IW_OP_TYPE_BIND_MW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I40IW_OP_TYPE_BIND_MW@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _I40IWQPSQ_OPCODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I40IWQPSQ_OPCODE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_LS_64
	mov	x24, x0
	ldp	w8, w9, [x22, #32]
	lsl	w9, w9, #3
	orr	w0, w9, w8, lsl #2
Lloh15:
	adrp	x8, _I40IWQPSQ_STAGRIGHTS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I40IWQPSQ_STAGRIGHTS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_LS_64
	orr	x24, x0, x24
	ldr	x8, [x22, #40]
Lloh18:
	adrp	x9, _I40IW_ADDR_TYPE_VA_BASED@GOTPAGE
Lloh19:
	ldr	x9, [x9, _I40IW_ADDR_TYPE_VA_BASED@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
Lloh21:
	adrp	x8, _I40IWQPSQ_VABASEDTO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _I40IWQPSQ_VABASEDTO@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_LS_64
	orr	x24, x24, x0
	ldr	w0, [x22, #4]
Lloh24:
	adrp	x8, _I40IWQPSQ_READFENCE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _I40IWQPSQ_READFENCE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_LS_64
	orr	x24, x24, x0
Lloh27:
	adrp	x8, _I40IWQPSQ_LOCALFENCE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _I40IWQPSQ_LOCALFENCE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_LS_64
	orr	x23, x24, x0
	ldr	w0, [x22, #8]
Lloh30:
	adrp	x8, _I40IWQPSQ_SIGCOMPL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _I40IWQPSQ_SIGCOMPL@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	bl	_LS_64
	orr	x22, x23, x0
	ldr	w0, [x19]
Lloh33:
	adrp	x8, _I40IWQPSQ_VALID@GOTPAGE
Lloh34:
	ldr	x8, [x8, _I40IWQPSQ_VALID@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	bl	_LS_64
	orr	x22, x22, x0
	bl	_wmb
	mov	x0, x21
	mov	w1, #24
	mov	x2, x22
	bl	_set_64bit_val
	cbz	w20, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_i40iw_qp_post_wr
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh36:
	adrp	x8, _I40IW_ERR_QP_TOOMANY_WRS_POSTED@GOTPAGE
Lloh37:
	ldr	x8, [x8, _I40IW_ERR_QP_TOOMANY_WRS_POSTED@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
LBB0_5:
	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	Lloh33, Lloh34, Lloh35
	.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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_QP_WQE_MIN_SIZE,4,2      ; @I40IW_QP_WQE_MIN_SIZE
	.comm	_I40IW_ERR_QP_TOOMANY_WRS_POSTED,4,2 ; @I40IW_ERR_QP_TOOMANY_WRS_POSTED
	.comm	_I40IWQPSQ_PARENTMRSTAG,4,2     ; @I40IWQPSQ_PARENTMRSTAG
	.comm	_I40IWQPSQ_MWSTAG,4,2           ; @I40IWQPSQ_MWSTAG
	.comm	_I40IW_OP_TYPE_BIND_MW,4,2      ; @I40IW_OP_TYPE_BIND_MW
	.comm	_I40IWQPSQ_OPCODE,4,2           ; @I40IWQPSQ_OPCODE
	.comm	_I40IWQPSQ_STAGRIGHTS,4,2       ; @I40IWQPSQ_STAGRIGHTS
	.comm	_I40IW_ADDR_TYPE_VA_BASED,8,3   ; @I40IW_ADDR_TYPE_VA_BASED
	.comm	_I40IWQPSQ_VABASEDTO,4,2        ; @I40IWQPSQ_VABASEDTO
	.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_mw_bind
.subsections_via_symbols
