	.file	"extr_tlsv1_record.c_tlsv1_record_receive.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"TLSv1: Too short record (in_len=%lu) - need more data"
	.align 8
.LC1:
	.string	"TLSv1: Record Layer - Received"
	.align 8
.LC2:
	.string	"TLSv1: Received content type %d version %d.%d length %d"
	.align 8
.LC3:
	.string	"TLSv1: Unexpected protocol version %u.%u"
	.align 8
.LC4:
	.string	"TLSv1: Record overflow (len=%lu)"
	.align 8
.LC5:
	.string	"TLSv1: Not all record data included (rlen=%lu > in_len=%lu)"
	.align 8
.LC6:
	.string	"TLSv1: Ignore record with unknown content type 0x%x"
	.align 8
.LC7:
	.string	"TLSv1: Not enough output buffer for processing received record"
	.align 8
.LC8:
	.string	"TLSv1: Record Layer - Decrypted data"
	.align 8
.LC9:
	.string	"TLSv1.1: Not enough room for IV"
	.align 8
.LC10:
	.string	"TLSv1: Too short record (no pad)"
	.align 8
.LC11:
	.string	"TLSv1: Incorrect pad length (%u, plen=%lu) in received record"
	.align 8
.LC12:
	.string	"TLSv1: Invalid pad in received record"
	.align 8
.LC13:
	.string	"TLSv1: Record Layer - Decrypted data with IV and padding removed"
	.align 8
.LC14:
	.string	"TLSv1: Too short record; no hash value"
	.align 8
.LC15:
	.string	"TLSv1: Record Layer - Failed to initialize HMAC"
	.align 8
.LC16:
	.string	"TLSv1: Record Layer - Failed to calculate HMAC"
	.align 8
.LC17:
	.string	"TLSv1: Invalid HMAC value in received message (force_mac_error=%d)"
	.text
	.p2align 4
	.globl	tlsv1_record_receive
	.type	tlsv1_record_receive, @function
