	.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
	subq	$24, %rsp
	.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, -64(%rbp)                 ## 8-byte Spill
	movl	8(%r15), %ebx
	cmpl	$-1, %ebx
	jne	LBB0_2
## %bb.1:
	movl	12(%r15), %ebx
	movl	%ebx, 8(%r15)
LBB0_2:
	leaq	8(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpl	16(%r15), %ebx
	setge	%dil
	callq	_BUG_ON
	cmpl	20(%r15), %ebx
	jne	LBB0_4
## %bb.3:
	movl	16(%r15), %eax
	xorl	%ecx, %ecx
	jmp	LBB0_9
LBB0_4:
	xorl	%edx, %edx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	incl	%edx
	incl	%ebx
	movl	16(%r15), %eax
	cmpl	%eax, %ebx
	movl	$0, %ecx
	cmovel	%ecx, %ebx
	cmpl	20(%r15), %ebx
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	32(%r15), %r14
	movslq	%ebx, %r12
	shlq	$4, %r12
	leaq	(%r14,%r12), %r13
	movl	(%r14,%r12), %edi
	callq	_BUG_ON
	movl	$1, (%r14,%r12)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_insert_sq_cqe
	cmpq	%r13, 24(%r15)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r14,%r12), %rax
	xorl	%edi, %edi
	movq	_FW_RI_READ_REQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_BUG_ON
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_advance_oldest_read
	jmp	LBB0_7
LBB0_8:
	movzwl	%dx, %ecx
LBB0_9:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addl	(%rsi), %ecx
	xorl	%edx, %edx
	cmpl	%eax, %ecx
	cmovgel	%eax, %edx
	subl	%edx, %ecx
	movl	%ecx, (%rsi)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_RI_READ_REQ,8,3             ## @FW_RI_READ_REQ
.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	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
	mov	x20, x0
	ldr	w0, [x0]
	bl	_to_c4iw_cq
	mov	x21, x0
	mov	x19, x20
	ldr	w22, [x19, #8]!
	cmn	w22, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	w22, [x20, #12]
	str	w22, [x20, #8]
LBB0_2:
	ldr	w8, [x20, #16]
	cmp	w22, w8
	cset	w0, ge
	bl	_BUG_ON
	ldr	w8, [x20, #20]
	cmp	w22, w8
	b.ne	LBB0_4
; %bb.3:
	mov	w9, #0
	ldr	w8, [x20, #16]
	b	LBB0_9
LBB0_4:
	mov	w23, #0
	mov	w24, #1
Lloh0:
	adrp	x25, _FW_RI_READ_REQ@GOTPAGE
Lloh1:
	ldr	x25, [x25, _FW_RI_READ_REQ@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w23, w23, #1
	add	w9, w26, #1
	ldp	w8, w10, [x20, #16]
	cmp	w9, w8
	csinc	w22, wzr, w26, eq
	cmp	w22, w10
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x20, #32]
	sxtw	x26, w22
	add	x22, x27, w22, sxtw #4
	ldr	w0, [x22]
	bl	_BUG_ON
	str	w24, [x22]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_insert_sq_cqe
	ldr	x8, [x20, #24]
	cmp	x8, x22
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x27, x26, lsl #4
	ldr	x8, [x8, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	cset	w0, ne
	bl	_BUG_ON
	mov	x0, x19
	bl	_advance_oldest_read
	b	LBB0_5
LBB0_8:
	and	w9, w23, #0xffff
LBB0_9:
	ldr	w10, [x19]
	add	w9, w10, w9
	cmp	w9, w8
	csel	w8, wzr, w8, lt
	sub	w8, w9, w8
	str	w8, [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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_RI_READ_REQ,8,3             ; @FW_RI_READ_REQ
.subsections_via_symbols
