	.file	"extr_ngx_http_request_body.c_ngx_http_read_client_request_body.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"http client request body preread %uz"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"negative request body rest"
	.text
	.p2align 4
	.globl	ngx_http_read_client_request_body
	.type	ngx_http_read_client_request_body, @function
ngx_http_read_client_request_body:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	r12, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	add	DWORD PTR 4[r12], 1
	cmp	r12, rdi
	je	.L29
.L27:
	mov	QWORD PTR 24[rbp], 0
	mov	rdi, rbp
	call	rbx
	mov	r12, QWORD PTR NGX_OK[rip]
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L29:
	.cfi_restore_state
	cmp	QWORD PTR 104[rdi], 0
	jne	.L27
	cmp	QWORD PTR 112[rdi], 0
	jne	.L27
	call	ngx_http_test_expect@PLT
	cmp	rax, QWORD PTR NGX_OK[rip]
	je	.L5
.L26:
	mov	r12, QWORD PTR NGX_HTTP_INTERNAL_SERVER_ERROR[rip]
.L6:
	cmp	QWORD PTR 24[rbp], 0
	je	.L18
	cmp	QWORD PTR NGX_OK[rip], r12
	je	.L19
.L22:
	cmp	QWORD PTR NGX_AGAIN[rip], r12
	jne	.L18
	mov	DWORD PTR 0[rbp], 1
.L21:
	mov	rax, QWORD PTR ngx_http_block_reading[rip]
	mov	rdi, rbp
	mov	QWORD PTR 16[rbp], rax
	call	rbx
.L18:
	cmp	QWORD PTR NGX_HTTP_SPECIAL_RESPONSE[rip], r12
	jg	.L1
	mov	rax, QWORD PTR 8[rbp]
	sub	DWORD PTR 4[rax], 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, DWORD PTR 40[rbp]
	mov	esi, 24
	call	ngx_pcalloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L26
	cmp	QWORD PTR 56[r12], 0
	mov	DWORD PTR [rax], -1
	mov	QWORD PTR 16[rax], rbx
	mov	QWORD PTR 104[r12], rax
	js	.L31
.L8:
	mov	rax, QWORD PTR 80[rbp]
	mov	r8, QWORD PTR [rax]
	mov	r14, r8
	sub	r14, QWORD PTR 8[rax]
	je	.L9
	mov	rax, QWORD PTR 72[rbp]
	mov	edi, DWORD PTR NGX_LOG_DEBUG_HTTP[rip]
	xor	edx, edx
	mov	r8, r14
	lea	rcx, .LC0[rip]
	mov	esi, DWORD PTR [rax]
	call	ngx_log_debug1@PLT
	mov	rax, QWORD PTR 80[rbp]
	mov	rsi, rsp
	mov	rdi, rbp
	mov	QWORD PTR [rsp], 0
	mov	QWORD PTR 8[rsp], rax
	call	ngx_http_request_body_filter@PLT
	cmp	QWORD PTR NGX_OK[rip], rax
	mov	r12, rax
	jne	.L10
	mov	rdx, QWORD PTR 80[rbp]
	mov	eax, DWORD PTR 88[rbp]
	mov	esi, DWORD PTR 64[rbp]
	mov	rcx, QWORD PTR [rdx]
	add	eax, DWORD PTR 8[rdx]
	add	eax, r14d
	sub	eax, ecx
	mov	DWORD PTR 88[rbp], eax
	mov	eax, DWORD PTR 0[r13]
	test	esi, esi
	jne	.L11
	test	eax, eax
	jle	.L11
	mov	rdx, QWORD PTR 16[rdx]
	sub	edx, ecx
	cmp	edx, eax
	jge	.L32
.L12:
	mov	esi, DWORD PTR ngx_http_core_module[rip]
	mov	rdi, rbp
	call	ngx_http_get_module_loc_conf@PLT
	mov	esi, DWORD PTR [rax]
	mov	eax, DWORD PTR 64[rbp]
	test	eax, eax
	jne	.L16
	mov	eax, esi
	mov	edx, DWORD PTR 0[r13]
	sar	eax, 2
	add	eax, esi
	cmp	edx, eax
	jge	.L16
	cmp	QWORD PTR 48[rbp], 0
	mov	esi, edx
	je	.L16
	add	esi, r14d
.L16:
	mov	edi, DWORD PTR 40[rbp]
	call	ngx_create_temp_buf@PLT
	mov	QWORD PTR 8[r13], rax
	test	rax, rax
	je	.L26
.L17:
	mov	rax, QWORD PTR ngx_http_read_client_request_body_handler[rip]
	mov	rdi, rbp
	mov	QWORD PTR 16[rbp], rax
	mov	rax, QWORD PTR ngx_http_request_empty_handler[rip]
	mov	QWORD PTR 32[rbp], rax
	call	ngx_http_do_read_client_request_body@PLT
	mov	r12, rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	xor	esi, esi
	mov	rdi, rbp
	call	ngx_http_request_body_filter@PLT
	cmp	rax, QWORD PTR NGX_OK[rip]
	jne	.L26
	mov	eax, DWORD PTR 0[r13]
