	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_desc_avail
_check_desc_avail:                      ## @check_desc_avail
	.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
	movl	%r8d, %r12d
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movq	%rsi, %rbx
	leaq	12(%rsi), %r15
	movq	%r15, %rdi
	callq	_skb_queue_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	___skb_queue_tail
	movl	$1, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%rbx), %eax
	subl	4(%rbx), %eax
	xorl	%edi, %edi
	cmpl	%r13d, %eax
	setb	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_txq_to_qset
	movq	%rax, %r13
	movl	%r12d, %edi
	movq	%rax, %rsi
	callq	_set_bit
	xorl	%eax, %eax
	callq	_smp_mb__after_atomic
	movq	%rbx, %rdi
	callq	_should_restart_tx
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	%r12d, %edi
	movq	%r13, %rsi
	callq	_test_and_clear_bit
	movq	%rax, %rcx
	movl	$2, %eax
	testq	%rcx, %rcx
	jne	LBB0_2
LBB0_7:
	incl	8(%rbx)
	jmp	LBB0_1
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_check_desc_avail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_desc_avail
_check_desc_avail:                      ; @check_desc_avail
	.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
	mov	x22, x4
	mov	x23, x3
	mov	x19, x2
	mov	x21, x1
	add	x20, x1, #12
	mov	x0, x20
	bl	_skb_queue_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
LBB0_1:
	mov	x0, x20
	mov	x1, x19
	bl	___skb_queue_tail
	mov	w0, #1
LBB0_2:
	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_3:
	ldp	w8, w9, [x21]
	sub	w8, w8, w9
	cmp	w8, w23
	cset	w0, lo
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.4:
	mov	x0, x21
	mov	x1, x22
	bl	_txq_to_qset
	mov	x23, x0
	mov	x0, x22
	mov	x1, x23
	bl	_set_bit
	bl	_smp_mb__after_atomic
	mov	x0, x21
	bl	_should_restart_tx
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x22
	mov	x1, x23
	bl	_test_and_clear_bit
	cbz	x0, LBB0_7
; %bb.6:
	mov	w0, #2
	b	LBB0_2
LBB0_7:
	ldr	w8, [x21, #8]
	add	w8, w8, #1
	str	w8, [x21, #8]
	b	LBB0_1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_check_desc_avail
.subsections_via_symbols
