	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_clean_cq                 ## -- Begin function i40iw_clean_cq
	.p2align	4, 0x90
_i40iw_clean_cq:                        ## @i40iw_clean_cq
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	8(%rsi), %rbx
	movl	(%rsi), %r15d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rbx
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	testq	%rbx, %rbx
	sete	%al
	xorl	%eax, %r15d
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 32(%r12)
	leaq	(,%rbx,4), %r13
	addq	24(%r12), %r13
	movq	%r13, %rdi
	movl	$24, %esi
	leaq	-56(%rbp), %rdx
	callq	_get_64bit_val
	movq	-56(%rbp), %rdi
	movq	_I40IW_CQ_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RS_64
	cmpl	%eax, %r15d
	jne	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movl	$8, %esi
	leaq	-48(%rbp), %rdx
	callq	_get_64bit_val
	cmpq	%r14, -48(%rbp)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movl	$8, %esi
	xorl	%edx, %edx
	callq	_set_64bit_val
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	movq	16(%r12), %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ebx
	jmp	LBB0_7
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_CQ_VALID,4,2             ## @I40IW_CQ_VALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_clean_cq                 ; -- Begin function i40iw_clean_cq
	.p2align	2
_i40iw_clean_cq:                        ; @i40iw_clean_cq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
	ldr	x23, [x1, #8]
	ldr	w22, [x1]
Lloh0:
	adrp	x24, _I40IW_CQ_VALID@GOTPAGE
Lloh1:
	ldr	x24, [x24, _I40IW_CQ_VALID@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x23, #1
	ldr	x9, [x19, #16]
	udiv	x10, x8, x9
	msub	x23, x10, x9, x8
	cmp	x23, #0
	cset	w8, eq
	eor	w22, w22, w8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	x8, [x19, #24]
	add	x21, x8, x23, lsl #2
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #24
	bl	_get_64bit_val
	ldr	x0, [sp, #8]
	ldr	w1, [x24]
	bl	_RS_64
	cmp	w22, w0
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x2, sp
	mov	x0, x21
	mov	w1, #8
	bl	_get_64bit_val
	ldr	x8, [sp]
	cmp	x8, x20
	b.ne	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	mov	w1, #8
	mov	w2, #0
	bl	_set_64bit_val
	b	LBB0_1
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_CQ_VALID,4,2             ; @I40IW_CQ_VALID
.subsections_via_symbols
