	.file	"extr_tunnel.c_vlc_https_connect_proxy.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"https"
.LC1:
	.string	"http"
.LC2:
	.string	"h2"
.LC3:
	.string	"http/1.1"
	.text
	.p2align 4
	.globl	vlc_https_connect_proxy
	.type	vlc_https_connect_proxy, @function
vlc_https_connect_proxy:
.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
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r9
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 120
	.cfi_def_cfa_offset 176
	mov	QWORD PTR 8[rsp], r8
	lea	rbx, 48[rsp]
	mov	QWORD PTR 24[rsp], rdi
	xor	edi, edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	test	r9, r9
	setne	dil
	call	assert@PLT
	test	r12d, r12d
	mov	eax, 443
	cmove	r12d, eax
	xor	eax, eax
	call	vlc_savecancel@PLT
	mov	rsi, r13
	mov	rdi, rbx
	mov	r15d, eax
	call	vlc_UrlParse@PLT
	mov	edi, r15d
	call	vlc_restorecancel@PLT
	mov	rdi, QWORD PTR 72[rsp]
	test	rdi, rdi
	je	.L5
	mov	r13, QWORD PTR 64[rsp]
	test	r13, r13
	je	.L5
	lea	rsi, .LC0[rip]
	mov	QWORD PTR 16[rsp], rdi
	mov	DWORD PTR 36[rsp], 0
	call	strcasecmp@PLT
	mov	rdi, QWORD PTR 16[rsp]
	test	eax, eax
	je	.L37
	lea	rsi, .LC1[rip]
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L5
	mov	edx, DWORD PTR 56[rsp]
	xor	edi, edi
	test	rbp, rbp
	je	.L8
	mov	rdi, rbp
	mov	DWORD PTR 16[rsp], edx
	call	vlc_object_parent@PLT
	mov	edx, DWORD PTR 16[rsp]
	mov	rdi, rax
.L8:
	mov	rsi, r13
	call	vlc_tls_SocketOpenTCP@PLT
	mov	r13, rax
.L7:
	test	r13, r13
	je	.L5
	mov	ecx, DWORD PTR 36[rsp]
	xor	edi, edi
	test	ecx, ecx
	sete	dil
	call	assert@PLT
	mov	edi, 24
	call	malloc@PLT
	test	rax, rax
	mov	QWORD PTR 16[rsp], rax
	sete	dil
	movzx	edi, dil
	call	unlikely@PLT
	mov	r8, QWORD PTR 16[rsp]
	test	rax, rax
	jne	.L35
	lea	rax, vlc_tls_proxy_ops[rip]
	mov	QWORD PTR 16[r8], r13
	xor	edx, edx
	mov	rsi, r8
	mov	QWORD PTR 8[r8], rax
	mov	rdi, QWORD PTR 24[rsp]
	mov	QWORD PTR [r8], 0
	mov	QWORD PTR 16[rsp], r8
	call	vlc_h1_conn_create@PLT
	xor	edi, edi
	test	rax, rax
	mov	r15, rax
	sete	dil
	call	unlikely@PLT
	mov	r8, QWORD PTR 16[rsp]
	test	rax, rax
	jne	.L38
	mov	r8d, DWORD PTR 48[rsp]
	mov	ecx, DWORD PTR 52[rsp]
	mov	edx, r12d
	mov	rsi, r14
	mov	rdi, r15
	call	vlc_http_tunnel_open@PLT
	mov	rdi, rbx
	mov	r12, rax
	call	vlc_UrlClean@PLT
	mov	rdi, r15
	call	vlc_http_conn_release@PLT
	test	r12, r12
	je	.L10
	mov	rbx, QWORD PTR 8[rsp]
	lea	r8, 88[rsp]
	mov	rsi, r13
	mov	rdi, rbp
	lea	rax, .LC2[rip]
	lea	r9, 40[rsp]
	mov	QWORD PTR 96[rsp], 0
	mov	edx, DWORD PTR [rbx]
	mov	QWORD PTR 80[rsp], rax
	lea	rax, .LC3[rip]
	lea	rcx, .LC0[rip]
	mov	QWORD PTR 88[rsp], rax
	lea	rax, 80[rsp]
	test	edx, edx
	mov	rdx, r14
	cmovne	r8, rax
	call	vlc_tls_ClientSessionCreate@PLT
	mov	r12, rax
	test	rax, rax
	je	.L10
	mov	rdi, QWORD PTR 40[rsp]
	xor	eax, eax
	test	rdi, rdi
	je	.L14
	movzx	eax, BYTE PTR [rdi]
	sub	eax, 104
	je	.L39
.L15:
	test	eax, eax
	sete	al
	movzx	eax, al
.L14:
	mov	rbx, QWORD PTR 8[rsp]
	mov	DWORD PTR [rbx], eax
	call	free@PLT
.L1:
	mov	rax, QWORD PTR 104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L40
	add	rsp, 120
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L5:
	.cfi_restore_state
	mov	rdi, rbx
	xor	r12d, r12d
	call	vlc_UrlClean@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L37:
	mov	edx, DWORD PTR 56[rsp]
	mov	rsi, r13
	lea	rcx, 36[rsp]
	mov	rdi, rbp
	call	vlc_https_connect@PLT
	mov	r13, rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L38:
	mov	rdi, r8
	call	vlc_tls_Close@PLT
.L35:
	mov	rdi, rbx
	call	vlc_UrlClean@PLT
