	.file	"extr_tlsv1_client.c_tlsv1_client_get_keys.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tlsv1_client_get_keys
	.type	tlsv1_client_get_keys, @function
tlsv1_client_get_keys:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	edx, 40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	xor	esi, esi
	mov	rdi, rbx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	os_memset@PLT
	mov	rax, QWORD PTR 0[rbp]
	cmp	rax, QWORD PTR CLIENT_HELLO[rip]
	je	.L3
	mov	edx, DWORD PTR 16[rbp]
	xor	r8d, r8d
	cmp	rax, QWORD PTR SERVER_HELLO[rip]
	mov	DWORD PTR 32[rbx], edx
	mov	rdx, QWORD PTR TLS_RANDOM_LEN[rip]
	mov	QWORD PTR 24[rbx], rdx
	je	.L1
	mov	eax, DWORD PTR 12[rbp]
	mov	QWORD PTR 8[rbx], rdx
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR 8[rbp]
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR TLS_MASTER_SECRET_LEN[rip]
	mov	DWORD PTR [rbx], eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L3:
	.cfi_restore_state
	mov	r8d, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	tlsv1_client_get_keys, .-tlsv1_client_get_keys
	.comm	TLS_RANDOM_LEN,8,8
	.comm	TLS_MASTER_SECRET_LEN,4,4
	.comm	SERVER_HELLO,8,8
	.comm	CLIENT_HELLO,8,8
	.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_tlsv1_client.c_tlsv1_client_get_keys.c"
	.text
	.align	2
	.global	tlsv1_client_get_keys
	.syntax unified
	.arm
	.fpu softvfp
	.type	tlsv1_client_get_keys, %function
tlsv1_client_get_keys:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r2, #24
	mov	r0, r1
	mov	r4, r1
	mov	r1, #0
	bl	os_memset
	ldr	r2, .L7
	ldr	r3, [r5]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L3
	ldr	r1, .L7+4
	ldr	r2, .L7+8
	ldr	r0, [r1]
	ldr	r2, [r2]
	ldr	r1, [r5, #12]
	cmp	r3, r0
	str	r2, [r4, #16]
	str	r1, [r4, #20]
	beq	.L4
	ldr	r3, .L7+12
	ldr	r0, [r5, #8]
	ldr	r1, [r3]
	ldr	r3, [r5, #4]
	str	r0, [r4, #12]
	stm	r4, {r1, r3}
	mov	r0, #0
	str	r2, [r4, #8]
	pop	{r4, r5, r6, pc}
.L4:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L3:
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	CLIENT_HELLO
	.word	SERVER_HELLO
	.word	TLS_RANDOM_LEN
	.word	TLS_MASTER_SECRET_LEN
	.size	tlsv1_client_get_keys, .-tlsv1_client_get_keys
	.comm	TLS_RANDOM_LEN,4,4
	.comm	TLS_MASTER_SECRET_LEN,4,4
	.comm	SERVER_HELLO,4,4
	.comm	CLIENT_HELLO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
