	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_umr_mkey_seg
_set_umr_mkey_seg:                      ## @set_umr_mkey_seg
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%rcx, %r15
	movq	(%r9), %rbx
	movzbl	%dl, %eax
	movq	_IBV_MW_TYPE_1@GOTPCREL(%rip), %rcx
	movl	$-256, %edi
	cmpl	%esi, (%rcx)
	je	LBB0_2
## %bb.1:
	shll	$8, %r8d
	cmpq	$0, 8(%r15)
	movl	$-256, %edi
	cmovnel	%r8d, %edi
LBB0_2:
	orl	%eax, %edi
	movq	16(%rbp), %r12
	callq	_htobe32
	movl	%eax, 28(%rbx)
	cmpq	$0, 8(%r15)
	je	LBB0_16
## %bb.3:
	movl	$0, 24(%rbx)
	movq	$0, (%rbx)
	movl	(%r15), %eax
	movq	_IBV_ACCESS_LOCAL_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.5:
	movq	_MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_LOCAL_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rbx)
	jmp	LBB0_6
LBB0_16:
	movq	_MLX5_WQE_MKEY_CONTEXT_FREE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_17
LBB0_4:
	xorl	%ecx, %ecx
LBB0_6:
	movq	_IBV_ACCESS_REMOTE_WRITE@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_8
## %bb.7:
	movq	_MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_REMOTE_WRITE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 24(%rbx)
LBB0_8:
	movq	_IBV_ACCESS_REMOTE_READ@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_10
## %bb.9:
	movq	_MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_REMOTE_READ@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 24(%rbx)
LBB0_10:
	movq	_IBV_ACCESS_REMOTE_ATOMIC@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_12
## %bb.11:
	movq	_MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_ATOMIC@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 24(%rbx)
LBB0_12:
	movq	_IBV_ACCESS_ZERO_BASED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_14:
	movq	16(%r15), %rdi
	callq	_htobe64
LBB0_15:
	movq	%rax, 16(%rbx)
	movq	8(%r15), %rdi
	callq	_htobe64
	movq	%rax, 8(%rbx)
LBB0_17:
	addq	$32, (%r14)
	addl	$2, (%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IBV_MW_TYPE_1,4,2              ## @IBV_MW_TYPE_1
	.comm	_IBV_ACCESS_LOCAL_WRITE,4,2     ## @IBV_ACCESS_LOCAL_WRITE
	.comm	_MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_LOCAL_WRITE,4,2 ## @MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_LOCAL_WRITE
	.comm	_IBV_ACCESS_REMOTE_WRITE,4,2    ## @IBV_ACCESS_REMOTE_WRITE
	.comm	_MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_REMOTE_WRITE,4,2 ## @MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_REMOTE_WRITE
	.comm	_IBV_ACCESS_REMOTE_READ,4,2     ## @IBV_ACCESS_REMOTE_READ
	.comm	_MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_REMOTE_READ,4,2 ## @MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_REMOTE_READ
	.comm	_IBV_ACCESS_REMOTE_ATOMIC,4,2   ## @IBV_ACCESS_REMOTE_ATOMIC
	.comm	_MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_ATOMIC,4,2 ## @MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_ATOMIC
	.comm	_IBV_ACCESS_ZERO_BASED,4,2      ## @IBV_ACCESS_ZERO_BASED
	.comm	_MLX5_WQE_MKEY_CONTEXT_FREE,8,3 ## @MLX5_WQE_MKEY_CONTEXT_FREE
	.no_dead_strip	_set_umr_mkey_seg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_umr_mkey_seg
_set_umr_mkey_seg:                      ; @set_umr_mkey_seg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x6
	mov	x20, x5
	mov	x21, x3
	ldr	x22, [x5]
	and	w8, w2, #0xff
Lloh0:
	adrp	x9, _IBV_MW_TYPE_1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IBV_MW_TYPE_1@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x9]
	mov	w9, #-256
	cmp	w10, w1
	b.eq	LBB0_2
