	.file	"extr_kern_dump.c_dumpsys_buf_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dumpsys_buf_write
	.type	dumpsys_buf_write, @function
dumpsys_buf_write:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdx, rdx
	je	.L11
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	test	rbp, rbp
	je	.L16
.L5:
	movsx	rdi, DWORD PTR fragsz[rip]
	mov	ebx, DWORD PTR [r12]
	mov	rsi, r13
	sub	ebx, edi
	movsx	rbx, ebx
	cmp	rbx, rbp
	cmova	rbx, rbp
	add	rdi, QWORD PTR 8[r12]
	mov	rdx, rbx
	add	r13, rbx
	sub	rbp, rbx
	call	memcpy@PLT
	mov	ecx, DWORD PTR fragsz[rip]
	add	ecx, ebx
	mov	DWORD PTR fragsz[rip], ecx
	cmp	ecx, DWORD PTR [r12]
	jne	.L3
	mov	rsi, QWORD PTR 8[r12]
	xor	edx, edx
	mov	rdi, r12
	call	dump_append@PLT
	test	eax, eax
	jne	.L1
	mov	DWORD PTR fragsz[rip], 0
	test	rbp, rbp
	jne	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	dumpsys_buf_write, .-dumpsys_buf_write
	.comm	fragsz,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_kern_dump.c_dumpsys_buf_write.c"
	.text
	.align	2
	.global	dumpsys_buf_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	dumpsys_buf_write, %function
dumpsys_buf_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r5, r2, #0
	beq	.L2
	mov	r6, r0
	mov	r8, r1
	ldr	r7, .L12
	b	.L5
.L3:
	cmp	r5, #0
	beq	.L2
.L5:
	ldr	r3, [r7]
	ldr	r4, [r6]
	ldr	r0, [r6, #4]
	sub	r4, r4, r3
	cmp	r4, r5
	movcs	r4, r5
	mov	r1, r8
	mov	r2, r4
	add	r0, r3, r0
	bl	memcpy
	ldr	r3, [r7]
	ldr	r2, [r6]
	add	r3, r4, r3
	cmp	r3, r2
	sub	r5, r5, r4
	add	r8, r8, r4
	str	r3, [r7]
	bne	.L3
	mov	r2, #0
	mov	r0, r6
	ldr	r1, [r6, #4]
	bl	dump_append
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	cmp	r5, #0
	str	r0, [r7]
	bne	.L5
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	fragsz
	.size	dumpsys_buf_write, .-dumpsys_buf_write
	.comm	fragsz,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
