	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_cmd_check
_mlx5_cmd_check:                        ## @mlx5_cmd_check
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rax
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rax, %rdi
	callq	_mlx5_cmd_mbox_status
	cmpl	$0, -44(%rbp)
	je	LBB0_1
## %bb.2:
	movq	_mbox_in@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_MLX5_GET
	movq	%rax, %r12
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_MLX5_GET
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_MLX5_GET
	movq	%rax, %rbx
	movq	_MLX5_CMD_OP_DESTROY_MKEY@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r12, %rdi
	callq	_mlx5_command_str
	movl	%eax, %r13d
	movl	-44(%rbp), %edi
	callq	_cmd_status_str
	movl	-44(%rbp), %r10d
	movl	-48(%rbp), %r11d
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.3:
	cmpq	%r15, %r12
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	movq	%r12, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	%eax, %r9d
	pushq	%r11
	pushq	%r10
	callq	_mlx5_core_err_rl
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	movq	%r12, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	%eax, %r9d
	pushq	%r11
	pushq	%r10
	callq	_mlx5_core_dbg
LBB0_6:
	addq	$16, %rsp
	movl	-44(%rbp), %edi
	callq	_cmd_status_to_err
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mbox_in,4,2                    ## @mbox_in
	.comm	_MLX5_CMD_OP_DESTROY_MKEY,8,3   ## @MLX5_CMD_OP_DESTROY_MKEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s(0x%x) op_mod(0x%x) failed, status %s(0x%x), syndrome (0x%x)\n"

	.no_dead_strip	_mlx5_cmd_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_cmd_check
_mlx5_cmd_check:                        ; @mlx5_cmd_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x8, x2
	mov	x22, x1
	mov	x19, x0
	add	x1, sp, #8
	add	x2, sp, #12
	mov	x0, x8
	bl	_mlx5_cmd_mbox_status
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x23, _mbox_in@GOTPAGE
Lloh1:
	ldr	x23, [x23, _mbox_in@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x22
	bl	_MLX5_GET
	mov	x20, x0
	ldr	w0, [x23]
	mov	x1, x22
	bl	_MLX5_GET
	mov	x21, x0
	ldr	w0, [x23]
	mov	x1, x22
	bl	_MLX5_GET
	mov	x23, x0
Lloh2:
	adrp	x8, _MLX5_CMD_OP_DESTROY_MKEY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MLX5_CMD_OP_DESTROY_MKEY@GOTPAGEOFF]
Lloh4:
	ldr	x24, [x8]
	mov	x0, x20
	bl	_mlx5_command_str
	mov	x22, x0
	ldr	w0, [sp, #8]
	bl	_cmd_status_str
	mov	x5, x0
	ldp	w6, w7, [sp, #8]
	cmp	x23, #0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	mov	x3, x20
	mov	x4, x21
	ccmp	x20, x24, #4, eq
	b.ne	LBB0_4
; %bb.2:
	bl	_mlx5_core_dbg
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	bl	_mlx5_core_err_rl
LBB0_5:
	ldr	w0, [sp, #8]
	bl	_cmd_status_to_err
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mbox_in,4,2                    ; @mbox_in
	.comm	_MLX5_CMD_OP_DESTROY_MKEY,8,3   ; @MLX5_CMD_OP_DESTROY_MKEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s(0x%x) op_mod(0x%x) failed, status %s(0x%x), syndrome (0x%x)\n"

	.no_dead_strip	_mlx5_cmd_check
.subsections_via_symbols
