	.file	"extr_ngx_http_request_body.c_ngx_http_request_body_chunked_filter.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"http request body chunked filter"
	.align 8
.LC1:
	.string	"http body chunked buf t:%d f:%d %p, pos %p, size: %z file: %O, size: %O"
	.align 8
.LC2:
	.string	"client intended to send too large chunked body: %O+%O bytes"
	.align 8
.LC3:
	.string	"client sent invalid chunked body"
	.text
	.p2align 4
	.type	ngx_http_request_body_chunked_filter, @function
ngx_http_request_body_chunked_filter:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	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
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rbx, QWORD PTR 32[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	cmp	DWORD PTR [rbx], -1
	je	.L27
.L2:
	mov	QWORD PTR 32[rsp], 0
	lea	r12, 32[rsp]
	mov	QWORD PTR 8[rsp], r12
	test	rbp, rbp
	je	.L6
.L5:
	mov	rax, QWORD PTR 8[rbp]
	mov	rdx, QWORD PTR 16[rax]
.L12:
	mov	rdi, QWORD PTR 56[rax]
	mov	rcx, QWORD PTR 64[rax]
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	r9d, DWORD PTR 72[rax]
	mov	rsi, QWORD PTR 8[r15]
	sub	rcx, rdi
	mov	r8d, DWORD PTR [rax]
	push	rcx
	.cfi_def_cfa_offset 128
	mov	esi, DWORD PTR [rsi]
	push	rdi
	.cfi_def_cfa_offset 136
	mov	rcx, QWORD PTR 24[rax]
	mov	edi, DWORD PTR NGX_LOG_DEBUG_EVENT[rip]
	sub	rcx, rdx
	push	rcx
	.cfi_def_cfa_offset 144
	lea	rcx, .LC1[rip]
	push	rdx
	.cfi_def_cfa_offset 152
	xor	edx, edx
	push	QWORD PTR 8[rax]
	.cfi_def_cfa_offset 160
	call	ngx_log_debug7@PLT
	mov	rdx, QWORD PTR 16[rbx]
	mov	rsi, QWORD PTR 8[rbp]
	mov	rdi, r15
	add	rsp, 48
	.cfi_def_cfa_offset 112
	call	ngx_http_parse_chunked@PLT
	cmp	QWORD PTR NGX_OK[rip], rax
	jne	.L7
	mov	esi, DWORD PTR ngx_http_core_module[rip]
	mov	rdi, r15
	call	ngx_http_get_module_loc_conf@PLT
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L8
	mov	rdx, QWORD PTR 16[rbx]
	mov	r8, QWORD PTR 16[r15]
	mov	r9, QWORD PTR [rdx]
	sub	rax, r8
	cmp	rax, r9
	jl	.L28
.L8:
	mov	edi, DWORD PTR 4[r15]
	lea	rsi, 8[rbx]
	call	ngx_chain_get_free_buf@PLT
	mov	r14, rax
	test	rax, rax
	je	.L25
	mov	r13, QWORD PTR 8[rax]
	mov	esi, 80
	mov	rdi, r13
	call	ngx_memzero@PLT
	lea	rax, ngx_http_read_client_request_body[rip]
	mov	rsi, QWORD PTR 16[rbx]
	mov	DWORD PTR 0[r13], 1
	mov	QWORD PTR 48[r13], rax
	mov	rax, QWORD PTR 8[rbp]
	mov	rcx, QWORD PTR 16[rax]
	mov	QWORD PTR 16[r13], rcx
	mov	r8, QWORD PTR 16[rax]
	mov	QWORD PTR 8[r13], rcx
	mov	rcx, QWORD PTR 24[rax]
	mov	QWORD PTR 24[r13], rcx
	mov	ecx, DWORD PTR 40[rax]
	mov	rdx, QWORD PTR 24[rax]
	mov	DWORD PTR 40[r13], ecx
	mov	ecx, DWORD PTR 24[r15]
	mov	r9, rdx
	mov	DWORD PTR 36[r13], ecx
	mov	rcx, QWORD PTR [rsi]
	sub	r9, r8
	mov	QWORD PTR [r12], r14
	mov	r12, r14
	cmp	rcx, r9
	jl	.L29
	add	rcx, r8
	sub	rcx, rdx
	mov	QWORD PTR [rsi], rcx
	add	QWORD PTR 16[r15], r9
	mov	QWORD PTR 16[rax], rdx
.L11:
	mov	QWORD PTR 24[r13], rdx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rax, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR NGX_LOG_DEBUG_HTTP[rip]
	lea	rcx, .LC0[rip]
	xor	edx, edx
	mov	esi, DWORD PTR [rax]
	call	ngx_log_debug0@PLT
	mov	edi, DWORD PTR 4[r15]
	mov	esi, 4
	call	ngx_pcalloc@PLT
	mov	QWORD PTR 16[rbx], rax
	test	rax, rax
	jne	.L3
	.p2align 4,,10
	.p2align 3
.L25:
	mov	r12, QWORD PTR NGX_HTTP_INTERNAL_SERVER_ERROR[rip]
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L29:
	.cfi_restore_state
	lea	rdx, [rcx+r8]
	mov	QWORD PTR 16[rax], rdx
	add	QWORD PTR 16[r15], rcx
	mov	QWORD PTR [rsi], 0
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L3:
	mov	QWORD PTR 16[r15], 0
	mov	DWORD PTR [rbx], 3
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	QWORD PTR NGX_DONE[rip], rax
	je	.L31
	cmp	QWORD PTR NGX_AGAIN[rip], rax
	jne	.L16
	mov	rax, QWORD PTR 16[rbx]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR [rbx], eax
.L15:
	mov	rbp, QWORD PTR 0[rbp]
	test	rbp, rbp
	jne	.L5
	mov	rbp, QWORD PTR 32[rsp]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, rbp
	mov	rdi, r15
	call	ngx_http_top_request_body_filter@PLT
	mov	edi, DWORD PTR 4[r15]
	mov	rcx, QWORD PTR 8[rsp]
	lea	rdx, 4[rbx]
	lea	rsi, 8[rbx]
	lea	r8, ngx_http_read_client_request_body[rip]
	mov	r12, rax
	call	ngx_chain_update_chains@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rax, QWORD PTR 8[r15]
	mov	edi, DWORD PTR NGX_LOG_ERR[rip]
	lea	rcx, .LC2[rip]
	xor	edx, edx
	mov	esi, DWORD PTR [rax]
	xor	eax, eax
	call	ngx_log_error@PLT
	mov	DWORD PTR [r15], 1
	mov	r12, QWORD PTR NGX_HTTP_REQUEST_ENTITY_TOO_LARGE[rip]
	jmp	.L1
.L31:
	mov	DWORD PTR [rbx], 0
	mov	edi, DWORD PTR 4[r15]
	lea	rsi, 8[rbx]
	call	ngx_chain_get_free_buf@PLT
	test	rax, rax
	je	.L25
	mov	rcx, QWORD PTR 8[rax]
	mov	esi, 80
	mov	QWORD PTR 24[rsp], rax
	mov	rdi, rcx
	mov	QWORD PTR 16[rsp], rcx
	call	ngx_memzero@PLT
	mov	rdx, QWORD PTR 24[rsp]
	mov	rcx, QWORD PTR 16[rsp]
	mov	DWORD PTR 32[rcx], 1
	mov	QWORD PTR [r12], rdx
	mov	r12, rdx
	jmp	.L15
.L16:
	mov	rax, QWORD PTR 8[r15]
	mov	edi, DWORD PTR NGX_LOG_ERR[rip]
	lea	rcx, .LC3[rip]
	xor	edx, edx
	mov	esi, DWORD PTR [rax]
	xor	eax, eax
	call	ngx_log_error@PLT
	mov	r12, QWORD PTR NGX_HTTP_BAD_REQUEST[rip]
	jmp	.L1
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ngx_http_request_body_chunked_filter, .-ngx_http_request_body_chunked_filter
	.comm	ngx_http_read_client_request_body,4,4
	.comm	ngx_http_core_module,4,4
	.comm	NGX_OK,8,8
	.comm	NGX_LOG_ERR,4,4
	.comm	NGX_LOG_DEBUG_HTTP,4,4
	.comm	NGX_LOG_DEBUG_EVENT,4,4
	.comm	NGX_HTTP_REQUEST_ENTITY_TOO_LARGE,8,8
	.comm	NGX_HTTP_INTERNAL_SERVER_ERROR,8,8
	.comm	NGX_HTTP_BAD_REQUEST,8,8
	.comm	NGX_DONE,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_request_body_chunked_filter.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"http request body chunked filter\000"
	.align	2
.LC1:
	.ascii	"http body chunked buf t:%d f:%d %p, pos %p, size: %"
	.ascii	"z file: %O, size: %O\000"
	.align	2
.LC2:
	.ascii	"client intended to send too large chunked body: %O+"
	.ascii	"%O bytes\000"
	.align	2
.LC3:
	.ascii	"client sent invalid chunked body\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ngx_http_request_body_chunked_filter, %function
ngx_http_request_body_chunked_filter:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r6, [r0, #20]
	ldr	r2, .L31
	ldr	r3, [r6]
	sub	sp, sp, #60
	cmn	r3, #1
	mov	r4, r0
	mov	r7, r1
	ldr	r2, [r2]
	str	r2, [sp, #52]
	mov	r2,#0
	beq	.L26
.L2:
	mov	r3, #0
	cmp	r7, r3
	str	r3, [sp, #48]
	add	r3, sp, #48
	str	r3, [sp, #44]
	beq	.L6
	mov	r10, r7
	ldr	fp, .L31+4
	ldr	r9, .L31+8
	ldr	r8, .L31+12
	str	r3, [sp, #36]
.L5:
	ldr	r2, [r10, #4]
	ldr	r3, [r2, #8]
.L12:
	ldr	ip, [r2, #32]
	ldr	r0, [r2, #36]
	ldr	r1, [r4, #8]
	sub	r0, r0, ip
	ldr	r1, [r1]
	str	ip, [sp, #20]
	str	r0, [sp, #24]
	ldr	r0, [r2, #12]
	str	r3, [sp, #12]
	sub	r3, r0, r3
	str	r3, [sp, #16]
	ldr	r3, [r2, #4]
	str	r3, [sp, #8]
	ldr	r0, [r2, #40]
	mov	r3, r8
	str	r0, [sp, #4]
	ldr	r0, [r2]
	mov	r2, #0
	str	r0, [sp]
	ldr	r0, [fp]
	bl	ngx_log_debug7
	mov	r0, r4
	ldr	r2, [r6, #12]
	ldr	r1, [r10, #4]
	bl	ngx_http_parse_chunked
	ldr	r3, [r9]
	cmp	r3, r0
	bne	.L7
	ldr	r3, .L31+16
	mov	r0, r4
	ldr	r1, [r3]
	bl	ngx_http_get_module_loc_conf
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L8
	ldr	r1, [r6, #12]
	ldr	r2, [r4, #12]
	ldr	ip, [r1]
	sub	r3, r3, r2
	cmp	r3, ip
	blt	.L27
.L8:
	ldr	r0, [r4, #4]
	add	r1, r6, #8
	bl	ngx_chain_get_free_buf
	subs	r5, r0, #0
	beq	.L24
	ldr	r7, [r5, #4]
	mov	r1, #44
	mov	r0, r7
	bl	ngx_memzero
	ldr	r2, [r10, #4]
	ldr	r1, [r6, #12]
	ldr	ip, [r2, #8]
	ldr	r3, [r2, #12]
	str	ip, [r7, #8]
	str	r3, [r7, #12]
	ldr	r3, [r2, #12]
	ldr	r0, [r2, #8]
	str	r1, [sp, #40]
	ldr	r1, [r1]
	str	ip, [r7, #4]
	mov	ip, #1
	ldr	lr, .L31+20
	str	ip, [r7]
	str	lr, [r7, #28]
	ldr	ip, [r4, #16]
	ldr	lr, [r2, #24]
	str	ip, [r7, #20]
	str	lr, [r7, #24]
	sub	ip, r3, r0
	ldr	lr, [sp, #36]
	cmp	r1, ip
	str	r5, [lr]
	str	r5, [sp, #36]
	blt	.L28
	ldr	lr, [r4, #12]
	add	r1, r1, r0
	ldr	r0, [sp, #40]
	sub	r1, r1, r3
	add	ip, lr, ip
	str	r1, [r0]
	str	ip, [r4, #12]
	str	r3, [r2, #8]
.L11:
	str	r3, [r7, #12]
	b	.L12
.L26:
	ldr	r2, [r0, #8]
	ldr	r3, .L31+24
	ldr	r1, [r2]
	ldr	r0, [r3]
	mov	r2, #0
	ldr	r3, .L31+28
	bl	ngx_log_debug0
	mov	r1, #4
	ldr	r0, [r4, #4]
	bl	ngx_pcalloc
	cmp	r0, #0
	str	r0, [r6, #12]
	bne	.L3
.L24:
	ldr	r3, .L31+32
	ldr	r4, [r3]
.L1:
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	mov	r0, r4
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L28:
	mov	lr, #0
	ldr	ip, [r4, #12]
	add	r3, r1, r0
	add	r1, ip, r1
	str	r3, [r2, #8]
	str	r1, [r4, #12]
	ldr	r1, [sp, #40]
	str	lr, [r1]
	b	.L11
.L3:
	mov	r2, #0
	mov	r3, #3
	str	r2, [r4, #12]
	str	r3, [r6]
	b	.L2
.L7:
	ldr	r3, .L31+36
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L30
	ldr	r3, .L31+40
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L16
	ldr	r3, [r6, #12]
	ldr	r3, [r3, #4]
	str	r3, [r6]
.L15:
	ldr	r10, [r10]
	cmp	r10, #0
	bne	.L5
	ldr	r7, [sp, #48]
.L6:
	mov	r1, r7
	mov	r0, r4
	bl	ngx_http_top_request_body_filter
	mov	ip, r0
	ldr	r2, .L31+20
	ldr	r0, [r4, #4]
	ldr	r3, [sp, #44]
	str	r2, [sp]
	add	r1, r6, #8
	add	r2, r6, #4
	mov	r4, ip
	bl	ngx_chain_update_chains
	b	.L1
.L27:
	ldr	r1, [r4, #8]
	ldr	r3, .L31+44
	ldr	r1, [r1]
	ldr	r0, [r3]
	stm	sp, {r2, ip}
	ldr	r3, .L31+48
	mov	r2, #0
	bl	ngx_log_error
	mov	r2, #1
	ldr	r3, .L31+52
	str	r2, [r4]
	ldr	r4, [r3]
	b	.L1
.L30:
	mov	r3, #0
	mov	r1, r6
	ldr	r0, [r4, #4]
	str	r3, [r1], #8
	bl	ngx_chain_get_free_buf
	subs	r5, r0, #0
	beq	.L24
	ldr	r7, [r5, #4]
	mov	r1, #44
	mov	r0, r7
	bl	ngx_memzero
	mov	r3, #1
	str	r3, [r7, #16]
	ldr	r3, [sp, #36]
	str	r5, [sp, #36]
	str	r5, [r3]
	b	.L15
.L16:
	ldr	r2, [r4, #8]
	ldr	r3, .L31+44
	ldr	r1, [r2]
	ldr	r0, [r3]
	mov	r2, #0
	ldr	r3, .L31+56
	bl	ngx_log_error
	ldr	r3, .L31+60
	ldr	r4, [r3]
	b	.L1
.L29:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	.LC4
	.word	NGX_LOG_DEBUG_EVENT
	.word	NGX_OK
	.word	.LC1
	.word	ngx_http_core_module
	.word	ngx_http_read_client_request_body
	.word	NGX_LOG_DEBUG_HTTP
	.word	.LC0
	.word	NGX_HTTP_INTERNAL_SERVER_ERROR
	.word	NGX_DONE
	.word	NGX_AGAIN
	.word	NGX_LOG_ERR
	.word	.LC2
	.word	NGX_HTTP_REQUEST_ENTITY_TOO_LARGE
	.word	.LC3
	.word	NGX_HTTP_BAD_REQUEST
	.size	ngx_http_request_body_chunked_filter, .-ngx_http_request_body_chunked_filter
	.comm	ngx_http_read_client_request_body,4,4
	.comm	ngx_http_core_module,4,4
	.comm	NGX_OK,4,4
	.comm	NGX_LOG_ERR,4,4
	.comm	NGX_LOG_DEBUG_HTTP,4,4
	.comm	NGX_LOG_DEBUG_EVENT,4,4
	.comm	NGX_HTTP_REQUEST_ENTITY_TOO_LARGE,4,4
	.comm	NGX_HTTP_INTERNAL_SERVER_ERROR,4,4
	.comm	NGX_HTTP_BAD_REQUEST,4,4
	.comm	NGX_DONE,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
