	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nicvf_free_snd_queue
_nicvf_free_snd_queue:                  ## @nicvf_free_snd_queue
	.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
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$0, 20(%rsi)
	je	LBB0_15
## %bb.2:
	movq	%rdi, %r14
	movq	40(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movq	(%r14), %rdi
	movq	_TSO_HEADER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	16(%rbx), %esi
	movl	48(%rbx), %ecx
	callq	_dma_free_coherent
	movq	$0, 40(%rbx)
LBB0_4:
	leaq	16(%rbx), %r15
	xorl	%eax, %eax
	callq	_smp_rmb
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	jmp	LBB0_5
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rsi
	movq	%rbx, %rdi
	callq	_GET_SQ_DESC
	movq	%r13, %rcx
	movq	%rax, %r13
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rcx), %rdx
	movl	8(%r13), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_nicvf_unmap_sndq_buffers
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rax
	movslq	16(%rbx), %rdx
	decq	%rdx
	andq	%rdx, %rax
	movq	%rax, (%rbx)
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, %rax
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%rbx), %rdx
	movq	(%rdx,%rax,8), %r12
	testq	%r12, %r12
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rdx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	callq	_put_page
	movq	(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_GET_SQ_DESC
	movq	%rax, %r13
	cmpq	$0, 16(%rax)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rcx
	jmp	LBB0_12
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	32(%rbx), %rdi
	callq	_kfree
	movq	24(%rbx), %rdi
	callq	_kfree
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nicvf_free_q_desc_mem          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TSO_HEADER_SIZE,4,2            ## @TSO_HEADER_SIZE
	.no_dead_strip	_nicvf_free_snd_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nicvf_free_snd_queue
_nicvf_free_snd_queue:                  ; @nicvf_free_snd_queue
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x1, LBB0_14
; %bb.1:
	mov	x20, x1
	ldr	w8, [x1, #20]
	cbz	w8, LBB0_14
; %bb.2:
	mov	x19, x0
	add	x21, x20, #16
	ldr	x2, [x20, #40]
	cbz	x2, LBB0_4
; %bb.3:
	ldr	x0, [x19]
	ldr	w8, [x20, #16]
Lloh0:
	adrp	x9, _TSO_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TSO_HEADER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mul	w1, w9, w8
	ldr	w3, [x20, #48]
	bl	_dma_free_coherent
	str	xzr, [x20, #40]
LBB0_4:
	bl	_smp_rmb
	ldp	x9, x8, [x20]
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x1, [x23]
	mov	x0, x20
	bl	_GET_SQ_DESC
	mov	x8, x23
	mov	x23, x0
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x2, [x8]
	ldr	w3, [x23, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_nicvf_unmap_sndq_buffers
	mov	x0, x22
	bl	_dev_kfree_skb_any
	ldp	x9, x8, [x20]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x9, #1
	ldrsw	x10, [x20, #16]
	sub	x10, x10, #1
	and	x9, x9, x10
	str	x9, [x20]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, x8
	b.eq	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x10, [x20, #32]
	ldr	x22, [x10, x9, lsl #3]
	cbz	x22, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x10, [x20, #24]
	cbz	x10, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x10, x9, lsl #3]
	cbz	x0, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_put_page
	ldr	x1, [x20]
	mov	x0, x20
	bl	_GET_SQ_DESC
	mov	x23, x0
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x8, x20
	b	LBB0_6
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	x0, [x20, #32]
	bl	_kfree
	ldr	x0, [x20, #24]
	bl	_kfree
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nicvf_free_q_desc_mem
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TSO_HEADER_SIZE,4,2            ; @TSO_HEADER_SIZE
	.no_dead_strip	_nicvf_free_snd_queue
.subsections_via_symbols
