	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function et131x_free_busy_send_packets
_et131x_free_busy_send_packets:         ## @et131x_free_busy_send_packets
	.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
	movq	%rdi, %r14
	callq	_spin_lock_irqsave
	movq	16(%r14), %rbx
	xorl	%r15d, %r15d
	movq	_NUM_TCB@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.1:
	testq	%rax, %rax
	jle	LBB0_7
## %bb.2:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, 24(%r14)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	decq	8(%r14)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	incq	%r15
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_free_send_packet
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	16(%r14), %rbx
	movq	(%r12), %rax
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rax, %r15
	jl	LBB0_3
LBB0_7:
	xorl	%edi, %edi
	cmpq	%rax, %r15
	sete	%dil
	callq	_WARN_ON
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	$0, 8(%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_TCB,8,3                    ## @NUM_TCB
	.no_dead_strip	_et131x_free_busy_send_packets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function et131x_free_busy_send_packets
_et131x_free_busy_send_packets:         ; @et131x_free_busy_send_packets
	.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
	mov	x19, x0
	bl	_spin_lock_irqsave
	ldr	x20, [x19, #16]
Lloh0:
	adrp	x21, _NUM_TCB@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NUM_TCB@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x20, #0
	mov	x22, #0
	ccmp	x8, #1, #8, ne
	b.lt	LBB0_5
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	str	x8, [x19, #16]
	cbnz	x8, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	str	xzr, [x19, #24]
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #8]
	sub	x8, x8, #1
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	add	x22, x22, #1
	mov	x0, x19
	mov	x1, x20
	bl	_free_send_packet
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x20, [x19, #16]
	ldr	x8, [x21]
	cbz	x20, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	x22, x8
	b.lt	LBB0_1
LBB0_5:
	cmp	x22, x8
	cset	w0, eq
	bl	_WARN_ON
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	str	xzr, [x19, #8]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_TCB,8,3                    ; @NUM_TCB
	.no_dead_strip	_et131x_free_busy_send_packets
.subsections_via_symbols
