	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_swcqes
_fill_swcqes:                           ## @fill_swcqes
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r12d, %r12d
	cmpl	$0, (%rsi)
	je	LBB0_8
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	4(%rsi), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rsi
	callq	_fill_cqe
	testq	%rax, %rax
	je	LBB0_2
LBB0_7:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_8
LBB0_2:
	cmpl	$1, (%rbx)
	je	LBB0_8
## %bb.3:
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	jle	LBB0_5
## %bb.4:
	decq	%rdx
	jmp	LBB0_6
LBB0_5:
	movl	16(%rbx), %edx
	decl	%edx
LBB0_6:
	addq	$4, %r14
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_fill_cqe
	testq	%rax, %rax
	jne	LBB0_7
LBB0_8:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"swcq_idx"

	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.no_dead_strip	_fill_swcqes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_swcqes
_fill_swcqes:                           ; @fill_swcqes
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x1]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w2, [x1, #4]
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
	mov	x1, x20
	bl	_fill_cqe
	cbz	x0, LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
	ldr	w8, [x21]
	cmp	w8, #1
	b.ne	LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x8, [x21, #8]
	subs	x2, x8, #1
	b.ge	LBB0_8
; %bb.7:
	ldr	w8, [x21, #16]
	sub	w2, w8, #1
LBB0_8:
	add	x1, x20, #4
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_fill_cqe
	cbnz	x0, LBB0_2
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"swcq_idx"

	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.no_dead_strip	_fill_swcqes
.subsections_via_symbols
