	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_reg_wr
_set_reg_wr:                            ## @set_reg_wr
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	12(%rsi), %edi
	callq	_to_mmr
	movq	%rax, %rbx
	movl	8(%r15), %edi
	callq	_to_mpd
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edi
	callq	_to_mdev
	movq	%rax, %r13
	movl	4(%rbx), %eax
	addl	(%rbx), %eax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	imull	8(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_MLX5_IB_SQ_UMR_INLINE_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_IB_ACCESS_REMOTE_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	(%r14), %r12d
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_mlx5_ib_can_use_umr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rbx
	movq	_IB_SEND_INLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	8(%r14), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	4(%rbx), %edi
	callq	_to_mdev
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_mlx5_ib_warn
	jmp	LBB0_4
LBB0_1:
	movl	4(%r15), %edi
	callq	_to_mdev
	movq	%rax, %r14
	movl	(%r13), %edi
	movq	_umr_modify_entity_size_disabled@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_GEN
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_mlx5_ib_warn
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_5:
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.6:
	movq	_MLX5_UMR_CHECK_NOT_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_7:
	xorl	%edx, %edx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	jg	LBB0_9
## %bb.8:
	movq	_MLX5_UMR_INLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_9:
	orl	%ecx, %edx
	movq	(%r13), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %ecx
	callq	_set_reg_umr_seg
	addq	$4, (%r13)
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_handle_post_send_edge
	movq	(%r13), %rdi
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	movq	%r15, %r14
	movq	%r12, %r15
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_set_reg_mkey_seg
	addq	$4, (%r13)
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r15, %rcx
	callq	_handle_post_send_edge
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	cmpl	-44(%rbp), %r9d                 ## 4-byte Folded Reload
	jle	LBB0_10
## %bb.11:
	movq	(%r13), %rdi
	movq	%r12, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_set_reg_data_seg
	addq	$4, (%r13)
	jmp	LBB0_12
LBB0_10:
	movl	12(%r12), %r8d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_memcpy_send_wqe
	movl	(%r14), %edi
	movq	_MLX5_SEND_WQE_BB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	sarl	$4, %esi
	callq	_ALIGN
	movl	%eax, (%r14)
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_IB_SQ_UMR_INLINE_THRESHOLD,4,2 ## @MLX5_IB_SQ_UMR_INLINE_THRESHOLD
	.comm	_IB_ACCESS_REMOTE_ATOMIC,4,2    ## @IB_ACCESS_REMOTE_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fast update of %s for MR is disabled\n"

	.comm	_umr_modify_entity_size_disabled,4,2 ## @umr_modify_entity_size_disabled
L_.str.1:                               ## @.str.1
	.asciz	"entity size"

L_.str.2:                               ## @.str.2
	.asciz	"atomic access"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_SEND_INLINE,4,2             ## @IB_SEND_INLINE
L_.str.3:                               ## @.str.3
	.asciz	"Invalid IB_SEND_INLINE send flag\n"

	.comm	_MLX5_UMR_CHECK_NOT_FREE,4,2    ## @MLX5_UMR_CHECK_NOT_FREE
	.comm	_MLX5_UMR_INLINE,4,2            ## @MLX5_UMR_INLINE
	.comm	_MLX5_SEND_WQE_BB,4,2           ## @MLX5_SEND_WQE_BB
	.no_dead_strip	_set_reg_wr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_reg_wr
_set_reg_wr:                            ; @set_reg_wr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w5, [sp, #28]                   ; 4-byte Folded Spill
	stp	x4, x3, [sp, #32]               ; 16-byte Folded Spill
	mov	x20, x2
	mov	x25, x1
	mov	x22, x0
	ldr	w0, [x1, #12]
	bl	_to_mmr
	mov	x23, x0
	ldr	w0, [x22, #8]
	bl	_to_mpd
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	ldr	w0, [x0]
	bl	_to_mdev
	mov	x26, x0
	ldp	w19, w21, [x23]
	ldr	w27, [x23, #8]
Lloh0:
	adrp	x8, _MLX5_IB_SQ_UMR_INLINE_THRESHOLD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_IB_SQ_UMR_INLINE_THRESHOLD@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	ldr	w8, [x25]
Lloh3:
	adrp	x9, _IB_ACCESS_REMOTE_ATOMIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_ACCESS_REMOTE_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w28, w9, w8
	mov	x1, x28
	bl	_mlx5_ib_can_use_umr
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x25, #8]
Lloh6:
	adrp	x9, _IB_SEND_INLINE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_SEND_INLINE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x22, #4]
	bl	_to_mdev
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_3:
	ldr	w0, [x22, #4]
	bl	_to_mdev
	mov	x19, x0
	ldr	w0, [x26]
Lloh11:
	adrp	x8, _umr_modify_entity_size_disabled@GOTPAGE
Lloh12:
	ldr	x8, [x8, _umr_modify_entity_size_disabled@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_MLX5_CAP_GEN
Lloh14:
	adrp	x8, l_.str.1@PAGE
Lloh15:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh16:
	adrp	x9, l_.str.2@PAGE
Lloh17:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
LBB0_4:
	bl	_mlx5_ib_warn
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
	add	w8, w21, w19
	mul	w26, w8, w27
Lloh23:
	adrp	x8, _MLX5_UMR_CHECK_NOT_FREE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MLX5_UMR_CHECK_NOT_FREE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _MLX5_UMR_INLINE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MLX5_UMR_INLINE@GOTPAGEOFF]
	ldr	w10, [sp, #28]                  ; 4-byte Folded Reload
	cmp	w10, #0
	csel	w8, wzr, w8, eq
Lloh28:
	ldr	w9, [x9]
	cmp	w26, w24
	csel	w9, wzr, w9, gt
	orr	w2, w9, w8
	ldr	x0, [x20]
	mov	x1, x23
	mov	x3, x28
	bl	_set_reg_umr_seg
	ldr	x8, [x20]
	add	x8, x8, #4
	str	x8, [x20]
	ldp	x21, x19, [sp, #32]             ; 16-byte Folded Reload
	ldr	w2, [x19]
	mov	x0, x22
	mov	x1, x20
	mov	x3, x21
	bl	_handle_post_send_edge
	ldr	x0, [x20]
	ldp	w3, w2, [x25]
	mov	x1, x23
	bl	_set_reg_mkey_seg
	ldr	x8, [x20]
	add	x8, x8, #4
	str	x8, [x20]
	ldr	w2, [x19]
	mov	x0, x22
	mov	x1, x20
	mov	x3, x21
	bl	_handle_post_send_edge
	cmp	w26, w24
	b.le	LBB0_8
; %bb.7:
	ldr	x0, [x20]
	mov	x1, x23
	ldr	x2, [sp, #16]                   ; 8-byte Folded Reload
	bl	_set_reg_data_seg
	mov	w0, #0
	ldr	x8, [x20]
	add	x8, x8, #4
	str	x8, [x20]
	b	LBB0_5
LBB0_8:
	ldr	w4, [x23, #12]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	x5, x26
	bl	_memcpy_send_wqe
	ldr	w0, [x19]
Lloh29:
	adrp	x8, _MLX5_SEND_WQE_BB@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MLX5_SEND_WQE_BB@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	asr	w1, w8, #4
	bl	_ALIGN
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_IB_SQ_UMR_INLINE_THRESHOLD,4,2 ; @MLX5_IB_SQ_UMR_INLINE_THRESHOLD
	.comm	_IB_ACCESS_REMOTE_ATOMIC,4,2    ; @IB_ACCESS_REMOTE_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fast update of %s for MR is disabled\n"

	.comm	_umr_modify_entity_size_disabled,4,2 ; @umr_modify_entity_size_disabled
l_.str.1:                               ; @.str.1
	.asciz	"entity size"

l_.str.2:                               ; @.str.2
	.asciz	"atomic access"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_SEND_INLINE,4,2             ; @IB_SEND_INLINE
l_.str.3:                               ; @.str.3
	.asciz	"Invalid IB_SEND_INLINE send flag\n"

	.comm	_MLX5_UMR_CHECK_NOT_FREE,4,2    ; @MLX5_UMR_CHECK_NOT_FREE
	.comm	_MLX5_UMR_INLINE,4,2            ; @MLX5_UMR_INLINE
	.comm	_MLX5_SEND_WQE_BB,4,2           ; @MLX5_SEND_WQE_BB
	.no_dead_strip	_set_reg_wr
.subsections_via_symbols
