	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_cmd_comp_handler
_mlx5_cmd_comp_handler:                 ## @mlx5_cmd_comp_handler
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, %eax
	movq	%rax, -80(%rbp)
	cmpl	$31, (%rdi)
	jne	LBB0_1
LBB0_31:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	leaq	24(%rdi), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	20(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	-80(%rbp), %r12
	xorl	%r13d, %r13d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %edi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_up
LBB0_30:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	(%rbx), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	incq	%r13
	cltq
	cmpq	%rax, %r13
	jge	LBB0_31
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_30
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %rax
	movq	(%rax,%r13,8), %r14
	movq	_MLX5_CMD_ENT_STATE_PENDING_COMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	108(%r14), %rsi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 56(%r14)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	104(%r14), %rdi
	callq	_cancel_delayed_work
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 96(%r14)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmoveq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	callq	_ktime_get_ns
	movq	%rax, 72(%r14)
	movq	32(%r14), %rax
	movq	88(%r14), %rcx
	movl	(%rax), %edi
	movl	4(%rcx), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_dump_command
	cmpl	$0, (%r14)
	je	LBB0_9
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 56(%r14)
	je	LBB0_28
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	72(%r14), %r12
	movq	8(%r14), %r15
	movq	64(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %r15
	jae	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	subl	-56(%rbp), %r12d                ## 4-byte Folded Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r15
	movq	8(%r14), %rax
	leaq	(%rax,%rax,2), %rbx
	leaq	(%r15,%rbx,4), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	addl	%r12d, 8(%r15,%rbx,4)
	incl	4(%r15,%rbx,4)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	56(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	48(%r14), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	(%r14), %r15d
	testl	%r15d, %r15d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	40(%r14), %edi
	movq	32(%r14), %rsi
	movl	44(%r14), %edx
	callq	_mlx5_copy_from_msg
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r14), %rax
	movl	(%rax), %esi
	movl	40(%r14), %edx
	movq	%rbx, %rdi
	callq	_mlx5_cmd_check
	movl	%eax, %r15d
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r14), %rsi
	movq	%rbx, %rdi
	callq	_mlx5_free_cmd_msg
	movq	24(%r14), %rsi
	movq	%rbx, %rdi
	callq	_free_msg
	testl	%r15d, %r15d
	leaq	-80(%rbp), %r12
	je	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_27
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_30
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	80(%r14), %edx
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_mlx5_core_err
	movl	80(%r14), %esi
	movq	%rbx, %rdi
	callq	_free_ent
	movq	%r14, %rdi
	callq	_free_cmd
	jmp	LBB0_30
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	cmpl	$0, 16(%rbx)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_verify_signature
	movl	%eax, %r15d
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, (%r14)
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movq	_MLX5_TRIGGERED_CMD_COMP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_MLX5_DRIVER_STATUS_ABORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_14
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r14), %r15d
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_27
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_free_cmd
	jmp	LBB0_27
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	88(%r14), %rax
	movl	(%rax), %edi
	sarl	%edi
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%edi, 4(%r14)
	callq	_deliv_status_to_str
	movl	4(%r14), %r8d
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_mlx5_core_dbg
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	80(%r14), %esi
	movq	%rbx, %rdi
	callq	_free_ent
	cmpq	$0, 56(%r14)
	jne	LBB0_18
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_complete
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_CMD_ENT_STATE_PENDING_COMP,4,2 ## @MLX5_CMD_ENT_STATE_PENDING_COMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Command completion arrived after timeout (entry idx = %d).\n"

	.comm	_MLX5_TRIGGERED_CMD_COMP,4,2    ## @MLX5_TRIGGERED_CMD_COMP
	.comm	_MLX5_DRIVER_STATUS_ABORTED,4,2 ## @MLX5_DRIVER_STATUS_ABORTED
L_.str.1:                               ## @.str.1
	.asciz	"command completed. ret 0x%x, delivery status %s(0x%x)\n"

	.no_dead_strip	_mlx5_cmd_comp_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_cmd_comp_handler
