	.file	"extr_rfc1867.c_multipart_buffer_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	multipart_buffer_read, @function
multipart_buffer_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rsi, QWORD PTR [rdi]
	cmp	rsi, rdx
	jb	.L20
.L2:
	mov	ecx, DWORD PTR 16[r12]
	mov	edx, DWORD PTR 20[r12]
	mov	r8d, 1
	sub	rbp, 1
	mov	rdi, QWORD PTR 8[r12]
	call	php_ap_memstr@PLT
	test	rax, rax
	je	.L3
	mov	rdi, QWORD PTR 8[r12]
	sub	rax, rdi
	mov	rbx, rax
	test	r14, r14
	je	.L5
	mov	ecx, DWORD PTR 16[r12]
	mov	edx, DWORD PTR 20[r12]
	xor	r8d, r8d
	mov	rsi, QWORD PTR [r12]
	call	php_ap_memstr@PLT
	test	rax, rax
	je	.L5
	mov	DWORD PTR [r14], 1
.L5:
	cmp	rbx, rbp
	cmovbe	rbp, rbx
	test	rbp, rbp
	jne	.L21
.L11:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	call	fill_buffer@PLT
	mov	rsi, QWORD PTR [r12]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	QWORD PTR [r12], rbp
	cmovbe	rbp, QWORD PTR [r12]
	test	rbp, rbp
	je	.L11
	mov	rsi, QWORD PTR 8[r12]
	mov	rdx, rbp
	mov	rdi, r13
	call	memcpy@PLT
	mov	BYTE PTR 0[r13+rbp], 0
.L9:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	add	QWORD PTR 8[r12], rbp
	mov	eax, ebp
	movsx	rdx, ebp
	pop	rbp
	.cfi_def_cfa_offset 32
	sub	QWORD PTR [r12], rdx
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	rsi, QWORD PTR 8[r12]
	mov	rdi, r13
	mov	rdx, rbp
	call	memcpy@PLT
	lea	rax, -1[rbp]
	mov	BYTE PTR 0[r13+rbp], 0
	add	r13, rax
	cmp	BYTE PTR 0[r13], 13
	jne	.L9
	mov	BYTE PTR 0[r13], 0
	mov	rbp, rax
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	multipart_buffer_read, .-multipart_buffer_read
	.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_rfc1867.c_multipart_buffer_read.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	multipart_buffer_read, %function
multipart_buffer_read:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r2
	ldr	r2, [r0]
	mov	r4, r0
	cmp	r2, r6
	mov	r8, r1
	mov	r7, r3
	sub	sp, sp, #8
	bcc	.L20
.L2:
	mov	r9, #1
	str	r9, [sp]
	mov	r1, r2
	ldr	r3, [r4, #8]
	ldr	r2, [r4, #12]
	ldr	r0, [r4, #4]
	bl	php_ap_memstr
	subs	r10, r0, #0
	sub	r6, r6, #1
	beq	.L3
	ldr	r0, [r4, #4]
	cmp	r7, #0
	sub	r5, r10, r0
	beq	.L5
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, [r4, #8]
	ldr	r2, [r4, #12]
	ldr	r1, [r4]
	bl	php_ap_memstr
	cmp	r0, #0
	strne	r9, [r7]
.L5:
	cmp	r6, r5
	movcc	r5, r6
	cmp	r5, #0
	bne	.L21
.L11:
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L20:
	bl	fill_buffer
	ldr	r2, [r4]
	b	.L2
.L3:
	ldr	r5, [r4]
	cmp	r6, r5
	movcc	r5, r6
	cmp	r5, #0
	beq	.L11
	mov	r2, r5
	mov	r0, r8
	ldr	r1, [r4, #4]
	bl	memcpy
	strb	r10, [r8, r5]
.L9:
	mov	r0, r5
	ldm	r4, {r2, r3}
	sub	r2, r2, r5
	add	r3, r3, r5
	stm	r4, {r2, r3}
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	mov	r2, r5
	ldr	r1, [r4, #4]
	mov	r0, r8
	bl	memcpy
	mov	r2, #0
	sub	r3, r5, #1
	strb	r2, [r8, r5]
	ldrb	r1, [r8, r3]	@ zero_extendqisi2
	cmp	r1, #13
	moveq	r5, r3
	strbeq	r2, [r8, r3]
	b	.L9
	.size	multipart_buffer_read, .-multipart_buffer_read
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
