	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_forward_packet                 ## -- Begin function forward_packet
	.p2align	4, 0x90
_forward_packet:                        ## @forward_packet
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rsi), %rcx
	movq	(%rdi), %rsi
	movq	%rcx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rsi
	movq	%rdx, %rbx
	jmp	LBB0_3
LBB0_1:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%edx, %ebx
LBB0_3:
	movq	8(%rdi), %r13
	shlq	$5, %rbx
	movq	16(%r13,%rbx), %r12
	movq	24(%r13,%rbx), %r15
	movq	(%r15), %rsi
	cmpq	8(%r15), %rsi
	jne	LBB0_4
## %bb.9:
	testq	%r12, %r12
	jne	LBB0_10
	jmp	LBB0_11
LBB0_4:
	testq	%r12, %r12
	je	LBB0_7
## %bb.5:
	movq	%r12, %rdi
	callq	_oq_empty
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	(%r15), %rsi
	movq	(%r14), %rcx
LBB0_7:
	movq	16(%r15), %rax
	movq	%rsi, %rdx
	shlq	$5, %rdx
	movq	8(%rax,%rdx), %r12
	movups	8(%r14), %xmm0
	movups	%xmm0, 8(%rax,%rdx)
	movq	_NS_BUF_CHANGED@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	%edi, 24(%rax,%rdx)
	movq	%rcx, (%rax,%rdx)
	movq	%r15, %rdi
	callq	_nm_ring_next
	movq	%rax, (%r15)
	movl	16(%r14), %eax
	addl	%eax, 12(%r13,%rbx)
	incl	8(%r13,%rbx)
	movq	_forwarded@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_8
LBB0_10:
	movq	%r12, %rdi
	callq	_oq_full
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:
	movq	_dropped@GOTPCREL(%rip), %rax
	incl	(%rax)
	incl	4(%r13,%rbx)
	movl	16(%r14), %eax
	addl	%eax, (%r13,%rbx)
	movq	8(%r14), %r12
	jmp	LBB0_8
LBB0_12:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_oq_enq
	movq	_freeq@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_oq_empty
	testq	%rax, %rax
	je	LBB0_25
## %bb.13:
	movq	_ports@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	16(%r12), %rsi
	movq	(%rsi), %rax
	movq	_glob_arg@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$2, %rcx
	jb	LBB0_19
## %bb.14:
	leaq	-1(%rcx), %r8
	cmpq	$2, %rcx
	jne	LBB0_26
## %bb.15:
	movl	$1, %edx
	movq	%r12, %rdi
	jmp	LBB0_16
LBB0_26:
	leaq	80(%r12), %rsi
	movq	%r8, %r9
	andq	$-2, %r9
	negq	%r9
	movl	$1, %edx
	movq	%r12, %rdi
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	-32(%rsi), %rbx
	movq	(%rbx), %rbx
	leaq	-48(%rsi), %rcx
	cmpq	%rax, %rbx
	cmovbeq	%rdi, %rcx
	cmovaq	%rbx, %rax
	movq	(%rsi), %rdi
	movq	(%rdi), %rbx
	leaq	-16(%rsi), %rdi
	cmpq	%rax, %rbx
	cmovbeq	%rcx, %rdi
	cmovaq	%rbx, %rax
	addq	$64, %rsi
	leaq	(%r9,%rdx), %rcx
	addq	$2, %rcx
	addq	$2, %rdx
	cmpq	$1, %rcx
	jne	LBB0_27
LBB0_16:
	testb	$1, %r8b
	je	LBB0_18
## %bb.17:
	shlq	$5, %rdx
	movq	16(%r12,%rdx), %rcx
	cmpq	%rax, (%rcx)
	leaq	(%r12,%rdx), %rax
	cmovaq	%rax, %rdi
LBB0_18:
	movq	16(%rdi), %rsi
	movq	(%rsi), %rax
	movq	%rdi, %r12
LBB0_19:
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_24
## %bb.20:
	movq	_BUF_REVOKE@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_24
## %bb.21:
	xorl	%ebx, %ebx
	leaq	-104(%rbp), %r14
	movq	_dropped@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_oq_deq
	incl	(%r15)
	incl	4(%r12)
	movl	-88(%rbp), %eax
	addl	%eax, (%r12)
	movq	_freeq@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r14, %rsi
	callq	_oq_enq
	incq	%rbx
	movq	16(%r12), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	cmpq	(%r13), %rbx
	jb	LBB0_22
LBB0_24:
	movq	_lq@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	callq	_ND
LBB0_25:
	movq	_freeq@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-72(%rbp), %rdi
	callq	_oq_deq
	movq	-64(%rbp), %r12
LBB0_8:
	movq	%r12, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NS_BUF_CHANGED,4,2             ## @NS_BUF_CHANGED
	.comm	_forwarded,4,2                  ## @forwarded
	.comm	_dropped,4,2                    ## @dropped
	.comm	_freeq,8,3                      ## @freeq
	.comm	_ports,8,3                      ## @ports
	.comm	_glob_arg,8,3                   ## @glob_arg
	.comm	_BUF_REVOKE,8,3                 ## @BUF_REVOKE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"revoked %d buffers from %s"

	.comm	_lq,8,3                         ## @lq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_forward_packet                 ; -- Begin function forward_packet
	.p2align	2
