	.file	"extr_sslapitest.c_get_MFL_from_client_hello.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_MFL_from_client_hello, @function
get_MFL_from_client_hello:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rsi, 32[rsp]
	mov	DWORD PTR 24[rsp], 0
	mov	DWORD PTR 28[rsp], 0
	call	BIO_get_mem_data@PLT
	xor	esi, esi
	mov	rdi, rax
	mov	r12, rax
	call	TEST_uint_gt@PLT
	test	eax, eax
	jne	.L2
.L4:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L47
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	r14, 12[rsp]
	xor	esi, esi
	mov	edx, 4
	mov	rdi, r14
	lea	rbp, 16[rsp]
	lea	r13, 20[rsp]
	call	memset@PLT
	xor	esi, esi
	mov	edx, 4
	mov	rdi, rbp
	call	memset@PLT
	xor	esi, esi
	mov	edx, 4
	mov	rdi, r13
	call	memset@PLT
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, r14
	mov	rdx, r12
	call	PACKET_buf_init@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L4
	mov	rsi, QWORD PTR SSL3_RT_HEADER_LENGTH[rip]
	mov	rdi, r14
	call	PACKET_forward@PLT
	test	eax, eax
	je	.L4
	mov	rsi, QWORD PTR SSL3_HM_HEADER_LENGTH[rip]
	mov	rdi, r14
	call	PACKET_forward@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L4
	mov	rsi, QWORD PTR SSL3_RANDOM_SIZE[rip]
	mov	rdi, r14
	add	rsi, QWORD PTR CLIENT_VERSION_LEN[rip]
	call	PACKET_forward@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L4
	mov	rdi, r14
	mov	rsi, rbp
	call	PACKET_get_length_prefixed_1@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L4
	mov	rdi, r14
	mov	rsi, rbp
	call	PACKET_get_length_prefixed_2@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L4
	mov	rdi, r14
	mov	rsi, rbp
	call	PACKET_get_length_prefixed_1@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L4
	mov	rsi, rbp
	mov	rdi, r14
	lea	r12, 28[rsp]
	call	PACKET_as_length_prefixed_2@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	jne	.L5
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbp
	mov	rsi, r12
	call	PACKET_get_net_2@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L4
	mov	rdi, rbp
	mov	rsi, r13
	call	PACKET_get_length_prefixed_2@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L4
	mov	eax, DWORD PTR TLSEXT_TYPE_max_fragment_length[rip]
	cmp	DWORD PTR 28[rsp], eax
	je	.L48
.L5:
	mov	rdi, rbp
	call	PACKET_remaining@PLT
	test	rax, rax
	jne	.L6
	jmp	.L4
.L48:
	mov	rdi, r13
	call	PACKET_remaining@PLT
	xor	esi, esi
	mov	rdi, rax
	call	TEST_uint_ne@PLT
	test	eax, eax
	je	.L4
	mov	rdi, r13
	lea	rsi, 24[rsp]
	call	PACKET_get_1@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L4
	mov	eax, DWORD PTR 24[rsp]
	mov	DWORD PTR [rbx], eax
	mov	eax, 1
	jmp	.L1
.L47:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_MFL_from_client_hello, .-get_MFL_from_client_hello
	.comm	TLSEXT_TYPE_max_fragment_length,4,4
	.comm	SSL3_RT_HEADER_LENGTH,8,8
	.comm	SSL3_RANDOM_SIZE,8,8
	.comm	SSL3_HM_HEADER_LENGTH,8,8
	.comm	CLIENT_VERSION_LEN,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_sslapitest.c_get_MFL_from_client_hello.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_MFL_from_client_hello, %function
get_MFL_from_client_hello:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, #0
	sub	sp, sp, #32
	ldr	r3, .L48
	mov	r6, r1
	add	r1, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	str	r4, [sp, #20]
	str	r4, [sp, #24]
	bl	BIO_get_mem_data
	mov	r1, r4
	mov	r5, r0
	bl	TEST_uint_gt
	cmp	r0, r4
	bne	.L2
.L4:
	mov	r0, #0
.L1:
	ldr	r3, .L48
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L47
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	mov	r2, r5
	ldr	r1, [sp, #4]
	add	r0, sp, #8
	str	r4, [sp, #8]
	str	r4, [sp, #12]
	str	r4, [sp, #16]
	bl	PACKET_buf_init
	bl	TEST_true
	cmp	r0, #0
	beq	.L4
	ldr	r3, .L48+4
	add	r0, sp, #8
	ldr	r1, [r3]
	bl	PACKET_forward
	cmp	r0, #0
	beq	.L4
	ldr	r3, .L48+8
	add	r0, sp, #8
	ldr	r1, [r3]
	bl	PACKET_forward
	bl	TEST_true
	cmp	r0, #0
	beq	.L4
	ldr	r2, .L48+12
	ldr	r3, .L48+16
	ldr	r1, [r2]
	ldr	r3, [r3]
	add	r0, sp, #8
	add	r1, r1, r3
	bl	PACKET_forward
	bl	TEST_true
	cmp	r0, #0
	beq	.L4
	add	r1, sp, #12
	add	r0, sp, #8
	bl	PACKET_get_length_prefixed_1
	bl	TEST_true
	cmp	r0, #0
	beq	.L4
	add	r1, sp, #12
	add	r0, sp, #8
	bl	PACKET_get_length_prefixed_2
	bl	TEST_true
	cmp	r0, #0
	beq	.L4
	add	r1, sp, #12
	add	r0, sp, #8
	bl	PACKET_get_length_prefixed_1
	bl	TEST_true
	cmp	r0, #0
	beq	.L4
	add	r1, sp, #12
	add	r0, sp, #8
	bl	PACKET_as_length_prefixed_2
	bl	TEST_true
	cmp	r0, #0
	beq	.L4
	ldr	r4, .L48+20
.L5:
	add	r0, sp, #12
	bl	PACKET_remaining
	cmp	r0, #0
	beq	.L4
	add	r1, sp, #24
	add	r0, sp, #12
	bl	PACKET_get_net_2
	bl	TEST_true
	cmp	r0, #0
	beq	.L4
	add	r1, sp, #16
	add	r0, sp, #12
	bl	PACKET_get_length_prefixed_2
	bl	TEST_true
	cmp	r0, #0
	beq	.L4
	ldr	r2, [sp, #24]
	ldr	r3, [r4]
	cmp	r2, r3
	bne	.L5
	add	r0, sp, #16
	bl	PACKET_remaining
	mov	r1, #0
	bl	TEST_uint_ne
	cmp	r0, #0
	beq	.L4
	add	r1, sp, #20
	add	r0, sp, #16
	bl	PACKET_get_1
	bl	TEST_true
	cmp	r0, #0
	beq	.L4
	ldr	r3, [sp, #20]
	mov	r0, #1
	str	r3, [r6]
	b	.L1
.L47:
	bl	__stack_chk_fail
.L49:
	.align	2
.L48:
	.word	.LC0
	.word	SSL3_RT_HEADER_LENGTH
	.word	SSL3_HM_HEADER_LENGTH
	.word	CLIENT_VERSION_LEN
	.word	SSL3_RANDOM_SIZE
	.word	TLSEXT_TYPE_max_fragment_length
	.size	get_MFL_from_client_hello, .-get_MFL_from_client_hello
	.comm	TLSEXT_TYPE_max_fragment_length,4,4
	.comm	SSL3_RT_HEADER_LENGTH,4,4
	.comm	SSL3_RANDOM_SIZE,4,4
	.comm	SSL3_HM_HEADER_LENGTH,4,4
	.comm	CLIENT_VERSION_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
