	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___mlx5_ib_cq_clean             ## -- Begin function __mlx5_ib_cq_clean
	.p2align	4, 0x90
___mlx5_ib_cq_clean:                    ## @__mlx5_ib_cq_clean
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.1:
	movq	%rdx, %r15
	movq	%rdi, %r12
	movl	(%rdi), %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_get_sw_cqe
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r12), %eax
	addl	(%r12), %eax
	cmpl	%eax, %ebx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	jmp	LBB0_2
LBB0_5:
	cmpl	(%r12), %ebx
	jle	LBB0_19
## %bb.6:
	decl	%ebx
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r12), %eax
	leal	-1(%rbx), %ecx
	cmpl	%eax, %ebx
	movl	%ecx, %ebx
	jle	LBB0_17
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %esi
	andl	%ebx, %esi
	movq	%r12, %rdi
	callq	_get_cqe
	xorl	%r14d, %r14d
	cmpl	$64, 4(%r12)
	movq	%rax, %r13
	setne	%r14b
	shlq	$6, %r14
	addq	%rax, %r14
	movq	%r14, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_is_equal_rsn
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	testq	%r15, %r15
	je	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	8(%r14), %edi
	callq	_ntohl
	testl	$16777215, %eax                 ## imm = 0xFFFFFF
	je	LBB0_7
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	4(%r14), %edi
	callq	_be16_to_cpu
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mlx5_ib_free_srq_wqe
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	leal	(%rbx,%rax), %esi
	andl	8(%r12), %esi
	movq	%r12, %rdi
	callq	_get_cqe
	movq	%rax, %rcx
	movl	4(%r12), %edx
	xorl	%r15d, %r15d
	cmpl	$64, %edx
	setne	%r15b
	shlq	$6, %r15
	movq	_MLX5_CQE_OWNER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	andl	(%rcx,%r15), %r14d
	movq	%rcx, %rdi
	movq	%r13, %rsi
	callq	_memcpy
	movq	_MLX5_CQE_OWNER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	andl	(%rcx,%r15), %eax
	orl	%r14d, %eax
	movl	%eax, (%rcx,%r15)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_17:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testl	%ecx, %ecx
	je	LBB0_19
## %bb.18:
	addl	%ecx, %eax
	movl	%eax, (%r12)
	xorl	%eax, %eax
	callq	_wmb
	movq	%r12, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx5_cq_set_ci                 ## TAILCALL
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_CQE_OWNER_MASK,4,2        ## @MLX5_CQE_OWNER_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___mlx5_ib_cq_clean             ; -- Begin function __mlx5_ib_cq_clean
	.p2align	2
___mlx5_ib_cq_clean:                    ; @__mlx5_ib_cq_clean
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	x0, LBB0_17
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w22, [x0]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_get_sw_cqe
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x19, #8]
	add	w8, w9, w8
	cmp	w22, w8
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w22, w22, #1
	b	LBB0_2
LBB0_5:
	ldr	w8, [x19]
	cmp	w22, w8
	b.le	LBB0_17
; %bb.6:
	mov	w24, #0
	sub	w25, w22, #1
Lloh0:
	adrp	x26, _MLX5_CQE_OWNER_MASK@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MLX5_CQE_OWNER_MASK@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w24, w24, #1
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x19]
	sub	w9, w25, #1
	cmp	w25, w8
	mov	x25, x9
	b.le	LBB0_15
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #8]
	and	w1, w8, w25
	mov	x0, x19
	bl	_get_cqe
	mov	x22, x0
	ldr	w8, [x19, #4]
	cmp	w8, #64
	cset	w8, ne
	add	x23, x0, x8, lsl #6
	mov	x0, x23
	mov	x1, x21
	bl	_is_equal_rsn
	cbz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cbz	x20, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x23, #8]
	bl	_ntohl
	tst	w0, #0xffffff
	b.eq	LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x23, #4]
	bl	_be16_to_cpu
	mov	x1, x0
	mov	x0, x20
	bl	_mlx5_ib_free_srq_wqe
	b	LBB0_7
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	cbz	w24, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x19, #8]
	add	w9, w25, w24
	and	w1, w8, w9
	mov	x0, x19
	bl	_get_cqe
	mov	x23, x0
	ldr	w2, [x19, #4]
	cmp	w2, #64
	cset	w8, ne
	lsl	x27, x8, #6
	ldr	w8, [x0, x27]
	ldr	w9, [x26]
	and	w28, w9, w8
	mov	x1, x22
	bl	_memcpy
	ldr	w8, [x23, x27]
	ldr	w9, [x26]
	bic	w8, w8, w9
	orr	w8, w8, w28
	str	w8, [x23, x27]
	b	LBB0_8
LBB0_15:
	cbz	w24, LBB0_17
; %bb.16:
	add	w8, w8, w24
	str	w8, [x19]
	bl	_wmb
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_mlx5_cq_set_ci
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_CQE_OWNER_MASK,4,2        ; @MLX5_CQE_OWNER_MASK
.subsections_via_symbols