.L11:
	test	eax, eax
	je	.L27
	jns	.L12
	mov	rax, QWORD PTR 72[rbp]
	mov	edi, DWORD PTR NGX_LOG_ALERT[rip]
	lea	rcx, .LC1[rip]
	xor	edx, edx
	mov	esi, DWORD PTR [rax]
	call	ngx_log_error@PLT
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L31:
	mov	edi, DWORD PTR 64[r12]
	test	edi, edi
	jne	.L8
	mov	QWORD PTR 24[r12], 0
	mov	rdi, r12
	call	rbx
	mov	r12, QWORD PTR NGX_OK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	QWORD PTR 24[rbp], 0
	jmp	.L21
.L10:
	cmp	QWORD PTR 24[rbp], 0
	jne	.L22
	jmp	.L18
.L32:
	mov	edi, DWORD PTR 40[rbp]
	call	ngx_calloc_buf@PLT
	test	rax, rax
	je	.L26
	mov	rdx, QWORD PTR 80[rbp]
	mov	DWORD PTR [rax], 1
	mov	rcx, QWORD PTR 8[rdx]
	mov	QWORD PTR 8[rax], rcx
	mov	QWORD PTR 16[rax], rcx
	mov	rcx, QWORD PTR [rdx]
	mov	rdx, QWORD PTR 16[rdx]
	mov	QWORD PTR 24[rax], rcx
	mov	QWORD PTR 32[rax], rdx
	mov	QWORD PTR 8[r13], rax
	jmp	.L17
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ngx_http_read_client_request_body, .-ngx_http_read_client_request_body
	.comm	ngx_http_request_empty_handler,8,8
	.comm	ngx_http_read_client_request_body_handler,8,8
	.comm	ngx_http_core_module,4,4
	.comm	ngx_http_block_reading,8,8
	.comm	NGX_OK,8,8
	.comm	NGX_LOG_DEBUG_HTTP,4,4
	.comm	NGX_LOG_ALERT,4,4
	.comm	NGX_HTTP_SPECIAL_RESPONSE,8,8
	.comm	NGX_HTTP_INTERNAL_SERVER_ERROR,8,8
	.comm	NGX_AGAIN,8,8
	.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_http_request_body.c_ngx_http_read_client_request_body.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"http client request body preread %uz\000"
	.align	2
.LC1:
	.ascii	"negative request body rest\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ngx_http_read_client_request_body
	.syntax unified
	.arm
	.fpu softvfp
	.type	ngx_http_read_client_request_body, %function
