	.file	"extr_ngx_aio_read_chain.c_ngx_aio_read_chain.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"aio_read: %d"
.LC1:
	.string	"aio_read total: %d"
	.text
	.p2align 4
	.globl	ngx_aio_read_chain
	.type	ngx_aio_read_chain, @function
ngx_aio_read_chain:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rax, QWORD PTR 8[rdi]
	mov	r13d, DWORD PTR [rax]
	test	r13d, r13d
	jne	.L2
	mov	rbp, rdi
	mov	rbx, rsi
	lea	r12, .LC0[rip]
	test	rsi, rsi
	je	.L12
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	je	.L27
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 8[rbx]
	xor	r8d, r8d
	mov	rsi, QWORD PTR 8[rax]
	mov	rdx, rsi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR 8[rax]
	cmp	rcx, rdx
	jne	.L6
.L7:
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR [rbx]
	mov	rax, rcx
	sub	rax, rdx
	sar	rax, 2
	add	r8, rax
	test	rbx, rbx
	jne	.L28
.L6:
	mov	rdx, r8
	mov	rdi, rbp
	call	ngx_aio_read@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR NGX_LOG_DEBUG_EVENT[rip]
	xor	edx, edx
	mov	r8d, eax
	mov	rcx, r12
	mov	r14d, eax
	call	ngx_log_debug1@PLT
	cmp	DWORD PTR NGX_AGAIN[rip], r14d
	je	.L29
	cmp	DWORD PTR NGX_ERROR[rip], r14d
	je	.L13
	test	r14d, r14d
	je	.L30
	lea	eax, 0[r13+r14]
	mov	esi, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR NGX_LOG_DEBUG_EVENT[rip]
	lea	rcx, .LC1[rip]
	cmovg	r13d, eax
	xor	edx, edx
	mov	r8d, r13d
	call	ngx_log_debug1@PLT
	test	rbx, rbx
	je	.L11
	mov	rax, QWORD PTR 8[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jne	.L5
.L27:
	test	r13d, r13d
	cmove	r13d, DWORD PTR NGX_AGAIN[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	mov	DWORD PTR 4[rax], 0
	xor	r13d, r13d
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L29:
	.cfi_restore_state
	test	r13d, r13d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	cmove	r13d, r14d
	pop	r12
	.cfi_def_cfa_offset 24
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	mov	r13d, r14d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r13d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L30:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbp]
	mov	DWORD PTR [rax], 1
	test	r13d, r13d
	je	.L1
	mov	QWORD PTR 8[rax], 0
	mov	DWORD PTR 4[rax], 1
	jmp	.L1
.L11:
	test	r13d, r13d
	jne	.L1
.L12:
	mov	r13d, DWORD PTR NGX_AGAIN[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ngx_aio_read_chain, .-ngx_aio_read_chain
	.comm	NGX_LOG_DEBUG_EVENT,4,4
	.comm	NGX_ERROR,4,4
	.comm	NGX_AGAIN,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_ngx_aio_read_chain.c_ngx_aio_read_chain.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"aio_read: %d\000"
	.align	2
.LC1:
	.ascii	"aio_read total: %d\000"
	.text
	.align	2
	.global	ngx_aio_read_chain
	.syntax unified
	.arm
	.fpu softvfp
	.type	ngx_aio_read_chain, %function
ngx_aio_read_chain:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0, #4]
	sub	sp, sp, #20
	ldr	r7, [r3]
	cmp	r7, #0
	bne	.L2
	cmp	r1, #0
	mov	r4, r1
	beq	.L25
	ldr	r3, [r3, #4]
	mov	r6, r0
	cmp	r3, #0
	ldr	r9, .L32
	ldr	r10, .L32+4
	ldr	r8, .L32+8
	ldr	fp, .L32+12
	beq	.L28
.L5:
	ldr	r0, [r4, #4]
	mov	r2, #0
	ldr	r1, [r0, #4]
	mov	r3, r1
	b	.L7
.L29:
	ldr	r0, [r4, #4]
	ldr	r3, [r0, #4]
	cmp	ip, r3
	bne	.L6
.L7:
	ldr	ip, [r0]
	ldr	r4, [r4]
	sub	r3, ip, r3
	cmp	r4, #0
	add	r2, r2, r3, asr #2
	bne	.L29
.L6:
	mov	r0, r6
	bl	ngx_aio_read
	mov	r5, r0
	str	r0, [sp]
	mov	r3, r10
	mov	r2, #0
	ldr	r1, [r6]
	ldr	r0, [r9]
	bl	ngx_log_debug1
	ldr	r3, [r8]
	str	r8, [sp, #12]
	cmp	r3, r5
	beq	.L30
	ldr	r3, .L32+16
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L13
	cmp	r5, #0
	beq	.L31
	addgt	r7, r7, r5
	str	r7, [sp]
	mov	r3, fp
	mov	r2, #0
	ldr	r1, [r6]
	ldr	r0, [r9]
	bl	ngx_log_debug1
	cmp	r4, #0
	beq	.L11
	ldr	r3, [r6, #4]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L5
.L28:
	cmp	r7, #0
	ldreq	r3, .L32+8
	ldreq	r7, [r3]
	b	.L1
.L2:
	mov	r7, #0
	str	r7, [r3, #4]
.L1:
	mov	r0, r7
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L30:
	cmp	r7, #0
	moveq	r7, r3
	mov	r0, r7
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	mov	r7, r3
	mov	r0, r7
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L31:
	mov	r2, #1
	ldr	r3, [r6, #4]
	cmp	r7, #0
	str	r2, [r3]
	stmibne	r3, {r2, r5}
	b	.L1
.L11:
	cmp	r7, #0
	bne	.L1
.L12:
	ldr	r3, [sp, #12]
	ldr	r7, [r3]
	b	.L1
.L25:
	ldr	r3, .L32+8
	str	r3, [sp, #12]
	b	.L12
.L33:
	.align	2
.L32:
	.word	NGX_LOG_DEBUG_EVENT
	.word	.LC0
	.word	NGX_AGAIN
	.word	.LC1
	.word	NGX_ERROR
	.size	ngx_aio_read_chain, .-ngx_aio_read_chain
	.comm	NGX_LOG_DEBUG_EVENT,4,4
	.comm	NGX_ERROR,4,4
	.comm	NGX_AGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
