	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function umr_check_mkey_mask
_umr_check_mkey_mask:                   ## @umr_check_mkey_mask
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_MLX5_MKEY_MASK_PAGE_SIZE@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	movq	_umr_modify_entity_size_disabled@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_GEN
	testq	%rax, %rax
	jne	LBB0_4
LBB0_2:
	movq	_MLX5_MKEY_MASK_A@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	testl	%r15d, (%rax)
	je	LBB0_5
## %bb.3:
	movl	(%r14), %edi
	movq	_umr_modify_atomic_disabled@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_GEN
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_MKEY_MASK_PAGE_SIZE,4,2   ## @MLX5_MKEY_MASK_PAGE_SIZE
	.comm	_umr_modify_entity_size_disabled,4,2 ## @umr_modify_entity_size_disabled
	.comm	_MLX5_MKEY_MASK_A,4,2           ## @MLX5_MKEY_MASK_A
	.comm	_umr_modify_atomic_disabled,4,2 ## @umr_modify_atomic_disabled
	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_umr_check_mkey_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function umr_check_mkey_mask
_umr_check_mkey_mask:                   ; @umr_check_mkey_mask
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MLX5_MKEY_MASK_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_MKEY_MASK_PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _umr_modify_entity_size_disabled@GOTPAGE
Lloh4:
	ldr	x8, [x8, _umr_modify_entity_size_disabled@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_MLX5_CAP_GEN
	cbnz	x0, LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _MLX5_MKEY_MASK_A@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX5_MKEY_MASK_A@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.3:
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _umr_modify_atomic_disabled@GOTPAGE
Lloh10:
	ldr	x8, [x8, _umr_modify_atomic_disabled@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_MLX5_CAP_GEN
	cbz	x0, LBB0_6
LBB0_4:
Lloh12:
	adrp	x8, _EPERM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_MKEY_MASK_PAGE_SIZE,4,2   ; @MLX5_MKEY_MASK_PAGE_SIZE
	.comm	_umr_modify_entity_size_disabled,4,2 ; @umr_modify_entity_size_disabled
	.comm	_MLX5_MKEY_MASK_A,4,2           ; @MLX5_MKEY_MASK_A
	.comm	_umr_modify_atomic_disabled,4,2 ; @umr_modify_atomic_disabled
	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_umr_check_mkey_mask
.subsections_via_symbols
