	.file	"extr_dechunk_buckets.c_serf_dechunk_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	serf_dechunk_read, @function
serf_dechunk_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rbx, QWORD PTR [rdi]
	lea	r14, 16[rbx]
.L2:
	mov	eax, DWORD PTR [rbx]
	cmp	eax, 130
	je	.L3
.L30:
	jg	.L4
	cmp	eax, 128
	je	.L5
	cmp	eax, 129
	jne	.L7
	mov	esi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR SERF_NEWLINE_CRLF[rip]
	mov	rdi, r14
	call	serf_linebuf_fetch@PLT
	mov	edi, eax
	mov	r12d, eax
	call	SERF_BUCKET_READ_ERROR@PLT
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR SERF_LINEBUF_READY[rip]
	cmp	DWORD PTR 32[rbx], eax
	jne	.L10
	movsx	rax, DWORD PTR 16[rbx]
	cmp	eax, 8
	je	.L29
	mov	rdx, QWORD PTR 24[rbx]
	xor	esi, esi
	mov	BYTE PTR [rdx+rax], 0
	mov	rdi, QWORD PTR 24[rbx]
	mov	edx, 16
	call	apr_strtoi64@PLT
	mov	edi, DWORD PTR ERANGE[rip]
	cmp	DWORD PTR errno[rip], edi
	mov	DWORD PTR 4[rbx], eax
	je	.L26
	test	eax, eax
	jne	.L13
	mov	DWORD PTR [rbx], 130
	mov	r12d, DWORD PTR APR_EOF[rip]
.L14:
	test	r12d, r12d
	je	.L2
.L10:
	mov	DWORD PTR 0[rbp], 0
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L4:
	.cfi_restore_state
	cmp	eax, 131
	jne	.L7
	cmp	DWORD PTR 4[rbx], r13d
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, r13d
	mov	rcx, rbp
	cmovle	esi, DWORD PTR 4[rbx]
	mov	rdx, r15
	call	serf_bucket_read@PLT
	mov	edi, eax
	mov	r12d, eax
	call	SERF_BUCKET_READ_ERROR@PLT
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR 4[rbx]
	sub	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 4[rbx], eax
	jne	.L16
	movabs	rax, 8589934720
	mov	QWORD PTR [rbx], rax
.L16:
	mov	edi, r12d
	call	APR_STATUS_IS_EOF@PLT
	test	eax, eax
	cmovne	r12d, DWORD PTR SERF_ERROR_TRUNCATED_HTTP_RESPONSE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR 4[rbx]
	mov	rcx, rbp
	mov	rdx, r15
	call	serf_bucket_read@PLT
	mov	edi, eax
	mov	r12d, eax
	call	SERF_BUCKET_READ_ERROR@PLT
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR 4[rbx]
	sub	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 4[rbx], eax
	jne	.L17
.L20:
	mov	DWORD PTR [rbx], 129
.L18:
	mov	DWORD PTR 0[rbp], 0
	test	r12d, r12d
	jne	.L1
	mov	eax, DWORD PTR [rbx]
	cmp	eax, 130
	jne	.L30
	.p2align 4,,10
	.p2align 3