; %bb.1:
	ldr	x10, [x21, #8]
	lsl	w11, w4, #8
	cmp	x10, #0
	csel	w9, w9, w11, eq
LBB0_2:
	orr	w0, w9, w8
	bl	_htobe32
	str	w0, [x22, #28]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_5
; %bb.3:
	str	wzr, [x22, #24]
	str	xzr, [x22]
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _IBV_ACCESS_LOCAL_WRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IBV_ACCESS_LOCAL_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
Lloh6:
	adrp	x9, _MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_LOCAL_WRITE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_LOCAL_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x22, #24]
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x8, _MLX5_WQE_MKEY_CONTEXT_FREE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX5_WQE_MKEY_CONTEXT_FREE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x22]
	b	LBB0_17
LBB0_6:
	mov	w9, #0
LBB0_7:
Lloh12:
	adrp	x10, _IBV_ACCESS_REMOTE_WRITE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IBV_ACCESS_REMOTE_WRITE@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_9
; %bb.8:
Lloh15:
	adrp	x10, _MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_REMOTE_WRITE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_REMOTE_WRITE@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x22, #24]
LBB0_9:
Lloh18:
	adrp	x10, _IBV_ACCESS_REMOTE_READ@GOTPAGE
Lloh19:
	ldr	x10, [x10, _IBV_ACCESS_REMOTE_READ@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_11
; %bb.10:
Lloh21:
	adrp	x10, _MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_REMOTE_READ@GOTPAGE
Lloh22:
	ldr	x10, [x10, _MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_REMOTE_READ@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x22, #24]
LBB0_11:
Lloh24:
	adrp	x10, _IBV_ACCESS_REMOTE_ATOMIC@GOTPAGE
Lloh25:
	ldr	x10, [x10, _IBV_ACCESS_REMOTE_ATOMIC@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_13
; %bb.12:
Lloh27:
	adrp	x10, _MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_ATOMIC@GOTPAGE
Lloh28:
	ldr	x10, [x10, _MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_ATOMIC@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x22, #24]
LBB0_13:
Lloh30:
	adrp	x9, _IBV_ACCESS_ZERO_BASED@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IBV_ACCESS_ZERO_BASED@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
	mov	x0, #0
	b	LBB0_16
LBB0_15:
	ldr	x0, [x21, #16]
	bl	_htobe64
LBB0_16:
	str	x0, [x22, #16]
	ldr	x0, [x21, #8]
	bl	_htobe64
	str	x0, [x22, #8]
LBB0_17:
	ldr	x8, [x20]
	add	x8, x8, #32
	str	x8, [x20]
	ldr	w8, [x19]
	add	w8, w8, #2
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_IBV_MW_TYPE_1,4,2              ; @IBV_MW_TYPE_1
	.comm	_IBV_ACCESS_LOCAL_WRITE,4,2     ; @IBV_ACCESS_LOCAL_WRITE
	.comm	_MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_LOCAL_WRITE,4,2 ; @MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_LOCAL_WRITE
	.comm	_IBV_ACCESS_REMOTE_WRITE,4,2    ; @IBV_ACCESS_REMOTE_WRITE
	.comm	_MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_REMOTE_WRITE,4,2 ; @MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_REMOTE_WRITE
	.comm	_IBV_ACCESS_REMOTE_READ,4,2     ; @IBV_ACCESS_REMOTE_READ
	.comm	_MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_REMOTE_READ,4,2 ; @MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_REMOTE_READ
	.comm	_IBV_ACCESS_REMOTE_ATOMIC,4,2   ; @IBV_ACCESS_REMOTE_ATOMIC
	.comm	_MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_ATOMIC,4,2 ; @MLX5_WQE_MKEY_CONTEXT_ACCESS_FLAGS_ATOMIC
	.comm	_IBV_ACCESS_ZERO_BASED,4,2      ; @IBV_ACCESS_ZERO_BASED
	.comm	_MLX5_WQE_MKEY_CONTEXT_FREE,8,3 ; @MLX5_WQE_MKEY_CONTEXT_FREE
	.no_dead_strip	_set_umr_mkey_seg
.subsections_via_symbols
