	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netmap_recv
_netmap_recv:                           ## @netmap_recv
	.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, %r15
	movq	(%rdi), %rbx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %edi
	callq	_assert
	movq	(%rbx), %r14
	movq	(%r14), %rax
	movq	8(%r15), %rdx
	movl	(%r15), %r12d
	xorl	%ecx, %ecx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	cmpq	8(%r14), %rax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%r14), %r13
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	(%rax,%rax,2), %rbx
	movl	8(%r13,%rbx,4), %esi
	movq	%r14, %rdi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movq	%rdx, %r14
	callq	_NETMAP_BUF
	movq	%r14, %rcx
	movq	%rax, %r12
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	4(%r13,%rbx,4), %r14d
	movq	%rcx, %rbx
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	cmpl	%r13d, %r14d
	cmovll	%r14d, %r13d
	movq	%rcx, %rdi
	movq	%rax, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movslq	%r13d, %rax
	addl	%eax, %ecx
	subl	%eax, %r14d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	%rax, %r12
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$1, %ecx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	leaq	16(%r15), %rbx
	movq	24(%r15), %rdi
	movl	16(%r15), %r13d
	cmpl	%r13d, %r14d
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	cmovll	%r14d, %r13d
	movl	%ecx, %r15d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movl	%r15d, %ecx
	movslq	%r13d, %rax
	addq	%rax, %r12
	addl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
	decl	%ecx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r15
	subl	%eax, %r14d
	jne	LBB0_6
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	addq	%rax, %rbx
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	subl	%r13d, %r12d
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_nm_ring_next
	movq	_NS_MOREFRAG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	testl	%ecx, (%rdx,%rsi,4)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%rbx, %rdx
	jne	LBB0_1
## %bb.10:
	movq	%rax, 16(%r14)
	movq	%rax, (%r14)
	jmp	LBB0_11
LBB0_7:
	movslq	-44(%rbp), %rdi                 ## 4-byte Folded Reload
	callq	_WPRINTF
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_11:
	movl	%ecx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%ecx, %ecx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_NS_MOREFRAG,4,2                ## @NS_MOREFRAG
	.no_dead_strip	_netmap_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netmap_recv
_netmap_recv:                           ; @netmap_recv
	.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	x20, x2
	mov	x21, x1
	ldr	x22, [x0]
	mov	x0, x2
	bl	_assert
	mov	w19, #0
	ldr	x22, [x22]
	ldr	x23, [x22]
	ldr	x24, [x21, #8]
	ldr	w28, [x21]
	mov	w10, #12
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	w28, w28, w25
	add	x24, x24, x8
	mov	x0, x22
	mov	x1, x23
	bl	_nm_ring_next
	mov	w10, #12
	mul	x8, x23, x10
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w8, [x9, x8]
Lloh0:
	adrp	x9, _NS_MOREFRAG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NS_MOREFRAG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	x23, x0
	tst	w9, w8
	b.eq	LBB0_11
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x8, [x22, #8]
	cmp	x23, x8
	b.eq	LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22, #24]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	madd	x25, x23, x10, x8
	ldr	w1, [x25, #8]
	mov	x0, x22
	bl	_NETMAP_BUF
	mov	x26, x0
	ldr	w27, [x25, #4]
	cmp	w27, w28
	csel	w25, w27, w28, lt
	mov	x0, x24
	mov	x1, x26
	mov	x2, x25
	bl	_memcpy
	sxtw	x8, w25
	add	w19, w25, w19
	subs	w27, w27, w25
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x26, x8
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	subs	w20, w20, #1
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w28, [x21, #16]!
	ldr	x24, [x21, #8]
	cmp	w27, w28
	csel	w26, w27, w28, lt
	mov	x0, x24
	mov	x1, x25
	mov	x2, x26
	bl	_memcpy
	sxtw	x8, w26
	add	x25, x25, x8
	add	w19, w26, w19
	sub	w27, w27, w26
	cbnz	w27, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x26
	b	LBB0_1
LBB0_8:
	sxtw	x0, w19
	bl	_WPRINTF
Lloh3:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_9:
	mov	x0, x19
	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
LBB0_10:
	mov	w19, #0
	b	LBB0_9
LBB0_11:
	str	x0, [x22, #16]
	str	x0, [x22]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_NS_MOREFRAG,4,2                ; @NS_MOREFRAG
	.no_dead_strip	_netmap_recv
.subsections_via_symbols
