	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tlsv1_record_receive           ## -- Begin function tlsv1_record_receive
	.p2align	4, 0x90
_tlsv1_record_receive:                  ## @tlsv1_record_receive
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$488, %rsp                      ## imm = 0x1E8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_TLS_RECORD_HEADER_LEN@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jbe	LBB0_2
## %bb.1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	callq	_wpa_hexdump
	jmp	LBB0_52
LBB0_2:
	movq	%rcx, -480(%rbp)                ## 8-byte Spill
	movq	%r8, -512(%rbp)                 ## 8-byte Spill
	movq	%rdi, -504(%rbp)                ## 8-byte Spill
	movq	%r9, -472(%rbp)                 ## 8-byte Spill
	movl	(%r14), %r15d
	leaq	12(%r14), %rdi
	callq	_WPA_GET_BE16
	movq	%rax, %r13
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	4(%r14), %ecx
	movl	8(%r14), %r8d
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	movl	%r13d, %r9d
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	4(%r14), %edx
	cmpl	$3, %edx
	jne	LBB0_3
## %bb.4:
	movq	_TLS_RECORD_HEADER_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%r13), %rdx
	cmpq	$18433, %rdx                    ## imm = 0x4801
	jb	LBB0_7
## %bb.5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_6:
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_TLS_ALERT_RECORD_OVERFLOW@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_3:
	movl	(%rbx), %edi
	movl	8(%r14), %ecx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_TLS_ALERT_PROTOCOL_VERSION@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
	movq	-472(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	$-1, %ebx
LBB0_52:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_54
## %bb.53:
	movl	%ebx, %eax
	addq	$488, %rsp                      ## imm = 0x1E8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	subq	%rax, %r12
	cmpq	%r12, %r13
	jbe	LBB0_9
## %bb.8:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_52
LBB0_9:
	leaq	(%r14,%rax,4), %rbx
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	callq	_wpa_hexdump
	movq	_TLS_CONTENT_TYPE_HANDSHAKE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_14
## %bb.10:
	movq	_TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_14
## %bb.11:
	movq	_TLS_CONTENT_TYPE_ALERT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_14
## %bb.12:
	movq	_TLS_CONTENT_TYPE_APPLICATION_DATA@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_14
## %bb.13:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_TLS_ALERT_UNEXPECTED_MESSAGE@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_14:
	movq	-512(%rbp), %rax                ## 8-byte Reload
	cmpq	%r13, (%rax)
	jae	LBB0_17
## %bb.15:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
LBB0_16:
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_TLS_ALERT_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_17:
	movq	-504(%rbp), %r15                ## 8-byte Reload
	movq	(%r15), %rax
	movq	_TLS_NULL_WITH_NULL_NULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.48:
	movq	-480(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_os_memcpy
	movq	%r13, %rbx
LBB0_49:
	movq	-512(%rbp), %rax                ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	_TLS_RECORD_HEADER_LEN@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rbx
	cmpq	$17409, %rbx                    ## imm = 0x4401
	jb	LBB0_51
## %bb.50:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdx
	jmp	LBB0_6
LBB0_18:
	movl	48(%r15), %edi
	movq	%rbx, %rsi
	movq	-480(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_crypto_cipher_decrypt
	testq	%rax, %rax
	js	LBB0_19
## %bb.21:
	movl	(%r14), %edi
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_wpa_hexdump_key
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:
	movq	16(%r15), %rcx
	movq	_TLS_VERSION_1_1@GOTPCREL(%rip), %rdx
	movq	%r13, %r9
	cmpq	(%rdx), %rcx
	jl	LBB0_27
## %bb.24:
	movq	%r13, %rdx
	subq	%rax, %rdx
	jae	LBB0_26
## %bb.25:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$1, %eax
	movb	$1, %cl
	movq	%r13, %r14
	jmp	LBB0_38
LBB0_51:
	movq	32(%r15), %rdi
	movq	_TLS_SEQ_NUM_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rcx, %rbx
	callq	_inc_byte_array
	movl	(%rbx), %ebx
	addl	%r13d, %ebx
	jmp	LBB0_52
LBB0_19:
	movq	_TLS_ALERT_DECRYPTION_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_22:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	movq	%r13, %r14
	jmp	LBB0_38
LBB0_26:
	leaq	(%r12,%rax,4), %rsi
	movq	%r12, %rdi
	callq	_os_memmove
	movq	%r13, %r9
	subq	8(%r15), %r9
LBB0_27:
	testq	%r9, %r9
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	je	LBB0_28
## %bb.30:
	movslq	-4(%r12,%r9,4), %rdx
	cmpq	%rdx, %r9
	jbe	LBB0_31
## %bb.32:
	leaq	-1(%r9), %rax
	movq	%rdx, %rcx
	notq	%rcx
	addq	%r9, %rcx
	movq	%rcx, %r8
	cmpq	%rax, %rcx
	jae	LBB0_37
## %bb.33:
	leaq	(%r12,%r9,4), %rax
	addq	$-4, %rax
	movq	%rdx, %rcx
	negq	%rcx
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%edx, (%rax,%rcx,4)
	jne	LBB0_36
## %bb.34:                              ##   in Loop: Header=BB0_35 Depth=1
	incq	%rcx
	jne	LBB0_35
LBB0_37:
	movl	(%r14), %edi
	leaq	L_.str.13(%rip), %rsi
	movq	%r12, %rdx
	movq	%r8, %r14
	movq	%r8, %rcx
	callq	_wpa_hexdump_key
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	LBB0_38
LBB0_28:
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_29
LBB0_31:
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r9, %rcx
	xorl	%eax, %eax
	movq	%r9, %r14
	callq	_wpa_printf
	jmp	LBB0_29
LBB0_36:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	(%r12,%r9,4), %rax
	movq	%rdx, %rcx
	shlq	$2, %rcx
	subq	%rcx, %rax
	addq	$-4, %rax
	leal	1(%rdx), %ecx
	leaq	L_.str.12(%rip), %rsi
	movq	%rax, %rdx
	movq	%r9, %r14
	callq	_wpa_hexdump
LBB0_29:
	movl	$1, %eax
	movb	$1, %cl
LBB0_38:
	movq	24(%r15), %rdx
	subq	%rdx, %r14
	jae	LBB0_41
## %bb.39:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.14(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_TLS_ALERT_BAD_RECORD_MAC@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_41:
	movl	%ecx, -484(%rbp)                ## 4-byte Spill
	movl	%eax, -488(%rbp)                ## 4-byte Spill
	movq	%r14, -496(%rbp)                ## 8-byte Spill
	movl	40(%r15), %esi
	movl	44(%r15), %edi
	callq	_crypto_hash_init
	testq	%rax, %rax
	je	LBB0_42
## %bb.43:
	movq	%rax, %r14
	movq	32(%r15), %rsi
	movq	_TLS_SEQ_NUM_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	callq	_crypto_hash_update
	movq	_TLS_RECORD_HEADER_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$2, %rax
	subq	%rax, %rbx
	movl	$3, %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_crypto_hash_update
	movq	%r12, %rbx
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	movq	-496(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rsi
	callq	_WPA_PUT_BE16
	movl	$2, %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_crypto_hash_update
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_crypto_hash_update
	movq	$400, -520(%rbp)                ## imm = 0x190
	leaq	-464(%rbp), %rsi
	leaq	-520(%rbp), %rdx
	movq	%r14, %rdi
	callq	_crypto_hash_finish
	testq	%rax, %rax
	js	LBB0_44
## %bb.45:
	movq	-520(%rbp), %rdx
	movq	-504(%rbp), %r15                ## 8-byte Reload
	cmpq	24(%r15), %rdx
	movq	-496(%rbp), %rbx                ## 8-byte Reload
	jne	LBB0_47
## %bb.46:
	movq	-480(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rbx,4), %rsi
	leaq	-464(%rbp), %rdi
	callq	_os_memcmp_const
	testq	%rax, %rax
	sete	%al
	movl	-484(%rbp), %ecx                ## 4-byte Reload
	notb	%cl
	testb	%al, %cl
	jne	LBB0_49
LBB0_47:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.17(%rip), %rsi
	movl	-488(%rbp), %edx                ## 4-byte Reload
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_TLS_ALERT_BAD_RECORD_MAC@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_42:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.15(%rip), %rsi
	jmp	LBB0_16
LBB0_44:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.16(%rip), %rsi
	jmp	LBB0_16
LBB0_54:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS_RECORD_HEADER_LEN,8,3      ## @TLS_RECORD_HEADER_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLSv1: Too short record (in_len=%lu) - need more data"

	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.1:                               ## @.str.1
	.asciz	"TLSv1: Record Layer - Received"

L_.str.2:                               ## @.str.2
	.asciz	"TLSv1: Received content type %d version %d.%d length %d"

L_.str.3:                               ## @.str.3
	.asciz	"TLSv1: Unexpected protocol version %u.%u"

	.comm	_TLS_ALERT_PROTOCOL_VERSION,4,2 ## @TLS_ALERT_PROTOCOL_VERSION
L_.str.4:                               ## @.str.4
	.asciz	"TLSv1: Record overflow (len=%lu)"

	.comm	_TLS_ALERT_RECORD_OVERFLOW,4,2  ## @TLS_ALERT_RECORD_OVERFLOW
L_.str.5:                               ## @.str.5
	.asciz	"TLSv1: Not all record data included (rlen=%lu > in_len=%lu)"

	.comm	_TLS_CONTENT_TYPE_HANDSHAKE,4,2 ## @TLS_CONTENT_TYPE_HANDSHAKE
	.comm	_TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC,4,2 ## @TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC
	.comm	_TLS_CONTENT_TYPE_ALERT,4,2     ## @TLS_CONTENT_TYPE_ALERT
	.comm	_TLS_CONTENT_TYPE_APPLICATION_DATA,4,2 ## @TLS_CONTENT_TYPE_APPLICATION_DATA
L_.str.6:                               ## @.str.6
	.asciz	"TLSv1: Ignore record with unknown content type 0x%x"

	.comm	_TLS_ALERT_UNEXPECTED_MESSAGE,4,2 ## @TLS_ALERT_UNEXPECTED_MESSAGE
L_.str.7:                               ## @.str.7
	.asciz	"TLSv1: Not enough output buffer for processing received record"

	.comm	_TLS_ALERT_INTERNAL_ERROR,4,2   ## @TLS_ALERT_INTERNAL_ERROR
	.comm	_TLS_NULL_WITH_NULL_NULL,8,3    ## @TLS_NULL_WITH_NULL_NULL
	.comm	_TLS_ALERT_DECRYPTION_FAILED,4,2 ## @TLS_ALERT_DECRYPTION_FAILED
L_.str.8:                               ## @.str.8
	.asciz	"TLSv1: Record Layer - Decrypted data"

	.comm	_TLS_VERSION_1_1,8,3            ## @TLS_VERSION_1_1
L_.str.9:                               ## @.str.9
	.asciz	"TLSv1.1: Not enough room for IV"

L_.str.10:                              ## @.str.10
	.asciz	"TLSv1: Too short record (no pad)"

L_.str.11:                              ## @.str.11
	.asciz	"TLSv1: Incorrect pad length (%u, plen=%lu) in received record"

L_.str.12:                              ## @.str.12
	.asciz	"TLSv1: Invalid pad in received record"

L_.str.13:                              ## @.str.13
	.asciz	"TLSv1: Record Layer - Decrypted data with IV and padding removed"

L_.str.14:                              ## @.str.14
	.asciz	"TLSv1: Too short record; no hash value"

	.comm	_TLS_ALERT_BAD_RECORD_MAC,4,2   ## @TLS_ALERT_BAD_RECORD_MAC
L_.str.15:                              ## @.str.15
	.asciz	"TLSv1: Record Layer - Failed to initialize HMAC"

	.comm	_TLS_SEQ_NUM_LEN,8,3            ## @TLS_SEQ_NUM_LEN
L_.str.16:                              ## @.str.16
	.asciz	"TLSv1: Record Layer - Failed to calculate HMAC"

L_.str.17:                              ## @.str.17
	.asciz	"TLSv1: Invalid HMAC value in received message (force_mac_error=%d)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tlsv1_record_receive           ; -- Begin function tlsv1_record_receive
	.p2align	2
_tlsv1_record_receive:                  ; @tlsv1_record_receive
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #480
	mov	x25, x2
	mov	x24, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x28, _TLS_RECORD_HEADER_LEN@GOTPAGE
Lloh4:
	ldr	x28, [x28, _TLS_RECORD_HEADER_LEN@GOTPAGEOFF]
	ldr	x8, [x28]
Lloh5:
	adrp	x27, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x27, [x27, _MSG_DEBUG@GOTPAGEOFF]
	cmp	x8, x2
	b.ls	LBB0_2
; %bb.1:
	ldr	w0, [x27]
	str	x25, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh9:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x24
	mov	x3, x25
	bl	_wpa_hexdump
	mov	w0, #0
	b	LBB0_8
LBB0_2:
	mov	x19, x5
	mov	x22, x4
	mov	x23, x3
	mov	x20, x0
	ldr	w26, [x24]
	add	x0, x24, #12
	bl	_WPA_GET_BE16
	mov	x21, x0
	ldr	w0, [x27]
	ldp	w8, w9, [x24, #4]
	stp	x9, x21, [sp, #16]
	stp	x26, x8, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	ldr	w8, [x24, #4]
	cmp	w8, #3
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x28]
	mov	w10, #18433
	add	x9, x8, x21
	cmp	x9, x10
	b.lo	LBB0_10
; %bb.4:
	ldr	w0, [x27]
	str	x9, [sp]
LBB0_5:
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
Lloh18:
	adrp	x8, _TLS_ALERT_RECORD_OVERFLOW@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TLS_ALERT_RECORD_OVERFLOW@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	ldr	w0, [x27]
	ldr	w9, [x24, #8]
	stp	x8, x9, [sp]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
Lloh22:
	adrp	x8, _TLS_ALERT_PROTOCOL_VERSION@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TLS_ALERT_PROTOCOL_VERSION@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #-1
LBB0_8:
	ldur	x8, [x29, #-96]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_55
; %bb.9:
	add	sp, sp, #480
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	sub	x9, x25, x8
	cmp	x21, x9
	b.ls	LBB0_12
; %bb.11:
	ldr	w0, [x27]
	stp	x21, x9, [sp]
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	mov	w0, #0
	b	LBB0_8
LBB0_12:
	add	x24, x24, x8, lsl #2
Lloh29:
	adrp	x25, _MSG_MSGDUMP@GOTPAGE
Lloh30:
	ldr	x25, [x25, _MSG_MSGDUMP@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x24
	mov	x3, x21
	bl	_wpa_hexdump
Lloh33:
	adrp	x8, _TLS_CONTENT_TYPE_HANDSHAKE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TLS_CONTENT_TYPE_HANDSHAKE@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	cmp	w26, w8
	b.eq	LBB0_17
; %bb.13:
Lloh36:
	adrp	x8, _TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC@GOTPAGE
Lloh37:
	ldr	x8, [x8, _TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	cmp	w26, w8
	b.eq	LBB0_17
; %bb.14:
Lloh39:
	adrp	x8, _TLS_CONTENT_TYPE_ALERT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _TLS_CONTENT_TYPE_ALERT@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	cmp	w26, w8
	b.eq	LBB0_17
; %bb.15:
Lloh42:
	adrp	x8, _TLS_CONTENT_TYPE_APPLICATION_DATA@GOTPAGE
Lloh43:
	ldr	x8, [x8, _TLS_CONTENT_TYPE_APPLICATION_DATA@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	cmp	w26, w8
	b.eq	LBB0_17
; %bb.16:
	ldr	w0, [x27]
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	str	x26, [sp]
Lloh45:
	adrp	x1, l_.str.6@PAGE
Lloh46:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_printf
Lloh47:
	adrp	x8, _TLS_ALERT_UNEXPECTED_MESSAGE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _TLS_ALERT_UNEXPECTED_MESSAGE@GOTPAGEOFF]
	b	LBB0_7
LBB0_17:
	ldr	x8, [x22]
	cmp	x8, x21
	b.hs	LBB0_20
; %bb.18:
	ldr	w0, [x27]
Lloh49:
	adrp	x1, l_.str.7@PAGE
Lloh50:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_19:
	bl	_wpa_printf
Lloh51:
	adrp	x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGE
Lloh52:
	ldr	x8, [x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_7
LBB0_20:
	ldr	x8, [x20]
Lloh53:
	adrp	x9, _TLS_NULL_WITH_NULL_NULL@GOTPAGE
Lloh54:
	ldr	x9, [x9, _TLS_NULL_WITH_NULL_NULL@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.21:
	mov	x0, x23
	mov	x1, x24
	mov	x2, x21
	bl	_os_memcpy
	mov	x25, x21
LBB0_22:
	str	x25, [x22]
	ldr	x8, [x28]
	mov	w9, #17409
	add	x8, x8, x25
	cmp	x8, x9
	b.lo	LBB0_29
; %bb.23:
	ldr	w0, [x27]
	str	x8, [sp]
	b	LBB0_5
LBB0_24:
	ldr	w0, [x20, #48]
	mov	x1, x24
	mov	x2, x23
	mov	x3, x21
	bl	_crypto_cipher_decrypt
	tbnz	x0, #63, LBB0_30
; %bb.25:
	ldr	w0, [x25]
Lloh56:
	adrp	x1, l_.str.8@PAGE
Lloh57:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x2, x23
	mov	x3, x21
	bl	_wpa_hexdump_key
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_31
; %bb.26:
	ldr	x9, [x20, #16]
Lloh58:
	adrp	x10, _TLS_VERSION_1_1@GOTPAGE
Lloh59:
	ldr	x10, [x10, _TLS_VERSION_1_1@GOTPAGEOFF]
Lloh60:
	ldr	x10, [x10]
	mov	x26, x21
	cmp	x9, x10
	b.lt	LBB0_33
; %bb.27:
	subs	x2, x21, x8
	b.hs	LBB0_32
; %bb.28:
	ldr	w0, [x27]
Lloh61:
	adrp	x1, l_.str.9@PAGE
Lloh62:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_wpa_printf
	mov	w8, #1
	mov	x26, x21
	b	LBB0_44
LBB0_29:
	ldr	x0, [x20, #32]
Lloh63:
	adrp	x8, _TLS_SEQ_NUM_LEN@GOTPAGE
Lloh64:
	ldr	x8, [x8, _TLS_SEQ_NUM_LEN@GOTPAGEOFF]
Lloh65:
	ldr	x1, [x8]
	bl	_inc_byte_array
	ldr	w8, [x28]
	add	w0, w8, w21
	b	LBB0_8
LBB0_30:
Lloh66:
	adrp	x8, _TLS_ALERT_DECRYPTION_FAILED@GOTPAGE
Lloh67:
	ldr	x8, [x8, _TLS_ALERT_DECRYPTION_FAILED@GOTPAGEOFF]
	b	LBB0_7
LBB0_31:
	mov	x26, x21
	b	LBB0_44
LBB0_32:
	add	x1, x23, x8, lsl #2
	mov	x0, x23
	bl	_os_memmove
	ldr	x8, [x20, #8]
	sub	x26, x21, x8
LBB0_33:
	cbz	x26, LBB0_40
; %bb.34:
	sub	x11, x26, #1
	add	x9, x23, x11, lsl #2
	ldrsw	x8, [x9]
	cmp	x26, x8
	b.ls	LBB0_41
; %bb.35:
	mvn	x10, x8
	add	x12, x26, x10
	cmp	x12, x11
	b.hs	LBB0_39
; %bb.36:
	neg	x11, x8
LBB0_37:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9, x11, lsl #2]
	cmp	w12, w8
	b.ne	LBB0_54
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=1
	adds	x11, x11, #1
	b.lo	LBB0_37
LBB0_39:
	add	x26, x10, x26
	ldr	w0, [x25]
Lloh68:
	adrp	x1, l_.str.13@PAGE
Lloh69:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x2, x23
	mov	x3, x26
	bl	_wpa_hexdump_key
	mov	w8, #0
	b	LBB0_44
LBB0_40:
	ldr	w0, [x27]
Lloh70:
	adrp	x1, l_.str.10@PAGE
Lloh71:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_42
LBB0_41:
	ldr	w0, [x27]
	stp	x8, x26, [sp]
Lloh72:
	adrp	x1, l_.str.11@PAGE
Lloh73:
	add	x1, x1, l_.str.11@PAGEOFF
LBB0_42:
	bl	_wpa_printf
LBB0_43:
	mov	w8, #1
LBB0_44:
	ldr	x2, [x20, #24]
	subs	x25, x26, x2
	b.hs	LBB0_46
; %bb.45:
	ldr	w0, [x27]
Lloh74:
	adrp	x1, l_.str.14@PAGE
Lloh75:
	add	x1, x1, l_.str.14@PAGEOFF
	b	LBB0_51
LBB0_46:
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	ldp	w1, w0, [x20, #40]
	bl	_crypto_hash_init
	cbz	x0, LBB0_52
; %bb.47:
	mov	x26, x0
	ldr	x1, [x20, #32]
Lloh76:
	adrp	x8, _TLS_SEQ_NUM_LEN@GOTPAGE
Lloh77:
	ldr	x8, [x8, _TLS_SEQ_NUM_LEN@GOTPAGEOFF]
Lloh78:
	ldr	x2, [x8]
	bl	_crypto_hash_update
	ldr	x8, [x28]
	sub	x1, x24, x8, lsl #2
	mov	x0, x26
	mov	w2, #3
	bl	_crypto_hash_update
	sub	x0, x29, #104
	mov	x1, x25
	bl	_WPA_PUT_BE16
	sub	x1, x29, #104
	mov	x0, x26
	mov	w2, #2
	bl	_crypto_hash_update
	mov	x0, x26
	mov	x1, x23
	mov	x2, x25
	bl	_crypto_hash_update
	mov	w8, #400
	str	x8, [sp, #48]
	add	x1, sp, #56
	add	x2, sp, #48
	mov	x0, x26
	bl	_crypto_hash_finish
	tbnz	x0, #63, LBB0_53
; %bb.48:
	ldr	x2, [sp, #48]
	ldr	x8, [x20, #24]
	cmp	x2, x8
	b.ne	LBB0_50
; %bb.49:
	add	x1, x23, x25, lsl #2
	add	x0, sp, #56
	bl	_os_memcmp_const
	cmp	x0, #0
	cset	w8, eq
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	bic	w8, w8, w9
	tbnz	w8, #0, LBB0_22
LBB0_50:
	ldr	w0, [x27]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	str	x8, [sp]
Lloh79:
	adrp	x1, l_.str.17@PAGE
Lloh80:
	add	x1, x1, l_.str.17@PAGEOFF
LBB0_51:
	bl	_wpa_printf
Lloh81:
	adrp	x8, _TLS_ALERT_BAD_RECORD_MAC@GOTPAGE
Lloh82:
	ldr	x8, [x8, _TLS_ALERT_BAD_RECORD_MAC@GOTPAGEOFF]
	b	LBB0_7
LBB0_52:
	ldr	w0, [x27]
Lloh83:
	adrp	x1, l_.str.15@PAGE
Lloh84:
	add	x1, x1, l_.str.15@PAGEOFF
	b	LBB0_19
LBB0_53:
	ldr	w0, [x27]
Lloh85:
	adrp	x1, l_.str.16@PAGE
Lloh86:
	add	x1, x1, l_.str.16@PAGEOFF
	b	LBB0_19
LBB0_54:
	ldr	w0, [x27]
	add	x9, x23, x26, lsl #2
	sub	x9, x9, x8, lsl #2
	sub	x2, x9, #4
	add	w3, w8, #1
Lloh87:
	adrp	x1, l_.str.12@PAGE
Lloh88:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_wpa_hexdump
	b	LBB0_43
LBB0_55:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpAdd	Lloh87, Lloh88
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS_RECORD_HEADER_LEN,8,3      ; @TLS_RECORD_HEADER_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLSv1: Too short record (in_len=%lu) - need more data"

	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.1:                               ; @.str.1
	.asciz	"TLSv1: Record Layer - Received"

l_.str.2:                               ; @.str.2
	.asciz	"TLSv1: Received content type %d version %d.%d length %d"

l_.str.3:                               ; @.str.3
	.asciz	"TLSv1: Unexpected protocol version %u.%u"

	.comm	_TLS_ALERT_PROTOCOL_VERSION,4,2 ; @TLS_ALERT_PROTOCOL_VERSION
l_.str.4:                               ; @.str.4
	.asciz	"TLSv1: Record overflow (len=%lu)"

	.comm	_TLS_ALERT_RECORD_OVERFLOW,4,2  ; @TLS_ALERT_RECORD_OVERFLOW
l_.str.5:                               ; @.str.5
	.asciz	"TLSv1: Not all record data included (rlen=%lu > in_len=%lu)"

	.comm	_TLS_CONTENT_TYPE_HANDSHAKE,4,2 ; @TLS_CONTENT_TYPE_HANDSHAKE
	.comm	_TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC,4,2 ; @TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC
	.comm	_TLS_CONTENT_TYPE_ALERT,4,2     ; @TLS_CONTENT_TYPE_ALERT
	.comm	_TLS_CONTENT_TYPE_APPLICATION_DATA,4,2 ; @TLS_CONTENT_TYPE_APPLICATION_DATA
l_.str.6:                               ; @.str.6
	.asciz	"TLSv1: Ignore record with unknown content type 0x%x"

	.comm	_TLS_ALERT_UNEXPECTED_MESSAGE,4,2 ; @TLS_ALERT_UNEXPECTED_MESSAGE
l_.str.7:                               ; @.str.7
	.asciz	"TLSv1: Not enough output buffer for processing received record"

	.comm	_TLS_ALERT_INTERNAL_ERROR,4,2   ; @TLS_ALERT_INTERNAL_ERROR
	.comm	_TLS_NULL_WITH_NULL_NULL,8,3    ; @TLS_NULL_WITH_NULL_NULL
	.comm	_TLS_ALERT_DECRYPTION_FAILED,4,2 ; @TLS_ALERT_DECRYPTION_FAILED
l_.str.8:                               ; @.str.8
	.asciz	"TLSv1: Record Layer - Decrypted data"

	.comm	_TLS_VERSION_1_1,8,3            ; @TLS_VERSION_1_1
l_.str.9:                               ; @.str.9
	.asciz	"TLSv1.1: Not enough room for IV"

l_.str.10:                              ; @.str.10
	.asciz	"TLSv1: Too short record (no pad)"

l_.str.11:                              ; @.str.11
	.asciz	"TLSv1: Incorrect pad length (%u, plen=%lu) in received record"

l_.str.12:                              ; @.str.12
	.asciz	"TLSv1: Invalid pad in received record"

l_.str.13:                              ; @.str.13
	.asciz	"TLSv1: Record Layer - Decrypted data with IV and padding removed"

l_.str.14:                              ; @.str.14
	.asciz	"TLSv1: Too short record; no hash value"

	.comm	_TLS_ALERT_BAD_RECORD_MAC,4,2   ; @TLS_ALERT_BAD_RECORD_MAC
l_.str.15:                              ; @.str.15
	.asciz	"TLSv1: Record Layer - Failed to initialize HMAC"

	.comm	_TLS_SEQ_NUM_LEN,8,3            ; @TLS_SEQ_NUM_LEN
l_.str.16:                              ; @.str.16
	.asciz	"TLSv1: Record Layer - Failed to calculate HMAC"

l_.str.17:                              ; @.str.17
	.asciz	"TLSv1: Invalid HMAC value in received message (force_mac_error=%d)"

.subsections_via_symbols
