	.file	"extr_https-client.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"/etc/ssl/certs/ca-certificates.crt"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"/"
.LC2:
	.string	"-url"
.LC3:
	.string	"-crt"
.LC4:
	.string	"-ignore-cert"
.LC5:
	.string	"-data"
.LC6:
	.string	"-retries"
.LC7:
	.string	"-timeout"
.LC8:
	.string	"-help"
.LC9:
	.string	"malformed url"
.LC10:
	.string	"url must be http or https"
.LC11:
	.string	"https"
.LC12:
	.string	"http"
.LC13:
	.string	"url must have a host"
.LC14:
	.string	"%s"
.LC15:
	.string	"%s?%s"
.LC16:
	.string	"RAND_poll"
.LC17:
	.string	"SSL_CTX_new"
.LC18:
	.string	"SSL_CTX_load_verify_locations"
.LC19:
	.string	"event_base_new()"
.LC20:
	.string	"SSL_new()"
	.section	.rodata.str1.8
	.align 8
.LC21:
	.string	"bufferevent_openssl_socket_new() failed\n"
	.align 8
.LC22:
	.string	"evhttp_connection_base_bufferevent_new() failed\n"
	.section	.rodata.str1.1
.LC23:
	.string	"evhttp_request_new() failed\n"
.LC24:
	.string	"Host"
.LC25:
	.string	"close"
.LC26:
	.string	"Connection"
.LC27:
	.string	"rb"
.LC28:
	.string	"%lu"
.LC29:
	.string	"Content-Length"
.LC30:
	.string	"evhttp_make_request() failed\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 1368
	.cfi_def_cfa_offset 1424
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1352[rsp], rax
	xor	eax, eax
	cmp	edi, 1
	jle	.L5
	lea	r13d, -2[rdi]
	mov	r15d, edi
	mov	rbp, rsi
	mov	ebx, 1
	mov	DWORD PTR 16[rsp], -1
	add	r13, 2
	xor	r14d, r14d
	lea	r12, .LC0[rip]
	mov	DWORD PTR 8[rsp], 0
	lea	rdx, .LC2[rip]
	lea	r9, .LC3[rip]
	mov	QWORD PTR [rsp], 0
	lea	r10, .LC4[rip]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L68:
	lea	eax, -1[r15]
	cmp	eax, ebx
	jle	.L5
	mov	r14, QWORD PTR 8[rbp+rbx*8]
.L6:
	add	rbx, 1
	cmp	r13, rbx
	je	.L67
.L12:
	mov	r8, QWORD PTR 0[rbp+rbx*8]
	mov	ecx, 5
	mov	rsi, rdx
	mov	rdi, r8
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	je	.L68
	mov	ecx, 5
	mov	rsi, r9
	mov	rdi, r8
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	jne	.L7
	lea	eax, -1[r15]
	cmp	eax, ebx
	jle	.L5
	mov	r12, QWORD PTR 8[rbp+rbx*8]
	add	rbx, 1
	cmp	r13, rbx
	jne	.L12
.L67:
	test	r14, r14
	je	.L5
	mov	rdi, r14
	call	evhttp_uri_parse@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L69
	mov	rdi, rax
	call	evhttp_uri_get_scheme@PLT
	mov	r13, rax
	test	rax, rax
	je	.L18
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	rax, rax
	je	.L17
	lea	rsi, .LC12[rip]
	mov	rdi, r13
	call	strcasecmp@PLT
	test	rax, rax
	je	.L17
.L18:
	lea	rdi, .LC10[rip]
	call	err@PLT