.L10:
	mov	rdi, r13
	xor	r12d, r12d
	call	vlc_tls_Close@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L39:
	movzx	eax, BYTE PTR 1[rdi]
	sub	eax, 50
	jne	.L15
	movzx	eax, BYTE PTR 2[rdi]
	jmp	.L15
.L40:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vlc_https_connect_proxy, .-vlc_https_connect_proxy
	.comm	vlc_tls_proxy_ops,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_tunnel.c_vlc_https_connect_proxy.c"
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"h2\000"
	.align	2
.LC1:
	.ascii	"http/1.1\000"
	.text
	.section	.rodata.str1.4
	.align	2
.LC3:
	.ascii	"https\000"
	.align	2
.LC4:
	.ascii	"http\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	vlc_https_connect_proxy
	.syntax unified
	.arm
	.fpu softvfp
	.type	vlc_https_connect_proxy, %function
vlc_https_connect_proxy:
	@ args = 8, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r3
	sub	sp, sp, #60
	ldr	r5, [sp, #100]
	ldr	r3, .L41
	mov	fp, r0
	subs	r0, r5, #0
	movne	r0, #1
	mov	r9, r2
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	ldr	r10, [sp, #96]
	bl	assert
	ldr	r3, .L41+4
	cmp	r4, #0
	moveq	r4, r3
	bl	vlc_savecancel
	mov	r1, r5
	mov	r5, r0
	add	r0, sp, #20
	bl	vlc_UrlParse
	mov	r0, r5
	bl	vlc_restorecancel
	ldr	r5, [sp, #36]
	cmp	r5, #0
	beq	.L5
	ldr	r6, [sp, #32]
	cmp	r6, #0
	beq	.L5
	mov	r3, #0
	mov	r0, r5
	ldr	r1, .L41+8
	str	r3, [sp, #12]
	bl	strcasecmp
	cmp	r0, #0
	beq	.L37
	mov	r0, r5
	ldr	r1, .L41+12
	bl	strcasecmp
	cmp	r0, #0
	bne	.L5
	subs	r0, r7, #0
	beq	.L8
	bl	vlc_object_parent
	ldr	r6, [sp, #32]
.L8:
	mov	r1, r6
	ldr	r2, [sp, #28]
	bl	vlc_tls_SocketOpenTCP
	mov	r8, r0
.L7:
	cmp	r8, #0
	beq	.L5
	ldr	r0, [sp, #12]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	mov	r0, #12
	bl	malloc
	mov	r6, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	subs	r2, r0, #0
	bne	.L35
	ldr	r3, .L41+16
	mov	r0, fp
	mov	r1, r6
	str	r2, [r6]
	str	r3, [r6, #4]
	str	r8, [r6, #8]
	bl	vlc_h1_conn_create
	mov	fp, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	subs	r5, r0, #0
	bne	.L38
	ldr	r3, [sp, #20]
	mov	r2, r4
	mov	r1, r9
	str	r3, [sp]
	mov	r0, fp
	ldr	r3, [sp, #24]
	bl	vlc_http_tunnel_open
	mov	r4, r0
	add	r0, sp, #20
	bl	vlc_UrlClean
	mov	r0, fp
	bl	vlc_http_conn_release
	cmp	r4, #0
	beq	.L10
	ldr	r1, [r10]
	ldr	r2, .L41+20
	add	r3, sp, #40
	cmp	r1, #0
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	addeq	r3, sp, #44
	add	r1, sp, #16
	str	r3, [sp]
	str	r1, [sp, #4]
	mov	r2, r9
	mov	r0, r7
	mov	r1, r8
	ldr	r3, .L41+8
	bl	vlc_tls_ClientSessionCreate
	subs	r4, r0, #0
	beq	.L10
	ldr	r0, [sp, #16]
	cmp	r0, #0
	beq	.L14
	ldrb	r5, [r0]	@ zero_extendqisi2
	subs	r5, r5, #104
	beq	.L39
.L15:
	clz	r5, r5
	lsr	r5, r5, #5
.L14:
	str	r5, [r10]
	bl	free
.L1:
	ldr	r3, .L41
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L40
	mov	r0, r4
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	add	r0, sp, #20
	bl	vlc_UrlClean
	mov	r4, #0
	b	.L1
.L37:
	mov	r1, r6
	mov	r0, r7
	ldr	r2, [sp, #28]
	add	r3, sp, #12
	bl	vlc_https_connect
	mov	r8, r0
	b	.L7
.L38:
	mov	r0, r6
	bl	vlc_tls_Close
.L35:
	add	r0, sp, #20
	bl	vlc_UrlClean
.L10:
	mov	r0, r8
	bl	vlc_tls_Close
	mov	r4, #0
	b	.L1
.L39:
	ldrb	r5, [r0, #1]	@ zero_extendqisi2
	subs	r5, r5, #50
	ldrbeq	r5, [r0, #2]	@ zero_extendqisi2
	b	.L15
.L40:
	bl	__stack_chk_fail
.L42:
	.align	2
.L41:
	.word	.LC6
	.word	443
	.word	.LC3
	.word	.LC4
	.word	vlc_tls_proxy_ops
	.word	.LANCHOR0
	.size	vlc_https_connect_proxy, .-vlc_https_connect_proxy
	.comm	vlc_tls_proxy_ops,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC5:
	.word	.LC0
	.word	.LC1
	.word	0
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
