	.file	"extr_ngx_http_proxy_connect_module.c_ngx_http_proxy_connect_check_broken_connection.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"proxy_connect: check client, write event:%d, \"%V:%V\""
	.align 8
.LC1:
	.string	"proxy_connect: upstream recv(): %d"
	.align 8
.LC2:
	.string	"proxy_connect: client prematurely closed connection, so upstream connection is closed too"
	.align 8
.LC3:
	.string	"proxy_connect: client prematurely closed connection"
	.text
	.p2align 4
	.type	ngx_http_proxy_connect_check_broken_connection, @function
ngx_http_proxy_connect_check_broken_connection:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	r9, 12[rdi]
	lea	rcx, .LC0[rip]
	xor	edx, edx
	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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 32
	.cfi_def_cfa_offset 88
	mov	esi, DWORD PTR 20[rsi]
	mov	r8, QWORD PTR 24[r12]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 16[rsp], rax
	xor	eax, eax
	lea	rax, 8[rdi]
	mov	edi, DWORD PTR NGX_LOG_DEBUG_HTTP[rip]
	push	rax
	.cfi_def_cfa_offset 96
	call	ngx_log_debug3@PLT
	mov	rbx, QWORD PTR 0[rbp]
	mov	esi, DWORD PTR ngx_http_proxy_connect_module[rip]
	mov	rdi, rbp
	call	ngx_http_get_module_ctx@PLT
	mov	ecx, DWORD PTR [rbx]
	mov	r13, QWORD PTR [rax]
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	test	ecx, ecx
	je	.L2
	mov	eax, DWORD PTR ngx_event_flags[rip]
	test	DWORD PTR NGX_USE_LEVEL_EVENT[rip], eax
	je	.L31
	cmp	QWORD PTR 32[r12], 0
	je	.L31
	cmp	QWORD PTR 24[r12], 0
	mov	esi, DWORD PTR NGX_READ_EVENT[rip]
	je	.L5
	mov	esi, DWORD PTR NGX_WRITE_EVENT[rip]
.L5:
	xor	edx, edx
	mov	rdi, r12
	call	ngx_del_event@PLT
	cmp	rax, QWORD PTR NGX_OK[rip]
	jne	.L30
.L31:
	mov	edx, DWORD PTR NGX_HTTP_CLIENT_CLOSED_REQUEST[rip]
	mov	rsi, r13
	mov	rdi, rbp
	call	ngx_http_proxy_connect_finalize_request@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L33
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	mov	ecx, DWORD PTR MSG_PEEK[rip]
	lea	rsi, 7[rsp]
	mov	edx, 1
	call	recv@PLT
	mov	esi, DWORD PTR 20[r12]
	mov	r15, QWORD PTR ngx_socket_errno[rip]
	lea	rcx, .LC1[rip]
	mov	edi, DWORD PTR NGX_LOG_DEBUG_HTTP[rip]
	mov	r8d, eax
	mov	r14d, eax
	mov	rdx, r15
	call	ngx_log_debug1@PLT
	cmp	QWORD PTR 24[r12], 0
	jne	.L34
	mov	eax, DWORD PTR ngx_event_flags[rip]
	test	DWORD PTR NGX_USE_LEVEL_EVENT[rip], eax
	je	.L11
	cmp	QWORD PTR 32[r12], 0
	jne	.L35
.L11:
	test	r14d, r14d
	jg	.L1
.L18:
	cmp	r14d, -1
	je	.L36
.L21:
	xor	r15d, r15d
.L13:
	cmp	QWORD PTR 0[r13], 0
	mov	DWORD PTR [r12], 1
	mov	esi, DWORD PTR 20[r12]
	mov	DWORD PTR [rbx], 1
	mov	edi, DWORD PTR NGX_LOG_INFO[rip]
	je	.L14
	lea	rcx, .LC2[rip]
	mov	rdx, r15
	call	ngx_log_error@PLT
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L34:
	test	r14d, r14d
	jns	.L1
	cmp	QWORD PTR NGX_EAGAIN[rip], r15
	je	.L1
	mov	eax, DWORD PTR ngx_event_flags[rip]
	test	DWORD PTR NGX_USE_LEVEL_EVENT[rip], eax
	je	.L37
	cmp	QWORD PTR 32[r12], 0
	mov	esi, DWORD PTR NGX_WRITE_EVENT[rip]
	je	.L18
