	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netmap_send
_netmap_send:                           ## @netmap_send
	.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
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %rcx
	cmpq	8(%rbx), %rcx
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_count_iov
	movslq	%eax, %rdi
	callq	_WPRINTF
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_2:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	32(%rbx), %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rcx,2), %rcx
	movl	16(%rax,%rcx,8), %esi
	movq	%rbx, %rdi
	callq	_NETMAP_BUF
	testl	%r15d, %r15d
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	jle	LBB0_3
## %bb.4:
	movq	%rax, %rdx
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movl	16(%rbx), %esi
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	movl	%r15d, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	shlq	$4, %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	(%rcx,%rax), %r14d
	movq	8(%rcx,%rax), %r12
	addl	%r14d, -44(%rbp)                ## 4-byte Folded Spill
	cmpl	%esi, %r14d
	movl	%esi, %r13d
	cmovll	%r14d, %r13d
	movq	%rdx, %rbx
	movq	%rdx, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movslq	%r13d, %rax
	addl	%eax, %r15d
	subl	%eax, %r14d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%rax, %r12
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %r14
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	32(%rbx), %rax
	leaq	(%rsi,%rsi,2), %rcx
	movl	%r15d, (%rax,%rcx,8)
	movq	_NS_MOREFRAG@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 8(%rax,%rcx,8)
	movq	%rbx, %rdi
	callq	_nm_ring_next
	cmpq	8(%rbx), %rax
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	%rax, %r12
	movq	32(%rbx), %rax
	leaq	(%r12,%r12,2), %rcx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	16(%rax,%rcx,8), %esi
	movq	%rbx, %rdi
	callq	_NETMAP_BUF
	movl	16(%rbx), %r13d
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	cmpl	%r13d, %r12d
	movl	%r13d, %r15d
	cmovll	%r12d, %r15d
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movslq	%r15d, %rax
	addq	%rax, %r14
	subl	%eax, %r12d
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, %r13d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, %rdx
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addq	%rax, %rdx
	subl	%r13d, %esi
	movq	-112(%rbp), %rax                ## 8-byte Reload
	incq	%rax
	cmpq	%rcx, %rax
	jne	LBB0_5
	jmp	LBB0_12
LBB0_15:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_count_iov
	movslq	%eax, %rdi
	callq	_WPRINTF
	jmp	LBB0_13
LBB0_3:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r15d, %r15d
LBB0_12:
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	32(%rbx), %rax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rsi,2), %rcx
	movl	%r15d, (%rax,%rcx,8)
	movq	$0, 8(%rax,%rcx,8)
	movq	%rbx, %rdi
	callq	_nm_ring_next
	movq	%rax, 24(%rbx)
	movq	%rax, (%rbx)
LBB0_13:
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_14:
	movl	(%r14), %edi
	movq	_NIOCTXSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_ioctl
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NS_MOREFRAG,8,3                ## @NS_MOREFRAG
	.comm	_NIOCTXSYNC,4,2                 ## @NIOCTXSYNC
	.no_dead_strip	_netmap_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netmap_send
_netmap_send:                           ; @netmap_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x24, x2
	mov	x28, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
	ldp	x22, x8, [x21]
	cmp	x22, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x28
	mov	x1, x24
	bl	_count_iov
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	bl	_WPRINTF
	mov	w27, #0
	b	LBB0_14
LBB0_2:
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	ldr	x8, [x21, #32]
	mov	w9, #24
	madd	x8, x22, x9, x8
	ldr	w1, [x8, #16]
	mov	x0, x21
	bl	_NETMAP_BUF
	cmp	w24, #1
	b.lt	LBB0_12
; %bb.3:
	mov	x26, x0
	mov	x19, #0
	mov	w25, #0
	mov	w27, #0
	ldr	w20, [x21, #16]
	mov	w23, #24
	str	w24, [sp, #12]                  ; 4-byte Folded Spill
	mov	w8, w24
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	str	x28, [sp, #32]                  ; 8-byte Folded Spill
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	add	x8, x28, x19, lsl #4
	ldr	w24, [x8]
	ldr	x28, [x8, #8]
	add	w27, w24, w27
	str	w27, [sp, #44]                  ; 4-byte Folded Spill
	cmp	w24, w20
	csel	w27, w24, w20, lt
	mov	x0, x26
	mov	x1, x28
	mov	x2, x27
	bl	_memcpy
	sxtw	x8, w27
	add	w25, w27, w25
	subs	w24, w24, w27
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x28, x8
	ldr	x28, [sp, #32]                  ; 8-byte Folded Reload
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21, #32]
	madd	x8, x22, x23, x8
	str	w25, [x8]
Lloh0:
	adrp	x9, _NS_MOREFRAG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NS_MOREFRAG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	str	x9, [x8, #8]
	mov	x0, x21
	mov	x1, x22
	bl	_nm_ring_next
	ldr	x8, [x21, #8]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x22, x0
	ldr	x8, [x21, #32]
	madd	x8, x0, x23, x8
	ldr	w1, [x8, #16]
	mov	x0, x21
	bl	_NETMAP_BUF
	mov	x26, x0
	ldr	w20, [x21, #16]
	cmp	w24, w20
	csel	w25, w24, w20, lt
	mov	x1, x27
	mov	x2, x25
	bl	_memcpy
	sxtw	x8, w25
	add	x27, x27, x8
	subs	w24, w24, w25
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x25
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x28, [sp, #32]                  ; 8-byte Folded Reload
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w20, w20, w27
	add	x26, x26, x8
	add	x19, x19, #1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x19, x8
	ldr	w27, [sp, #44]                  ; 4-byte Folded Reload
	b.ne	LBB0_4
	b	LBB0_13
LBB0_11:
	mov	x0, x28
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_count_iov
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	bl	_WPRINTF
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	ldr	w27, [sp, #44]                  ; 4-byte Folded Reload
	b	LBB0_14
LBB0_12:
	mov	w27, #0
	mov	w25, #0
LBB0_13:
	ldr	x8, [x21, #32]
	mov	w9, #24
	madd	x8, x22, x9, x8
	str	w25, [x8]
	str	xzr, [x8, #8]
	mov	x0, x21
	mov	x1, x22
	bl	_nm_ring_next
	str	x0, [x21, #24]
	str	x0, [x21]
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
LBB0_14:
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _NIOCTXSYNC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NIOCTXSYNC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_ioctl
	mov	x0, x27
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NS_MOREFRAG,8,3                ; @NS_MOREFRAG
	.comm	_NIOCTXSYNC,4,2                 ; @NIOCTXSYNC
	.no_dead_strip	_netmap_send
.subsections_via_symbols