ngx_http_read_client_request_body:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r5, [r0, #8]
	ldr	r2, .L36
	ldr	r3, [r5, #4]
	sub	sp, sp, #28
	add	r3, r3, #1
	cmp	r5, r0
	ldr	r2, [r2]
	str	r2, [sp, #20]
	mov	r2,#0
	mov	r4, r0
	mov	r6, r1
	str	r3, [r5, #4]
	beq	.L31
.L2:
	mov	r3, #0
	mov	r0, r4
	str	r3, [r4, #16]
	blx	r6
	ldr	r3, .L36+4
	ldr	r5, [r3]
.L1:
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L32
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L31:
	ldr	r3, [r0, #56]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [r0, #60]
	cmp	r3, #0
	bne	.L2
	bl	ngx_http_test_expect
	ldr	r7, .L36+4
	ldr	r3, [r7]
	cmp	r0, r3
	beq	.L5
.L29:
	ldr	r3, .L36+8
	ldr	r5, [r3]
.L6:
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [r7]
	cmp	r3, r5
	beq	.L19
.L22:
	ldr	r3, .L36+12
	ldr	r3, [r3]
	cmp	r3, r5
	bne	.L18
	mov	r3, #1
	str	r3, [r4]
.L21:
	ldr	r3, .L36+16
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [r4, #12]
	blx	r6
.L18:
	ldr	r3, .L36+20
	ldr	r3, [r3]
	cmp	r3, r5
	ldrle	r2, [r4, #8]
	ldrle	r3, [r2, #4]
	suble	r3, r3, #1
	strle	r3, [r2, #4]
	b	.L1
.L5:
	mov	r1, #12
	ldr	r0, [r4, #24]
	bl	ngx_pcalloc
	subs	r8, r0, #0
	beq	.L29
	mvn	r3, #0
	ldr	r2, [r5, #32]
	str	r6, [r8, #8]
	cmp	r2, #0
	str	r3, [r8]
	str	r8, [r5, #56]
	blt	.L33
.L8:
	ldr	r3, [r4, #44]
	ldm	r3, {r2, r3}
	subs	r9, r2, r3
	beq	.L9
	ldr	r2, [r4, #40]
	ldr	r3, .L36+24
	ldr	r1, [r2]
	ldr	r0, [r3]
	mov	r2, #0
	ldr	r3, .L36+28
	str	r9, [sp]
	bl	ngx_log_debug1
	mov	r2, #0
	ldr	r3, [r4, #44]
	mov	r0, r4
	add	r1, sp, #12
	str	r3, [sp, #16]
	str	r2, [sp, #12]
	bl	ngx_http_request_body_filter
	ldr	r3, [r7]
	mov	r5, r0
	cmp	r3, r0
	bne	.L10
	ldr	r2, [r4, #44]
	ldr	r3, [r4, #48]
	ldr	r0, [r2, #4]
	ldr	r1, [r2]
	add	r3, r3, r0
	ldr	r0, [r4, #36]
	add	r3, r3, r9
	sub	r3, r3, r1
	cmp	r0, #0
	str	r3, [r4, #48]
	ldr	r3, [r8]
	bne	.L11
	cmp	r3, #0
	ble	.L11
	ldr	r2, [r2, #8]
	sub	r1, r2, r1
	cmp	r1, r3
	bge	.L34
.L12:
	ldr	r3, .L36+32
	mov	r0, r4
	ldr	r1, [r3]
	bl	ngx_http_get_module_loc_conf
	ldr	r3, [r4, #36]
	ldr	r1, [r0]
	cmp	r3, #0
	bne	.L16
	ldr	r3, [r8]
	add	r2, r1, r1, asr #2
	cmp	r3, r2
	bge	.L16
	ldr	r2, [r4, #28]
	cmp	r2, #0
	moveq	r1, r3
	addne	r1, r3, r9
.L16:
	ldr	r0, [r4, #24]
	bl	ngx_create_temp_buf
	cmp	r0, #0
	str	r0, [r8, #4]
	beq	.L29
	ldr	r2, .L36+36
	ldr	r3, .L36+40
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r0, r4
	str	r2, [r4, #12]
	str	r3, [r4, #20]
	bl	ngx_http_do_read_client_request_body
	mov	r5, r0
	b	.L6
.L9:
	mov	r1, r9
	mov	r0, r4
	bl	ngx_http_request_body_filter
	ldr	r3, [r7]
	cmp	r0, r3
	bne	.L29
	ldr	r3, [r8]
.L11:
	cmp	r3, #0
	beq	.L35
	bge	.L12
	ldr	r2, [r4, #40]
	ldr	r3, .L36+44
	ldr	r1, [r2]
	ldr	r0, [r3]
	mov	r2, #0
	ldr	r3, .L36+48
	bl	ngx_log_error
	b	.L29
.L33:
	ldr	r3, [r5, #36]
	cmp	r3, #0
	bne	.L8
	mov	r0, r5
	str	r3, [r5, #16]
	blx	r6
	ldr	r5, [r7]
	b	.L1
.L19:
	mov	r3, #0
	str	r3, [r4, #16]
	b	.L21
.L10:
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L22
	b	.L18
.L35:
	mov	r0, r4
	str	r3, [r4, #16]
	blx	r6
	ldr	r5, [r7]
	b	.L1
.L34:
	ldr	r0, [r4, #24]
	bl	ngx_calloc_buf
	subs	r3, r0, #0
	beq	.L29
	mov	r0, #1
	ldr	r2, [r4, #44]
	ldr	ip, .L36+36
	ldr	r1, [r2, #4]
	ldr	lr, [ip]
	ldr	ip, .L36+40
	str	r1, [r3, #4]
	str	r1, [r3, #8]
	ldr	ip, [ip]
	ldr	r1, [r2]
	ldr	r2, [r2, #8]
	str	r0, [r3]
	str	r1, [r3, #12]
	str	r2, [r3, #16]
	mov	r0, r4
	str	r3, [r8, #4]
	str	lr, [r4, #12]
	str	ip, [r4, #20]
	bl	ngx_http_do_read_client_request_body
	mov	r5, r0
	b	.L6
.L32:
	bl	__stack_chk_fail
.L37:
	.align	2
.L36:
	.word	.LC2
	.word	NGX_OK
	.word	NGX_HTTP_INTERNAL_SERVER_ERROR
	.word	NGX_AGAIN
	.word	ngx_http_block_reading
	.word	NGX_HTTP_SPECIAL_RESPONSE
	.word	NGX_LOG_DEBUG_HTTP
	.word	.LC0
	.word	ngx_http_core_module
	.word	ngx_http_read_client_request_body_handler
	.word	ngx_http_request_empty_handler
	.word	NGX_LOG_ALERT
	.word	.LC1
	.size	ngx_http_read_client_request_body, .-ngx_http_read_client_request_body
	.comm	ngx_http_request_empty_handler,4,4
	.comm	ngx_http_read_client_request_body_handler,4,4
	.comm	ngx_http_core_module,4,4
	.comm	ngx_http_block_reading,4,4
	.comm	NGX_OK,4,4
	.comm	NGX_LOG_DEBUG_HTTP,4,4
	.comm	NGX_LOG_ALERT,4,4
	.comm	NGX_HTTP_SPECIAL_RESPONSE,4,4
	.comm	NGX_HTTP_INTERNAL_SERVER_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
