	.file	"146489.c"
	.intel_syntax noprefix
	.text
	.data
	.align 32
	.type	base64, @object
	.size	base64, 64
base64:
	.ascii	"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567"
	.ascii	"89+/"
	.text
	.globl	ERROR_EXIT
	.type	ERROR_EXIT, @function
ERROR_EXIT:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	ERROR_EXIT, .-ERROR_EXIT
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: ./postress -h <hostname> -p <port> -r <rest url> -u <username> -P <password> -a <auth str> -s <command>"
.LC1:
	.string	"\n%s\n\n"
	.align 8
.LC2:
	.string	"specify the host to connect. Default is 127.0.0.1."
.LC3:
	.string	"-h"
.LC4:
	.string	"%s%s\t%s\n"
	.align 8
.LC5:
	.string	"specify The TCP/IP port number to use for the connection. Default is 80."
.LC6:
	.string	"-p"
	.align 8
.LC7:
	.string	"specify the RESTful API url to use."
.LC8:
	.string	"-r"
	.align 8
.LC9:
	.string	"specify the user's name to use when connecting to the server."
.LC10:
	.string	"-u"
	.align 8
.LC11:
	.string	"specify the password to use when connecting to the server."
.LC12:
	.string	"-P"
	.align 8
.LC13:
	.string	"authorization string. instead of input user's name and password"
.LC14:
	.string	"-a"
.LC15:
	.string	"sql command to execute."
.LC16:
	.string	"-s"
	.text
	.globl	HELP
	.type	HELP, @function
HELP:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 2314885530818453536
	mov	QWORD PTR -18[rbp], rax
	mov	WORD PTR -10[rbp], 0
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -18[rbp]
	lea	rcx, .LC2[rip]
	lea	rdx, .LC3[rip]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -18[rbp]
	lea	rcx, .LC5[rip]
	lea	rdx, .LC6[rip]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -18[rbp]
	lea	rcx, .LC7[rip]
	lea	rdx, .LC8[rip]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -18[rbp]
	lea	rcx, .LC9[rip]
	lea	rdx, .LC10[rip]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -18[rbp]
	lea	rcx, .LC11[rip]
	lea	rdx, .LC12[rip]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -18[rbp]
	lea	rcx, .LC13[rip]
	lea	rdx, .LC14[rip]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -18[rbp]
	lea	rcx, .LC15[rip]
	lea	rdx, .LC16[rip]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	HELP, .-HELP
	.section	.rodata
.LC17:
	.string	"127.0.0.1"
.LC18:
	.string	""
.LC19:
	.string	"--help"
	.align 8
.LC20:
	.string	"ERROR, please input username and password, or auth string."
.LC21:
	.string	"%s:%s"
	.align 8
.LC22:
	.string	"auth string base64 encoded: %s\n"
.LC23:
	.string	"ERROR opening socket"
.LC24:
	.string	"ERROR, no such host"
.LC25:
	.string	"ipv4"
.LC26:
	.string	"ipv6"
	.align 8
.LC27:
	.string	"h_name: %s\nh_addretype: %s\nh_length: %d\n"
.LC28:
	.string	"ERROR connecting"
	.align 8
.LC29:
	.string	"POST %s HTTP/1.1\r\nHost: %s:%d\r\nUser-Agent: postress/0.1\r\nAccept: */*\r\nAuthorization: Basic %s\r\nContent-Length: %d\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\n%s"
.LC30:
	.string	"ERROR too long request"
.LC31:
	.string	"Request:\n%s\n"
	.align 8
.LC32:
	.string	"ERROR writing message to socket"
	.align 8
.LC33:
	.string	"ERROR reading response from socket"
	.align 8
.LC34:
	.string	"ERROR storing complete response from socket"
