	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netbuf_copypartial
_netbuf_copypartial:                    ## @netbuf_copypartial
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.2:
	testq	%rdx, %rdx
	jle	LBB0_21
## %bb.3:
	movq	(%rdi), %r13
	testq	%r13, %r13
	je	LBB0_21
## %bb.4:
	leaq	16(%rsi), %r8
	xorl	%r11d, %r11d
	movl	$8, %r9d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
	movq	(%r13), %r15
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, %rax
	subq	%r15, %rax
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rcx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r15, %rcx
	jge	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r13), %r14
	movq	%rcx, %rax
	notq	%rax
	addq	%r15, %rax
	leaq	1(%r11), %rbx
	cmpq	%rbx, %rdx
	cmovgq	%rdx, %rbx
	leaq	(%r11,%r15), %r10
	movq	%r11, %rdi
	notq	%rdi
	addq	%rbx, %rdi
	cmpq	%rdi, %rax
	cmovbq	%rax, %rdi
	incq	%rdi
	movq	%r11, %rbx
	movq	%rcx, %r12
	cmpq	$9, %rdi
	jb	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rsi,%r11,4), %rax
	leaq	(%r14,%rcx,4), %rbx
	subq	%rbx, %rax
	movq	%r11, %rbx
	movq	%rcx, %r12
	cmpq	$32, %rax
	jb	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	(,%r11,4), %rax
	movl	%edi, %ebx
	andl	$7, %ebx
	testq	%rbx, %rbx
	cmoveq	%r9, %rbx
	subq	%rbx, %rdi
	leaq	(%r11,%rdi), %rbx
	leaq	(%rcx,%rdi), %r12
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	addq	%r8, %rax
	leaq	(%r14,%rcx,4), %r8
	addq	$16, %r8
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-16(%r8,%r9,4), %xmm0
	movups	(%r8,%r9,4), %xmm1
	movups	%xmm0, -16(%rax,%r9,4)
	movups	%xmm1, (%rax,%r9,4)
	addq	$8, %r9
	cmpq	%r9, %rdi
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	$8, %r9d
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	subq	%rcx, %r10
	incq	%rbx
	subq	%r11, %rcx
	subq	%r15, %rcx
	leaq	(%r14,%r12,4), %rax
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax), %edi
	movl	%edi, -4(%rsi,%rbx,4)
	cmpq	%rdx, %rbx
	jge	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	leaq	(%rcx,%rbx), %rdi
	incq	%rdi
	incq	%rbx
	addq	$4, %rax
	cmpq	$1, %rdi
	jne	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
	movq	%r10, %r11
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rdx, %r11
	jge	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r13), %r13
	testq	%r13, %r13
	jne	LBB0_5
LBB0_21:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_netbuf_copypartial
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netbuf_copypartial
_netbuf_copypartial:                    ; @netbuf_copypartial
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_20
; %bb.1:
	cbz	x1, LBB0_20
; %bb.2:
	cmp	x2, #1
	b.lt	LBB0_20
; %bb.3:
	ldr	x8, [x0]
	cbz	x8, LBB0_20
; %bb.4:
	mov	x11, #0
	add	x9, x1, #32
	mov	w10, #16
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	ldr	x14, [x8]
	cbz	x3, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	subs	x12, x3, x14
	b.lt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x3, x12
	b	LBB0_18
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x3, x14
	b.ge	LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x13, [x8, #8]
	add	x12, x11, x14
	sub	x12, x12, x3
	mvn	x15, x3
	add	x14, x14, x15
	add	x15, x11, #1
	cmp	x2, x15
	csinc	x15, x2, x11, gt
	mvn	x16, x11
	add	x15, x15, x16
	cmp	x14, x15
	csel	x14, x14, x15, lo
	add	x14, x14, #1
	cmp	x14, #17
	b.lo	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	lsl	x16, x11, #2
	add	x15, x13, x3, lsl #2
	add	x17, x16, x1
	sub	x17, x17, x15
	cmp	x17, #64
	b.lo	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ands	x17, x14, #0xf
	csel	x17, x10, x17, eq
	sub	x14, x14, x17
	add	x11, x11, x14
	add	x3, x3, x14
	add	x15, x15, #32
	add	x16, x9, x16
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x15, #-32]
	ldp	q2, q3, [x15], #64
	stp	q0, q1, [x16, #-32]
	stp	q2, q3, [x16], #64
	subs	x14, x14, #16
	b.ne	LBB0_12
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x13, x13, x3, lsl #2
LBB0_14:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w14, [x13]
	str	w14, [x1, x11, lsl #2]
	add	x11, x11, #1
	cmp	x11, x2
	b.ge	LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	add	x13, x13, #4
	cmp	x12, x11
	b.ne	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x3, #0
	mov	x11, x12
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x3, #0
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x11, x2
	b.ge	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_5
LBB0_20:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_netbuf_copypartial
.subsections_via_symbols
