	.file	"extr_tls_crypt.c_tls_crypt_v2_init_client_key.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ERROR: invalid tls-crypt-v2 client key format"
	.align 8
.LC1:
	.string	"ERROR: not enough data in tls-crypt-v2 client key"
	.text
	.p2align 4
	.globl	tls_crypt_v2_init_client_key
	.type	tls_crypt_v2_init_client_key, @function
tls_crypt_v2_init_client_key:
.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, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rdi, QWORD PTR TLS_CRYPT_V2_MAX_WKC_LEN[rip]
	add	rdi, QWORD PTR TLS_CRYPT_V2_CLIENT_KEY_LEN[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	r15, rsp
	call	alloc_buf@PLT
	mov	rcx, r14
	mov	rdx, r13
	mov	rdi, r15
	mov	esi, DWORD PTR tls_crypt_v2_cli_pem_name[rip]
	mov	DWORD PTR [rsp], eax
	call	read_pem_key_file@PLT
	test	eax, eax
	je	.L7
.L2:
	lea	rbp, 4[rsp]
	mov	edx, 4
	mov	rdi, r15
	mov	rsi, rbp
	call	buf_read@PLT
	test	eax, eax
	je	.L8
.L3:
	xor	edx, edx
	mov	rsi, rbp
	mov	rdi, r12
	call	tls_crypt_v2_load_client_key@PLT
	mov	esi, 4
	mov	rdi, rbp
	call	secure_memzero@PLT
	mov	eax, DWORD PTR [rsp]
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR M_FATAL[rip]
	lea	rsi, .LC0[rip]
	call	msg@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR M_FATAL[rip]
	lea	rsi, .LC1[rip]
	call	msg@PLT
	jmp	.L3
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tls_crypt_v2_init_client_key, .-tls_crypt_v2_init_client_key
	.comm	tls_crypt_v2_cli_pem_name,4,4
	.comm	TLS_CRYPT_V2_MAX_WKC_LEN,8,8
	.comm	TLS_CRYPT_V2_CLIENT_KEY_LEN,8,8
	.comm	M_FATAL,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_crypt.c_tls_crypt_v2_init_client_key.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ERROR: invalid tls-crypt-v2 client key format\000"
	.align	2
.LC1:
	.ascii	"ERROR: not enough data in tls-crypt-v2 client key\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tls_crypt_v2_init_client_key
	.syntax unified
	.arm
	.fpu softvfp
	.type	tls_crypt_v2_init_client_key, %function
tls_crypt_v2_init_client_key:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	ip, .L10
	mov	r5, r0
	ldr	r0, .L10+4
	ldr	ip, [ip]
	ldr	r0, [r0]
	mov	r7, r3
	ldr	r3, .L10+8
	sub	sp, sp, #20
	add	r0, ip, r0
	mov	r6, r2
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	alloc_buf
	mov	ip, r0
	ldr	r1, .L10+12
	mov	r3, r7
	mov	r2, r6
	ldr	r1, [r1]
	add	r0, sp, #4
	str	ip, [sp, #4]
	bl	read_pem_key_file
	cmp	r0, #0
	beq	.L7
.L2:
	mov	r2, #4
	add	r0, sp, #4
	add	r1, sp, #8
	bl	buf_read
	cmp	r0, #0
	beq	.L8
.L3:
	mov	r2, #0
	add	r1, sp, #8
	mov	r0, r5
	bl	tls_crypt_v2_load_client_key
	mov	r1, #4
	add	r0, sp, #8
	bl	secure_memzero
	ldr	r3, [sp, #4]
	str	r3, [r4]
	ldr	r3, .L10+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	ldr	r3, .L10+16
	ldr	r1, .L10+20
	ldr	r0, [r3]
	bl	msg
	b	.L2
.L8:
	ldr	r3, .L10+16
	ldr	r1, .L10+24
	ldr	r0, [r3]
	bl	msg
	b	.L3
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	TLS_CRYPT_V2_CLIENT_KEY_LEN
	.word	TLS_CRYPT_V2_MAX_WKC_LEN
	.word	.LC2
	.word	tls_crypt_v2_cli_pem_name
	.word	M_FATAL
	.word	.LC0
	.word	.LC1
	.size	tls_crypt_v2_init_client_key, .-tls_crypt_v2_init_client_key
	.comm	tls_crypt_v2_cli_pem_name,4,4
	.comm	TLS_CRYPT_V2_MAX_WKC_LEN,4,4
	.comm	TLS_CRYPT_V2_CLIENT_KEY_LEN,4,4
	.comm	M_FATAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