.LC35:
	.string	"Response:\n%s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 1728
	mov	DWORD PTR -5812[rbp], edi
	mov	QWORD PTR -5824[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC17[rip]
	mov	QWORD PTR -5744[rbp], rax
	mov	DWORD PTR -5808[rbp], 80
	lea	rax, .LC18[rip]
	mov	QWORD PTR -5736[rbp], rax
	mov	QWORD PTR -5728[rbp], 0
	mov	QWORD PTR -5720[rbp], 0
	mov	QWORD PTR -5712[rbp], 0
	cmp	DWORD PTR -5812[rbp], 1
	jne	.L5
	mov	eax, 0
	call	HELP
	mov	edi, 0
	call	exit@PLT
.L5:
	mov	DWORD PTR -5780[rbp], 0
	mov	DWORD PTR -5804[rbp], 0
	jmp	.L6
.L15:
	mov	eax, DWORD PTR -5804[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -5824[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	add	DWORD PTR -5804[rbp], 1
	mov	eax, DWORD PTR -5804[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -5824[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -5744[rbp], rax
	jmp	.L8
.L7:
	mov	eax, DWORD PTR -5804[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -5824[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	add	DWORD PTR -5804[rbp], 1
	mov	eax, DWORD PTR -5804[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -5824[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -5808[rbp], eax
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -5804[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -5824[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L10
	add	DWORD PTR -5804[rbp], 1
	mov	eax, DWORD PTR -5804[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -5824[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -5736[rbp], rax
	jmp	.L8
.L10:
	mov	eax, DWORD PTR -5804[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -5824[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
	add	DWORD PTR -5804[rbp], 1
	mov	eax, DWORD PTR -5804[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -5824[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -5728[rbp], rax
	jmp	.L8
.L11:
	mov	eax, DWORD PTR -5804[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -5824[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L12
	add	DWORD PTR -5804[rbp], 1
	mov	eax, DWORD PTR -5804[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -5824[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -5720[rbp], rax
	jmp	.L8
.L12:
	mov	eax, DWORD PTR -5804[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -5824[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L13
	add	DWORD PTR -5804[rbp], 1
	mov	eax, DWORD PTR -5804[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -5824[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -5712[rbp], rax
	jmp	.L8
.L13:
	mov	eax, DWORD PTR -5804[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -5824[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L14
	add	DWORD PTR -5804[rbp], 1
	mov	eax, DWORD PTR -5804[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -5824[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -5704[rbp], rax
	jmp	.L8
.L14:
	mov	eax, DWORD PTR -5804[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -5824[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	mov	eax, 0
	call	HELP
	mov	edi, 0
	call	exit@PLT
.L8:
	add	DWORD PTR -5804[rbp], 1
.L6:
	mov	eax, DWORD PTR -5804[rbp]
	cmp	eax, DWORD PTR -5812[rbp]
	jl	.L15
	cmp	QWORD PTR -5712[rbp], 0
	jne	.L16
	cmp	QWORD PTR -5728[rbp], 0
	je	.L17
	cmp	QWORD PTR -5720[rbp], 0
	jne	.L18
.L17:
	lea	rdi, .LC20[rip]
	call	ERROR_EXIT
.L18:
	mov	DWORD PTR -5664[rbp], 0
	mov	DWORD PTR -5660[rbp], 2
	mov	DWORD PTR -5656[rbp], 1
	mov	rcx, QWORD PTR -5720[rbp]
	mov	rdx, QWORD PTR -5728[rbp]
	lea	rax, -5648[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC21[rip]
	mov	esi, 256
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -5648[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -5696[rbp], rax
	mov	rax, QWORD PTR -5696[rbp]
	add	rax, 2
	movabs	rdx, -6148914691236517205
	mul	rdx
	mov	rax, rdx
	shr	rax
	sal	rax, 2
	mov	QWORD PTR -5688[rbp], rax
	lea	rax, -5392[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -5800[rbp], 0
	mov	DWORD PTR -5796[rbp], 0
	jmp	.L19
.L26:
	mov	eax, DWORD PTR -5800[rbp]
	cdqe
	cmp	QWORD PTR -5696[rbp], rax
	jbe	.L20
	mov	eax, DWORD PTR -5800[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -5800[rbp], edx
	cdqe
	movzx	eax, BYTE PTR -5648[rbp+rax]
	movzx	eax, al
	jmp	.L21
.L20:
	mov	eax, 0
.L21:
	mov	DWORD PTR -5776[rbp], eax
	mov	eax, DWORD PTR -5800[rbp]
	cdqe
	cmp	QWORD PTR -5696[rbp], rax
	jbe	.L22
	mov	eax, DWORD PTR -5800[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -5800[rbp], edx
	cdqe
	movzx	eax, BYTE PTR -5648[rbp+rax]
	movzx	eax, al
	jmp	.L23
.L22:
	mov	eax, 0
.L23:
	mov	DWORD PTR -5772[rbp], eax
	mov	eax, DWORD PTR -5800[rbp]
	cdqe
	cmp	QWORD PTR -5696[rbp], rax
	jbe	.L24
	mov	eax, DWORD PTR -5800[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -5800[rbp], edx
	cdqe
	movzx	eax, BYTE PTR -5648[rbp+rax]
	movzx	eax, al
	jmp	.L25
.L24:
	mov	eax, 0
.L25:
	mov	DWORD PTR -5768[rbp], eax
	mov	eax, DWORD PTR -5776[rbp]
	sal	eax, 16
	mov	edx, eax
	mov	eax, DWORD PTR -5772[rbp]
	sal	eax, 8
	add	edx, eax
	mov	eax, DWORD PTR -5768[rbp]
	add	eax, edx
	mov	DWORD PTR -5764[rbp], eax
	mov	eax, DWORD PTR -5764[rbp]
	shr	eax, 18
	and	eax, 63
	mov	ecx, eax
	mov	eax, DWORD PTR -5796[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -5796[rbp], edx
	mov	ecx, ecx
	lea	rdx, base64[rip]
	movzx	edx, BYTE PTR [rcx+rdx]
	cdqe
	mov	BYTE PTR -5392[rbp+rax], dl
	mov	eax, DWORD PTR -5764[rbp]
	shr	eax, 12
	and	eax, 63
	mov	ecx, eax
	mov	eax, DWORD PTR -5796[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -5796[rbp], edx
	mov	ecx, ecx
	lea	rdx, base64[rip]
	movzx	edx, BYTE PTR [rcx+rdx]
	cdqe
	mov	BYTE PTR -5392[rbp+rax], dl
	mov	eax, DWORD PTR -5764[rbp]
	shr	eax, 6
	and	eax, 63
	mov	ecx, eax
	mov	eax, DWORD PTR -5796[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -5796[rbp], edx
	mov	ecx, ecx
	lea	rdx, base64[rip]
	movzx	edx, BYTE PTR [rcx+rdx]
	cdqe
	mov	BYTE PTR -5392[rbp+rax], dl
	mov	eax, DWORD PTR -5764[rbp]
	and	eax, 63
	mov	ecx, eax
	mov	eax, DWORD PTR -5796[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -5796[rbp], edx
	mov	ecx, ecx
	lea	rdx, base64[rip]
	movzx	edx, BYTE PTR [rcx+rdx]
	cdqe
	mov	BYTE PTR -5392[rbp+rax], dl
.L19:
	mov	eax, DWORD PTR -5800[rbp]
	cdqe
	cmp	QWORD PTR -5696[rbp], rax
	ja	.L26
	mov	DWORD PTR -5792[rbp], 0
	jmp	.L27
.L28:
	mov	eax, DWORD PTR -5792[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -5688[rbp]
	sub	rax, rdx
	sub	rax, 1
	mov	BYTE PTR -5392[rbp+rax], 61
	add	DWORD PTR -5792[rbp], 1
.L27:
	mov	rcx, QWORD PTR -5696[rbp]
	movabs	rdx, -6148914691236517205
	mov	rax, rcx
	mul	rdx
	mov	rax, rdx
	shr	rax
	mov	rdx, rax
	add	rdx, rdx
	add	rdx, rax
	mov	rax, rcx
	sub	rax, rdx
	mov	eax, DWORD PTR -5664[rbp+rax*4]
	cmp	DWORD PTR -5792[rbp], eax
	jl	.L28
	lea	rax, -5392[rbp]
	mov	rsi, rax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -5392[rbp]
	mov	QWORD PTR -5712[rbp], rax
.L16:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -5760[rbp], eax
	cmp	DWORD PTR -5760[rbp], 0
	jns	.L29
	lea	rdi, .LC23[rip]
	call	ERROR_EXIT
.L29:
	mov	rax, QWORD PTR -5744[rbp]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -5680[rbp], rax
	cmp	QWORD PTR -5680[rbp], 0
	jne	.L30
	lea	rdi, .LC24[rip]
	call	ERROR_EXIT
.L30:
	mov	rax, QWORD PTR -5680[rbp]
	mov	edx, DWORD PTR 20[rax]
	mov	rax, QWORD PTR -5680[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 2
	jne	.L31
	lea	rax, .LC25[rip]
	jmp	.L32
.L31:
	lea	rax, .LC26[rip]
.L32:
	mov	rcx, QWORD PTR -5680[rbp]
	mov	rsi, QWORD PTR [rcx]
	mov	ecx, edx
	mov	rdx, rax
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -5664[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -5664[rbp], 2
	mov	eax, DWORD PTR -5808[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -5662[rbp], ax
	mov	rax, QWORD PTR -5680[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -5680[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -5664[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	lea	rcx, -5664[rbp]
	mov	eax, DWORD PTR -5760[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L33
	lea	rdi, .LC28[rip]
	call	ERROR_EXIT
.L33:
	lea	rax, .LC29[rip]
	mov	QWORD PTR -5672[rbp], rax
	mov	rax, QWORD PTR -5704[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rsi, rax
	mov	r8d, DWORD PTR -5808[rbp]
	mov	rdi, QWORD PTR -5744[rbp]
	mov	rcx, QWORD PTR -5736[rbp]
	mov	rdx, QWORD PTR -5672[rbp]
	lea	rax, -5136[rbp]
	sub	rsp, 8
	push	QWORD PTR -5704[rbp]
	push	rsi
	push	QWORD PTR -5712[rbp]
	mov	r9d, r8d
	mov	r8, rdi
	mov	esi, 1024
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	add	rsp, 32
	mov	DWORD PTR -5756[rbp], eax
	cmp	DWORD PTR -5756[rbp], 1023
	jle	.L34
	lea	rdi, .LC30[rip]
	call	ERROR_EXIT
.L34:
	lea	rax, -5136[rbp]
	mov	rsi, rax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -5136[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -5752[rbp], eax
	mov	DWORD PTR -5788[rbp], 0
.L38:
	mov	eax, DWORD PTR -5752[rbp]
	sub	eax, DWORD PTR -5788[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -5788[rbp]
	cdqe
	lea	rcx, -5136[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -5760[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -5748[rbp], eax
	cmp	DWORD PTR -5748[rbp], 0
	jns	.L35
	lea	rdi, .LC32[rip]
	call	ERROR_EXIT
.L35:
	cmp	DWORD PTR -5748[rbp], 0
	je	.L46
	mov	eax, DWORD PTR -5748[rbp]
	add	DWORD PTR -5788[rbp], eax
	mov	eax, DWORD PTR -5788[rbp]
	cmp	eax, DWORD PTR -5752[rbp]
	jl	.L38
	jmp	.L37
.L46:
	nop
.L37:
	lea	rax, -4112[rbp]
	mov	edx, 4096
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -5752[rbp], 4095
	mov	DWORD PTR -5784[rbp], 0
.L42:
	mov	eax, DWORD PTR -5752[rbp]
	sub	eax, DWORD PTR -5784[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -5784[rbp]
	cdqe
	lea	rcx, -4112[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -5760[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -5748[rbp], eax
	cmp	DWORD PTR -5748[rbp], 0
	jns	.L39
	lea	rdi, .LC33[rip]
	call	ERROR_EXIT
.L39:
	cmp	DWORD PTR -5748[rbp], 0
	je	.L47
	mov	eax, DWORD PTR -5748[rbp]
	add	DWORD PTR -5784[rbp], eax
	mov	eax, DWORD PTR -5784[rbp]
	cmp	eax, DWORD PTR -5752[rbp]
	jl	.L42
	jmp	.L41
.L47:
	nop
.L41:
	mov	eax, DWORD PTR -5784[rbp]
	cmp	eax, DWORD PTR -5752[rbp]
	jne	.L43
	lea	rdi, .LC34[rip]
	call	ERROR_EXIT
.L43:
	lea	rax, -4112[rbp]
	mov	rsi, rax
	lea	rdi, .LC35[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -5760[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"146489.c"
	.text
	.data
	.align	2
	.type	base64, %object
	.size	base64, 64
base64:
	.ascii	"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxy"
	.ascii	"z0123456789+/"
	.text
	.align	2
	.global	ERROR_EXIT
	.syntax unified
	.arm
	.fpu softvfp
	.type	ERROR_EXIT, %function
ERROR_EXIT:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	perror
	mov	r0, #0
	bl	exit
	.size	ERROR_EXIT, .-ERROR_EXIT
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Usage: ./postress -h <hostname> -p <port> -r <rest "
	.ascii	"url> -u <username> -P <password> -a <auth str> -s <"
	.ascii	"command>\000"
	.align	2
.LC3:
	.ascii	"\012%s\012\012\000"
	.align	2
.LC4:
	.ascii	"specify the host to connect. Default is 127.0.0.1.\000"
	.align	2
.LC5:
	.ascii	"-h\000"
	.align	2
.LC6:
	.ascii	"%s%s\011%s\012\000"
	.align	2
.LC7:
	.ascii	"specify The TCP/IP port number to use for the conne"
	.ascii	"ction. Default is 80.\000"
	.align	2
.LC8:
	.ascii	"-p\000"
	.align	2
.LC9:
	.ascii	"specify the RESTful API url to use.\000"
	.align	2
.LC10:
	.ascii	"-r\000"
	.align	2
.LC11:
	.ascii	"specify the user's name to use when connecting to t"
	.ascii	"he server.\000"
	.align	2
.LC12:
	.ascii	"-u\000"
	.align	2
.LC13:
	.ascii	"specify the password to use when connecting to the "
	.ascii	"server.\000"
	.align	2
.LC14:
	.ascii	"-P\000"
	.align	2
.LC15:
	.ascii	"authorization string. instead of input user's name "
	.ascii	"and password\000"
	.align	2
.LC16:
	.ascii	"-a\000"
	.align	2
.LC17:
	.ascii	"sql command to execute.\000"
	.align	2
.LC18:
	.ascii	"-s\000"
	.align	2
.LC1:
	.ascii	"        \000"
	.space	1
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	HELP
	.syntax unified
	.arm
	.fpu softvfp
	.type	HELP, %function
HELP:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L4+4
	sub	r3, fp, #20
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strb	r2, [r3]
	mov	r3, #0
	strb	r3, [fp, #-11]
	ldr	r1, .L4+8
	ldr	r0, .L4+12
	bl	printf
	sub	r1, fp, #20
	ldr	r3, .L4+16
	ldr	r2, .L4+20
	ldr	r0, .L4+24
	bl	printf
	sub	r1, fp, #20
	ldr	r3, .L4+28
	ldr	r2, .L4+32
	ldr	r0, .L4+24
	bl	printf
	sub	r1, fp, #20
	ldr	r3, .L4+36
	ldr	r2, .L4+40
	ldr	r0, .L4+24
	bl	printf
	sub	r1, fp, #20
	ldr	r3, .L4+44
	ldr	r2, .L4+48
	ldr	r0, .L4+24
	bl	printf
	sub	r1, fp, #20
	ldr	r3, .L4+52
	ldr	r2, .L4+56
	ldr	r0, .L4+24
	bl	printf
	sub	r1, fp, #20
	ldr	r3, .L4+60
	ldr	r2, .L4+64
	ldr	r0, .L4+24
	bl	printf
	sub	r1, fp, #20
	ldr	r3, .L4+68
	ldr	r2, .L4+72
	ldr	r0, .L4+24
	bl	printf
	nop
	ldr	r3, .L4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC19
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	HELP, .-HELP
	.section	.rodata
	.align	2
.LC20:
	.ascii	"127.0.0.1\000"
	.align	2
.LC21:
	.ascii	"\000"
	.align	2
.LC22:
	.ascii	"--help\000"
	.align	2
.LC23:
	.ascii	"ERROR, please input username and password, or auth "
	.ascii	"string.\000"
	.align	2
.LC24:
	.ascii	"%s:%s\000"
	.align	2
.LC25:
	.ascii	"auth string base64 encoded: %s\012\000"
	.align	2
.LC26:
	.ascii	"ERROR opening socket\000"
	.align	2
.LC27:
	.ascii	"ERROR, no such host\000"
	.align	2
.LC28:
	.ascii	"ipv4\000"
	.align	2
.LC29:
	.ascii	"ipv6\000"
	.align	2
.LC30:
	.ascii	"h_name: %s\012h_addretype: %s\012h_length: %d\012\000"
	.align	2
.LC31:
	.ascii	"ERROR connecting\000"
	.align	2
.LC32:
	.ascii	"POST %s HTTP/1.1\015\012Host: %s:%d\015\012User-Age"
	.ascii	"nt: postress/0.1\015\012Accept: */*\015\012Authoriz"
	.ascii	"ation: Basic %s\015\012Content-Length: %d\015\012Co"
	.ascii	"ntent-Type: application/x-www-form-urlencoded\015\012"
	.ascii	"\015\012%s\000"
	.align	2
.LC33:
	.ascii	"ERROR too long request\000"
	.align	2
.LC34:
	.ascii	"Request:\012%s\012\000"
	.align	2
.LC35:
	.ascii	"ERROR writing message to socket\000"
	.align	2
.LC36:
	.ascii	"ERROR reading response from socket\000"
	.align	2
.LC37:
	.ascii	"ERROR storing complete response from socket\000"
	.align	2
.LC38:
	.ascii	"Response:\012%s\012\000"
	.align	2
.LC0:
	.word	0
	.word	2
	.word	1
	.align	2
.LC39:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 5768
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #5760
	sub	sp, sp, #36
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-1668]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-1672]
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L50+4
	str	r3, [r2, #-1660]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #80
	str	r3, [r2, #-1656]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L50+8
	str	r3, [r2, #-1652]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1648]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1644]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1640]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1668]
	cmp	r3, #1
	bne	.L7
	bl	HELP
	mov	r0, #0
	bl	exit
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1608]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1632]
	b	.L8
.L17:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1632]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1672]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L50+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1632]
	add	r3, r3, #1
	str	r3, [r2, #-1632]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1632]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1672]
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r3, [r3]
	str	r3, [r2, #-1660]
	b	.L10
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1632]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1672]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L50+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1632]
	add	r3, r3, #1
	str	r3, [r2, #-1632]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1632]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1672]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	atoi
	str	r0, [r4, #-1656]
	b	.L10
.L11:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1632]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1672]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L50+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1632]
	add	r3, r3, #1
	str	r3, [r2, #-1632]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1632]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1672]
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r3, [r3]
	str	r3, [r2, #-1652]
	b	.L10
.L12:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1632]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1672]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L50+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1632]
	add	r3, r3, #1
	str	r3, [r2, #-1632]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1632]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1672]
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r3, [r3]
	str	r3, [r2, #-1648]
	b	.L10
.L13:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1632]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1672]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L50+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1632]
	add	r3, r3, #1
	str	r3, [r2, #-1632]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1632]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1672]
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r3, [r3]
	str	r3, [r2, #-1644]
	b	.L10
.L14:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1632]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1672]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L50+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1632]
	add	r3, r3, #1
	str	r3, [r2, #-1632]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1632]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1672]
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r3, [r3]
	str	r3, [r2, #-1640]
	b	.L10
.L15:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1632]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1672]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L50+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1632]
	add	r3, r3, #1
	str	r3, [r2, #-1632]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1632]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1672]
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r3, [r3]
	str	r3, [r2, #-1636]
	b	.L10
.L16:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1632]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1672]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L50+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	bl	HELP
	mov	r0, #0
	bl	exit
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1632]
	add	r3, r3, #1
	str	r3, [r2, #-1632]
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-1632]
	ldr	r3, [r3, #-1668]
	cmp	r2, r3
	blt	.L17
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1640]
	cmp	r3, #0
	bne	.L18
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1648]
	cmp	r3, #0
	beq	.L19
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1644]
	cmp	r3, #0
	bne	.L20
.L19:
	ldr	r0, .L50+44
	bl	ERROR_EXIT
.L20:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, .L50+48
	sub	r3, r3, #1552
	sub	r3, r3, #4
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r0, fp, #5632
	sub	r0, r0, #12
	sub	r0, r0, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1644]
	str	r3, [sp]
	ldr	r3, [r2, #-1648]
	ldr	r2, .L50+52
	mov	r1, #256
	bl	snprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #5632
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	str	r0, [r4, #-1604]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1604]
	add	r3, r3, #2
	ldr	r2, .L50+56
	umull	r1, r3, r2, r3
	lsr	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	str	r3, [r2, #-1600]
	sub	r3, fp, #5376
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1628]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1624]
	b	.L21
.L28:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1628]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1604]
	cmp	r2, r3
	bls	.L22
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1628]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-1628]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-1540]	@ zero_extendqisi2
	b	.L23
.L22:
	mov	r3, #0
.L23:
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-1596]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1628]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1604]
	cmp	r2, r3
	bls	.L24
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1628]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-1628]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-1540]	@ zero_extendqisi2
	b	.L25
.L24:
	mov	r3, #0
.L25:
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-1592]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1628]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1604]
	cmp	r2, r3
	bls	.L26
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1628]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-1628]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-1540]	@ zero_extendqisi2
	b	.L27
.L26:
	mov	r3, #0
.L27:
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-1588]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1596]
	lsl	r2, r3, #16
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1592]
	lsl	r3, r3, #8
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1588]
	add	r3, r2, r3
	str	r3, [r1, #-1584]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1584]
	lsr	r3, r3, #18
	and	r2, r3, #63
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1624]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	add	r1, r3, #1
	str	r1, [r0, #-1624]
	ldr	r1, .L50+60
	ldrb	r2, [r1, r2]	@ zero_extendqisi2
	sub	r1, fp, #4096
	sub	r1, r1, #12
	add	r3, r1, r3
	strb	r2, [r3, #-1284]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1584]
	lsr	r3, r3, #12
	and	r2, r3, #63
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1624]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	add	r1, r3, #1
	str	r1, [r0, #-1624]
	ldr	r1, .L50+60
	ldrb	r2, [r1, r2]	@ zero_extendqisi2
	sub	r1, fp, #4096
	sub	r1, r1, #12
	add	r3, r1, r3
	strb	r2, [r3, #-1284]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1584]
	lsr	r3, r3, #6
	and	r2, r3, #63
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1624]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	add	r1, r3, #1
	str	r1, [r0, #-1624]
	ldr	r1, .L50+60
	ldrb	r2, [r1, r2]	@ zero_extendqisi2
	sub	r1, fp, #4096
	sub	r1, r1, #12
	add	r3, r1, r3
	strb	r2, [r3, #-1284]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1584]
	and	r2, r3, #63
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1624]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	add	r1, r3, #1
	str	r1, [r0, #-1624]
	ldr	r1, .L50+60
	ldrb	r2, [r1, r2]	@ zero_extendqisi2
	sub	r1, fp, #4096
	sub	r1, r1, #12
	add	r3, r1, r3
	strb	r2, [r3, #-1284]
.L21:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1628]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1604]
	cmp	r2, r3
	bhi	.L28
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1620]
	b	.L29
.L30:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1620]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1600]
	sub	r3, r2, r3
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	r3, r2, r3
	mov	r2, #61
	strb	r2, [r3, #-1284]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1620]
	add	r3, r3, #1
	str	r3, [r2, #-1620]
.L29:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-1604]
	ldr	r3, .L50+56
	umull	r2, r3, r1, r3
	lsr	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-1556]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1620]
	cmp	r2, r3
	blt	.L30
	sub	r3, fp, #5376
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L50+64
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #5376
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-1640]
.L18:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-1580]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1580]
	cmp	r3, #0
	bge	.L31
	ldr	r0, .L50+68
	bl	ERROR_EXIT
.L31:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-1660]
	bl	gethostbyname
	str	r0, [r4, #-1576]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1576]
	cmp	r3, #0
	bne	.L32
	ldr	r0, .L50+72
	bl	ERROR_EXIT
.L32:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1576]
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1576]
	ldr	r3, [r3, #8]
	cmp	r3, #2
	bne	.L33
	ldr	r2, .L50+76
	b	.L34
.L33:
	ldr	r2, .L50+80
.L34:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1576]
	ldr	r3, [r3, #12]
	ldr	r0, .L50+84
	bl	printf
	sub	r3, fp, #5632
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #1552
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1656]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #1552
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1576]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1576]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #5632
	sub	r3, r3, #12
	sub	r3, r3, #20
	add	r3, r3, #4
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #5632
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-1580]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L35
	ldr	r0, .L50+88
	bl	ERROR_EXIT
.L35:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L50+92
	str	r3, [r2, #-1572]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-1636]
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	ip, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r0, fp, #5120
	sub	r0, r0, #12
	sub	r0, r0, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1636]
	str	r3, [sp, #16]
	str	r2, [sp, #12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1640]
	str	r3, [sp, #8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1656]
	str	r3, [sp, #4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1660]
	str	r3, [sp]
	ldr	r3, [ip, #-1652]
	ldr	r2, [r1, #-1572]
	mov	r1, #1024
	bl	snprintf
	str	r0, [r4, #-1568]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1568]
	cmp	r3, #1024
	blt	.L36
	ldr	r0, .L50+96
	bl	ERROR_EXIT
.L36:
	sub	r3, fp, #5120
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L50+100
	bl	printf
	sub	r3, fp, #5120
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-1564]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1616]
.L40:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-1616]
	sub	r3, fp, #5120
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r1, r3, r2
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-1564]
	ldr	r3, [r3, #-1616]
	sub	r3, r2, r3
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-1580]
	bl	write
	str	r0, [r4, #-1560]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1560]
	cmp	r3, #0
	bge	.L37
	ldr	r0, .L50+104
	bl	ERROR_EXIT
.L37:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1560]
	cmp	r3, #0
	beq	.L48
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-1616]
	ldr	r3, [r3, #-1560]
	add	r3, r2, r3
	str	r3, [r1, #-1616]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-1616]
	ldr	r3, [r3, #-1564]
	cmp	r2, r3
	blt	.L40
	b	.L39
.L48:
	nop
.L39:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4096
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L50+108
	str	r3, [r2, #-1564]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1612]
.L44:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-1612]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r1, r3, r2
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-1564]
	ldr	r3, [r3, #-1612]
	sub	r3, r2, r3
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-1580]
	bl	read
	str	r0, [r4, #-1560]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1560]
	cmp	r3, #0
	bge	.L41
	ldr	r0, .L50+112
	bl	ERROR_EXIT
.L41:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1560]
	cmp	r3, #0
	beq	.L49
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-1612]
	ldr	r3, [r3, #-1560]
	add	r3, r2, r3
	str	r3, [r1, #-1612]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-1612]
	ldr	r3, [r3, #-1564]
	cmp	r2, r3
	blt	.L44
	b	.L43
.L49:
	nop
.L43:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-1612]
	ldr	r3, [r3, #-1564]
	cmp	r2, r3
	bne	.L45
	ldr	r0, .L50+116
	bl	ERROR_EXIT
.L45:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L50+120
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-1580]
	bl	close
	mov	r3, #0
	ldr	r2, .L50
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC39
	.word	.LC20
	.word	.LC21
	.word	.LC5
	.word	.LC8
	.word	.LC10
	.word	.LC12
	.word	.LC14
	.word	.LC16
	.word	.LC18
	.word	.LC22
	.word	.LC23
	.word	.LC0
	.word	.LC24
	.word	-1431655765
	.word	base64
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	4095
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