_mlx5_cmd_comp_handler:                 ; @mlx5_cmd_comp_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	w1, [sp, #4]                    ; 4-byte Folded Spill
	mov	w8, w1
	str	x8, [sp, #24]
	ldr	w8, [x0]
	cmp	w8, #31
	b.ne	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_2:
	mov	x19, x2
	mov	x21, x0
	mov	x22, #0
	add	x9, x0, #24
	add	x8, x0, #20
	stp	x8, x9, [sp, #8]                ; 16-byte Folded Spill
Lloh0:
	adrp	x24, _MLX5_CMD_ENT_STATE_PENDING_COMP@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MLX5_CMD_ENT_STATE_PENDING_COMP@GOTPAGEOFF]
	mov	w20, #1
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
	mov	x1, x27
	blr	x23
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x26
	bl	_up
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	ldr	w8, [x21]
	lsl	w8, w20, w8
	cmp	x22, w8, sxtw
	b.ge	LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #24
	mov	x0, x22
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, #32]
	ldr	x25, [x8, x22, lsl #3]
	ldr	w0, [x24]
	add	x1, x25, #108
	bl	_test_and_clear_bit
	cbz	w0, LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25, #56]
	cbz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, x25, #104
	bl	_cancel_delayed_work
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25, #96]
	cmp	x8, #0
	ldp	x9, x8, [sp, #8]                ; 16-byte Folded Reload
	csel	x26, x9, x8, eq
	bl	_ktime_get_ns
	str	x0, [x25, #72]
	ldr	x8, [x25, #32]
	ldr	w0, [x8]
	ldr	x8, [x25, #88]
	ldr	w1, [x8, #4]
	mov	w2, #4
	bl	_memcpy
	mov	x0, x21
	mov	x1, x25
	mov	w2, #0
	bl	_dump_command
	ldr	w8, [x25]
	cbz	w8, LBB0_22
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	cbz	w19, LBB0_31
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25, #56]
	cbz	x8, LBB0_32
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	x27, x23, [x25, #64]
	ldr	x28, [x25, #8]
	ldr	x0, [x21, #8]
	bl	_ARRAY_SIZE
	cmp	x28, x0
	b.hs	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	w23, w23, w27
	ldr	x8, [x21, #8]
	ldr	x9, [x25, #8]
	mov	w10, #12
	madd	x27, x9, x10, x8
	mov	x0, x27
	bl	_spin_lock_irqsave
	ldp	w9, w8, [x27, #4]
	add	w8, w8, w23
	add	w9, w9, #1
	stp	w9, w8, [x27, #4]
	mov	x0, x27
	bl	_spin_unlock_irqrestore
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	x27, x23, [x25, #48]
	ldr	w28, [x25]
	cbnz	w28, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x25, #32]
	ldp	w0, w2, [x25, #40]
	bl	_mlx5_copy_from_msg
	mov	x28, x0
	cbnz	w0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25, #24]
	ldr	w1, [x8]
	ldr	w2, [x25, #40]
	mov	x0, x21
	bl	_mlx5_cmd_check
	mov	x28, x0
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x25, #32]
	mov	x0, x21
	bl	_mlx5_free_cmd_msg
	ldr	x1, [x25, #24]
	mov	x0, x21
	bl	_free_msg
	cbz	w28, LBB0_24
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w19, LBB0_3
	b	LBB0_25
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w19, LBB0_5
; %bb.21:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [x25, #80]
	mov	x0, x21
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_mlx5_core_err
	ldr	w1, [x25, #80]
	mov	x0, x21
	bl	_free_ent
	mov	x0, x25
	bl	_free_cmd
	b	LBB0_5
LBB0_22:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21, #16]
	cbz	w8, LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w27, #0
	b	LBB0_27
LBB0_24:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w28, [x25, #4]
	cbnz	w19, LBB0_3
LBB0_25:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	bl	_free_cmd
	b	LBB0_3
LBB0_26:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	bl	_verify_signature
	mov	x27, x0
LBB0_27:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w27, [x25]
Lloh4:
	adrp	x8, _MLX5_TRIGGERED_CMD_COMP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MLX5_TRIGGERED_CMD_COMP@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	tst	w8, w9
	b.eq	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh7:
	adrp	x8, _MLX5_DRIVER_STATUS_ABORTED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MLX5_DRIVER_STATUS_ABORTED@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25, #88]
	ldr	w8, [x8]
	asr	w0, w8, #1
LBB0_30:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w0, [x25, #4]
	bl	_deliv_status_to_str
	mov	x3, x0
	ldr	w4, [x25, #4]
	mov	x0, x21
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x27
	bl	_mlx5_core_dbg
	cbnz	w19, LBB0_12
LBB0_31:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x25, #80]
	mov	x0, x21
	bl	_free_ent
	ldr	x8, [x25, #56]
	cbnz	x8, LBB0_13
LBB0_32:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, x25, #16
	bl	_complete
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_CMD_ENT_STATE_PENDING_COMP,4,2 ; @MLX5_CMD_ENT_STATE_PENDING_COMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Command completion arrived after timeout (entry idx = %d).\n"

	.comm	_MLX5_TRIGGERED_CMD_COMP,4,2    ; @MLX5_TRIGGERED_CMD_COMP
	.comm	_MLX5_DRIVER_STATUS_ABORTED,4,2 ; @MLX5_DRIVER_STATUS_ABORTED
l_.str.1:                               ; @.str.1
	.asciz	"command completed. ret 0x%x, delivery status %s(0x%x)\n"

	.no_dead_strip	_mlx5_cmd_comp_handler
.subsections_via_symbols
