	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flush_completed_wrs
_flush_completed_wrs:                   ## @flush_completed_wrs
	.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	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdi), %ebx
	cmpl	$-1, %ebx
	jne	LBB0_3
## %bb.1:
	movl	4(%r15), %ebx
LBB0_2:
	movl	%ebx, (%r15)
LBB0_3:
	movl	8(%r15), %eax
	cmpl	%eax, %ebx
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %r12
	movslq	%ebx, %rcx
	leaq	(%rcx,%rcx,2), %r13
	cmpl	$0, 16(%r12,%r13,8)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	12(%r15), %ebx
	movl	$0, %ecx
	cmovel	%ecx, %ebx
	cmpl	%eax, %ebx
	jne	LBB0_5
	jmp	LBB0_9
LBB0_7:
	cmpq	$0, 8(%r12,%r13,8)
	je	LBB0_9
## %bb.8:
	movq	(%r14), %rdx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_debug
	movl	$1, %edi
	callq	_CQE_SWCQE_V
	movl	%eax, %edi
	callq	_htonl
	orl	4(%r12,%r13,8), %eax
	movl	%eax, 4(%r12,%r13,8)
	movq	(%r14), %rcx
	movq	8(%r14), %rdx
	movl	%eax, (%rdx,%rcx,4)
	movq	%r14, %rdi
	callq	_t4_swcq_produce
	movl	$1, (%r12,%r13,8)
	incl	%ebx
	cmpl	12(%r15), %ebx
	movl	$0, %eax
	cmovel	%eax, %ebx
	jmp	LBB0_2
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"moving cqe into swcq sq idx %u cq idx %u\n"

	.no_dead_strip	_flush_completed_wrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flush_completed_wrs
_flush_completed_wrs:                   ; @flush_completed_wrs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	cmn	w8, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x20, #4]
	str	w8, [x20]
LBB0_2:
	ldr	w9, [x20, #8]
	cmp	w8, w9
	b.eq	LBB0_8
; %bb.3:
	mov	w23, #24
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	mov	w24, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w22, #1
	ldr	w10, [x20, #12]
	cmp	w8, w10
	csinc	w8, wzr, w22, eq
	cmp	w8, w9
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x20, #16]
	sxtw	x22, w8
	smaddl	x8, w8, w23, x25
	ldr	w8, [x8, #16]
	cbz	w8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x8, x22, x23, x25
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [x19]
	mov	x0, x21
	mov	x1, x22
	bl	_pr_debug
	mov	w0, #1
	bl	_CQE_SWCQE_V
	bl	_htonl
	madd	x25, x22, x23, x25
	ldr	w8, [x25, #4]
	orr	w8, w8, w0
	str	w8, [x25, #4]
	ldp	x10, x9, [x19]
	str	w8, [x9, x10, lsl #2]
	mov	x0, x19
	bl	_t4_swcq_produce
	str	w24, [x25]
	add	w8, w22, #1
	ldp	w9, w10, [x20, #8]
	cmp	w8, w10
	csinc	w8, wzr, w22, eq
	str	w8, [x20]
	cmp	w8, w9
	b.ne	LBB0_5
LBB0_8:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"moving cqe into swcq sq idx %u cq idx %u\n"

	.no_dead_strip	_flush_completed_wrs
.subsections_via_symbols