.L3:
	mov	DWORD PTR 0[rbp], 0
	mov	r12d, DWORD PTR APR_EOF[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r12d, DWORD PTR APR_EGENERAL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	DWORD PTR [rbx], 131
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, r12d
	call	APR_STATUS_IS_EOF@PLT
	test	eax, eax
	jne	.L31
	mov	eax, DWORD PTR 4[rbx]
	test	eax, eax
	jne	.L18
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L29:
	mov	edi, DWORD PTR ERANGE[rip]
.L26:
	add	rsp, 8
	.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
	jmp	APR_FROM_OS_ERROR@PLT
.L31:
	.cfi_restore_state
	mov	r12d, DWORD PTR SERF_ERROR_TRUNCATED_HTTP_RESPONSE[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	serf_dechunk_read, .-serf_dechunk_read
	.comm	errno,4,4
	.comm	SERF_NEWLINE_CRLF,4,4
	.comm	SERF_LINEBUF_READY,4,4
	.comm	SERF_ERROR_TRUNCATED_HTTP_RESPONSE,4,4
	.comm	ERANGE,4,4
	.comm	APR_EOF,4,4
	.comm	APR_EGENERAL,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_dechunk_buckets.c_serf_dechunk_read.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	serf_dechunk_read, %function
serf_dechunk_read:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r1
	mov	r7, r2
	mov	r5, r3
	ldr	r4, [r0]
	ldr	r8, .L35
	ldr	r9, .L35+4
	ldr	fp, .L35+8
.L2:
	ldr	r2, [r4]
	sub	r2, r2, #128
	cmp	r2, #3
	ldrls	pc, [pc, r2, asl #2]
	b	.L3
.L5:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L4
.L4:
	ldr	r1, [r4, #4]
	mov	r2, r7
	cmp	r6, r1
	movlt	r1, r6
	mov	r3, r5
	ldr	r0, [r4, #8]
	bl	serf_bucket_read
	mov	r10, r0
	bl	SERF_BUCKET_READ_ERROR
	cmp	r0, #0
	bne	.L1
	ldr	r1, [r5]
	ldr	r2, [r4, #4]
	sub	r2, r2, r1
	cmp	r2, #0
	str	r2, [r4, #4]
	moveq	r1, #128
	moveq	r2, #2
	stmeq	r4, {r1, r2}
.L16:
	mov	r0, r10
	bl	APR_STATUS_IS_EOF
	cmp	r0, #0
	beq	.L1
.L31:
	ldr	r3, .L35+12
	ldr	r10, [r3]
	b	.L1
.L6:
	mov	r2, #0
	ldr	r3, .L35+16
	str	r2, [r5]
	ldr	r10, [r3]
.L1:
	mov	r0, r10
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r3, r5
	mov	r2, r7
	ldr	r1, [r4, #4]
	ldr	r0, [r4, #8]
	bl	serf_bucket_read
	mov	r10, r0
	bl	SERF_BUCKET_READ_ERROR
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r4, #4]
	ldr	r2, [r5]
	sub	r3, r3, r2
	cmp	r3, #0
	str	r3, [r4, #4]
	bne	.L17
.L20:
	mov	r3, #129
	str	r3, [r4]
.L18:
	mov	r3, #0
	cmp	r10, #0
	str	r3, [r5]
	beq	.L2
	b	.L1
.L7:
	ldr	r1, [r4, #8]
	ldr	r2, [r8]
	add	r0, r4, #12
	bl	serf_linebuf_fetch
	mov	r10, r0
	bl	SERF_BUCKET_READ_ERROR
	subs	r1, r0, #0
	bne	.L1
	ldr	r2, [r4, #20]
	ldr	r3, [r9]
	cmp	r2, r3
	bne	.L10
	ldr	r3, [r4, #12]
	cmp	r3, #4
	beq	.L33
	ldr	r2, [r4, #16]
	strb	r1, [r2, r3]
	ldr	r0, [r4, #16]
	mov	r2, #16
	bl	apr_strtoi64
	ldr	r2, .L35+20
	ldr	r3, [fp]
	ldr	r2, [r2]
	str	r0, [r4, #4]
	cmp	r2, r3
	beq	.L34
	cmp	r0, #0
	moveq	r3, #130
	movne	r3, #131
	streq	r3, [r4]
	ldreq	r3, .L35+16
	strne	r3, [r4]
	ldreq	r10, [r3]
	cmp	r10, #0
	beq	.L2
.L10:
	mov	r2, #0
	mov	r0, r10
	str	r2, [r5]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	mov	r0, r10
	bl	APR_STATUS_IS_EOF
	cmp	r0, #0
	bne	.L31
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L18
	b	.L20
.L34:
	mov	r0, r2
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	APR_FROM_OS_ERROR
.L33:
	ldr	r3, .L35+8
	ldr	r0, [r3]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	APR_FROM_OS_ERROR
.L3:
	ldr	r3, .L35+24
	ldr	r10, [r3]
	b	.L1
.L36:
	.align	2
.L35:
	.word	SERF_NEWLINE_CRLF
	.word	SERF_LINEBUF_READY
	.word	ERANGE
	.word	SERF_ERROR_TRUNCATED_HTTP_RESPONSE
	.word	APR_EOF
	.word	errno
	.word	APR_EGENERAL
	.size	serf_dechunk_read, .-serf_dechunk_read
	.comm	errno,4,4
	.comm	SERF_NEWLINE_CRLF,4,4
	.comm	SERF_LINEBUF_READY,4,4
	.comm	SERF_ERROR_TRUNCATED_HTTP_RESPONSE,4,4
	.comm	ERANGE,4,4
	.comm	APR_EOF,4,4
	.comm	APR_EGENERAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