_forward_packet:                        ; @forward_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x1
	ldr	x8, [x1]
	ldp	x9, x22, [x0]
	udiv	x10, x8, x9
	msub	x23, x10, x9, x8
	add	x9, x22, x23, lsl #5
	ldp	x21, x20, [x9, #16]
	ldp	x1, x9, [x20]
	cmp	x1, x9
	b.ne	LBB0_2
; %bb.1:
	cbnz	x21, LBB0_6
	b	LBB0_7
LBB0_2:
	cbz	x21, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_oq_empty
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x1, [x20]
	ldr	x8, [x19]
LBB0_5:
	ldr	x9, [x20, #16]
	add	x9, x9, x1, lsl #5
	ldr	x21, [x9, #8]
	ldur	q0, [x19, #8]
Lloh0:
	adrp	x10, _NS_BUF_CHANGED@GOTPAGE
Lloh1:
	ldr	x10, [x10, _NS_BUF_CHANGED@GOTPAGEOFF]
	stur	q0, [x9, #8]
Lloh2:
	ldr	w10, [x10]
	ldr	w11, [x9, #24]
	orr	w10, w11, w10
	str	w10, [x9, #24]
	str	x8, [x9]
	mov	x0, x20
	bl	_nm_ring_next
	str	x0, [x20]
	ldr	w8, [x19, #16]
	add	x9, x22, x23, lsl #5
	ldp	w11, w10, [x9, #8]
	add	w8, w10, w8
	add	w10, w11, #1
	stp	w10, w8, [x9, #8]
Lloh3:
	adrp	x8, _forwarded@GOTPAGE
Lloh4:
	ldr	x8, [x8, _forwarded@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_18
LBB0_6:
	mov	x0, x21
	bl	_oq_full
	cbz	x0, LBB0_8
LBB0_7:
Lloh5:
	adrp	x8, _dropped@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dropped@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	add	x8, x19, #16
	lsl	x9, x23, #5
	ldr	d0, [x22, x9]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	str	d0, [x22, x9]
	ldr	x21, [x19, #8]
	b	LBB0_18
LBB0_8:
	mov	x0, x21
	mov	x1, x19
	bl	_oq_enq
Lloh7:
	adrp	x20, _freeq@GOTPAGE
Lloh8:
	ldr	x20, [x20, _freeq@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_oq_empty
	cbz	x0, LBB0_17
; %bb.9:
Lloh9:
	adrp	x8, _ports@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ports@GOTPAGEOFF]
Lloh11:
	ldr	x21, [x8]
	ldr	x0, [x21, #16]
	ldr	x8, [x0]
Lloh12:
	adrp	x9, _glob_arg@GOTPAGE
Lloh13:
	ldr	x9, [x9, _glob_arg@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, #2
	b.lo	LBB0_13
; %bb.10:
	sub	x9, x9, #1
	add	x10, x21, #32
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, #16]
	ldr	x11, [x11]
	cmp	x11, x8
	csel	x21, x10, x21, hi
	csel	x8, x11, x8, hi
	add	x10, x10, #32
	subs	x9, x9, #1
	b.ne	LBB0_11
; %bb.12:
	ldr	x0, [x21, #16]
	ldr	x8, [x0]
LBB0_13:
Lloh15:
	adrp	x22, _BUF_REVOKE@GOTPAGE
Lloh16:
	ldr	x22, [x22, _BUF_REVOKE@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, #0
	mov	x19, #0
	ccmp	x9, #0, #4, ne
	b.eq	LBB0_16
; %bb.14:
	add	x23, sp, #32
Lloh17:
	adrp	x24, _dropped@GOTPAGE
Lloh18:
	ldr	x24, [x24, _dropped@GOTPAGEOFF]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	add	x8, sp, #32
	bl	_oq_deq
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
	add	x8, x23, #16
	ldr	d0, [x21]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	str	d0, [x21]
	ldr	x0, [x20]
	add	x1, sp, #32
	bl	_oq_enq
	add	x19, x19, #1
	ldr	x0, [x21, #16]
	ldr	x8, [x0]
	ldr	x9, [x22]
	cmp	x8, #0
	ccmp	x19, x9, #2, ne
	b.lo	LBB0_15
LBB0_16:
Lloh19:
	adrp	x8, _lq@GOTPAGE
Lloh20:
	ldr	x8, [x8, _lq@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	w3, [x8]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_ND
LBB0_17:
	ldr	x0, [x20]
	mov	x8, sp
	bl	_oq_deq
	ldr	x21, [sp, #8]
LBB0_18:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_NS_BUF_CHANGED,4,2             ; @NS_BUF_CHANGED
	.comm	_forwarded,4,2                  ; @forwarded
	.comm	_dropped,4,2                    ; @dropped
	.comm	_freeq,8,3                      ; @freeq
	.comm	_ports,8,3                      ; @ports
	.comm	_glob_arg,8,3                   ; @glob_arg
	.comm	_BUF_REVOKE,8,3                 ; @BUF_REVOKE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"revoked %d buffers from %s"

	.comm	_lq,8,3                         ; @lq
.subsections_via_symbols
