	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_lock_cqs
_mlx5_lock_cqs:                         ## @mlx5_lock_cqs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	callq	_to_mcq
	movq	%rax, %rbx
	movl	(%r14), %edi
	callq	_to_mcq
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	cmpq	%rax, %rbx
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %rcx
	cmpq	(%rax), %rcx
	movq	%rax, %rdi
	cmovlq	%rbx, %rdi
	cmovlq	%rax, %rbx
	addq	$8, %rdi
	callq	_mlx5_spin_lock
	jmp	LBB0_4
LBB0_5:
	testq	%rbx, %rbx
	movq	%rax, %rcx
	cmovneq	%rbx, %rcx
	orq	%rax, %rbx
	movq	%rcx, %rbx
	je	LBB0_6
LBB0_4:
	addq	$8, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mlx5_spin_lock                 ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mlx5_lock_cqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_lock_cqs
_mlx5_lock_cqs:                         ; @mlx5_lock_cqs
	.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, x0
	ldr	w0, [x0, #4]
	bl	_to_mcq
	mov	x19, x0
	ldr	w0, [x20]
	bl	_to_mcq
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_3
; %bb.1:
	orr	x8, x19, x0
	cmp	x19, #0
	csel	x19, x19, x0, ne
	cbnz	x8, LBB0_5
; %bb.2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	cmp	x19, x0
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x19]
	ldr	x9, [x0]
	cmp	x8, x9
	csel	x8, x19, x0, lt
	csel	x19, x0, x19, lt
	add	x0, x8, #8
	bl	_mlx5_spin_lock
LBB0_5:
	add	x0, x19, #8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mlx5_spin_lock
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mlx5_lock_cqs
.subsections_via_symbols
