	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_ib_check_mr_status        ## -- Begin function mlx5_ib_check_mr_status
	.p2align	4, 0x90
_mlx5_ib_check_mr_status:               ## @mlx5_ib_check_mr_status
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r13
	callq	_to_mmr
	movq	%rax, %r15
	movq	_IB_MR_CHECK_SIG_STATUS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	notl	%eax
	testl	%ebx, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	$0, (%r14)
	xorl	%r12d, %r12d
	testl	%ebx, (%rdx)
	je	LBB0_10
## %bb.3:
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.5:
	movl	$1, (%rsi)
	cmpl	$0, 4(%rsi)
	je	LBB0_10
## %bb.6:
	movq	8(%rsi), %rax
	cmpq	%rax, (%r13)
	jne	LBB0_8
## %bb.7:
	addq	$8, %rsi
	leaq	8(%r14), %rdi
	movq	%rdx, %rbx
	movl	$24, %edx
	callq	_memcpy
	movq	%rbx, %rdx
	movq	(%r15), %rsi
	movl	(%r14), %eax
	jmp	LBB0_9
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_10
LBB0_8:
	movq	_IB_SIG_BAD_GUARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%r14)
	movq	$0, 16(%r14)
	movq	%rax, 8(%r14)
	xorl	%eax, %eax
LBB0_9:
	movl	$0, 4(%rsi)
	orl	(%rdx), %eax
	movl	%eax, (%r14)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MR_CHECK_SIG_STATUS,4,2     ## @IB_MR_CHECK_SIG_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid status check mask\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"signature status check requested on a non-signature enabled MR\n"

	.comm	_IB_SIG_BAD_GUARD,4,2           ## @IB_SIG_BAD_GUARD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_ib_check_mr_status        ; -- Begin function mlx5_ib_check_mr_status
	.p2align	2
_mlx5_ib_check_mr_status:               ; @mlx5_ib_check_mr_status
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x22, x1
	mov	x21, x0
	bl	_to_mmr
Lloh0:
	adrp	x23, _IB_MR_CHECK_SIG_STATUS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IB_MR_CHECK_SIG_STATUS@GOTPAGEOFF]
	ldr	w8, [x23]
	bics	wzr, w22, w8
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_11
LBB0_2:
	str	wzr, [x19]
	ldr	w8, [x23]
	tst	w8, w22
	b.eq	LBB0_7
; %bb.3:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.4:
	mov	w9, #1
	str	w9, [x8]
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_7
; %bb.5:
	ldr	x9, [x21]
	mov	x1, x8
	ldr	x10, [x1, #8]!
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.6:
	add	x0, x19, #8
	mov	w2, #24
	bl	_memcpy
	ldr	x8, [x20]
	ldr	w9, [x19]
	b	LBB0_10
LBB0_7:
	mov	w20, #0
	b	LBB0_11
LBB0_8:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	b	LBB0_11
LBB0_9:
	mov	w9, #0
Lloh12:
	adrp	x11, _IB_SIG_BAD_GUARD@GOTPAGE
Lloh13:
	ldr	x11, [x11, _IB_SIG_BAD_GUARD@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	str	w11, [x19, #24]
	stp	x10, xzr, [x19, #8]
LBB0_10:
	mov	w20, #0
	str	wzr, [x8, #4]
	ldr	w8, [x23]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MR_CHECK_SIG_STATUS,4,2     ; @IB_MR_CHECK_SIG_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid status check mask\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"signature status check requested on a non-signature enabled MR\n"

	.comm	_IB_SIG_BAD_GUARD,4,2           ; @IB_SIG_BAD_GUARD
.subsections_via_symbols
