	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c4iw_flush_sq                  ## -- Begin function c4iw_flush_sq
	.p2align	4, 0x90
_c4iw_flush_sq:                         ## @c4iw_flush_sq
	.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	%rdi, %r15
	movl	(%rdi), %edi
	callq	_to_c4iw_cq
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	8(%r15), %r12d
	cmpl	$-1, %r12d
	jne	LBB0_2
## %bb.1:
	movl	12(%r15), %r12d
	movl	%r12d, 8(%r15)
LBB0_2:
	leaq	8(%r15), %r14
	cmpl	16(%r15), %r12d
	jne	LBB0_4
## %bb.3:
	movl	20(%r15), %eax
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_4:
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r13d
	incl	%r12d
	movl	20(%r15), %eax
	cmpl	%eax, %r12d
	movl	$0, %ecx
	cmovel	%ecx, %r12d
	cmpl	16(%r15), %r12d
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	movslq	%r12d, %rcx
	leaq	(%rax,%rcx,4), %rbx
	movl	$1, (%rax,%rcx,4)
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_insert_sq_cqe
	cmpq	%rbx, 24(%r15)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_advance_oldest_read
	jmp	LBB0_7
LBB0_8:
	movl	(%r14), %r12d
LBB0_9:
	addl	%r13d, %r12d
	xorl	%ecx, %ecx
	cmpl	%eax, %r12d
	cmovgel	%eax, %ecx
	subl	%ecx, %r12d
	movl	%r12d, (%r14)
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c4iw_flush_sq                  ; -- Begin function c4iw_flush_sq
	.p2align	2
_c4iw_flush_sq:                         ; @c4iw_flush_sq
	.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	x20, x0
	ldr	w0, [x0]
	bl	_to_c4iw_cq
	mov	x22, x0
	mov	x19, x20
	ldr	w24, [x19, #8]!
	cmn	w24, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	w24, [x20, #12]
	str	w24, [x20, #8]
LBB0_2:
	ldr	w8, [x20, #16]
	cmp	w24, w8
	b.ne	LBB0_4
; %bb.3:
	mov	w21, #0
	ldr	w8, [x20, #20]
	b	LBB0_9
LBB0_4:
	mov	w21, #0
	mov	w25, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w21, w21, #1
	add	w9, w24, #1
	ldp	w10, w8, [x20, #16]
	cmp	w9, w8
	csinc	w24, wzr, w24, eq
	cmp	w24, w10
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	add	x23, x8, w24, sxtw #2
	str	w25, [x23]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_insert_sq_cqe
	ldr	x8, [x20, #24]
	cmp	x8, x23
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_advance_oldest_read
	b	LBB0_5
LBB0_8:
	ldr	w24, [x19]
LBB0_9:
	add	w9, w24, w21
	cmp	w9, w8
	csel	w8, wzr, w8, lt
	sub	w8, w9, w8
	str	w8, [x19]
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
