	.file	"extr_ngx_proxy_protocol.c_ngx_proxy_protocol_read.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"broken header: \"%*s\""
.LC1:
	.string	"PROXY "
.LC2:
	.string	"UNKNOWN"
.LC3:
	.string	"TCP"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC4:
	.string	"PROXY protocol unknown protocol"
	.section	.rodata.str1.1
.LC5:
	.string	"PROXY protocol address: %V %d"
	.text
	.p2align 4
	.globl	ngx_proxy_protocol_read
	.type	ngx_proxy_protocol_read, @function
ngx_proxy_protocol_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	sub	r15, rsi
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	r15, 3
	ja	.L2
.L5:
	mov	esi, DWORD PTR [r14]
	mov	edi, DWORD PTR NGX_LOG_ERR[rip]
	mov	r9, r13
	mov	r8, r15
	lea	rcx, .LC0[rip]
	xor	edx, edx
	call	ngx_log_error@PLT
	xor	eax, eax
.L1:
	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	r12, rdx
	lea	rsi, signature.1987[rip]
	mov	edx, 12
	mov	rdi, r13
	call	memcmp@PLT
	test	rax, rax
	je	.L33
	cmp	r15, 7
	jbe	.L5
	mov	edx, 6
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	ngx_strncmp@PLT
	test	rax, rax
	jne	.L5
	lea	rax, -6[r15]
	lea	rbp, 6[r13]
	cmp	rax, 6
	ja	.L34
	cmp	rax, 4
	jbe	.L5
.L10:
	mov	edx, 3
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	ngx_strncmp@PLT
	test	rax, rax
	jne	.L5
	movzx	eax, BYTE PTR 9[r13]
	and	eax, -3
	cmp	al, 52
	jne	.L5
	cmp	BYTE PTR 10[r13], 32
	jne	.L5
	lea	rbx, 11[r13]
	cmp	r12, rbx
	je	.L5
	mov	rbp, rbx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L35:
	cmp	al, 58
	je	.L13
	cmp	al, 46
	je	.L13
	mov	edx, eax
	and	edx, -33
	sub	edx, 65
	cmp	dl, 5
	jbe	.L13
	sub	eax, 48
	cmp	al, 9
	ja	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	cmp	r12, rbp
	je	.L5
.L11:
	movzx	eax, BYTE PTR 0[rbp]
	add	rbp, 1
	cmp	al, 32
	jne	.L35
	mov	rdx, rbp
	mov	edi, DWORD PTR 32[r14]
	sub	rdx, rbx
	sub	rdx, 1
	mov	rsi, rdx
	mov	QWORD PTR 8[rsp], rdx
	call	ngx_pnalloc@PLT
	mov	QWORD PTR 24[r14], rax
	test	rax, rax
	je	.L1
	mov	rdx, QWORD PTR 8[rsp]
	mov	rsi, rbx
	mov	rdi, rax
	call	ngx_memcpy@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	QWORD PTR 16[r14], rdx
	.p2align 4,,10
	.p2align 3
.L14:
	cmp	rbp, r12
	je	.L5
	add	rbp, 1
	cmp	BYTE PTR -1[rbp], 32
	jne	.L14
	mov	rbx, rbp
	.p2align 4,,10
	.p2align 3
.L15:
	cmp	rbx, r12
	je	.L5
	add	rbx, 1
	cmp	BYTE PTR -1[rbx], 32
	jne	.L15
	mov	rsi, rbx
	mov	rdi, rbp
	sub	rsi, rbp
	sub	rsi, 1
	call	ngx_atoi@PLT
	cmp	eax, 65535
	ja	.L5
	movsx	r9, eax
	mov	esi, DWORD PTR [r14]
	mov	edi, DWORD PTR NGX_LOG_DEBUG_CORE[rip]
	lea	r8, 16[r14]
	mov	QWORD PTR 8[r14], r9
	lea	rcx, .LC5[rip]
	xor	edx, edx
	call	ngx_log_debug2@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L34:
	mov	edx, 7
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	ngx_strncmp@PLT
	test	rax, rax
	jne	.L10
	mov	esi, DWORD PTR [r14]
	mov	edi, DWORD PTR NGX_LOG_DEBUG_CORE[rip]
	xor	edx, edx
	lea	rbx, 13[r13]
	lea	rcx, .LC4[rip]
	call	ngx_log_debug0@PLT
.L9:
	sub	r12, 1
	cmp	r12, rbx
	jbe	.L5
	movzx	eax, BYTE PTR CR[rip]
	movzx	edx, BYTE PTR LF[rip]
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	add	rbx, 1
	cmp	r12, rbx
	je	.L5
.L17:
	cmp	BYTE PTR [rbx], al
	jne	.L16
	cmp	BYTE PTR 1[rbx], dl
	jne	.L16
	lea	rax, 2[rbx]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	rdx, r12
	mov	rsi, r13
	mov	rdi, r14
	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
	jmp	ngx_proxy_protocol_v2_read@PLT
	.cfi_endproc
.LFE0:
	.size	ngx_proxy_protocol_read, .-ngx_proxy_protocol_read
	.section	.rodata
	.align 8
	.type	signature.1987, @object
	.size	signature.1987, 13
signature.1987:
	.string	"\r\n\r\n"
	.string	"\r\nQUIT\n"
	.comm	NGX_LOG_ERR,4,4
	.comm	NGX_LOG_DEBUG_CORE,4,4
	.comm	LF,1,1
	.comm	CR,1,1
	.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_proxy_protocol.c_ngx_proxy_protocol_read.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PROXY \000"
	.align	2
.LC1:
	.ascii	"UNKNOWN\000"
	.align	2
