	.file	"extr_secure.c_sec_connect.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sec_connect
	.type	sec_connect, @function
sec_connect:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	sub	rsp, 48
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r9, 12[rsp]
	call	mcs_connect_start@PLT
	test	eax, eax
	jne	.L2
.L8:
	mov	eax, DWORD PTR False[rip]
.L1:
	mov	rdx, QWORD PTR 40[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, 512
	lea	rbp, 16[rsp]
	mov	DWORD PTR 16[rsp], 512
	call	xmalloc@PLT
	mov	esi, DWORD PTR 12[rsp]
	mov	rdi, rbp
	mov	QWORD PTR 24[rsp], rax
	mov	QWORD PTR 32[rsp], rax
	call	sec_out_mcs_data@PLT
	mov	rdi, rbp
	call	mcs_connect_finalize@PLT
	test	eax, eax
	je	.L8
	cmp	QWORD PTR g_encryption[rip], 0
	jne	.L11
.L5:
	mov	rdi, QWORD PTR 24[rsp]
	call	xfree@PLT
	mov	eax, DWORD PTR True[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	xor	eax, eax
	call	sec_establish_key@PLT
	jmp	.L5
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sec_connect, .-sec_connect
	.comm	g_encryption,8,8
	.comm	True,4,4
	.comm	False,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_secure.c_sec_connect.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sec_connect
	.syntax unified
	.arm
	.fpu softvfp
	.type	sec_connect, %function
sec_connect:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	str	lr, [sp, #-4]!
	sub	sp, sp, #36
	ldr	lr, [sp, #40]
	add	ip, sp, #12
	str	ip, [sp, #4]
	ldr	ip, .L15
	str	lr, [sp]
	ldr	ip, [ip]
	str	ip, [sp, #28]
	mov	ip,#0
	bl	mcs_connect_start
	cmp	r0, #0
	bne	.L2
.L11:
	ldr	r3, .L15+4
	ldr	r0, [r3]
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #36
	@ sp needed
	ldr	pc, [sp], #4
.L2:
	mov	r0, #512
	str	r0, [sp, #16]
	bl	xmalloc
	mov	r3, r0
	ldr	r1, [sp, #12]
	add	r0, sp, #16
	str	r3, [sp, #20]
	str	r3, [sp, #24]
	bl	sec_out_mcs_data
	add	r0, sp, #16
	bl	mcs_connect_finalize
	cmp	r0, #0
	beq	.L11
	ldr	r3, .L15+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L14
.L5:
	ldr	r0, [sp, #20]
	bl	xfree
	ldr	r3, .L15+12
	ldr	r0, [r3]
	b	.L1
.L14:
	bl	sec_establish_key
	b	.L5
.L13:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	False
	.word	g_encryption
	.word	True
	.size	sec_connect, .-sec_connect
	.comm	g_encryption,4,4
	.comm	True,4,4
	.comm	False,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
