	.file	"extr_tls_schannel.c_tls_client_handshake.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Unable to create initial security context (0x%lx)\n"
	.align 8
.LC1:
	.string	"Failed to send initial handshake data\n"
	.text
	.p2align 4
	.type	tls_client_handshake, @function
tls_client_handshake:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	ecx, ecx
	xor	edx, edx
	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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR SECBUFFER_EMPTY[rip]
	mov	rbx, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	r12, 16[rsp]
	lea	r13, 12[rsp]
	mov	rdi, r12
	call	init_sec_buffer@PLT
	mov	rsi, r12
	mov	edx, 1
	mov	rdi, r13
	call	init_sec_buffer_desc@PLT
	mov	ecx, DWORD PTR ISC_REQ_SEQUENCE_DETECT[rip]
	mov	edx, DWORD PTR 24[rbx]
	xor	esi, esi
	or	ecx, DWORD PTR ISC_REQ_REPLAY_DETECT[rip]
	lea	rax, 8[rbx]
	xor	r9d, r9d
	xor	r8d, r8d
	or	ecx, DWORD PTR ISC_REQ_CONFIDENTIALITY[rip]
	or	ecx, DWORD PTR ISC_REQ_ALLOCATE_MEMORY[rip]
	lea	r12, 4[rbx]
	or	ecx, DWORD PTR ISC_REQ_STREAM[rip]
	lea	rdi, 16[rbx]
	mov	DWORD PTR [rbx], ecx
	push	rax
	.cfi_def_cfa_offset 88
	lea	rax, 12[rbx]
	push	rax
	.cfi_def_cfa_offset 96
	push	r13
	.cfi_def_cfa_offset 104
	push	r12
	.cfi_def_cfa_offset 112
	push	0
	.cfi_def_cfa_offset 120
	push	0
	.cfi_def_cfa_offset 128
	call	InitializeSecurityContext@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 80
	cmp	QWORD PTR SEC_I_CONTINUE_NEEDED[rip], rax
	je	.L2
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	mov	rcx, rax
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	av_log@PLT
	mov	r13d, DWORD PTR AVERROR_UNKNOWN[rip]
.L3:
	mov	rdi, r12
	call	DeleteSecurityContext@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.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
	mov	edi, DWORD PTR 20[rbx]
	mov	edx, DWORD PTR 16[rsp]
	mov	esi, DWORD PTR 20[rsp]
	call	ffurl_write@PLT
	mov	edi, DWORD PTR 20[rsp]
	mov	ebx, eax
	call	FreeContextBuffer@PLT
	test	ebx, ebx
	js	.L4
	cmp	DWORD PTR 16[rsp], ebx
	je	.L5
.L4:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC1[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	av_log@PLT
	mov	edi, DWORD PTR EIO[rip]
	call	AVERROR@PLT
	mov	r13d, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, 1
	mov	rdi, rbp
	call	tls_client_handshake_loop@PLT
	mov	r13d, eax
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tls_client_handshake, .-tls_client_handshake
	.comm	SEC_I_CONTINUE_NEEDED,8,8
	.comm	SECBUFFER_EMPTY,4,4
	.comm	ISC_REQ_STREAM,4,4
	.comm	ISC_REQ_SEQUENCE_DETECT,4,4
	.comm	ISC_REQ_REPLAY_DETECT,4,4
	.comm	ISC_REQ_CONFIDENTIALITY,4,4
	.comm	ISC_REQ_ALLOCATE_MEMORY,4,4
	.comm	EIO,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AVERROR_UNKNOWN,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_tls_schannel.c_tls_client_handshake.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unable to create initial security context (0x%lx)\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"Failed to send initial handshake data\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tls_client_handshake, %function
tls_client_handshake:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, lr}
	ldr	r1, .L11
	sub	sp, sp, #52
	ldr	r4, [r0]
	ldr	ip, .L11+4
	mov	r2, r3
	ldr	r1, [r1]
	add	r7, sp, #32
	mov	r5, r0
	add	r0, sp, #36
	ldr	ip, [ip]
	str	ip, [sp, #44]
	mov	ip,#0
	mov	r6, r4
	bl	init_sec_buffer
	mov	r2, #1
	add	r1, sp, #36
	mov	r0, r7
	bl	init_sec_buffer_desc
	mov	r1, #0
	ldr	r3, .L11+8
	ldr	r0, .L11+12
	ldr	r2, .L11+16
	ldr	r0, [r0]
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r0
	ldr	r0, .L11+20
	orr	r3, r3, r2
	ldr	r2, .L11+24
	ldr	r0, [r0]
	ldr	r2, [r2]
	orr	r3, r3, r0
	orr	r3, r3, r2
	add	ip, r4, #8
	ldr	r2, [r4, #24]
	add	r0, r4, #12
	str	r3, [r6], #4
	str	r6, [sp, #16]
	str	r0, [sp, #24]
	str	r7, [sp, #20]
	str	ip, [sp, #28]
	add	r0, r4, #16
	str	r1, [sp, #12]
	str	r1, [sp, #8]
	str	r1, [sp, #4]
	str	r1, [sp]
	bl	InitializeSecurityContext
	ldr	r2, .L11+28
	ldr	r2, [r2]
	cmp	r2, r0
	beq	.L2
	ldr	r2, .L11+32
	mov	r3, r0
	ldr	r1, [r2]
	mov	r0, r5
	ldr	r2, .L11+36
	bl	av_log
	ldr	r3, .L11+40
	ldr	r4, [r3]
.L3:
	mov	r0, r6
	bl	DeleteSecurityContext
.L1:
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r4
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r0, [r4, #20]
	ldr	r2, [sp, #36]
	ldr	r1, [sp, #40]
	bl	ffurl_write
	mov	r4, r0
	ldr	r0, [sp, #40]
	bl	FreeContextBuffer
	cmp	r4, #0
	blt	.L4
	ldr	r3, [sp, #36]
	cmp	r3, r4
	beq	.L5
.L4:
	ldr	r3, .L11+32
	ldr	r2, .L11+44
	ldr	r1, [r3]
	mov	r0, r5
	bl	av_log
	ldr	r3, .L11+48
	ldr	r0, [r3]
	bl	AVERROR
	mov	r4, r0
	b	.L3
.L5:
	mov	r0, r5
	mov	r1, #1
	bl	tls_client_handshake_loop
	mov	r4, r0
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	SECBUFFER_EMPTY
	.word	.LC2
	.word	ISC_REQ_SEQUENCE_DETECT
	.word	ISC_REQ_REPLAY_DETECT
	.word	ISC_REQ_CONFIDENTIALITY
	.word	ISC_REQ_ALLOCATE_MEMORY
	.word	ISC_REQ_STREAM
	.word	SEC_I_CONTINUE_NEEDED
	.word	AV_LOG_ERROR
	.word	.LC0
	.word	AVERROR_UNKNOWN
	.word	.LC1
	.word	EIO
	.size	tls_client_handshake, .-tls_client_handshake
	.comm	SEC_I_CONTINUE_NEEDED,4,4
	.comm	SECBUFFER_EMPTY,4,4
	.comm	ISC_REQ_STREAM,4,4
	.comm	ISC_REQ_SEQUENCE_DETECT,4,4
	.comm	ISC_REQ_REPLAY_DETECT,4,4
	.comm	ISC_REQ_CONFIDENTIALITY,4,4
	.comm	ISC_REQ_ALLOCATE_MEMORY,4,4
	.comm	EIO,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AVERROR_UNKNOWN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
