	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netvsc_copy_to_send_buf
_netvsc_copy_to_send_buf:               ## @netvsc_copy_to_send_buf
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	imull	8(%rdi), %r12d
	movq	%r9, %r14
	movslq	%edx, %r9
	addq	(%rdi), %r12
	xorl	%edx, %edx
	cmpq	$0, 16(%rcx)
	sete	%dl
	movl	(%rcx,%rdx,4), %edx
	xorl	%eax, %eax
	cmpl	$0, 16(%rbp)
	je	LBB0_3
## %bb.1:
	movl	8(%rcx), %esi
	movl	12(%rdi), %edi
	leal	-1(%rdi), %ebx
	andl	%esi, %ebx
	je	LBB0_3
## %bb.2:
	subl	%ebx, %edi
	addl	%edi, (%r8)
	addl	%edi, %esi
	movl	%esi, 8(%rcx)
	movl	%edi, %eax
LBB0_3:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addq	%r9, %r12
	testl	%edx, %edx
	jle	LBB0_6
## %bb.4:
	shlq	$2, %rdx
	leaq	(%rdx,%rdx,2), %r13
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%r15), %edi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	shll	%cl, %edi
	callq	_phys_to_virt
	movslq	4(%r14,%r15), %rsi
	movslq	8(%r14,%r15), %rbx
	addq	%rax, %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_memcpy
	addq	%rbx, %r12
	addq	$12, %r15
	cmpq	%r15, %r13
	jne	LBB0_5
LBB0_6:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, %edx
	je	LBB0_7
## %bb.8:
	movq	%r12, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.no_dead_strip	_netvsc_copy_to_send_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netvsc_copy_to_send_buf
_netvsc_copy_to_send_buf:               ; @netvsc_copy_to_send_buf
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	w19, #0
	ldr	w8, [x0, #8]
	mul	w8, w8, w1
	ldr	x9, [x0]
	add	x8, x9, x8
	add	x20, x8, w2, sxtw
	ldr	x8, [x3, #16]
	cmp	x8, #0
	cset	w8, eq
	ldr	w22, [x3, w8, uxtw #2]
	cbz	w6, LBB0_3
; %bb.1:
	ldr	w8, [x3, #8]
	ldr	w9, [x0, #12]
	sub	w10, w9, #1
	and	w10, w10, w8
	cbz	w10, LBB0_3
; %bb.2:
	ldr	w11, [x4]
	sub	w19, w9, w10
	add	w9, w11, w19
	str	w9, [x4]
	add	w8, w19, w8
	str	w8, [x3, #8]
LBB0_3:
	cmp	w22, #1
	b.lt	LBB0_6
; %bb.4:
	add	x23, x5, #4
Lloh0:
	adrp	x24, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PAGE_SHIFT@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x23, #-4]
	ldr	w9, [x24]
	lsl	w0, w8, w9
	bl	_phys_to_virt
	ldpsw	x8, x21, [x23], #12
	add	x1, x0, x8
	mov	x0, x20
	mov	x2, x21
	bl	_memcpy
	add	x20, x20, x21
	subs	x22, x22, #1
	b.ne	LBB0_5
LBB0_6:
	cbz	w19, LBB0_8
; %bb.7:
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_memset
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.no_dead_strip	_netvsc_copy_to_send_buf
.subsections_via_symbols
