	.file	"extr_ngx_http_sub_filter_module.c_ngx_http_sub_output.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"sub out: %p %p"
.LC1:
	.string	"the same buf was used in sub"
	.text
	.p2align 4
	.type	ngx_http_sub_output, @function
ngx_http_sub_output:
.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
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbp, QWORD PTR 32[rsi]
	test	rbp, rbp
	je	.L2
	xor	ebx, ebx
	lea	r14, .LC0[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rbp, QWORD PTR 0[rbp]
	test	rbp, rbp
	je	.L30
.L5:
	mov	r8, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR 8[r13]
	mov	rcx, r14
	xor	edx, edx
	mov	edi, DWORD PTR NGX_LOG_DEBUG_HTTP[rip]
	mov	r9d, DWORD PTR 16[r8]
	mov	esi, DWORD PTR [rax]
	call	ngx_log_debug2@PLT
	mov	rax, rbx
	mov	rbx, QWORD PTR 8[rbp]
	cmp	rbx, rax
	jne	.L3
	mov	rax, QWORD PTR 8[r13]
	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
	xor	eax, eax
	call	ngx_debug_point@PLT
	mov	r14d, DWORD PTR NGX_ERROR[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, r14d
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_restore_state
	mov	rbp, QWORD PTR 32[r12]
.L2:
	mov	rsi, rbp
	mov	rdi, r13
	call	ngx_http_next_body_filter@PLT
	mov	rbx, QWORD PTR 24[r12]
	mov	r14d, eax
	mov	rax, rbx
	test	rbx, rbx
	je	.L31
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, rax
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR 32[r12]
	mov	QWORD PTR [rdx], rax
	lea	rax, 32[r12]
	mov	QWORD PTR 32[r12], 0
	mov	QWORD PTR 40[r12], rax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rax, QWORD PTR 8[rbp]
	test	rax, rax
	je	.L11
	mov	edx, DWORD PTR [rax]
	mov	DWORD PTR 4[rax], edx
.L11:
	mov	rax, QWORD PTR [rbx]
	mov	rdi, rbp
	mov	QWORD PTR 24[r12], rax
	call	ngx_buf_in_memory@PLT
	test	rax, rax
	jne	.L12
	cmp	QWORD PTR 0[rbp], 0
	je	.L13
.L12:
	mov	rax, QWORD PTR 16[r12]
	mov	QWORD PTR [rbx], rax
	mov	QWORD PTR 16[r12], rbx
.L13:
	mov	rbx, QWORD PTR 24[r12]
	test	rbx, rbx
	je	.L8
.L14:
	mov	rbp, QWORD PTR 8[rbx]
	mov	rdi, rbp
	call	ngx_buf_size@PLT
	test	rax, rax
	je	.L32
.L8:
	cmp	QWORD PTR 8[r12], 0
	mov	edx, DWORD PTR 0[r13]
	mov	eax, DWORD PTR NGX_HTTP_SUB_BUFFERED[rip]
	jne	.L9
	cmp	QWORD PTR [r12], 0
	je	.L15
.L9:
	or	eax, edx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	DWORD PTR 0[r13], eax
	pop	r12
	.cfi_def_cfa_offset 24
	mov	eax, r14d
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	mov	rbx, QWORD PTR 32[r12]
	lea	rax, 32[r12]
	mov	QWORD PTR 32[r12], 0
	mov	QWORD PTR 40[r12], rax
	mov	QWORD PTR 24[r12], rbx
	test	rbx, rbx
	jne	.L14
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L15:
	not	eax
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	and	eax, edx
	pop	r12
	.cfi_def_cfa_offset 24
	mov	DWORD PTR 0[r13], eax
	mov	eax, r14d
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ngx_http_sub_output, .-ngx_http_sub_output
	.comm	NGX_LOG_DEBUG_HTTP,4,4
	.comm	NGX_LOG_ALERT,4,4
	.comm	NGX_HTTP_SUB_BUFFERED,4,4
	.comm	NGX_ERROR,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_http_sub_filter_module.c_ngx_http_sub_output.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"sub out: %p %p\000"
	.align	2
.LC1:
	.ascii	"the same buf was used in sub\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ngx_http_sub_output, %function
ngx_http_sub_output:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r4, [r1, #16]
	mov	r6, r1
	cmp	r4, #0
	mov	r7, r0
	sub	sp, sp, #12
	beq	.L2
	mov	r5, #0
	ldr	r8, .L35
	ldr	r9, .L35+4
	b	.L5
.L3:
	ldr	r4, [r4]
	cmp	r4, #0
	beq	.L32
.L5:
	ldr	r2, [r4, #4]
	ldr	r3, [r7, #4]
	ldr	r0, [r2, #8]
	ldr	r1, [r3]
	str	r2, [sp]
	str	r0, [sp, #4]
	mov	r2, #0
	mov	r3, r9
	ldr	r0, [r8]
	bl	ngx_log_debug2
	mov	r2, r5
	ldr	r5, [r4, #4]
	cmp	r5, r2
	bne	.L3
	ldr	r2, [r7, #4]
	ldr	r3, .L35+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	mov	r2, #0
	ldr	r3, .L35+12
	bl	ngx_log_error
	bl	ngx_debug_point
	ldr	r3, .L35+16
	ldr	r8, [r3]
.L1:
	mov	r0, r8
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L32:
	ldr	r4, [r6, #16]
.L2:
	mov	r1, r4
	mov	r0, r7
	bl	ngx_http_next_body_filter
	ldr	r4, [r6, #12]
	mov	r8, r0
	cmp	r4, #0
	movne	r3, r4
	beq	.L33
.L6:
	mov	r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L6
	mov	r1, r6
	ldr	r0, [r6, #16]
	str	r0, [r2]
	str	r3, [r1, #16]!
	str	r1, [r6, #20]
	b	.L14
.L34:
	ldr	r3, [r5, #4]
	mov	r0, r5
	cmp	r3, #0
	ldrne	r2, [r3]
	strne	r2, [r3, #4]
	ldr	r3, [r4]
	str	r3, [r6, #12]
	bl	ngx_buf_in_memory
	cmp	r0, #0
	bne	.L12
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L13
.L12:
	ldr	r3, [r6, #8]
	str	r3, [r4]
	str	r4, [r6, #8]
.L13:
	ldr	r4, [r6, #12]
	cmp	r4, #0
	beq	.L8
.L14:
	ldr	r5, [r4, #4]
	mov	r0, r5
	bl	ngx_buf_size
	cmp	r0, #0
	beq	.L34
.L8:
	ldr	r2, [r6, #4]
	ldr	r3, .L35+20
	cmp	r2, #0
	ldr	r3, [r3]
	ldr	r2, [r7]
	bne	.L9
	ldr	r1, [r6]
	cmp	r1, #0
	biceq	r3, r2, r3
	streq	r3, [r7]
	beq	.L1
.L9:
	mov	r0, r8
	orr	r3, r3, r2
	str	r3, [r7]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L33:
	mov	r2, #0
	mov	r3, r6
	ldr	r4, [r6, #16]
	str	r4, [r6, #12]
	cmp	r4, r2
	str	r2, [r3, #16]!
	str	r3, [r6, #20]
	bne	.L14
	b	.L8
.L36:
	.align	2
.L35:
	.word	NGX_LOG_DEBUG_HTTP
	.word	.LC0
	.word	NGX_LOG_ALERT
	.word	.LC1
	.word	NGX_ERROR
	.word	NGX_HTTP_SUB_BUFFERED
	.size	ngx_http_sub_output, .-ngx_http_sub_output
	.comm	NGX_LOG_DEBUG_HTTP,4,4
	.comm	NGX_LOG_ALERT,4,4
	.comm	NGX_HTTP_SUB_BUFFERED,4,4
	.comm	NGX_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
