	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iflib_txq_drain_free
_iflib_txq_drain_free:                  ## @iflib_txq_drain_free
	.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
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	_IFLIB_QUEUE_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_CALLOUT_LOCK
	movq	%rbx, %rdi
	callq	_callout_stop
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_CALLOUT_UNLOCK
	movq	%r15, %r13
	movl	(%r15), %edx
	movl	%r14d, %edi
	movl	%r12d, %r15d
	movl	%r12d, %esi
	callq	_IDXDIFF
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	decl	%r12d
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	__ring_peek_one
	movq	%rax, %r14
	xorl	%edi, %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, (%r14)
	sete	%dil
	callq	___predict_false
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rdi
	callq	_m_freem
	movq	_tx_frees@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DBG_COUNTER_INC
	jmp	LBB0_4
LBB0_5:
	movq	%r13, %rdi
	callq	_ifmp_ring_is_stalled
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_MPASS
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFLIB_QUEUE_IDLE,4,2           ## @IFLIB_QUEUE_IDLE
	.comm	_tx_frees,4,2                   ## @tx_frees
	.no_dead_strip	_iflib_txq_drain_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iflib_txq_drain_free
_iflib_txq_drain_free:                  ; @iflib_txq_drain_free
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _IFLIB_QUEUE_IDLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFLIB_QUEUE_IDLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #4]
	mov	x0, x21
	bl	_CALLOUT_LOCK
	mov	x0, x21
	bl	_callout_stop
	mov	x0, x21
	bl	_CALLOUT_UNLOCK
	ldr	w2, [x19]
	mov	x0, x22
	mov	x1, x20
	bl	_IDXDIFF
	mov	x22, x0
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w23, #0
Lloh3:
	adrp	x26, _tx_frees@GOTPAGE
Lloh4:
	ldr	x26, [x26, _tx_frees@GOTPAGEOFF]
	mov	x24, x22
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	subs	w24, w24, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x24
	bl	__ring_peek_one
	mov	x25, x0
	ldr	x8, [x0]
	cmp	x8, x21
	cset	w0, eq
	bl	___predict_false
	cbnz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x25]
	bl	_m_freem
	ldr	w0, [x26]
	bl	_DBG_COUNTER_INC
	b	LBB0_2
LBB0_5:
	mov	x0, x19
	bl	_ifmp_ring_is_stalled
	cmp	x0, #0
	cset	w0, eq
	bl	_MPASS
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IFLIB_QUEUE_IDLE,4,2           ; @IFLIB_QUEUE_IDLE
	.comm	_tx_frees,4,2                   ; @tx_frees
	.no_dead_strip	_iflib_txq_drain_free
.subsections_via_symbols
