	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cq_res_start_move_to
_cq_res_start_move_to:                  ## @cq_res_start_move_to
	.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	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %r12
	callq	_mlx4_priv
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_mlx4_tlock
	movl	%eax, %edi
	callq	_spin_lock_irq
	movq	_RES_CQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	(%rbx), %rdi
	movl	%r14d, %esi
	callq	_res_tracker_lookup
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpl	%r13d, (%r14)
	jne	LBB0_3
## %bb.4:
	movq	_RES_CQ_ALLOCATED@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	cmpl	%r15d, %ecx
	jne	LBB0_9
## %bb.5:
	movq	8(%r14), %rax
	movq	_RES_CQ_HW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	addq	$24, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_3:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.12:
	negl	%ebx
	jmp	LBB0_15
LBB0_9:
	movl	%r15d, %edx
	movq	_RES_CQ_HW@GOTPCREL(%rip), %rsi
	movq	_EINVAL@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rsi)
	jne	LBB0_11
## %bb.10:
	cmpq	%rcx, 8(%r14)
	jne	LBB0_11
LBB0_13:
	movl	8(%r14), %eax
	movl	%eax, 16(%r14)
	movl	%r15d, 20(%r14)
	movq	_RES_CQ_BUSY@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, 8(%r14)
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%r14, (%rax)
LBB0_15:
	movq	%r12, %rdi
	callq	_mlx4_tlock
	movl	%eax, %edi
	callq	_spin_unlock_irq
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_RES_CQ,8,3                     ## @RES_CQ
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_RES_CQ_ALLOCATED,4,2           ## @RES_CQ_ALLOCATED
	.comm	_RES_CQ_HW,8,3                  ## @RES_CQ_HW
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_RES_CQ_BUSY,4,2                ## @RES_CQ_BUSY
	.no_dead_strip	_cq_res_start_move_to
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cq_res_start_move_to
_cq_res_start_move_to:                  ; @cq_res_start_move_to
	.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	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_mlx4_priv
	mov	x24, x0
	mov	x0, x19
	bl	_mlx4_tlock
	bl	_spin_lock_irq
	ldr	x8, [x24]
Lloh0:
	adrp	x9, _RES_CQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RES_CQ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	mov	x1, x22
	bl	_res_tracker_lookup
	mov	x22, x0
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w8, [x22]
	cmp	w8, w23
	b.ne	LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _RES_CQ_ALLOCATED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RES_CQ_ALLOCATED@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	cmp	w8, w21
	b.ne	LBB0_8
; %bb.3:
	ldr	x8, [x22, #8]
Lloh6:
	adrp	x9, _RES_CQ_HW@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RES_CQ_HW@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.4:
	add	x0, x22, #24
	bl	_atomic_read
	cbz	x0, LBB0_12
; %bb.5:
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cbnz	w8, LBB0_11
	b	LBB0_12
LBB0_6:
Lloh12:
	adrp	x8, _ENOENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cbnz	w8, LBB0_11
	b	LBB0_12
LBB0_7:
Lloh15:
	adrp	x8, _EPERM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cbnz	w8, LBB0_11
	b	LBB0_12
LBB0_8:
Lloh18:
	adrp	x9, _RES_CQ_HW@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RES_CQ_HW@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, w21, uxtw
	b.ne	LBB0_10
; %bb.9:
	ldr	x9, [x22, #8]
	cmp	x9, x8
	b.eq	LBB0_12
LBB0_10:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cbz	w8, LBB0_12
LBB0_11:
	neg	w21, w8
	b	LBB0_14
LBB0_12:
	ldr	x8, [x22, #8]
	stp	w8, w21, [x22, #16]
Lloh24:
	adrp	x8, _RES_CQ_BUSY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RES_CQ_BUSY@GOTPAGEOFF]
Lloh26:
	ldrsw	x8, [x8]
	str	x8, [x22, #8]
	mov	w21, #0
	cbz	x20, LBB0_14
; %bb.13:
	str	x22, [x20]
LBB0_14:
	mov	x0, x19
	bl	_mlx4_tlock
	bl	_spin_unlock_irq
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_RES_CQ,8,3                     ; @RES_CQ
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_RES_CQ_ALLOCATED,4,2           ; @RES_CQ_ALLOCATED
	.comm	_RES_CQ_HW,8,3                  ; @RES_CQ_HW
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_RES_CQ_BUSY,4,2                ; @RES_CQ_BUSY
	.no_dead_strip	_cq_res_start_move_to
.subsections_via_symbols
