	.file	"extr_uipc_mbuf.c_m_copyback.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	m_copyback
	.type	m_copyback, @function
m_copyback:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rdi
	test	rdi, rdi
	je	.L1
	mov	r15d, edx
	mov	edx, DWORD PTR [rdi]
	mov	ebx, esi
	mov	r13d, ecx
	mov	rbp, rdi
	cmp	esi, edx
	jle	.L13
	xor	r14d, r14d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L32:
	mov	edx, DWORD PTR [rax]
	mov	rbp, rax
	cmp	ebx, edx
	jle	.L30
.L8:
	mov	rax, QWORD PTR 16[rbp]
	sub	ebx, edx
	add	r14d, edx
	test	rax, rax
	jne	.L32
	mov	esi, DWORD PTR 24[rbp]
	mov	edi, DWORD PTR M_NOWAIT[rip]
	call	m_get@PLT
	mov	r12, rax
	test	rax, rax
	je	.L7
	mov	r8d, DWORD PTR MLEN[rip]
	mov	esi, DWORD PTR caddr_t[rip]
	mov	rdi, rax
	mov	DWORD PTR 4[rsp], r8d
	call	mtod@PLT
	mov	r8d, DWORD PTR 4[rsp]
	mov	rdi, rax
	mov	esi, r8d
	call	bzero@PLT
	mov	edi, DWORD PTR MLEN[rip]
	lea	esi, [r15+rbx]
	call	min@PLT
	mov	edx, eax
	mov	DWORD PTR [r12], eax
	mov	QWORD PTR 16[rbp], r12
	mov	rbp, r12
	cmp	ebx, edx
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L30:
	test	r15d, r15d
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, DWORD PTR 0[rbp]
	sub	edi, ebx
	cmp	QWORD PTR 16[rbp], 0
	je	.L33
.L9:
	mov	esi, r15d
	call	min@PLT
	mov	esi, DWORD PTR caddr_t[rip]
	mov	rdi, rbp
	mov	r12, rax
	call	mtod@PLT
	movsx	rsi, ebx
	mov	edi, r13d
	mov	edx, r12d
	add	rsi, rax
	add	ebx, r12d
	add	r13d, r12d
	call	bcopy@PLT
	add	r14d, ebx
	sub	r15d, r12d
	je	.L7
	mov	rax, QWORD PTR 16[rbp]
	test	rax, rax
	je	.L34
	mov	rbp, rax
	xor	ebx, ebx
.L35:
	test	r15d, r15d
	jg	.L11
.L7:
	mov	rcx, QWORD PTR 8[rsp]
	mov	eax, DWORD PTR 4[rcx]
	test	DWORD PTR M_PKTHDR[rip], eax
	je	.L1
	cmp	DWORD PTR 8[rcx], r14d
	jge	.L1
	mov	DWORD PTR 8[rcx], r14d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_restore_state
	cmp	edi, r15d
	jge	.L9
	mov	rdi, rbp
	call	M_TRAILINGSPACE@PLT
	lea	edi, [rbx+r15]
	sub	edi, DWORD PTR 0[rbp]
	mov	esi, eax
	call	min@PLT
	movsx	rdi, DWORD PTR 0[rbp]
	add	rdi, rax
	mov	DWORD PTR 0[rbp], edi
	sub	edi, ebx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L34:
	mov	esi, DWORD PTR 24[rbp]
	mov	edi, DWORD PTR M_NOWAIT[rip]
	call	m_get@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L7
	mov	edi, DWORD PTR MLEN[rip]
	mov	esi, r15d
	call	min@PLT
	mov	DWORD PTR [rbx], eax
	mov	QWORD PTR 16[rbp], rbx
	mov	rbp, rbx
	xor	ebx, ebx
	jmp	.L35
.L13:
	mov	rbp, QWORD PTR 8[rsp]
	xor	r14d, r14d
	jmp	.L30
	.cfi_endproc
.LFE0:
	.size	m_copyback, .-m_copyback
	.comm	caddr_t,4,4
	.comm	M_PKTHDR,4,4
	.comm	M_NOWAIT,4,4
	.comm	MLEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_uipc_mbuf.c_m_copyback.c"
	.text
	.align	2
	.global	m_copyback
	.syntax unified
	.arm
	.fpu softvfp
	.type	m_copyback, %function
m_copyback:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r8, r0, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r0, [r8]
	mov	r4, r1
	cmp	r1, r0
	mov	r6, r2
	mov	r7, r3
	mov	r5, r8
	mov	fp, #0
	ble	.L4
	ldr	r9, .L36
	b	.L8
.L34:
	ldr	r0, [r3]
	mov	r5, r3
	cmp	r4, r0
	ble	.L4
.L8:
	ldr	r3, [r5, #12]
	sub	r4, r4, r0
	cmp	r3, #0
	add	fp, fp, r0
	bne	.L34
	ldr	r3, .L36+4
	ldr	r1, [r5, #16]
	ldr	r0, [r3]
	bl	m_get
	subs	r10, r0, #0
	beq	.L7
	ldr	r3, .L36+8
	ldr	r1, [r3]
	bl	mtod
	ldr	r1, [r9]
	bl	bzero
	ldr	r0, [r9]
	add	r1, r6, r4
	bl	min
	cmp	r4, r0
	str	r0, [r10]
	str	r10, [r5, #12]
	mov	r5, r10
	bgt	.L8
.L4:
	cmp	r6, #0
	ble	.L7
	ldr	r9, .L36+8
	b	.L11
.L9:
	mov	r1, r6
	bl	min
	ldr	r1, [r9]
	mov	r10, r0
	mov	r0, r5
	bl	mtod
	mov	r2, r10
	add	r1, r0, r4
	mov	r0, r7
	bl	bcopy
	add	r4, r10, r4
	subs	r6, r6, r10
	add	fp, fp, r4
	add	r7, r7, r10
	beq	.L7
	ldr	r3, [r5, #12]
	cmp	r3, #0
	movne	r5, r3
	beq	.L35
.L10:
	cmp	r6, #0
	mov	r4, #0
	ble	.L7
.L11:
	ldr	r3, [r5, #12]
	ldr	r0, [r5]
	cmp	r3, #0
	sub	r0, r0, r4
	bne	.L9
	cmp	r0, r6
	bge	.L9
	sub	r10, r6, r0
	mov	r0, r5
	bl	M_TRAILINGSPACE
	mov	r1, r0
	mov	r0, r10
	bl	min
	ldr	r3, [r5]
	add	r0, r0, r3
	str	r0, [r5]
	sub	r0, r0, r4
	b	.L9
.L7:
	ldr	r2, .L36+12
	ldr	r1, [r8, #4]
	ldr	r2, [r2]
	tst	r1, r2
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r2, [r8, #8]
	cmp	r2, fp
	strlt	fp, [r8, #8]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L35:
	ldr	r3, .L36+4
	ldr	r1, [r5, #16]
	ldr	r0, [r3]
	bl	m_get
	subs	r4, r0, #0
	beq	.L7
	ldr	r3, .L36
	mov	r1, r6
	ldr	r0, [r3]
	bl	min
	str	r0, [r4]
	str	r4, [r5, #12]
	mov	r5, r4
	b	.L10
.L37:
	.align	2
.L36:
	.word	MLEN
	.word	M_NOWAIT
	.word	caddr_t
	.word	M_PKTHDR
	.size	m_copyback, .-m_copyback
	.comm	caddr_t,4,4
	.comm	M_PKTHDR,4,4
	.comm	M_NOWAIT,4,4
	.comm	MLEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