tlsv1_record_receive:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 472
	.cfi_def_cfa_offset 528
	mov	QWORD PTR 8[rsp], r8
	mov	QWORD PTR 16[rsp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 456[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR TLS_RECORD_HEADER_LEN[rip], rdx
	ja	.L34
	mov	r13d, DWORD PTR [rsi]
	mov	rbx, rdi
	lea	rdi, 12[rsi]
	mov	rbp, rcx
	call	WPA_GET_BE16@PLT
	mov	ecx, DWORD PTR 4[r15]
	mov	r8d, DWORD PTR 8[r15]
	lea	rsi, .LC2[rip]
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	r9d, eax
	mov	edx, r13d
	mov	r12, rax
	xor	eax, eax
	call	wpa_printf@PLT
	mov	edx, DWORD PTR 4[r15]
	cmp	edx, 3
	jne	.L35
	mov	rax, QWORD PTR TLS_RECORD_HEADER_LEN[rip]
	lea	rdx, [rax+r12]
	cmp	rdx, 18432
	ja	.L31
	mov	r10, r14
	sub	r10, rax
	cmp	r12, r10
	ja	.L36
	lea	r15, [r15+rax*4]
	mov	edi, DWORD PTR MSG_MSGDUMP[rip]
	mov	ecx, r12d
	lea	rsi, .LC1[rip]
	mov	rdx, r15
	call	wpa_hexdump@PLT
	cmp	DWORD PTR TLS_CONTENT_TYPE_HANDSHAKE[rip], r13d
	je	.L7
	cmp	DWORD PTR TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC[rip], r13d
	je	.L7
	cmp	DWORD PTR TLS_CONTENT_TYPE_ALERT[rip], r13d
	je	.L7
	cmp	DWORD PTR TLS_CONTENT_TYPE_APPLICATION_DATA[rip], r13d
	jne	.L37
.L7:
	mov	rax, QWORD PTR 8[rsp]
	cmp	QWORD PTR [rax], r12
	jb	.L38
	mov	rax, QWORD PTR TLS_NULL_WITH_NULL_NULL[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L9
	mov	edi, DWORD PTR 48[rbx]
	mov	rcx, r12
	mov	rdx, rbp
	mov	rsi, r15
	call	crypto_cipher_decrypt@PLT
	test	eax, eax
	js	.L39
	mov	edi, DWORD PTR MSG_MSGDUMP[rip]
	mov	rcx, r12
	mov	rdx, rbp
	lea	rsi, .LC8[rip]
	call	wpa_hexdump_key@PLT
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	jne	.L40
	mov	DWORD PTR 28[rsp], 0
	mov	r13, r12
.L11:
	mov	rdx, QWORD PTR 24[rbx]
	cmp	rdx, r13
	ja	.L41
	mov	esi, DWORD PTR 40[rbx]
	mov	edi, DWORD PTR 44[rbx]
	sub	r13, rdx
	call	crypto_hash_init@PLT
	mov	r14, rax
	test	rax, rax
	je	.L42
	mov	rsi, QWORD PTR 32[rbx]
	mov	rdx, QWORD PTR TLS_SEQ_NUM_LEN[rip]
	mov	rdi, rax
	call	crypto_hash_update@PLT
	mov	rsi, r15
	mov	edx, 3
	mov	rdi, r14
	mov	rax, QWORD PTR TLS_RECORD_HEADER_LEN[rip]
	lea	r15, 40[rsp]
	sal	rax, 2
	sub	rsi, rax
	call	crypto_hash_update@PLT
	mov	rdi, r15
	mov	rsi, r13
	call	WPA_PUT_BE16@PLT
	mov	rsi, r15
	mov	edx, 2
	mov	rdi, r14
	call	crypto_hash_update@PLT
	lea	r15, 48[rsp]
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r14
	call	crypto_hash_update@PLT
	lea	rdx, 32[rsp]
	mov	rsi, r15
	mov	rdi, r14
	mov	QWORD PTR 32[rsp], 400
	call	crypto_hash_finish@PLT
	test	eax, eax
	js	.L43
	mov	rdx, QWORD PTR 32[rsp]
	cmp	QWORD PTR 24[rbx], rdx
	jne	.L23
	lea	rsi, 0[rbp+r13*4]
	mov	rdi, r15
	call	os_memcmp@PLT
	test	rax, rax
	jne	.L23
	mov	eax, DWORD PTR 28[rsp]
	test	eax, eax
	jne	.L23
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR [rax], r13
.L24:
	add	r13, QWORD PTR TLS_RECORD_HEADER_LEN[rip]
	cmp	r13, 17408
	ja	.L44
	mov	rdi, QWORD PTR 32[rbx]
	mov	rsi, QWORD PTR TLS_SEQ_NUM_LEN[rip]
	call	inc_byte_array@PLT
	mov	eax, DWORD PTR TLS_RECORD_HEADER_LEN[rip]
	add	eax, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L36:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	rcx, r10
	mov	rdx, r12
	xor	eax, eax
	lea	rsi, .LC5[rip]
	call	wpa_printf@PLT
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR 456[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L45
	add	rsp, 472
	.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
.L34:
	.cfi_restore_state
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC0[rip]
	call	wpa_printf@PLT
	mov	edi, DWORD PTR MSG_MSGDUMP[rip]
	mov	ecx, r14d
	mov	rdx, r15
	lea	rsi, .LC1[rip]
	call	wpa_hexdump@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L40:
	mov	rcx, QWORD PTR TLS_VERSION_1_1[rip]
	cmp	QWORD PTR 16[rbx], rcx
	jl	.L28
	cmp	rax, r12
	ja	.L46
	mov	rdx, r12
	lea	rsi, 0[rbp+rax*4]
	mov	rdi, rbp
	mov	r13, r12
	sub	rdx, rax
	call	os_memmove@PLT
	sub	r13, QWORD PTR 8[rbx]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdx, r12
	mov	rsi, r15
	mov	rdi, rbp
	mov	r13, r12
	call	os_memcpy@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR [rax], r12
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L28:
	mov	r13, r12
.L12:
	test	r13, r13
	je	.L47
	movsx	rax, DWORD PTR -4[rbp+r13*4]
	mov	rdx, rax
	cmp	rax, r13
	jnb	.L48
	mov	rsi, r13
	lea	rcx, -1[r13]
	sub	rsi, rax
	lea	rax, -1[rsi]
	cmp	rax, rcx
	jb	.L18
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L17:
	add	rax, 1
	cmp	rax, rcx
	je	.L16
.L18:
	cmp	DWORD PTR 0[rbp+rax*4], edx
	je	.L17
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	ecx, 1[rdx]
	lea	rdx, -4[rbp+rsi*4]
	lea	rsi, .LC12[rip]
	call	wpa_hexdump@PLT
	mov	DWORD PTR 28[rsp], 1
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L46:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC9[rip]
	xor	eax, eax
	mov	r13, r12
	call	wpa_printf@PLT
	mov	DWORD PTR 28[rsp], 1
	jmp	.L11
.L37:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	edx, r13d
	lea	rsi, .LC6[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	eax, DWORD PTR TLS_ALERT_UNEXPECTED_MESSAGE[rip]
	mov	rbx, QWORD PTR 16[rsp]
	mov	DWORD PTR [rbx], eax
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	add	edx, 1
	mov	edi, DWORD PTR MSG_MSGDUMP[rip]
	lea	rsi, .LC13[rip]
	movsx	rdx, edx
	sub	r13, rdx
	mov	rdx, rbp
	mov	rcx, r13
	call	wpa_hexdump_key@PLT
	mov	DWORD PTR 28[rsp], 0
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L47:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC10[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	DWORD PTR 28[rsp], 1
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L48:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	rcx, r13
	lea	rsi, .LC11[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	DWORD PTR 28[rsp], 1
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edx, DWORD PTR 28[rsp]
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC17[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	eax, DWORD PTR TLS_ALERT_BAD_RECORD_MAC[rip]
	mov	rbx, QWORD PTR 16[rsp]
	mov	DWORD PTR [rbx], eax
	mov	eax, -1
	jmp	.L1
.L44:
	mov	rdx, r13
.L31:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	eax, DWORD PTR TLS_ALERT_RECORD_OVERFLOW[rip]
	mov	rbx, QWORD PTR 16[rsp]
	mov	DWORD PTR [rbx], eax
	mov	eax, -1
	jmp	.L1
.L35:
	mov	ecx, DWORD PTR 8[r15]
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	eax, DWORD PTR TLS_ALERT_PROTOCOL_VERSION[rip]
	mov	rbx, QWORD PTR 16[rsp]
	mov	DWORD PTR [rbx], eax
	mov	eax, -1
	jmp	.L1
.L39:
	mov	eax, DWORD PTR TLS_ALERT_DECRYPTION_FAILED[rip]
	mov	rbx, QWORD PTR 16[rsp]
	mov	DWORD PTR [rbx], eax
	mov	eax, -1
	jmp	.L1
.L41:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC14[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	eax, DWORD PTR TLS_ALERT_BAD_RECORD_MAC[rip]
	mov	rbx, QWORD PTR 16[rsp]
	mov	DWORD PTR [rbx], eax
	mov	eax, -1
	jmp	.L1
.L38:
	lea	rsi, .LC7[rip]
.L32:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	eax, DWORD PTR TLS_ALERT_INTERNAL_ERROR[rip]
	mov	rbx, QWORD PTR 16[rsp]
	mov	DWORD PTR [rbx], eax
	mov	eax, -1
	jmp	.L1
.L42:
	lea	rsi, .LC15[rip]
	jmp	.L32
.L43:
	lea	rsi, .LC16[rip]
	jmp	.L32
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tlsv1_record_receive, .-tlsv1_record_receive
	.comm	TLS_VERSION_1_1,8,8
	.comm	TLS_SEQ_NUM_LEN,8,8
	.comm	TLS_RECORD_HEADER_LEN,8,8
	.comm	TLS_NULL_WITH_NULL_NULL,8,8
	.comm	TLS_CONTENT_TYPE_HANDSHAKE,4,4
	.comm	TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC,4,4
	.comm	TLS_CONTENT_TYPE_APPLICATION_DATA,4,4
	.comm	TLS_CONTENT_TYPE_ALERT,4,4
	.comm	TLS_ALERT_UNEXPECTED_MESSAGE,4,4
	.comm	TLS_ALERT_RECORD_OVERFLOW,4,4
	.comm	TLS_ALERT_PROTOCOL_VERSION,4,4
	.comm	TLS_ALERT_INTERNAL_ERROR,4,4
	.comm	TLS_ALERT_DECRYPTION_FAILED,4,4
	.comm	TLS_ALERT_BAD_RECORD_MAC,4,4
	.comm	MSG_MSGDUMP,4,4
	.comm	MSG_DEBUG,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_tlsv1_record.c_tlsv1_record_receive.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TLSv1: Too short record (in_len=%lu) - need more da"
	.ascii	"ta\000"
	.align	2
.LC1:
	.ascii	"TLSv1: Record Layer - Received\000"
	.align	2
.LC2:
	.ascii	"TLSv1: Received content type %d version %d.%d lengt"
	.ascii	"h %d\000"
	.align	2
.LC3:
	.ascii	"TLSv1: Unexpected protocol version %u.%u\000"
	.align	2
.LC4:
	.ascii	"TLSv1: Record overflow (len=%lu)\000"
	.align	2
.LC5:
	.ascii	"TLSv1: Not all record data included (rlen=%lu > in_"
	.ascii	"len=%lu)\000"
	.align	2
.LC6:
	.ascii	"TLSv1: Ignore record with unknown content type 0x%x"
	.ascii	"\000"
	.align	2
.LC7:
	.ascii	"TLSv1: Not enough output buffer for processing rece"
	.ascii	"ived record\000"
	.align	2
.LC8:
	.ascii	"TLSv1: Record Layer - Decrypted data\000"
	.align	2
.LC9:
	.ascii	"TLSv1.1: Not enough room for IV\000"
	.align	2
.LC10:
	.ascii	"TLSv1: Too short record (no pad)\000"
	.align	2
.LC11:
	.ascii	"TLSv1: Incorrect pad length (%u, plen=%lu) in recei"
	.ascii	"ved record\000"
	.align	2
.LC12:
	.ascii	"TLSv1: Invalid pad in received record\000"
	.align	2
.LC13:
	.ascii	"TLSv1: Record Layer - Decrypted data with IV and pa"
	.ascii	"dding removed\000"
	.align	2
.LC14:
	.ascii	"TLSv1: Too short record; no hash value\000"
	.align	2
.LC15:
	.ascii	"TLSv1: Record Layer - Failed to initialize HMAC\000"
	.align	2
.LC16:
	.ascii	"TLSv1: Record Layer - Failed to calculate HMAC\000"
	.align	2
.LC17:
	.ascii	"TLSv1: Invalid HMAC value in received message (forc"
	.ascii	"e_mac_error=%d)\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tlsv1_record_receive
	.syntax unified
	.arm
	.fpu softvfp
	.type	tlsv1_record_receive, %function
tlsv1_record_receive:
	@ args = 8, pretend = 0, frame = 424
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r9, .L49
	mov	r8, r3
	ldr	r3, .L49+4
	sub	sp, sp, #436
	mov	r7, r0
	ldr	r0, [r9]
	ldr	r3, [r3]
	str	r3, [sp, #428]
	mov	r3,#0
	ldr	r3, [sp, #476]
	cmp	r0, r2
	mov	r4, r2
	mov	r5, r1
	ldr	fp, [sp, #472]
	str	r3, [sp, #8]
	bhi	.L35
	mov	r0, r1
	ldr	r10, [r0], #12
	bl	WPA_GET_BE16
	ldr	r3, [r5, #8]
	ldr	r1, .L49+8
	str	r0, [sp, #4]
	mov	r6, r0
	ldr	r0, [r1]
	str	r3, [sp]
	mov	r2, r10
	ldr	r3, [r5, #4]
	ldr	r1, .L49+12
	bl	wpa_printf
	ldr	r2, [r5, #4]
	cmp	r2, #3
	bne	.L36
	ldr	r1, [r9]
	add	r2, r1, r6
	cmp	r2, #18432
	bhi	.L31
	sub	r3, r4, r1
	cmp	r6, r3
	bhi	.L37
	ldr	r3, .L49+16
	add	r5, r5, r1, lsl #2
	ldr	r0, [r3]
	mov	r2, r5
	mov	r3, r6
	ldr	r1, .L49+20
	bl	wpa_hexdump
	ldr	r3, .L49+24
	ldr	r3, [r3]
	cmp	r3, r10
	beq	.L7
	ldr	r3, .L49+28
	ldr	r3, [r3]
	cmp	r3, r10
	beq	.L7
	ldr	r3, .L49+32
	ldr	r3, [r3]
	cmp	r3, r10
	beq	.L7
	ldr	r3, .L49+36
	ldr	r3, [r3]
	cmp	r3, r10
	bne	.L38
.L7:
	ldr	r3, [fp]
	cmp	r3, r6
	bcc	.L39
	ldr	r3, .L49+40
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L9
	mov	r3, r6
	mov	r2, r8
	mov	r1, r5
	ldr	r0, [r7, #28]
	bl	crypto_cipher_decrypt
	cmp	r0, #0
	blt	.L40
	ldr	r0, .L49+16
	ldr	r1, .L49+44
	mov	r3, r6
	mov	r2, r8
	ldr	r0, [r0]
	bl	wpa_hexdump_key
	ldr	r1, [r7, #4]
	cmp	r1, #0
	moveq	r4, r6
	streq	r1, [sp, #12]
	bne	.L41
.L11:
	ldr	r2, [r7, #12]
	cmp	r2, r4
	bhi	.L42
	ldr	r1, [r7, #20]
	ldr	r0, [r7, #24]
	sub	r4, r4, r2
	bl	crypto_hash_init
	subs	r10, r0, #0
	beq	.L43
	ldr	r2, .L49+48
	ldr	r1, [r7, #16]
	ldr	r2, [r2]
	bl	crypto_hash_update
	ldr	r1, [r9]
	mov	r2, #3
	sub	r1, r5, r1, lsl #2
	mov	r0, r10
	bl	crypto_hash_update
	mov	r1, r4
	add	r0, sp, #20
	bl	WPA_PUT_BE16
	mov	r2, #2
	add	r1, sp, #20
	mov	r0, r10
	bl	crypto_hash_update
	mov	r2, r4
	mov	r1, r8
	mov	r0, r10
	bl	crypto_hash_update
	mov	ip, #400
	mov	r0, r10
	add	r1, sp, #28
	add	r2, sp, #16
	str	ip, [sp, #16]
	bl	crypto_hash_finish
	cmp	r0, #0
	blt	.L44
	ldr	r3, [sp, #16]
	ldr	r2, [r7, #12]
	cmp	r2, r3
	bne	.L23
	add	r1, r8, r4, lsl #2
	add	r0, sp, #28
	bl	os_memcmp
	ldr	r3, [sp, #12]
	orrs	r3, r0, r3
	bne	.L23
	str	r4, [fp]
.L24:
	ldr	r2, [r9]
	add	r2, r4, r2
	cmp	r2, #17408
	bhi	.L31
	ldr	r3, .L49+48
	ldr	r0, [r7, #16]
	ldr	r1, [r3]
	bl	inc_byte_array
	ldr	r0, [r9]
	add	r0, r6, r0
	b	.L1
.L37:
	ldr	r1, .L49+8
	mov	r2, r6
	ldr	r0, [r1]
	ldr	r1, .L49+52
	bl	wpa_printf
	mov	r0, #0
.L1:
	ldr	r3, .L49+4
	ldr	r2, [r3]
	ldr	r3, [sp, #428]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L45
	add	sp, sp, #436
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L35:
	ldr	r3, .L49+8
	ldr	r1, .L49+56
	ldr	r0, [r3]
	bl	wpa_printf
	ldr	r1, .L49+16
	mov	r3, r4
	ldr	r0, [r1]
	mov	r2, r5
	ldr	r1, .L49+20
	bl	wpa_hexdump
	mov	r0, #0
	b	.L1
.L41:
	ldr	r3, .L49+60
	ldr	r2, [r7, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L28
	cmp	r1, r6
	bhi	.L46
	sub	r2, r6, r1
	mov	r0, r8
	add	r1, r8, r1, lsl #2
	bl	os_memmove
	ldr	r4, [r7, #4]
	sub	r4, r6, r4
	b	.L12
.L9:
	mov	r1, r5
	mov	r0, r8
	mov	r2, r6
	bl	os_memcpy
	mov	r4, r6
	str	r6, [fp]
	b	.L24
.L28:
	mov	r4, r6
.L12:
	cmp	r4, #0
	beq	.L47
	sub	r3, r4, #-1073741823
	ldr	ip, [r8, r3, lsl #2]
	cmp	ip, r4
	bcs	.L48
	sub	r1, r4, ip
	sub	r3, r1, #1
	sub	lr, r4, #1
	cmp	r3, lr
	bcs	.L16
	sub	r1, r1, #-1073741822
	lsl	r10, r1, #2
	mov	r2, r3
	add	r1, r8, r1, lsl #2
	b	.L18
.L17:
	add	r2, r2, #1
	cmp	r2, lr
	beq	.L16
.L18:
	ldr	r0, [r1, #4]!
	cmp	r0, ip
	beq	.L17
	ldr	r0, .L49+8
	add	r2, r10, #4
	add	r3, ip, #1
	ldr	r1, .L49+64
	ldr	r0, [r0]
	add	r2, r8, r2
	bl	wpa_hexdump
	mov	r3, #1
	str	r3, [sp, #12]
	b	.L11
.L46:
	ldr	r3, .L49+8
	ldr	r1, .L49+68
	ldr	r0, [r3]
	bl	wpa_printf
	mov	r3, #1
	mov	r4, r6
	str	r3, [sp, #12]
	b	.L11
.L38:
	ldr	r3, .L49+8
	mov	r2, r10
	ldr	r0, [r3]
	ldr	r1, .L49+72
	bl	wpa_printf
	ldr	r3, .L49+76
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	mvn	r0, #0
	str	r3, [r2]
	b	.L1
.L16:
	ldr	r2, .L49+16
	ldr	r1, .L49+80
	ldr	r0, [r2]
	mov	r2, r8
	mov	r4, r3
	bl	wpa_hexdump_key
	mov	r3, #0
	str	r3, [sp, #12]
	b	.L11
.L47:
	ldr	r3, .L49+8
	ldr	r1, .L49+84
	ldr	r0, [r3]
	bl	wpa_printf
	mov	r3, #1
	str	r3, [sp, #12]
	b	.L11
.L48:
	ldr	r0, .L49+8
	mov	r3, r4
	mov	r2, ip
	ldr	r1, .L49+88
	ldr	r0, [r0]
	bl	wpa_printf
	mov	r3, #1
	str	r3, [sp, #12]
	b	.L11
.L23:
	ldr	r3, .L49+8
	ldr	r2, [sp, #12]
	ldr	r0, [r3]
	ldr	r1, .L49+92
	bl	wpa_printf
.L33:
	ldr	r3, .L49+96
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	mvn	r0, #0
	str	r3, [r2]
	b	.L1
.L31:
	ldr	r3, .L49+8
	ldr	r1, .L49+100
	ldr	r0, [r3]
	bl	wpa_printf
	ldr	r3, .L49+104
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	mvn	r0, #0
	str	r3, [r2]
	b	.L1
.L36:
	ldr	r1, .L49+8
	ldr	r3, [r5, #8]
	ldr	r0, [r1]
	ldr	r1, .L49+108
	bl	wpa_printf
	ldr	r3, .L49+112
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	mvn	r0, #0
	str	r3, [r2]
	b	.L1
.L40:
	ldr	r3, .L49+116
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	mvn	r0, #0
	str	r3, [r2]
	b	.L1
.L42:
	ldr	r3, .L49+8
	ldr	r1, .L49+120
	ldr	r0, [r3]
	bl	wpa_printf
	b	.L33
.L39:
	ldr	r3, .L49+8
	ldr	r1, .L49+124
	ldr	r0, [r3]
.L32:
	bl	wpa_printf
	ldr	r3, .L49+128
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	mvn	r0, #0
	str	r3, [r2]
	b	.L1
.L43:
	ldr	r3, .L49+8
	ldr	r1, .L49+132
	ldr	r0, [r3]
	b	.L32
.L44:
	ldr	r3, .L49+8
	ldr	r1, .L49+136
	ldr	r0, [r3]
	b	.L32
.L45:
	bl	__stack_chk_fail
.L50:
	.align	2
.L49:
	.word	TLS_RECORD_HEADER_LEN
	.word	.LC18
	.word	MSG_DEBUG
	.word	.LC2
	.word	MSG_MSGDUMP
	.word	.LC1
	.word	TLS_CONTENT_TYPE_HANDSHAKE
	.word	TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC
	.word	TLS_CONTENT_TYPE_ALERT
	.word	TLS_CONTENT_TYPE_APPLICATION_DATA
	.word	TLS_NULL_WITH_NULL_NULL
	.word	.LC8
	.word	TLS_SEQ_NUM_LEN
	.word	.LC5
	.word	.LC0
	.word	TLS_VERSION_1_1
	.word	.LC12
	.word	.LC9
	.word	.LC6
	.word	TLS_ALERT_UNEXPECTED_MESSAGE
	.word	.LC13
	.word	.LC10
	.word	.LC11
	.word	.LC17
	.word	TLS_ALERT_BAD_RECORD_MAC
	.word	.LC4
	.word	TLS_ALERT_RECORD_OVERFLOW
	.word	.LC3
	.word	TLS_ALERT_PROTOCOL_VERSION
	.word	TLS_ALERT_DECRYPTION_FAILED
	.word	.LC14
	.word	.LC7
	.word	TLS_ALERT_INTERNAL_ERROR
	.word	.LC15
	.word	.LC16
	.size	tlsv1_record_receive, .-tlsv1_record_receive
	.comm	TLS_VERSION_1_1,4,4
	.comm	TLS_SEQ_NUM_LEN,4,4
	.comm	TLS_RECORD_HEADER_LEN,4,4
	.comm	TLS_NULL_WITH_NULL_NULL,4,4
	.comm	TLS_CONTENT_TYPE_HANDSHAKE,4,4
	.comm	TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC,4,4
	.comm	TLS_CONTENT_TYPE_APPLICATION_DATA,4,4
	.comm	TLS_CONTENT_TYPE_ALERT,4,4
	.comm	TLS_ALERT_UNEXPECTED_MESSAGE,4,4
	.comm	TLS_ALERT_RECORD_OVERFLOW,4,4
	.comm	TLS_ALERT_PROTOCOL_VERSION,4,4
	.comm	TLS_ALERT_INTERNAL_ERROR,4,4
	.comm	TLS_ALERT_DECRYPTION_FAILED,4,4
	.comm	TLS_ALERT_BAD_RECORD_MAC,4,4
	.comm	MSG_MSGDUMP,4,4
	.comm	MSG_DEBUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