.L12:
	xor	edx, edx
	mov	rdi, r12
	call	ngx_del_event@PLT
	cmp	rax, QWORD PTR NGX_OK[rip]
	je	.L11
	.p2align 4,,10
	.p2align 3
.L30:
	mov	edx, DWORD PTR NGX_HTTP_INTERNAL_SERVER_ERROR[rip]
	mov	rsi, r13
	mov	rdi, rbp
	call	ngx_http_proxy_connect_finalize_request@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rcx, .LC3[rip]
	mov	rdx, r15
	call	ngx_log_error@PLT
	cmp	QWORD PTR 0[r13], 0
	jne	.L1
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L37:
	cmp	r14d, -1
	jne	.L21
.L16:
	mov	DWORD PTR 16[r12], 1
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L36:
	cmp	QWORD PTR NGX_EAGAIN[rip], r15
	jne	.L16
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L35:
	mov	esi, DWORD PTR NGX_READ_EVENT[rip]
	jmp	.L12
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ngx_http_proxy_connect_check_broken_connection, .-ngx_http_proxy_connect_check_broken_connection
	.comm	ngx_socket_errno,8,8
	.comm	ngx_http_proxy_connect_module,4,4
	.comm	ngx_event_flags,4,4
	.comm	NGX_WRITE_EVENT,4,4
	.comm	NGX_USE_LEVEL_EVENT,4,4
	.comm	NGX_USE_KQUEUE_EVENT,4,4
	.comm	NGX_READ_EVENT,4,4
	.comm	NGX_OK,8,8
	.comm	NGX_LOG_INFO,4,4
	.comm	NGX_LOG_DEBUG_HTTP,4,4
	.comm	NGX_HTTP_INTERNAL_SERVER_ERROR,4,4
	.comm	NGX_HTTP_CLIENT_CLOSED_REQUEST,4,4
	.comm	NGX_EAGAIN,8,8
	.comm	MSG_PEEK,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_proxy_connect_module.c_ngx_http_proxy_connect_check_broken_connection.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"proxy_connect: check client, write event:%d, \"%V:%"
	.ascii	"V\"\000"
	.align	2
.LC1:
	.ascii	"proxy_connect: upstream recv(): %d\000"
	.align	2
.LC2:
	.ascii	"proxy_connect: client prematurely closed connection"
	.ascii	", so upstream connection is closed too\000"
	.align	2
.LC3:
	.ascii	"proxy_connect: client prematurely closed connection"
	.ascii	"\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_proxy_connect_check_broken_connection, %function
