	.file	"extr_tls_schannel.c_tls_open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"TLS Listen Sockets with SChannel is not implemented.\n"
	.align 8
.LC1:
	.string	"Unable to acquire security credentials (0x%lx)\n"
	.text
	.p2align 4
	.type	tls_open, @function
tls_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rdx, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rsi, rbp
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rbx, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 20[rsp], 0
	mov	QWORD PTR 12[rsp], 0
	lea	rdi, 16[rbx]
	call	ff_tls_open_underlying@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L2
	cmp	QWORD PTR 24[rbx], 0
	jne	.L11
	mov	eax, DWORD PTR SCHANNEL_CRED_VERSION[rip]
	cmp	QWORD PTR 16[rbx], 0
	mov	DWORD PTR 16[rsp], eax
	jne	.L12
	mov	eax, DWORD PTR SCH_CRED_MANUAL_CRED_VALIDATION[rip]
	or	eax, DWORD PTR SCH_CRED_IGNORE_NO_REVOCATION_CHECK[rip]
	or	eax, DWORD PTR SCH_CRED_IGNORE_REVOCATION_OFFLINE[rip]
.L5:
	mov	DWORD PTR 12[rsp], eax
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	lea	rax, 4[rbx]
	xor	ecx, ecx
	push	rax
	.cfi_def_cfa_offset 80
	lea	rax, 8[rbx]
	mov	edx, DWORD PTR SECPKG_CRED_OUTBOUND[rip]
	xor	r9d, r9d
	push	rax
	.cfi_def_cfa_offset 88
	mov	rsi, QWORD PTR UNISP_NAME[rip]
	xor	edi, edi
	push	0
	.cfi_def_cfa_offset 96
	lea	r8, 44[rsp]
	call	AcquireCredentialsHandle@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 64
	cmp	QWORD PTR SEC_E_OK[rip], rax
	mov	rcx, rax
	je	.L6
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC1[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	av_log@PLT
	mov	r12d, DWORD PTR AVERROR_UNKNOWN[rip]
.L2:
	mov	rdi, rbp
	call	tls_close@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	eax, DWORD PTR SCH_CRED_AUTO_CRED_VALIDATION[rip]
	or	eax, DWORD PTR SCH_CRED_REVOCATION_CHECK_CHAIN[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbp
	call	tls_client_handshake@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L2
	mov	DWORD PTR [rbx], 1
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	av_log@PLT
	mov	edi, DWORD PTR EINVAL[rip]
	call	AVERROR@PLT
	mov	r12d, eax
	jmp	.L2
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tls_open, .-tls_open
	.comm	UNISP_NAME,8,8
	.comm	SEC_E_OK,8,8
	.comm	SECPKG_CRED_OUTBOUND,4,4
	.comm	SCH_CRED_REVOCATION_CHECK_CHAIN,4,4
	.comm	SCH_CRED_MANUAL_CRED_VALIDATION,4,4
	.comm	SCH_CRED_IGNORE_REVOCATION_OFFLINE,4,4
	.comm	SCH_CRED_IGNORE_NO_REVOCATION_CHECK,4,4
	.comm	SCH_CRED_AUTO_CRED_VALIDATION,4,4
	.comm	SCHANNEL_CRED_VERSION,4,4
	.comm	EINVAL,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_open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TLS Listen Sockets with SChannel is not implemented"
	.ascii	".\012\000"
	.align	2
.LC1:
	.ascii	"Unable to acquire security credentials (0x%lx)\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_open, %function
tls_open:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	ip, #0
	ldr	r6, [r0]
	ldr	lr, .L15
	sub	sp, sp, #40
	mov	r2, r1
	add	r0, r6, #12
	mov	r1, r5
	ldr	lr, [lr]
	str	lr, [sp, #36]
	mov	lr,#0
	str	ip, [sp, #24]
	str	ip, [sp, #28]
	str	ip, [sp, #32]
	bl	ff_tls_open_underlying
	subs	r4, r0, #0
	blt	.L2
	ldr	r4, [r6, #16]
	cmp	r4, #0
	bne	.L12
	ldr	r3, .L15+4
	ldr	r2, [r6, #12]
	ldr	r3, [r3]
	cmp	r2, #0
	str	r3, [sp, #28]
	bne	.L13
	ldr	r1, .L15+8
	ldr	r2, .L15+12
	ldr	r3, .L15+16
	ldr	ip, [r1]
	ldr	r2, [r2]
	ldr	r3, [r3]
	orr	ip, ip, r2
	orr	ip, ip, r3
.L5:
	mov	r3, #0
	add	r0, sp, #24
	ldr	r2, .L15+20
	ldr	r1, .L15+24
	str	r0, [sp]
	str	r3, [sp, #8]
	str	r3, [sp, #4]
	add	lr, r6, #4
	add	r0, r6, #8
	ldr	r2, [r2]
	ldr	r1, [r1]
	str	r0, [sp, #12]
	str	lr, [sp, #16]
	mov	r0, r3
	str	ip, [sp, #24]
	bl	AcquireCredentialsHandle
	ldr	r2, .L15+28
	ldr	r2, [r2]
	cmp	r2, r0
	beq	.L6
	ldr	r2, .L15+32
	mov	r3, r0
	ldr	r1, [r2]
	mov	r0, r5
	ldr	r2, .L15+36
	bl	av_log
	ldr	r3, .L15+40
	ldr	r4, [r3]
.L2:
	mov	r0, r5
	bl	tls_close
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r2, .L15+44
	ldr	r3, .L15+48
	ldr	ip, [r2]
	ldr	r3, [r3]
	orr	ip, ip, r3
	b	.L5
.L6:
	mov	r0, r5
	bl	tls_client_handshake
	cmp	r0, #0
	blt	.L9
	mov	r3, #1
	str	r3, [r6]
	b	.L1
.L12:
	ldr	r3, .L15+32
	ldr	r2, .L15+52
	ldr	r1, [r3]
	mov	r0, r5
	bl	av_log
	ldr	r3, .L15+56
	ldr	r0, [r3]
	bl	AVERROR
	mov	r4, r0
	b	.L2
.L9:
	mov	r4, r0
	b	.L2
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC2
	.word	SCHANNEL_CRED_VERSION
	.word	SCH_CRED_MANUAL_CRED_VALIDATION
	.word	SCH_CRED_IGNORE_NO_REVOCATION_CHECK
	.word	SCH_CRED_IGNORE_REVOCATION_OFFLINE
	.word	SECPKG_CRED_OUTBOUND
	.word	UNISP_NAME
	.word	SEC_E_OK
	.word	AV_LOG_ERROR
	.word	.LC1
	.word	AVERROR_UNKNOWN
	.word	SCH_CRED_AUTO_CRED_VALIDATION
	.word	SCH_CRED_REVOCATION_CHECK_CHAIN
	.word	.LC0
	.word	EINVAL
	.size	tls_open, .-tls_open
	.comm	UNISP_NAME,4,4
	.comm	SEC_E_OK,4,4
	.comm	SECPKG_CRED_OUTBOUND,4,4
	.comm	SCH_CRED_REVOCATION_CHECK_CHAIN,4,4
	.comm	SCH_CRED_MANUAL_CRED_VALIDATION,4,4
	.comm	SCH_CRED_IGNORE_REVOCATION_OFFLINE,4,4
	.comm	SCH_CRED_IGNORE_NO_REVOCATION_CHECK,4,4
	.comm	SCH_CRED_AUTO_CRED_VALIDATION,4,4
	.comm	SCHANNEL_CRED_VERSION,4,4
	.comm	EINVAL,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
