	.file	"extr_aggregate_buckets.c_read_aggregate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	read_aggregate, @function
read_aggregate:
.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
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r14, QWORD PTR [rdi]
	mov	QWORD PTR 8[rsp], rdi
	mov	rsi, QWORD PTR 16[r14]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	DWORD PTR [r8], 0
	test	rsi, rsi
	je	.L30
	test	rbx, rbx
	je	.L5
	lea	rax, 20[rsp]
	mov	r15d, edx
	mov	r13, rcx
	mov	rbp, r8
	mov	QWORD PTR [rsp], rax
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, QWORD PTR 8[rsi]
	mov	r8, QWORD PTR [rsp]
	mov	rcx, r13
	mov	edx, r15d
	mov	rsi, rbx
	call	serf_bucket_read_iovec@PLT
	mov	edi, eax
	mov	r12d, eax
	call	SERF_BUCKET_READ_ERROR@PLT
	test	rax, rax
	jne	.L1
	mov	eax, DWORD PTR 20[rsp]
	add	DWORD PTR 0[rbp], eax
	test	eax, eax
	jle	.L31
	test	r12d, r12d
	je	.L1
.L7:
	mov	edi, r12d
	call	APR_STATUS_IS_EAGAIN@PLT
	test	rax, rax
	jne	.L1
	cmp	DWORD PTR SERF_ERROR_WAIT_CONN[rip], r12d
	je	.L1
	mov	rax, QWORD PTR 16[r14]
	mov	rdx, QWORD PTR 24[r14]
	mov	rsi, QWORD PTR [rax]
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR 24[r14], rax
	mov	QWORD PTR 16[r14], rsi
	test	rsi, rsi
	je	.L32
	cmp	QWORD PTR SERF_READ_ALL_AVAIL[rip], rbx
	movsx	rdx, DWORD PTR 20[rsp]
	jne	.L33
.L11:
	sub	r15d, edx
	lea	r13, 0[r13+rdx*8]
	test	rbx, rbx
	je	.L5
	test	r15d, r15d
	jne	.L15
.L5:
	mov	r12d, DWORD PTR APR_SUCCESS[rip]
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L34
	add	rsp, 40
	.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
.L31:
	.cfi_restore_state
	test	r12d, r12d
	jne	.L7
	mov	rsi, QWORD PTR 16[r14]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L33:
	test	edx, edx
	jle	.L11
	lea	edi, -1[rdx]
	mov	rax, r13
	lea	rdi, 8[r13+rdi*8]
	.p2align 4,,10
	.p2align 3
.L12:
	sub	rbx, QWORD PTR [rax]
	add	rax, 8
	cmp	rax, rdi
	jne	.L12
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rax, QWORD PTR 8[r14]
	mov	r12d, DWORD PTR APR_EOF[rip]
	test	rax, rax
	je	.L1
	mov	rsi, rdi
	mov	edi, DWORD PTR [r14]
	call	rax
	mov	r12d, eax
	jmp	.L1
.L32:
	mov	rax, QWORD PTR 8[r14]
	mov	r12d, DWORD PTR APR_EOF[rip]
	test	rax, rax
	je	.L1
	mov	rsi, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR [r14]
	call	rax
	mov	r12d, eax
	jmp	.L1
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	read_aggregate, .-read_aggregate
	.comm	SERF_READ_ALL_AVAIL,8,8
	.comm	SERF_ERROR_WAIT_CONN,4,4
	.comm	APR_SUCCESS,4,4
	.comm	APR_EOF,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_aggregate_buckets.c_read_aggregate.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_aggregate, %function
read_aggregate:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r6, [r0]
	sub	sp, sp, #28
	str	r0, [sp, #12]
	ldr	r0, [r6, #8]
	mov	fp, r3
	ldr	r7, [sp, #64]
	ldr	r3, .L39
	cmp	r0, ip
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	str	ip, [r7]
	beq	.L35
	cmp	r1, #0
	mov	r4, r1
	beq	.L5
	mov	r5, r2
	ldr	r9, .L39+4
	ldr	r10, .L39+8
.L14:
	add	r2, sp, #16
	mov	r3, fp
	mov	r1, r4
	ldr	r0, [r0, #4]
	str	r2, [sp]
	mov	r2, r5
	bl	serf_bucket_read_iovec
	mov	r8, r0
	bl	SERF_BUCKET_READ_ERROR
	cmp	r0, #0
	bne	.L1
	ldr	r2, [sp, #16]
	ldr	r3, [r7]
	cmp	r2, #0
	add	r3, r3, r2
	str	r3, [r7]
	ble	.L36
	cmp	r8, #0
	beq	.L1
.L7:
	mov	r0, r8
	bl	APR_STATUS_IS_EAGAIN
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r9]
	cmp	r3, r8
	beq	.L1
	ldr	r3, [r6, #8]
	ldr	r2, [r6, #12]
	ldr	r0, [r3]
	str	r2, [r3]
	cmp	r0, #0
	str	r0, [r6, #8]
	str	r3, [r6, #12]
	beq	.L37
	ldr	r3, [r10]
	ldr	r1, [sp, #16]
	cmp	r3, r4
	lsl	lr, r1, #2
	bne	.L26
.L11:
	subs	r5, r5, r1
	moveq	r3, #1
	movne	r3, #0
	cmp	r4, #0
	moveq	r3, #1
	cmp	r3, #0
	add	fp, fp, lr
	beq	.L14
.L5:
	ldr	r3, .L39+12
	ldr	r8, [r3]
.L1:
	ldr	r3, .L39
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L38
	mov	r0, r8
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L36:
	cmp	r8, #0
	bne	.L7
	ldr	r0, [r6, #8]
	b	.L14
.L26:
	cmp	r1, #0
	subgt	r2, lr, #4
	addgt	r2, fp, r2
	subgt	ip, fp, #4
	ble	.L11
.L12:
	ldr	r3, [ip, #4]!
	cmp	ip, r2
	sub	r4, r4, r3
	bne	.L12
	b	.L11
.L35:
	ldr	r3, [r6, #4]
	cmp	r3, ip
	beq	.L10
.L33:
	ldr	r1, [sp, #12]
	ldr	r0, [r6]
	blx	r3
	mov	r8, r0
	b	.L1
.L37:
	ldr	r3, [r6, #4]
	cmp	r3, #0
	bne	.L33
.L10:
	ldr	r3, .L39+16
	ldr	r8, [r3]
	b	.L1
.L38:
	bl	__stack_chk_fail
.L40:
	.align	2
.L39:
	.word	.LC0
	.word	SERF_ERROR_WAIT_CONN
	.word	SERF_READ_ALL_AVAIL
	.word	APR_SUCCESS
	.word	APR_EOF
	.size	read_aggregate, .-read_aggregate
	.comm	SERF_READ_ALL_AVAIL,4,4
	.comm	SERF_ERROR_WAIT_CONN,4,4
	.comm	APR_SUCCESS,4,4
	.comm	APR_EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
