	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_bind_mw                   ## -- Begin function mlx5_bind_mw
	.p2align	4, 0x90
_mlx5_bind_mw:                          ## @mlx5_bind_mw
	.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	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	8(%rdx), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.5:
	movq	_IBV_ACCESS_ZERO_BASED@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	jne	LBB0_3
## %bb.6:
	callq	_to_mmr
	movl	(%r12), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_3
## %bb.7:
	movq	(%r15), %rax
	movq	8(%rbx), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.8:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	cmpq	$0, 24(%rbx)
	jne	LBB0_3
## %bb.2:
	cmpq	$0, 16(%rbx)
	jne	LBB0_3
## %bb.9:
	movq	_IBV_ACCESS_ZERO_BASED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_10
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_12:
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_IBV_WR_BIND_MW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	$0, -56(%rbp)
	movl	36(%rbx), %eax
	movl	%eax, -60(%rbp)
	movl	32(%rbx), %eax
	movl	%eax, -64(%rbp)
	movups	(%rbx), %xmm0
	movups	16(%rbx), %xmm1
	movaps	%xmm1, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movq	%r15, -104(%rbp)
	movl	8(%r15), %edi
	callq	_ibv_inc_rkey
	movl	%eax, -112(%rbp)
	leaq	-112(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	__mlx5_post_send
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movl	-112(%rbp), %eax
	movl	%eax, 8(%r15)
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_IBV_ACCESS_ZERO_BASED,4,2      ## @IBV_ACCESS_ZERO_BASED
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_IBV_WR_BIND_MW,4,2             ## @IBV_WR_BIND_MW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_bind_mw                   ; -- Begin function mlx5_bind_mw
	.p2align	2
_mlx5_bind_mw:                          ; @mlx5_bind_mw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	str	xzr, [sp, #80]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #48]
	stp	q0, q0, [sp, #16]
	str	xzr, [sp, #8]
	ldr	x0, [x2, #8]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x21]
Lloh0:
	adrp	x22, _IBV_ACCESS_ZERO_BASED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IBV_ACCESS_ZERO_BASED@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.2:
	bl	_to_mmr
	ldr	w8, [x0]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.3:
	ldr	x8, [x19]
	ldr	x9, [x21, #8]
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.4:
Lloh2:
	adrp	x8, _EPERM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
	ldr	x8, [x21, #24]
	cbnz	x8, LBB0_8
; %bb.6:
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_8
; %bb.7:
	ldr	w8, [x21]
Lloh4:
	adrp	x9, _IBV_ACCESS_ZERO_BASED@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IBV_ACCESS_ZERO_BASED@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
LBB0_8:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	str	w0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_11:
Lloh12:
	adrp	x8, _IBV_WR_BIND_MW@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IBV_WR_BIND_MW@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #80]
	str	xzr, [sp, #72]
	ldr	d0, [x21, #32]
	str	d0, [sp, #64]
	ldp	q0, q1, [x21]
	stp	q0, q1, [sp, #32]
	str	x19, [sp, #24]
	ldr	w0, [x19, #8]
	bl	_ibv_inc_rkey
	str	w0, [sp, #16]
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x0, x20
	bl	__mlx5_post_send
	cbnz	w0, LBB0_10
; %bb.12:
	ldr	w8, [sp, #16]
	str	w8, [x19, #8]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_IBV_ACCESS_ZERO_BASED,4,2      ; @IBV_ACCESS_ZERO_BASED
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_IBV_WR_BIND_MW,4,2             ; @IBV_WR_BIND_MW
.subsections_via_symbols