ngx_http_proxy_connect_check_broken_connection:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	mov	r4, r0
	ldr	r1, [r1, #16]
	sub	sp, sp, #28
	add	r2, r0, #4
	add	r3, r0, #8
	ldr	r7, .L40
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	ldr	ip, .L40+4
	str	r1, [sp]
	mov	r2, #0
	ldr	r1, [r5, #12]
	ldr	r3, .L40+8
	ldr	r0, [r7]
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	bl	ngx_log_debug3
	ldr	r3, .L40+12
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r6, [r4]
	bl	ngx_http_get_module_ctx
	ldr	r8, [r6]
	ldr	r9, [r0]
	cmp	r8, #0
	beq	.L2
	ldr	r2, .L40+16
	ldr	r3, .L40+20
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L32
	ldr	r3, [r5, #20]
	cmp	r3, #0
	beq	.L32
	ldr	r3, [r5, #16]
	mov	r0, r5
	cmp	r3, #0
	ldrne	r3, .L40+24
	ldreq	r3, .L40+28
	mov	r2, #0
	ldr	r1, [r3]
	bl	ngx_del_event
	ldr	r3, .L40+32
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L33
.L32:
	ldr	r3, .L40+36
	mov	r1, r9
	mov	r0, r4
	ldr	r2, [r3]
	bl	ngx_http_proxy_connect_finalize_request
.L1:
	ldr	r3, .L40+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L40+40
	mov	r2, #1
	ldr	r3, [r3]
	add	r1, sp, #16
	ldr	r0, [r6, #4]
	bl	recv
	ldr	r3, .L40+44
	str	r0, [sp]
	ldr	fp, [r3]
	mov	r10, r0
	ldr	r3, .L40+48
	mov	r2, fp
	ldr	r0, [r7]
	ldr	r1, [r5, #12]
	bl	ngx_log_debug1
	ldr	r3, [r5, #16]
	cmp	r3, #0
	bne	.L36
	ldr	r2, .L40+16
	ldr	r3, .L40+20
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L11
	ldr	r3, [r5, #20]
	cmp	r3, #0
	bne	.L37
.L11:
	cmp	r10, #0
	bgt	.L1
.L18:
	cmn	r10, #1
	beq	.L38
.L13:
	mov	r3, #1
	ldr	r2, [r9]
	ldr	r1, [r5, #12]
	cmp	r2, #0
	ldr	r2, .L40+52
	str	r3, [r5]
	ldr	r0, [r2]
	str	r3, [r6]
	mov	r2, r8
	beq	.L14
	ldr	r3, .L40+56
	bl	ngx_log_error
	b	.L32
.L36:
	cmp	r10, #0
	bge	.L1
	ldr	r3, .L40+60
	ldr	r3, [r3]
	cmp	r3, fp
	beq	.L1
	ldr	r2, .L40+16
	ldr	r3, .L40+20
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L39
	ldr	r3, [r5, #20]
	cmp	r3, #0
	beq	.L18
	ldr	r3, .L40+24
	ldr	r1, [r3]
.L12:
	mov	r2, #0
	mov	r0, r5
	bl	ngx_del_event
	ldr	r3, .L40+32
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L11
.L33:
	ldr	r3, .L40+64
	mov	r1, r9
	mov	r0, r4
	ldr	r2, [r3]
	bl	ngx_http_proxy_connect_finalize_request
	b	.L1
.L14:
	ldr	r3, .L40+68
	bl	ngx_log_error
	ldr	r3, [r9]
	cmp	r3, #0
	bne	.L1
	b	.L32
.L39:
	cmn	r10, #1
	bne	.L13
.L16:
	mov	r3, #1
	mov	r8, fp
	str	r3, [r5, #8]
	b	.L13
.L38:
	ldr	r3, .L40+60
	ldr	r3, [r3]
	cmp	r3, fp
	bne	.L16
	b	.L1
.L37:
	ldr	r3, .L40+28
	ldr	r1, [r3]
	b	.L12
.L35:
	bl	__stack_chk_fail
.L41:
	.align	2
.L40:
	.word	NGX_LOG_DEBUG_HTTP
	.word	.LC4
	.word	.LC0
	.word	ngx_http_proxy_connect_module
	.word	ngx_event_flags
	.word	NGX_USE_LEVEL_EVENT
	.word	NGX_WRITE_EVENT
	.word	NGX_READ_EVENT
	.word	NGX_OK
	.word	NGX_HTTP_CLIENT_CLOSED_REQUEST
	.word	MSG_PEEK
	.word	ngx_socket_errno
	.word	.LC1
	.word	NGX_LOG_INFO
	.word	.LC2
	.word	NGX_EAGAIN
	.word	NGX_HTTP_INTERNAL_SERVER_ERROR
	.word	.LC3
	.size	ngx_http_proxy_connect_check_broken_connection, .-ngx_http_proxy_connect_check_broken_connection
	.comm	ngx_socket_errno,4,4
	.comm	ngx_http_proxy_connect_module,4,4
	.comm	ngx_event_flags,4,4
	.comm	NGX_WRITE_EVENT,4,4
	.comm	NGX_USE_LEVEL_EVENT,4,4
	.comm	NGX_USE_KQUEUE_EVENT,4,4
	.comm	NGX_READ_EVENT,4,4
	.comm	NGX_OK,4,4
	.comm	NGX_LOG_INFO,4,4
	.comm	NGX_LOG_DEBUG_HTTP,4,4
	.comm	NGX_HTTP_INTERNAL_SERVER_ERROR,4,4
	.comm	NGX_HTTP_CLIENT_CLOSED_REQUEST,4,4
	.comm	NGX_EAGAIN,4,4
	.comm	MSG_PEEK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
