	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function receive_packets
_receive_packets:                       ## @receive_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	%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, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	$0, -48(%rbp)
	testq	%rcx, %rcx
	leaq	-48(%rbp), %rax
	cmovneq	%rcx, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r14
	callq	_nm_ring_space
	cmpq	%rbx, %rax
	cmovlq	%rax, %rbx
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	jg	LBB0_1
LBB0_4:
	movq	%r14, 8(%r13)
	movq	%r14, (%r13)
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_NS_MOREFRAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15,%r14,8), %eax
	cmpl	$1, %eax
	adcq	$0, %r12
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_nm_ring_next
	movq	%rax, %r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	decq	%rbx
	je	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	16(%r13), %r15
	movq	%r14, %rbx
	leaq	(%r14,%r14,2), %r14
	movl	16(%r15,%r14,8), %esi
	movq	%r13, %rdi
	callq	_NETMAP_BUF
	movq	8(%r15,%r14,8), %rsi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addl	%esi, (%rcx)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rdi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_dump_payload
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_NS_MOREFRAG,4,2                ## @NS_MOREFRAG
	.no_dead_strip	_receive_packets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function receive_packets
_receive_packets:                       ; @receive_packets
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	str	wzr, [sp, #12]
	add	x8, sp, #12
	cmp	x3, #0
	csel	x23, x8, x3, eq
	ldr	x20, [x0]
	bl	_nm_ring_space
	cmp	x0, x22
	csel	x24, x0, x22, lt
	cmp	x24, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x22, #0
	mov	w25, #24
Lloh0:
	adrp	x26, _NS_MOREFRAG@GOTPAGE
Lloh1:
	ldr	x26, [x26, _NS_MOREFRAG@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mul	x8, x20, x25
	ldr	w8, [x27, x8]
	ldr	w9, [x26]
	tst	w9, w8
	cinc	x22, x22, eq
	mov	x0, x19
	mov	x1, x20
	bl	_nm_ring_next
	mov	x20, x0
	subs	x24, x24, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x19, #16]
	madd	x28, x20, x25, x27
	ldr	w1, [x28, #16]
	mov	x0, x19
	bl	_NETMAP_BUF
	ldr	x1, [x28, #8]
	ldr	w8, [x23]
	add	w8, w8, w1
	str	w8, [x23]
	cbz	w21, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, x19
	mov	x3, x20
	bl	_dump_payload
	b	LBB0_2
LBB0_5:
	mov	w22, #0
LBB0_6:
	stp	x20, x20, [x19]
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NS_MOREFRAG,4,2                ; @NS_MOREFRAG
	.no_dead_strip	_receive_packets
.subsections_via_symbols