.LC2:
	.ascii	"TCP\000"
	.align	2
.LC3:
	.ascii	"PROXY protocol unknown protocol\000"
	.align	2
.LC4:
	.ascii	"PROXY protocol address: %V %d\000"
	.align	2
.LC5:
	.ascii	"broken header: \"%*s\"\000"
	.text
	.align	2
	.global	ngx_proxy_protocol_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	ngx_proxy_protocol_read, %function
ngx_proxy_protocol_read:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	sub	r8, r2, r1
	cmp	r8, #3
	mov	r6, r1
	mov	r7, r0
	sub	sp, sp, #8
	bls	.L2
	mov	r5, r2
	mov	r0, r6
	mov	r2, #12
	ldr	r1, .L39
	bl	memcmp
	cmp	r0, #0
	beq	.L32
	cmp	r8, #7
	bls	.L2
	mov	r2, #6
	mov	r0, r6
	ldr	r1, .L39+4
	bl	ngx_strncmp
	cmp	r0, #0
	bne	.L2
	sub	r3, r8, #6
	cmp	r3, #6
	add	r4, r6, #6
	bhi	.L33
	cmp	r3, #4
	bls	.L2
.L8:
	mov	r0, r4
	mov	r2, #3
	ldr	r1, .L39+8
	bl	ngx_strncmp
	cmp	r0, #0
	bne	.L2
	ldrb	r3, [r6, #9]	@ zero_extendqisi2
	and	r3, r3, #253
	cmp	r3, #52
	bne	.L2
	ldrb	r3, [r6, #10]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L2
	add	r9, r6, #11
	cmp	r5, r9
	beq	.L2
	mov	r4, r9
	b	.L9
.L34:
	cmp	r3, #46
	beq	.L11
	cmp	r2, #5
	sub	r3, r3, #48
	bls	.L11
	cmp	r3, #10
	bhi	.L2
.L11:
	cmp	r5, r4
	beq	.L2
.L9:
	ldrb	r3, [r4], #1	@ zero_extendqisi2
	bic	r2, r3, #32
	cmp	r3, #32
	sub	r2, r2, #65
	bne	.L34
	sub	r10, r4, r9
	sub	r10, r10, #1
	mov	r1, r10
	ldr	r0, [r7, #16]
	bl	ngx_pnalloc
	cmp	r0, #0
	mov	r2, r0
	str	r0, [r7, #12]
	beq	.L1
	mov	r1, r9
	mov	r2, r10
	bl	ngx_memcpy
	str	r10, [r7, #8]
	b	.L13
.L36:
	ldrb	r3, [r4], #1	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L35
.L13:
	cmp	r4, r5
	bne	.L36
.L2:
	ldr	r3, .L39+12
	str	r6, [sp, #4]
	str	r8, [sp]
	mov	r2, #0
	ldr	r0, [r3]
	ldr	r1, [r7]
	ldr	r3, .L39+16
	bl	ngx_log_error
	mov	r2, #0
.L1:
	mov	r0, r2
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L33:
	mov	r2, #7
	mov	r0, r4
	ldr	r1, .L39+20
	bl	ngx_strncmp
	subs	r2, r0, #0
	bne	.L8
	ldr	r3, .L39+24
	ldr	r1, [r7]
	ldr	r0, [r3]
	ldr	r3, .L39+28
	bl	ngx_log_debug0
	add	r9, r6, #13
.L7:
	sub	r5, r5, #1
	cmp	r9, r5
	bcs	.L2
	ldr	r1, .L39+32
	ldr	r2, .L39+36
	mov	r3, r9
	ldrb	r0, [r1]	@ zero_extendqisi2
	ldrb	ip, [r2]	@ zero_extendqisi2
	b	.L16
.L15:
	cmp	r3, r5
	beq	.L2
.L16:
	ldrb	r1, [r3]	@ zero_extendqisi2
	mov	r2, r3
	cmp	r1, r0
	add	r3, r3, #1
	bne	.L15
	ldrb	r1, [r3]	@ zero_extendqisi2
	cmp	r1, ip
	bne	.L15
	add	r2, r2, #2
	b	.L1
.L32:
	mov	r2, r5
	mov	r1, r6
	mov	r0, r7
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	ngx_proxy_protocol_v2_read
.L35:
	mov	r9, r4
	b	.L14
.L38:
	ldrb	r3, [r9], #1	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L37
.L14:
	cmp	r9, r5
	bne	.L38
	b	.L2
.L37:
	sub	r1, r9, r4
	mov	r0, r4
	sub	r1, r1, #1
	bl	ngx_atoi
	cmp	r0, #65536
	bcs	.L2
	mov	r3, r7
	ldr	r1, [r3], #8
	ldr	r2, .L39+24
	str	r0, [r7, #4]
	str	r3, [sp]
	str	r0, [sp, #4]
	ldr	r0, [r2]
	ldr	r3, .L39+40
	mov	r2, #0
	bl	ngx_log_debug2
	b	.L7
.L40:
	.align	2
.L39:
	.word	.LANCHOR0
	.word	.LC0
	.word	.LC2
	.word	NGX_LOG_ERR
	.word	.LC5
	.word	.LC1
	.word	NGX_LOG_DEBUG_CORE
	.word	.LC3
	.word	CR
	.word	LF
	.word	.LC4
	.size	ngx_proxy_protocol_read, .-ngx_proxy_protocol_read
	.comm	NGX_LOG_ERR,4,4
	.comm	NGX_LOG_DEBUG_CORE,4,4
	.comm	LF,1,1
	.comm	CR,1,1
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	signature.4271, %object
	.size	signature.4271, 13
signature.4271:
	.ascii	"\015\012\015\012\000\015\012QUIT\012\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
