	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pkt_queued                     ## -- Begin function pkt_queued
	.p2align	4, 0x90
_pkt_queued:                            ## @pkt_queued
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movq	(%r14), %rbx
	cmpq	8(%r14), %rbx
	jg	LBB0_2
## %bb.5:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%r14), %edi
	movq	%rbx, %rsi
	callq	_NETMAP_TXRING
	movl	%eax, %edi
	callq	_nm_ring_space
	addq	%rax, %r15
	leaq	1(%rbx), %rax
	cmpq	8(%r14), %rbx
	movq	%rax, %rbx
	jl	LBB0_6
	jmp	LBB0_9
LBB0_3:
	movq	16(%r14), %rbx
	cmpq	24(%r14), %rbx
	jle	LBB0_7
LBB0_2:
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_7:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%r14), %edi
	movq	%rbx, %rsi
	callq	_NETMAP_RXRING
	movl	%eax, %edi
	callq	_nm_ring_space
	addq	%rax, %r15
	leaq	1(%rbx), %rax
	cmpq	24(%r14), %rbx
	movq	%rax, %rbx
	jl	LBB0_8
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pkt_queued                     ; -- Begin function pkt_queued
	.p2align	2
_pkt_queued:                            ; @pkt_queued
	.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
	cbz	w1, LBB0_4
; %bb.1:
	ldp	x21, x8, [x19]
	cmp	x21, x8
	b.gt	LBB0_5
; %bb.2:
	mov	x20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #32]
	mov	x1, x21
	bl	_NETMAP_TXRING
	bl	_nm_ring_space
	add	x20, x0, x20
	add	x8, x21, #1
	ldr	x9, [x19, #8]
	cmp	x21, x9
	mov	x21, x8
	b.lt	LBB0_3
	b	LBB0_8
LBB0_4:
	ldp	x21, x8, [x19, #16]
	cmp	x21, x8
	b.le	LBB0_6
LBB0_5:
	mov	x20, #0
	b	LBB0_8
LBB0_6:
	mov	x20, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #32]
	mov	x1, x21
	bl	_NETMAP_RXRING
	bl	_nm_ring_space
	add	x20, x0, x20
	add	x8, x21, #1
	ldr	x9, [x19, #24]
	cmp	x21, x9
	mov	x21, x8
	b.lt	LBB0_7
LBB0_8:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
