	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_cmd_trigger_completions   ## -- Begin function mlx5_cmd_trigger_completions
	.p2align	4, 0x90
_mlx5_cmd_trigger_completions:          ## @mlx5_cmd_trigger_completions
	.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
	movq	%rdi, %r15
	callq	_mlx5_eq_synchronize_cmd_irq
	leaq	12(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movb	8(%r15), %cl
	movl	$1, %eax
	shlq	%cl, %rax
	movq	$-1, %rbx
	movl	%eax, %ecx
	shlq	%cl, %rbx
	orq	(%r15), %rbx
	cmpq	$-1, %rbx
	je	LBB0_2
## %bb.1:
	notq	%rbx
	movq	_MLX5_TRIGGERED_CMD_COMP@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_mlx5_core_dbg
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx5_cmd_comp_handler          ## TAILCALL
LBB0_2:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_TRIGGERED_CMD_COMP,8,3    ## @MLX5_TRIGGERED_CMD_COMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vector 0x%llx\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_cmd_trigger_completions   ; -- Begin function mlx5_cmd_trigger_completions
	.p2align	2
_mlx5_cmd_trigger_completions:          ; @mlx5_cmd_trigger_completions
	.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, x0
	bl	_mlx5_eq_synchronize_cmd_irq
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19]
	ldr	w9, [x19, #8]
	mov	w10, #1
	lsl	x9, x10, x9
	mov	x10, #-1
	lsl	x9, x10, x9
	orr	x8, x9, x8
	cmn	x8, #1
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _MLX5_TRIGGERED_CMD_COMP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX5_TRIGGERED_CMD_COMP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	orn	x21, x9, x8
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_mlx5_core_dbg
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	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
	b	_mlx5_cmd_comp_handler
LBB0_2:
	mov	x0, x20
	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
	b	_spin_unlock_irqrestore
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_TRIGGERED_CMD_COMP,8,3    ; @MLX5_TRIGGERED_CMD_COMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vector 0x%llx\n"

.subsections_via_symbols
