	.file	"extr_http.c_add_haproxy_protocol_header.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"TCP6"
.LC1:
	.string	"TCP4"
.LC2:
	.string	"PROXY %s %s %s %li %li\r\n"
	.text
	.p2align 4
	.type	add_haproxy_protocol_header, @function
add_haproxy_protocol_header:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	sub	rsp, 160
	.cfi_def_cfa_offset 192
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 152[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR 8[rdi], 0
	lea	r12, 11[rsp]
	je	.L2
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	strcpy@PLT
.L3:
	mov	rax, QWORD PTR 0[rbp]
	lea	r13, 16[rsp]
	mov	rcx, r12
	mov	esi, 128
	mov	rdi, r13
	mov	edx, DWORD PTR 4[rax]
	mov	r9d, DWORD PTR 12[rax]
	mov	r8d, DWORD PTR 16[rax]
	push	rdx
	.cfi_def_cfa_offset 200
	mov	eax, DWORD PTR 8[rax]
	lea	rdx, .LC2[rip]
	push	rax
	.cfi_def_cfa_offset 208
	call	msnprintf@PLT
	xor	eax, eax
	call	Curl_add_buffer_init@PLT
	mov	QWORD PTR 16[rsp], rax
	pop	rdx
	.cfi_def_cfa_offset 200
	pop	rcx
	.cfi_def_cfa_offset 192
	test	rax, rax
	je	.L9
	mov	r12, rsp
	mov	rsi, r13
	mov	rdi, r12
	call	Curl_add_bufferf@PLT
	test	rax, rax
	je	.L10
.L1:
	mov	rcx, QWORD PTR 152[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 160
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	call	strcpy@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r8d, DWORD PTR FIRSTSOCKET[rip]
	mov	rdx, QWORD PTR 0[rbp]
	xor	ecx, ecx
	mov	rsi, rbp
	mov	rdi, r12
	call	Curl_add_buffer_send@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR CURLE_OUT_OF_MEMORY[rip]
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	add_haproxy_protocol_header, .-add_haproxy_protocol_header
	.comm	FIRSTSOCKET,4,4
	.comm	CURLE_OUT_OF_MEMORY,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_http.c_add_haproxy_protocol_header.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC2:
	.ascii	"PROXY %s %s %s %li %li\015\012\000"
	.align	2
.LC0:
	.ascii	"TCP6\000"
	.align	2
.LC1:
	.ascii	"TCP4\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_haproxy_protocol_header, %function
add_haproxy_protocol_header:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r3, [r0, #4]
	ldr	r2, .L12
	cmp	r3, #0
	ldrne	r3, .L12+4
	ldreq	r3, .L12+8
	sub	sp, sp, #160
	ldr	r2, [r2]
	str	r2, [sp, #156]
	mov	r2,#0
	ldm	r3, {r0, r1}
	strb	r1, [sp, #24]
	ldr	r1, [r4]
	str	r0, [sp, #20]
	ldr	r3, [r1, #4]
	add	r0, sp, #28
	str	r3, [sp, #12]
	ldr	r2, [r1, #8]
	add	r3, sp, #20
	str	r2, [sp, #8]
	ldr	ip, [r1, #12]
	ldr	r2, .L12+12
	str	ip, [sp, #4]
	ldr	ip, [r1, #16]
	mov	r1, #128
	str	ip, [sp]
	bl	msnprintf
	bl	Curl_add_buffer_init
	cmp	r0, #0
	str	r0, [sp, #16]
	beq	.L9
	add	r1, sp, #28
	add	r0, sp, #16
	bl	Curl_add_bufferf
	cmp	r0, #0
	beq	.L10
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #156]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #160
	@ sp needed
	pop	{r4, pc}
.L10:
	ldr	r2, .L12+16
	mov	r3, r0
	ldr	r2, [r2]
	mov	r1, r4
	str	r2, [sp]
	ldr	r2, [r4]
	add	r0, sp, #16
	bl	Curl_add_buffer_send
	b	.L1
.L9:
	ldr	r3, .L12+20
	ldr	r0, [r3]
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	FIRSTSOCKET
	.word	CURLE_OUT_OF_MEMORY
	.size	add_haproxy_protocol_header, .-add_haproxy_protocol_header
	.comm	FIRSTSOCKET,4,4
	.comm	CURLE_OUT_OF_MEMORY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