.L16:
	mov	rdi, rbp
	call	evhttp_uri_free@PLT
	mov	edi, DWORD PTR base[rip]
	call	event_base_free@PLT
	jmp	.L65
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ecx, 13
	mov	rsi, r10
	mov	rdi, r8
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	jne	.L8
	mov	DWORD PTR ignore_cert[rip], 1
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	mov	ecx, 6
	lea	rsi, .LC5[rip]
	mov	rdi, r8
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	jne	.L9
	lea	eax, -1[r15]
	cmp	eax, ebx
	jle	.L5
	mov	rax, QWORD PTR 8[rbp+rbx*8]
	mov	QWORD PTR [rsp], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	mov	ecx, 9
	lea	rsi, .LC6[rip]
	mov	rdi, r8
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	jne	.L10
	lea	eax, -1[r15]
	cmp	eax, ebx
	jle	.L5
	mov	rdi, QWORD PTR 8[rbp+rbx*8]
	call	atoi@PLT
	lea	rdx, .LC2[rip]
	lea	r9, .LC3[rip]
	mov	DWORD PTR 8[rsp], eax
	lea	r10, .LC4[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	mov	ecx, 9
	lea	rsi, .LC7[rip]
	mov	rdi, r8
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	jne	.L11
	lea	eax, -1[r15]
	cmp	eax, ebx
	jle	.L5
	mov	rdi, QWORD PTR 8[rbp+rbx*8]
	call	atoi@PLT
	lea	rdx, .LC2[rip]
	lea	r9, .LC3[rip]
	mov	DWORD PTR 16[rsp], eax
	lea	r10, .LC4[rip]
	jmp	.L6
.L11:
	mov	rsi, r8
	lea	rdi, .LC8[rip]
	call	strcmp@PLT
	lea	rdx, .LC2[rip]
	lea	r9, .LC3[rip]
	test	eax, eax
	lea	r10, .LC4[rip]
	jne	.L6
.L5:
	xor	eax, eax
	call	syntax@PLT
	mov	edi, DWORD PTR base[rip]
	call	event_base_free@PLT
.L65:
	mov	r12d, 1
.L45:
	xor	eax, eax
	call	EVP_cleanup@PLT
	xor	eax, eax
	call	ERR_free_strings@PLT
	xor	edi, edi
	call	ERR_remove_state@PLT
	xor	eax, eax
	call	CRYPTO_cleanup_all_ex_data@PLT
	xor	eax, eax
	call	SSL_COMP_get_compression_methods@PLT
	mov	edi, eax
	call	sk_SSL_COMP_free@PLT
	mov	rax, QWORD PTR 1352[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L70
	add	rsp, 1368
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L17:
	.cfi_restore_state
	mov	rdi, rbp
	call	evhttp_uri_get_host@PLT
	mov	r15, rax
	test	rax, rax
	je	.L71
	mov	rdi, rbp
	call	evhttp_uri_get_port@PLT
	mov	DWORD PTR 32[rsp], eax
	add	eax, 1
	je	.L72
.L20:
	mov	rdi, rbp
	call	evhttp_uri_get_path@PLT
	cmp	BYTE PTR [rax], 0
	mov	r14, rax
	jne	.L21
	lea	r14, .LC1[rip]
.L21:
	mov	rdi, rbp
	call	evhttp_uri_get_query@PLT
	lea	rdi, 64[rsp]
	mov	rcx, r14
	mov	QWORD PTR 40[rsp], rdi
	mov	r8, rax
	test	rax, rax
	je	.L73
	lea	rdx, .LC15[rip]
	mov	esi, 255
	xor	eax, eax
	call	snprintf@PLT
.L23:
	xor	eax, eax
	mov	BYTE PTR 319[rsp], 0
	call	SSL_library_init@PLT
	xor	eax, eax
	call	ERR_load_crypto_strings@PLT
	xor	eax, eax
	call	SSL_load_error_strings@PLT
	xor	eax, eax
	call	OpenSSL_add_all_algorithms@PLT
	xor	eax, eax
	call	RAND_poll@PLT
	test	eax, eax
	je	.L74
	xor	eax, eax
	call	SSLv23_method@PLT
	mov	edi, eax
	call	SSL_CTX_new@PLT
	mov	r14, rax
	test	rax, rax
	je	.L75
	mov	rsi, r12
	xor	edx, edx
	mov	rdi, rax
	call	SSL_CTX_load_verify_locations@PLT
	mov	r12d, eax
	cmp	eax, 1
	je	.L26
	lea	rdi, .LC18[rip]
	call	err_openssl@PLT
.L27:
	mov	rdi, rbp
	mov	r12d, 1
	call	evhttp_uri_free@PLT
	mov	edi, DWORD PTR base[rip]
	call	event_base_free@PLT
	mov	rdi, r14
	call	SSL_CTX_free@PLT
	jmp	.L45
.L73:
	lea	rdx, .LC14[rip]
	mov	esi, 255
	xor	eax, eax
	call	snprintf@PLT
	jmp	.L23
.L69:
	lea	rdi, .LC9[rip]
	call	err@PLT
	mov	edi, DWORD PTR base[rip]
	call	event_base_free@PLT
	jmp	.L65
.L74:
	lea	rdi, .LC16[rip]
	call	err_openssl@PLT
	jmp	.L16
.L26:
	mov	esi, DWORD PTR SSL_VERIFY_PEER[rip]
	xor	edx, edx
	mov	rdi, r14
	call	SSL_CTX_set_verify@PLT
	mov	esi, DWORD PTR cert_verify_callback[rip]
	mov	rdx, r15
	mov	rdi, r14
	call	SSL_CTX_set_cert_verify_callback@PLT
	xor	eax, eax
	call	event_base_new@PLT
	mov	DWORD PTR base[rip], eax
	test	eax, eax
	je	.L76
	mov	rdi, r14
	call	SSL_new@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L77
	lea	rsi, .LC12[rip]
	mov	rdi, r13
	call	strcasecmp@PLT
	test	rax, rax
	jne	.L30
	mov	edx, DWORD PTR BEV_OPT_CLOSE_ON_FREE[rip]
	mov	edi, DWORD PTR base[rip]
	or	esi, -1
	call	bufferevent_socket_new@PLT
	mov	DWORD PTR 28[rsp], 0
	mov	r9, rax
.L31:
	test	r9, r9
	je	.L78
	mov	rdi, r9
	mov	esi, 1
	mov	QWORD PTR 48[rsp], r9
	call	bufferevent_openssl_set_allow_dirty_shutdown@PLT
	mov	r9, QWORD PTR 48[rsp]
	xor	esi, esi
	mov	rcx, r15
	mov	r8d, DWORD PTR 32[rsp]
	mov	edi, DWORD PTR base[rip]
	mov	rdx, r9
	mov	QWORD PTR 32[rsp], r9
	call	evhttp_connection_base_bufferevent_new@PLT
	mov	r9, QWORD PTR 32[rsp]
	test	rax, rax
	mov	r13, rax
	je	.L79
	mov	esi, DWORD PTR 8[rsp]
	test	esi, esi
	jle	.L35
	mov	rdi, rax
	mov	QWORD PTR 8[rsp], r9
	call	evhttp_connection_set_retries@PLT
	mov	r9, QWORD PTR 8[rsp]
.L35:
	mov	esi, DWORD PTR 16[rsp]
	test	esi, esi
	js	.L36
	mov	rdi, r13
	mov	QWORD PTR 8[rsp], r9
	call	evhttp_connection_set_timeout@PLT
	mov	r9, QWORD PTR 8[rsp]
.L36:
	mov	edi, DWORD PTR http_request_done[rip]
	mov	rsi, r9
	call	evhttp_request_new@PLT
	mov	QWORD PTR 8[rsp], rax
	test	rax, rax
	je	.L80
	mov	rdi, QWORD PTR 8[rsp]
	call	evhttp_request_get_output_headers@PLT
	mov	rdx, r15
	lea	rsi, .LC24[rip]
	mov	r15, rax
	mov	rdi, rax
	mov	QWORD PTR 48[rsp], rax
	call	evhttp_add_header@PLT
	lea	rdx, .LC25[rip]
	lea	rsi, .LC26[rip]
	mov	rdi, r15
	call	evhttp_add_header@PLT
	mov	rax, QWORD PTR [rsp]
	test	rax, rax
	je	.L39
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR 16[rsp], rax
	test	rax, rax
	je	.L81
	mov	rdi, QWORD PTR 8[rsp]
	lea	r15, 320[rsp]
	call	evhttp_request_get_output_buffer@PLT
	mov	QWORD PTR [rsp], 0
	mov	QWORD PTR 32[rsp], rax
	mov	rax, r15
	mov	r15d, r12d
	mov	r12, rbx
	mov	QWORD PTR 56[rsp], rbp
	mov	rbx, rax
	jmp	.L41
.L42:
	mov	rdi, QWORD PTR 32[rsp]
	mov	rdx, rbp
	mov	rsi, rbx
	call	evbuffer_add@PLT
	add	QWORD PTR [rsp], rbp
.L41:
	mov	rcx, QWORD PTR 16[rsp]
	mov	edx, 1024
	mov	esi, 1
	mov	rdi, rbx
	call	fread@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L42
	mov	rax, rbx
	mov	rcx, QWORD PTR [rsp]
	mov	esi, 1023
	mov	rbx, r12
	lea	rdx, .LC28[rip]
	mov	rdi, rax
	mov	rbp, QWORD PTR 56[rsp]
	mov	r12d, r15d
	mov	r15, rax
	call	evutil_snprintf@PLT
	mov	rdi, QWORD PTR 48[rsp]
	mov	rdx, r15
	lea	rsi, .LC29[rip]
	call	evhttp_add_header@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	fclose@PLT
	mov	edx, DWORD PTR EVHTTP_REQ_POST[rip]
.L44:
	mov	rcx, QWORD PTR 40[rsp]
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, r13
	call	evhttp_make_request@PLT
	test	eax, eax
	je	.L43
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC30[rip]
	call	fprintf@PLT
.L38:
	mov	rdi, r13
	call	evhttp_connection_free@PLT
.L33:
	mov	rdi, rbp
	call	evhttp_uri_free@PLT
	mov	edi, DWORD PTR base[rip]
	call	event_base_free@PLT
	mov	rdi, r14
	call	SSL_CTX_free@PLT
	cmp	DWORD PTR 28[rsp], 0
	jne	.L45
	test	rbx, rbx
	je	.L45
	mov	rdi, rbx
	call	SSL_free@PLT
	jmp	.L45
.L72:
	lea	rsi, .LC12[rip]
	mov	rdi, r13
	call	strcasecmp@PLT
	cmp	rax, 1
	sbb	eax, eax
	and	eax, -363
	add	eax, 443
	mov	DWORD PTR 32[rsp], eax
	jmp	.L20
.L76:
	lea	rdi, .LC19[rip]
	call	perror@PLT
	jmp	.L27
.L71:
	lea	rdi, .LC13[rip]
	call	err@PLT
	jmp	.L16
.L75:
	lea	rdi, .LC17[rip]
	call	err_openssl@PLT
	jmp	.L16
.L30:
	mov	ecx, DWORD PTR BUFFEREVENT_SSL_CONNECTING[rip]
	mov	edi, DWORD PTR base[rip]
	mov	rdx, rbx
	or	esi, -1
	mov	r8d, DWORD PTR BEV_OPT_CLOSE_ON_FREE[rip]
	or	r8d, DWORD PTR BEV_OPT_DEFER_CALLBACKS[rip]
	call	bufferevent_openssl_socket_new@PLT
	mov	DWORD PTR 28[rsp], 1
	mov	r9, rax
	jmp	.L31
.L43:
	mov	edi, DWORD PTR base[rip]
	xor	r12d, r12d
	call	event_base_dispatch@PLT
	jmp	.L38
.L39:
	mov	edx, DWORD PTR EVHTTP_REQ_GET[rip]
	jmp	.L44
.L77:
	lea	rdi, .LC20[rip]
	call	err_openssl@PLT
	jmp	.L27
.L78:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC21[rip]
	call	fprintf@PLT
	jmp	.L33
.L81:
	call	syntax@PLT
	jmp	.L38
.L79:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC22[rip]
	call	fprintf@PLT
	jmp	.L33
.L80:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC23[rip]
	call	fprintf@PLT
	jmp	.L38
.L70:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	stderr,4,4
	.comm	ignore_cert,4,4
	.comm	http_request_done,4,4
	.comm	cert_verify_callback,4,4
	.comm	base,4,4
	.comm	SSL_VERIFY_PEER,4,4
	.comm	EVHTTP_REQ_POST,4,4
	.comm	EVHTTP_REQ_GET,4,4
	.comm	BUFFEREVENT_SSL_CONNECTING,4,4
	.comm	BEV_OPT_DEFER_CALLBACKS,4,4
	.comm	BEV_OPT_CLOSE_ON_FREE,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_https-client.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/etc/ssl/certs/ca-certificates.crt\000"
	.align	2
.LC1:
	.ascii	"/\000"
	.align	2
.LC2:
	.ascii	"-url\000"
	.align	2
.LC3:
	.ascii	"-crt\000"
	.align	2
.LC4:
	.ascii	"-ignore-cert\000"
	.align	2
.LC5:
	.ascii	"-data\000"
	.align	2
.LC6:
	.ascii	"-retries\000"
	.align	2
.LC7:
	.ascii	"-timeout\000"
	.align	2
.LC8:
	.ascii	"-help\000"
	.align	2
.LC9:
	.ascii	"malformed url\000"
	.align	2
.LC10:
	.ascii	"https\000"
	.align	2
.LC11:
	.ascii	"http\000"
	.align	2
.LC12:
	.ascii	"url must be http or https\000"
	.align	2
.LC13:
	.ascii	"url must have a host\000"
	.align	2
.LC14:
	.ascii	"%s\000"
	.align	2
.LC15:
	.ascii	"%s?%s\000"
	.align	2
.LC16:
	.ascii	"RAND_poll\000"
	.align	2
.LC17:
	.ascii	"SSL_CTX_new\000"
	.align	2
.LC18:
	.ascii	"SSL_CTX_load_verify_locations\000"
	.align	2
.LC19:
	.ascii	"event_base_new()\000"
	.align	2
.LC20:
	.ascii	"SSL_new()\000"
	.align	2
.LC21:
	.ascii	"bufferevent_openssl_socket_new() failed\012\000"
	.align	2
.LC22:
	.ascii	"evhttp_connection_base_bufferevent_new() failed\012"
	.ascii	"\000"
	.align	2
.LC23:
	.ascii	"evhttp_request_new() failed\012\000"
	.align	2
.LC24:
	.ascii	"Host\000"
	.align	2
.LC25:
	.ascii	"close\000"
	.align	2
.LC26:
	.ascii	"Connection\000"
	.align	2
.LC27:
	.ascii	"rb\000"
	.align	2
.LC28:
	.ascii	"%lu\000"
	.align	2
.LC29:
	.ascii	"Content-Length\000"
	.align	2
.LC30:
	.ascii	"evhttp_make_request() failed\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC31:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1312
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L83
	sub	sp, sp, #1312
	sub	sp, sp, #12
	cmp	r0, #1
	ldr	r3, [r3]
	str	r3, [sp, #1316]
	mov	r3,#0
	ble	.L5
	mvn	r3, #0
	mov	r8, #0
	str	r3, [sp, #20]
	ldr	r3, .L83+4
	mov	r6, r0
	mov	r4, #1
	ldr	r7, .L83+8
	ldr	r9, .L83+12
	ldr	r10, .L83+16
	str	r8, [sp, #16]
	str	r8, [sp, #12]
	str	r3, [sp, #8]
	add	r5, r1, #4
	b	.L12
.L69:
	sub	r3, r6, #1
	cmp	r3, r4
	ble	.L5
	ldr	r8, [r5]
.L6:
	add	r4, r4, #1
	cmp	r6, r4
	beq	.L68
.L12:
	ldr	fp, [r5], #4
	mov	r0, r7
	mov	r1, fp
	bl	strcmp
	cmp	r0, #0
	beq	.L69
	mov	r1, fp
	mov	r0, r9
	bl	strcmp
	cmp	r0, #0
	bne	.L7
	sub	r3, r6, #1
	cmp	r3, r4
	ble	.L5
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r6, r4
	str	r3, [sp, #8]
	bne	.L12
.L68:
	cmp	r8, #0
	beq	.L5
	mov	r0, r8
	bl	evhttp_uri_parse
	subs	r4, r0, #0
	beq	.L70
	bl	evhttp_uri_get_scheme
	subs	r5, r0, #0
	beq	.L15
	ldr	r1, .L83+20
	bl	strcasecmp
	cmp	r0, #0
	beq	.L16
	mov	r0, r5
	ldr	r1, .L83+24
	bl	strcasecmp
	cmp	r0, #0
	bne	.L15
.L16:
	mov	r0, r4
	bl	evhttp_uri_get_host
	subs	r3, r0, #0
	str	r3, [sp, #24]
	beq	.L71
	mov	r0, r4
	bl	evhttp_uri_get_port
	cmn	r0, #1
	mov	r7, r0
	beq	.L72
.L19:
	mov	r0, r4
	bl	evhttp_uri_get_path
	mov	r3, r0
	ldrb	r2, [r0]	@ zero_extendqisi2
	mov	r0, r4
	cmp	r2, #0
	ldr	r6, .L83+28
	movne	r6, r3
	bl	evhttp_uri_get_query
	cmp	r0, #0
	add	r3, sp, #36
	beq	.L73
	mov	r2, r3
	str	r3, [sp, #28]
	str	r0, [sp]
	mov	r3, r6
	mov	r0, r2
	mov	r1, #255
	ldr	r2, .L83+32
	bl	snprintf
.L22:
	mov	r8, #0
	strb	r8, [sp, #291]
	bl	SSL_library_init
	bl	ERR_load_crypto_strings
	bl	SSL_load_error_strings
	bl	OpenSSL_add_all_algorithms
	bl	RAND_poll
	cmp	r0, r8
	beq	.L74
	bl	SSLv23_method
	bl	SSL_CTX_new
	subs	r6, r0, #0
	beq	.L75
	mov	r2, r8
	ldr	r1, [sp, #8]
	bl	SSL_CTX_load_verify_locations
	cmp	r0, #1
	mov	r9, r0
	beq	.L25
	ldr	r0, .L83+36
	bl	err_openssl
	ldr	r10, .L83+40
.L26:
	mov	r0, r4
	bl	evhttp_uri_free
	ldr	r0, [r10]
	bl	event_base_free
	mov	r0, r6
	bl	SSL_CTX_free
	b	.L66
.L7:
	mov	r1, fp
	mov	r0, r10
	bl	strcmp
	cmp	r0, #0
	moveq	r2, #1
	ldreq	r3, .L83+44
	streq	r2, [r3]
	beq	.L6
.L8:
	mov	r1, fp
	ldr	r0, .L83+48
	bl	strcmp
	cmp	r0, #0
	bne	.L9
	sub	r3, r6, #1
	cmp	r3, r4
	ble	.L5
	ldr	r3, [r5]
	str	r3, [sp, #12]
	b	.L6
.L9:
	mov	r1, fp
	ldr	r0, .L83+52
	bl	strcmp
	cmp	r0, #0
	bne	.L10
	sub	r3, r6, #1
	cmp	r3, r4
	ble	.L5
	ldr	r0, [r5]
	bl	atoi
	str	r0, [sp, #16]
	b	.L6
.L10:
	mov	r1, fp
	ldr	r0, .L83+56
	bl	strcmp
	cmp	r0, #0
	bne	.L11
	sub	r3, r6, #1
	cmp	r3, r4
	ble	.L5
	ldr	r0, [r5]
	bl	atoi
	str	r0, [sp, #20]
	b	.L6
.L11:
	mov	r1, fp
	ldr	r0, .L83+60
	bl	strcmp
	cmp	r0, #0
	bne	.L6
.L5:
	bl	syntax
	ldr	r3, .L83+40
	ldr	r0, [r3]
	bl	event_base_free
.L66:
	mov	r9, #1
.L44:
	bl	EVP_cleanup
	bl	ERR_free_strings
	mov	r0, #0
	bl	ERR_remove_state
	bl	CRYPTO_cleanup_all_ex_data
	bl	SSL_COMP_get_compression_methods
	bl	sk_SSL_COMP_free
	ldr	r3, .L83
	ldr	r2, [r3]
	ldr	r3, [sp, #1316]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L76
	mov	r0, r9
	add	sp, sp, #1312
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r0, .L83+64
	bl	err
.L17:
	mov	r0, r4
	bl	evhttp_uri_free
	ldr	r3, .L83+40
	mov	r9, #1
	ldr	r0, [r3]
	bl	event_base_free
	b	.L44
.L72:
	mov	r0, r5
	ldr	r1, .L83+24
	bl	strcasecmp
	cmp	r0, #0
	add	r7, r7, #444
	moveq	r7, #80
	b	.L19
.L73:
	str	r3, [sp, #28]
	mov	r0, r3
	mov	r1, #255
	mov	r3, r6
	ldr	r2, .L83+68
	bl	snprintf
	b	.L22
.L70:
	ldr	r0, .L83+72
	bl	err
	ldr	r3, .L83+40
	ldr	r0, [r3]
	bl	event_base_free
	b	.L66
.L74:
	ldr	r0, .L83+76
	bl	err_openssl
	b	.L17
.L25:
	ldr	r3, .L83+80
	mov	r2, r8
	ldr	r1, [r3]
	mov	r0, r6
	bl	SSL_CTX_set_verify
	ldr	r3, .L83+84
	ldr	r2, [sp, #24]
	ldr	r1, [r3]
	mov	r0, r6
	bl	SSL_CTX_set_cert_verify_callback
	bl	event_base_new
	ldr	r10, .L83+40
	cmp	r0, #0
	str	r0, [r10]
	beq	.L77
	mov	r0, r6
	bl	SSL_new
	subs	r8, r0, #0
	beq	.L78
	mov	r0, r5
	ldr	r1, .L83+24
	bl	strcasecmp
	ldr	r3, .L83+88
	subs	fp, r0, #0
	ldr	r2, [r3]
	ldr	r0, [r10]
	bne	.L29
	mvn	r1, #0
	bl	bufferevent_socket_new
	mov	r2, r0
.L30:
	cmp	r2, #0
	beq	.L79
	mov	r1, #1
	mov	r0, r2
	str	r2, [sp, #8]
	bl	bufferevent_openssl_set_allow_dirty_shutdown
	str	r7, [sp]
	ldr	r2, [sp, #8]
	mov	r1, #0
	ldr	r3, [sp, #24]
	ldr	r0, [r10]
	bl	evhttp_connection_base_bufferevent_new
	subs	r5, r0, #0
	ldr	r2, [sp, #8]
	beq	.L80
	ldr	r1, [sp, #16]
	cmp	r1, #0
	ble	.L34
	str	r2, [sp, #8]
	bl	evhttp_connection_set_retries
	ldr	r2, [sp, #8]
.L34:
	ldr	r1, [sp, #20]
	cmp	r1, #0
	blt	.L35
	mov	r0, r5
	str	r2, [sp, #8]
	bl	evhttp_connection_set_timeout
	ldr	r2, [sp, #8]
.L35:
	ldr	r3, .L83+92
	mov	r1, r2
	ldr	r0, [r3]
	bl	evhttp_request_new
	subs	r3, r0, #0
	str	r3, [sp, #16]
	beq	.L81
	bl	evhttp_request_get_output_headers
	mov	r7, r0
	ldr	r2, [sp, #24]
	ldr	r1, .L83+96
	str	r0, [sp, #20]
	bl	evhttp_add_header
	mov	r0, r7
	ldr	r2, .L83+100
	ldr	r1, .L83+104
	bl	evhttp_add_header
	ldr	r3, [sp, #12]
	cmp	r3, #0
	beq	.L38
	mov	r0, r3
	ldr	r1, .L83+108
	bl	fopen
	subs	r7, r0, #0
	beq	.L82
	ldr	r0, [sp, #16]
	bl	evhttp_request_get_output_buffer
	mov	r3, #0
	str	r0, [sp, #12]
	str	r3, [sp, #8]
	str	r4, [sp, #24]
	b	.L40
.L41:
	mov	r2, r4
	ldr	r0, [sp, #12]
	add	r1, sp, #292
	bl	evbuffer_add
	ldr	r3, [sp, #8]
	add	r3, r3, r4
	str	r3, [sp, #8]
.L40:
	mov	r3, r7
	mov	r2, #1024
	mov	r1, #1
	add	r0, sp, #292
	bl	fread
	subs	r4, r0, #0
	bne	.L41
	ldr	r3, [sp, #8]
	ldr	r2, .L83+112
	ldr	r1, .L83+116
	add	r0, sp, #292
	ldr	r4, [sp, #24]
	bl	evutil_snprintf
	add	r2, sp, #292
	ldr	r1, .L83+120
	ldr	r0, [sp, #20]
	bl	evhttp_add_header
	mov	r0, r7
	bl	fclose
	ldr	r3, .L83+124
	ldr	r2, [r3]
.L43:
	ldr	r3, [sp, #28]
	mov	r0, r5
	ldr	r1, [sp, #16]
	bl	evhttp_make_request
	subs	r3, r0, #0
	beq	.L42
	ldr	r3, .L83+128
	ldr	r1, .L83+132
	ldr	r0, [r3]
	bl	fprintf
.L37:
	mov	r0, r5
	bl	evhttp_connection_free
.L32:
	mov	r0, r4
	bl	evhttp_uri_free
	ldr	r0, [r10]
	bl	event_base_free
	mov	r0, r6
	bl	SSL_CTX_free
	cmp	r8, #0
	moveq	fp, #0
	eorne	fp, fp, #1
	cmp	fp, #0
	beq	.L44
	mov	r0, r8
	bl	SSL_free
	b	.L44
.L77:
	ldr	r0, .L83+136
	bl	perror
	b	.L26
.L71:
	ldr	r0, .L83+140
	bl	err
	b	.L17
.L75:
	ldr	r0, .L83+144
	bl	err_openssl
	b	.L17
.L29:
	ldr	r1, .L83+148
	ldr	r3, .L83+152
	ldr	r1, [r1]
	mov	fp, r9
	orr	r2, r2, r1
	str	r2, [sp]
	mvn	r1, #0
	mov	r2, r8
	ldr	r3, [r3]
	bl	bufferevent_openssl_socket_new
	mov	r2, r0
	b	.L30
.L42:
	ldr	r0, [r10]
	mov	r9, r3
	bl	event_base_dispatch
	b	.L37
.L38:
	ldr	r3, .L83+156
	ldr	r2, [r3]
	b	.L43
.L81:
	ldr	r3, .L83+128
	ldr	r1, .L83+160
	ldr	r0, [r3]
	bl	fprintf
	b	.L37
.L79:
	ldr	r3, .L83+128
	ldr	r1, .L83+164
	ldr	r0, [r3]
	bl	fprintf
	b	.L32
.L80:
	ldr	r3, .L83+128
	ldr	r1, .L83+168
	ldr	r0, [r3]
	bl	fprintf
	b	.L32
.L82:
	bl	syntax
	b	.L37
.L78:
	ldr	r0, .L83+172
	bl	err_openssl
	b	.L26
.L76:
	bl	__stack_chk_fail
.L84:
	.align	2
.L83:
	.word	.LC31
	.word	.LC0
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC10
	.word	.LC11
	.word	.LC1
	.word	.LC15
	.word	.LC18
	.word	base
	.word	ignore_cert
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC12
	.word	.LC14
	.word	.LC9
	.word	.LC16
	.word	SSL_VERIFY_PEER
	.word	cert_verify_callback
	.word	BEV_OPT_CLOSE_ON_FREE
	.word	http_request_done
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	1023
	.word	.LC29
	.word	EVHTTP_REQ_POST
	.word	stderr
	.word	.LC30
	.word	.LC19
	.word	.LC13
	.word	.LC17
	.word	BEV_OPT_DEFER_CALLBACKS
	.word	BUFFEREVENT_SSL_CONNECTING
	.word	EVHTTP_REQ_GET
	.word	.LC23
	.word	.LC21
	.word	.LC22
	.word	.LC20
	.size	main, .-main
	.comm	stderr,4,4
	.comm	ignore_cert,4,4
	.comm	http_request_done,4,4
	.comm	cert_verify_callback,4,4
	.comm	base,4,4
	.comm	SSL_VERIFY_PEER,4,4
	.comm	EVHTTP_REQ_POST,4,4
	.comm	EVHTTP_REQ_GET,4,4
	.comm	BUFFEREVENT_SSL_CONNECTING,4,4
	.comm	BEV_OPT_DEFER_CALLBACKS,4,4
	.comm	BEV_OPT_CLOSE_ON_FREE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
