	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function tls_process_client_hello
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_tls_process_client_hello:              ## @tls_process_client_hello
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_TLS_CONTENT_TYPE_HANDSHAKE@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_5
## %bb.1:
	movq	%rcx, %r14
	movq	(%rcx), %r13
	cmpq	$3, %r13
	ja	LBB0_9
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_tlsv1_server_log
LBB0_4:
	leaq	L_.str.34(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_tlsv1_server_log
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_DECODE_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	%rsi, %rdx
	leaq	L_.str(%rip), %rsi
LBB0_6:
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_tlsv1_server_log
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_UNEXPECTED_MESSAGE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_tlsv1_server_alert
	movl	$-1, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rdx, %rbx
	movq	(%rdx), %rdx
	movq	_TLS_HANDSHAKE_TYPE_CLIENT_HELLO@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_13
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_tlsv1_server_log
	leaq	8(%rbx), %rdi
	callq	_WPA_GET_BE24
	movq	%rax, %r15
	addq	$-4, %r13
	cmpq	%r13, %rax
	jbe	LBB0_14
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	%r13d, %ecx
LBB0_12:
	xorl	%eax, %eax
	callq	_tlsv1_server_log
	jmp	LBB0_4
LBB0_13:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_14:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	32(%rbx), %r13
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_wpa_hexdump
	cmpq	$1, %r15
	jg	LBB0_16
## %bb.15:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_3
LBB0_16:
	movq	%r13, %rdi
	callq	_WPA_GET_BE16
	movl	%eax, (%r12)
	movzbl	%al, %ecx
	movl	%eax, %edx
	sarl	$8, %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_tlsv1_server_log
	movl	(%r12), %eax
	movq	_TLS_VERSION_1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cmpl	%edi, %eax
	jge	LBB0_18
## %bb.17:
	movl	%eax, %edx
	sarl	$8, %edx
	movzbl	%al, %ecx
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_tlsv1_server_log
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_PROTOCOL_VERSION@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_18:
	leaq	(%r13,%r15,8), %r13
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	48(%rcx), %rbx
	movq	_TLS_VERSION@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	je	LBB0_19
## %bb.20:
	movq	_TLS_VERSION_1_1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cmpl	%edi, %eax
	jle	LBB0_22
LBB0_19:
	movl	%edi, 60(%r12)
	jmp	LBB0_23
LBB0_22:
	movl	%eax, 60(%r12)
	movl	%eax, %edi
LBB0_23:
	callq	_tls_version_str
	leaq	L_.str.9(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_tlsv1_server_log
	movq	%r13, %rax
	subq	%rbx, %rax
	sarq	$3, %rax
	movq	_TLS_RANDOM_LEN@GOTPCREL(%rip), %r15
	movslq	(%r15), %rdx
	cmpq	%rdx, %rax
	jge	LBB0_25
## %bb.24:
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_3
LBB0_25:
	movq	8(%r12), %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcpy
	movslq	(%r15), %r15
	leaq	(%rbx,%r15,8), %rbx
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rdx
	leaq	L_.str.11(%rip), %rsi
	movq	%r15, %rcx
	callq	_wpa_hexdump
	movq	%r13, %rax
	subq	%rbx, %rax
	cmpq	$7, %rax
	jg	LBB0_27
## %bb.26:
	leaq	L_.str.12(%rip), %rsi
	jmp	LBB0_3
LBB0_27:
	shrq	$3, %rax
	movq	(%rbx), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_31
## %bb.28:
	movq	_TLS_SESSION_ID_MAX_LEN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jg	LBB0_31
## %bb.29:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rdx
	leaq	L_.str.14(%rip), %rsi
	callq	_wpa_hexdump
	movq	(%rbx), %rcx
	leaq	(%rbx,%rcx,8), %rbx
	addq	$8, %rbx
	movq	%r13, %rax
	subq	%rbx, %rax
	cmpq	$15, %rax
	jg	LBB0_32
## %bb.30:
	leaq	L_.str.15(%rip), %rsi
	jmp	LBB0_3
LBB0_31:
	leaq	L_.str.13(%rip), %rsi
	jmp	LBB0_3
LBB0_32:
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_WPA_GET_BE16
	addq	$16, %rbx
	movq	%r13, %rcx
	subq	%rbx, %rcx
	sarq	$3, %rcx
	movq	%rbx, %rdx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movslq	%eax, %rbx
	cmpq	%rbx, %rcx
	jge	LBB0_34
## %bb.33:
	leaq	L_.str.16(%rip), %rsi
	jmp	LBB0_3
LBB0_34:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.17(%rip), %rsi
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	callq	_wpa_hexdump
	testb	$1, %bl
	jne	LBB0_45
## %bb.35:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	leaq	60(%r12), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	$2, %ecx
	movl	$1, %eax
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	cmovael	%ecx, %eax
	cltq
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_38
LBB0_36:                                ##   in Loop: Header=BB0_38 Depth=1
	movl	%eax, %ecx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_37:                                ##   in Loop: Header=BB0_38 Depth=1
	incq	%r15
	testl	%ecx, %ecx
	jne	LBB0_48
LBB0_38:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_42 Depth 2
	cmpq	16(%r12), %r15
	jae	LBB0_46
## %bb.39:                              ##   in Loop: Header=BB0_38 Depth=1
	movq	24(%r12), %rax
	movl	(%rax,%r15,4), %esi
	movq	%r12, %rdi
	callq	_testing_cipher_suite_filter
	xorl	%ecx, %ecx
	testq	%rax, %rax
	jne	LBB0_37
## %bb.40:                              ##   in Loop: Header=BB0_38 Depth=1
	cmpl	$2, -48(%rbp)                   ## 4-byte Folded Reload
	jb	LBB0_37
## %bb.41:                              ##   in Loop: Header=BB0_38 Depth=1
	movq	-112(%rbp), %r13                ## 8-byte Reload
LBB0_42:                                ##   Parent Loop BB0_38 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_WPA_GET_BE16
	movq	24(%r12), %rcx
	cmpl	%eax, (%rcx,%r15,4)
	je	LBB0_36
## %bb.43:                              ##   in Loop: Header=BB0_42 Depth=2
	addq	$16, %rbx
	decq	%r13
	jne	LBB0_42
## %bb.44:                              ##   in Loop: Header=BB0_38 Depth=1
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	jmp	LBB0_37
LBB0_45:
	leaq	L_.str.18(%rip), %rsi
	jmp	LBB0_3
LBB0_46:
	leaq	L_.str.19(%rip), %rsi
LBB0_47:
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_tlsv1_server_log
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_ILLEGAL_PARAMETER@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_48:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	%ecx, %r15d
	movl	%ecx, %esi
	callq	_tlsv1_record_set_cipher_suite
	testq	%rax, %rax
	js	LBB0_51
## %bb.49:
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, %eax
	cltq
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%rax,8), %rdx
	movl	%r15d, 32(%r12)
	movq	%r13, %rax
	subq	%rdx, %rax
	cmpq	$7, %rax
	jg	LBB0_52
## %bb.50:
	leaq	L_.str.21(%rip), %rsi
	jmp	LBB0_3
LBB0_51:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.20(%rip), %rsi
	callq	_wpa_printf
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_52:
	movq	%rdx, %rcx
	movq	(%rdx), %rbx
	addq	$8, %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	subq	%rcx, %rax
	sarq	$3, %rax
	movslq	%ebx, %r13
	cmpq	%r13, %rax
	jge	LBB0_54
## %bb.53:
	leaq	L_.str.22(%rip), %rsi
	jmp	LBB0_3
LBB0_54:
	shlq	$32, %rbx
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.23(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	callq	_wpa_hexdump
	testq	%rbx, %rbx
	je	LBB0_72
## %bb.55:
	movq	_TLS_COMPRESSION_NULL@GOTPCREL(%rip), %rax
	movslq	(%rax), %r9
	cmpq	$2, %r13
	movl	$1, %ecx
	cmovaeq	%r13, %rcx
	cmpq	$4, %rcx
	jae	LBB0_57
## %bb.56:
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	jmp	LBB0_66
LBB0_57:
	movq	%rcx, %r8
	andq	$-4, %r8
	movq	%r9, %xmm0
	pshufd	$68, %xmm0, %xmm1               ## xmm1 = xmm0[0,1,0,1]
	leaq	-4(%r8), %rdx
	movq	%rdx, %rbx
	shrq	$2, %rbx
	incq	%rbx
	testq	%rdx, %rdx
	je	LBB0_60
## %bb.58:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	addq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,8), %rdx
	addq	$128, %rdx
	xorps	%xmm2, %xmm2
	xorl	%edi, %edi
	movaps	LCPI0_0(%rip), %xmm4            ## xmm4 = <1,1,u,u>
	xorps	%xmm3, %xmm3
LBB0_59:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-48(%rdx,%rdi,8), %xmm0
	movdqu	-32(%rdx,%rdi,8), %xmm5
	movdqu	-16(%rdx,%rdi,8), %xmm6
	movdqu	(%rdx,%rdi,8), %xmm7
	pcmpeqq	%xmm1, %xmm0
	pcmpeqq	%xmm1, %xmm5
	pcmpeqq	%xmm1, %xmm6
	por	%xmm0, %xmm6
	pcmpeqq	%xmm1, %xmm7
	por	%xmm5, %xmm7
	pshufd	$232, %xmm6, %xmm0              ## xmm0 = xmm6[0,2,2,3]
	blendvps	%xmm0, %xmm4, %xmm2
	pshufd	$232, %xmm7, %xmm0              ## xmm0 = xmm7[0,2,2,3]
	blendvps	%xmm0, %xmm4, %xmm3
	addq	$8, %rdi
	addq	$-2, %rsi
	jne	LBB0_59
	jmp	LBB0_61
LBB0_60:
	xorps	%xmm2, %xmm2
	xorl	%edi, %edi
	xorps	%xmm3, %xmm3
LBB0_61:
	testb	$1, %bl
	je	LBB0_63
## %bb.62:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movdqu	(%rax,%rdi,8), %xmm0
	movdqu	16(%rax,%rdi,8), %xmm4
	pcmpeqq	%xmm1, %xmm0
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	pcmpeqq	%xmm1, %xmm4
	pshufd	$232, %xmm4, %xmm1              ## xmm1 = xmm4[0,2,2,3]
	movaps	LCPI0_0(%rip), %xmm4            ## xmm4 = <1,1,u,u>
	blendvps	%xmm0, %xmm4, %xmm2
	movdqa	%xmm1, %xmm0
	blendvps	%xmm0, %xmm4, %xmm3
LBB0_63:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r8,8), %rdi
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm2, %xmm0
	blendvps	%xmm0, %xmm3, %xmm2
	movq	%xmm2, %rdx
	xorl	%esi, %esi
	testq	%rdx, %rdx
	setne	%sil
	cmpq	%r8, %rcx
	jne	LBB0_65
## %bb.64:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r8,8), %rbx
	addq	$-8, %rbx
	jmp	LBB0_69
LBB0_65:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
LBB0_66:
	subq	%r8, %rcx
	xorl	%edx, %edx
	movl	$1, %ebx
	xorl	%edi, %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_67:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r9, (%rax,%rdx,8)
	cmovel	%ebx, %esi
	addq	$-8, %rdi
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_67
## %bb.68:
	subq	%rdi, %rax
	leaq	-8(%rax), %rbx
	movq	%rax, %rdi
LBB0_69:
	testl	%esi, %esi
	je	LBB0_72
## %bb.70:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subq	%rdi, %rax
	cmpq	$8, %rax
	jne	LBB0_73
## %bb.71:
	movq	(%rdi), %rdx
	leaq	L_.str.25(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_tlsv1_server_log
	jmp	LBB0_4
LBB0_72:
	leaq	L_.str.24(%rip), %rsi
	jmp	LBB0_47
LBB0_73:
	jle	LBB0_88
## %bb.74:
	callq	_WPA_GET_BE16
	movq	%rax, %r13
	addq	$24, %rbx
	leaq	L_.str.26(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_tlsv1_server_log
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	subq	%rbx, %rcx
	sarq	$3, %rcx
	movslq	%r13d, %rax
	cmpq	%rax, %rcx
	je	LBB0_77
## %bb.75:
	leaq	L_.str.27(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	jmp	LBB0_12
LBB0_76:                                ##   in Loop: Header=BB0_77 Depth=1
	leaq	(%rbx,%r15,8), %rbx
LBB0_77:                                ## =>This Inner Loop Header: Depth=1
	cmpq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	jae	LBB0_88
## %bb.78:                              ##   in Loop: Header=BB0_77 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subq	%rbx, %rax
	cmpq	$15, %rax
	jle	LBB0_89
## %bb.79:                              ##   in Loop: Header=BB0_77 Depth=1
	movq	%rbx, %rdi
	callq	_WPA_GET_BE16
	movq	%rax, %r13
	leaq	16(%rbx), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subq	%rdi, %rax
	cmpq	$15, %rax
	jle	LBB0_90
## %bb.80:                              ##   in Loop: Header=BB0_77 Depth=1
	callq	_WPA_GET_BE16
	addq	$32, %rbx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	subq	%rbx, %rdx
	sarq	$3, %rdx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movslq	%eax, %rcx
	cmpq	%rcx, %rdx
	jl	LBB0_91
## %bb.81:                              ##   in Loop: Header=BB0_77 Depth=1
	movq	%rcx, %r15
	movq	%r12, %rdi
	leaq	L_.str.31(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_tlsv1_server_log
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.32(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_wpa_hexdump
	movq	_TLS_EXT_SESSION_TICKET@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_84
## %bb.82:                              ##   in Loop: Header=BB0_77 Depth=1
	movq	40(%r12), %rdi
	callq	_os_free
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_os_malloc
	movq	%rax, 40(%r12)
	testq	%rax, %rax
	je	LBB0_76
## %bb.83:                              ##   in Loop: Header=BB0_77 Depth=1
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_os_memcpy
	movl	%r13d, 48(%r12)
	leaq	(%rbx,%r15,8), %rbx
	jmp	LBB0_77
LBB0_84:                                ##   in Loop: Header=BB0_77 Depth=1
	movq	_TLS_EXT_STATUS_REQUEST@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_86
## %bb.85:                              ##   in Loop: Header=BB0_77 Depth=1
	movl	$1, 52(%r12)
	leaq	(%rbx,%r15,8), %rbx
	jmp	LBB0_77
LBB0_86:                                ##   in Loop: Header=BB0_77 Depth=1
	movq	_TLS_EXT_STATUS_REQUEST_V2@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_76
## %bb.87:                              ##   in Loop: Header=BB0_77 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_tls_process_status_request_v2
	jmp	LBB0_76
LBB0_88:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	sarq	$3, %rax
	movq	%rax, (%r14)
	leaq	L_.str.33(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_tlsv1_server_log
	movq	_SERVER_HELLO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r12)
	jmp	LBB0_8
LBB0_89:
	leaq	L_.str.28(%rip), %rsi
	jmp	LBB0_3
LBB0_90:
	leaq	L_.str.29(%rip), %rsi
	jmp	LBB0_3
LBB0_91:
	leaq	L_.str.30(%rip), %rsi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS_CONTENT_TYPE_HANDSHAKE,8,3 ## @TLS_CONTENT_TYPE_HANDSHAKE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Expected Handshake; received content type 0x%x"

	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ## @TLS_ALERT_LEVEL_FATAL
	.comm	_TLS_ALERT_UNEXPECTED_MESSAGE,4,2 ## @TLS_ALERT_UNEXPECTED_MESSAGE
L_.str.1:                               ## @.str.1
	.asciz	"Truncated handshake message (expected ClientHello)"

	.comm	_TLS_HANDSHAKE_TYPE_CLIENT_HELLO,8,3 ## @TLS_HANDSHAKE_TYPE_CLIENT_HELLO
L_.str.2:                               ## @.str.2
	.asciz	"Received unexpected handshake message %d (expected ClientHello)"

L_.str.3:                               ## @.str.3
	.asciz	"Received ClientHello"

L_.str.4:                               ## @.str.4
	.asciz	"Truncated ClientHello (len=%d left=%d)"

	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.5:                               ## @.str.5
	.asciz	"TLSv1: ClientHello"

L_.str.6:                               ## @.str.6
	.asciz	"Truncated ClientHello/client_version"

L_.str.7:                               ## @.str.7
	.asciz	"Client version %d.%d"

	.comm	_TLS_VERSION_1,4,2              ## @TLS_VERSION_1
L_.str.8:                               ## @.str.8
	.asciz	"Unexpected protocol version in ClientHello %u.%u"

	.comm	_TLS_ALERT_PROTOCOL_VERSION,4,2 ## @TLS_ALERT_PROTOCOL_VERSION
	.comm	_TLS_VERSION,4,2                ## @TLS_VERSION
	.comm	_TLS_VERSION_1_1,4,2            ## @TLS_VERSION_1_1
L_.str.9:                               ## @.str.9
	.asciz	"Using TLS v%s"

	.comm	_TLS_RANDOM_LEN,4,2             ## @TLS_RANDOM_LEN
L_.str.10:                              ## @.str.10
	.asciz	"Truncated ClientHello/client_random"

L_.str.11:                              ## @.str.11
	.asciz	"TLSv1: client_random"

L_.str.12:                              ## @.str.12
	.asciz	"Truncated ClientHello/session_id len"

	.comm	_TLS_SESSION_ID_MAX_LEN,8,3     ## @TLS_SESSION_ID_MAX_LEN
L_.str.13:                              ## @.str.13
	.asciz	"Truncated ClientHello/session_id"

L_.str.14:                              ## @.str.14
	.asciz	"TLSv1: client session_id"

L_.str.15:                              ## @.str.15
	.asciz	"Truncated ClientHello/cipher_suites len"

L_.str.16:                              ## @.str.16
	.asciz	"Truncated ClientHello/cipher_suites"

L_.str.17:                              ## @.str.17
	.asciz	"TLSv1: client cipher suites"

L_.str.18:                              ## @.str.18
	.asciz	"Odd len ClientHello/cipher_suites"

L_.str.19:                              ## @.str.19
	.asciz	"No supported cipher suite available"

	.comm	_TLS_ALERT_ILLEGAL_PARAMETER,4,2 ## @TLS_ALERT_ILLEGAL_PARAMETER
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.20:                              ## @.str.20
	.asciz	"TLSv1: Failed to set CipherSuite for record layer"

	.comm	_TLS_ALERT_INTERNAL_ERROR,4,2   ## @TLS_ALERT_INTERNAL_ERROR
L_.str.21:                              ## @.str.21
	.asciz	"Truncated ClientHello/compression_methods len"

L_.str.22:                              ## @.str.22
	.asciz	"Truncated ClientHello/compression_methods"

L_.str.23:                              ## @.str.23
	.asciz	"TLSv1: client compression_methods"

	.comm	_TLS_COMPRESSION_NULL,4,2       ## @TLS_COMPRESSION_NULL
L_.str.24:                              ## @.str.24
	.asciz	"Client does not accept NULL compression"

L_.str.25:                              ## @.str.25
	.asciz	"Unexpected extra octet in the end of ClientHello: 0x%02x"

L_.str.26:                              ## @.str.26
	.asciz	"%u bytes of ClientHello extensions"

L_.str.27:                              ## @.str.27
	.asciz	"Invalid ClientHello extension list length %u (expected %u)"

L_.str.28:                              ## @.str.28
	.asciz	"Invalid extension_type field"

L_.str.29:                              ## @.str.29
	.asciz	"Invalid extension_data length field"

L_.str.30:                              ## @.str.30
	.asciz	"Invalid extension_data field"

L_.str.31:                              ## @.str.31
	.asciz	"ClientHello Extension type %u"

L_.str.32:                              ## @.str.32
	.asciz	"TLSv1: ClientHello Extension data"

	.comm	_TLS_EXT_SESSION_TICKET,4,2     ## @TLS_EXT_SESSION_TICKET
	.comm	_TLS_EXT_STATUS_REQUEST,4,2     ## @TLS_EXT_STATUS_REQUEST
	.comm	_TLS_EXT_STATUS_REQUEST_V2,4,2  ## @TLS_EXT_STATUS_REQUEST_V2
L_.str.33:                              ## @.str.33
	.asciz	"ClientHello OK - proceed to ServerHello"

	.comm	_SERVER_HELLO,4,2               ## @SERVER_HELLO
L_.str.34:                              ## @.str.34
	.asciz	"Failed to decode ClientHello"

	.comm	_TLS_ALERT_DECODE_ERROR,4,2     ## @TLS_ALERT_DECODE_ERROR
	.comm	_TLS_VERSION_1_2,4,2            ## @TLS_VERSION_1_2
	.no_dead_strip	_tls_process_client_hello
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_process_client_hello
_tls_process_client_hello:              ; @tls_process_client_hello
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _TLS_CONTENT_TYPE_HANDSHAKE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLS_CONTENT_TYPE_HANDSHAKE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x3
	ldr	x23, [x3]
	cmp	x23, #3
	b.hi	LBB0_4
; %bb.2:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_42
LBB0_3:
	str	x1, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_4:
	mov	x21, x2
	ldr	x8, [x2]
Lloh7:
	adrp	x9, _TLS_HANDSHAKE_TYPE_CLIENT_HELLO@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TLS_HANDSHAKE_TYPE_CLIENT_HELLO@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_tlsv1_server_log
	add	x0, x21, #8
	bl	_WPA_GET_BE24
	mov	x22, x0
	sub	x8, x23, #4
	cmp	x0, x8
	b.ls	LBB0_9
; %bb.6:
	stp	x22, x8, [sp]
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_42
LBB0_7:
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_tlsv1_server_log
Lloh16:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _TLS_ALERT_UNEXPECTED_MESSAGE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TLS_ALERT_UNEXPECTED_MESSAGE@GOTPAGEOFF]
	b	LBB0_43
LBB0_9:
	add	x23, x21, #32
Lloh21:
	adrp	x25, _MSG_MSGDUMP@GOTPAGE
Lloh22:
	ldr	x25, [x25, _MSG_MSGDUMP@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x23
	mov	x3, x22
	bl	_wpa_hexdump
	cmp	x22, #1
	b.gt	LBB0_11
; %bb.10:
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_42
LBB0_11:
	mov	x0, x23
	bl	_WPA_GET_BE16
	str	w0, [x19]
	asr	w8, w0, #8
	and	w9, w0, #0xff
	stp	x8, x9, [sp]
Lloh27:
	adrp	x1, l_.str.7@PAGE
Lloh28:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_tlsv1_server_log
	ldr	w8, [x19]
Lloh29:
	adrp	x9, _TLS_VERSION_1@GOTPAGE
Lloh30:
	ldr	x9, [x9, _TLS_VERSION_1@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x9]
	cmp	w8, w0
	b.ge	LBB0_13
; %bb.12:
	asr	w9, w8, #8
	and	w8, w8, #0xff
	stp	x9, x8, [sp]
Lloh32:
	adrp	x1, l_.str.8@PAGE
Lloh33:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_tlsv1_server_log
Lloh34:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _TLS_ALERT_PROTOCOL_VERSION@GOTPAGE
Lloh38:
	ldr	x8, [x8, _TLS_ALERT_PROTOCOL_VERSION@GOTPAGEOFF]
	b	LBB0_43
LBB0_13:
	add	x28, x23, x22, lsl #3
	add	x23, x21, #48
Lloh39:
	adrp	x9, _TLS_VERSION@GOTPAGE
Lloh40:
	ldr	x9, [x9, _TLS_VERSION@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	cmp	w9, w0
	b.eq	LBB0_15
; %bb.14:
Lloh42:
	adrp	x9, _TLS_VERSION_1_1@GOTPAGE
Lloh43:
	ldr	x9, [x9, _TLS_VERSION_1_1@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x9]
	cmp	w8, w0
	b.le	LBB0_16
LBB0_15:
	str	w0, [x19, #60]
	b	LBB0_17
LBB0_16:
	str	w8, [x19, #60]
	mov	x0, x8
LBB0_17:
	bl	_tls_version_str
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh45:
	adrp	x1, l_.str.9@PAGE
Lloh46:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_tlsv1_server_log
	sub	x8, x28, x23
Lloh47:
	adrp	x22, _TLS_RANDOM_LEN@GOTPAGE
Lloh48:
	ldr	x22, [x22, _TLS_RANDOM_LEN@GOTPAGEOFF]
	ldrsw	x2, [x22]
	cmp	x2, x8, asr #3
	b.le	LBB0_19
; %bb.18:
Lloh49:
	adrp	x1, l_.str.10@PAGE
Lloh50:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_42
LBB0_19:
	ldr	x0, [x19, #8]
	mov	x1, x23
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_os_memcpy
	ldrsw	x22, [x22]
	add	x23, x23, x22, lsl #3
	ldr	w0, [x25]
	ldr	x2, [x19, #8]
Lloh51:
	adrp	x1, l_.str.11@PAGE
Lloh52:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x3, x22
	bl	_wpa_hexdump
	sub	x8, x28, x23
	cmp	x8, #7
	b.gt	LBB0_21
; %bb.20:
Lloh53:
	adrp	x1, l_.str.12@PAGE
Lloh54:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_42
LBB0_21:
	ldr	x3, [x23]
	cmp	x3, x8, lsr #3
	b.ge	LBB0_25
; %bb.22:
Lloh55:
	adrp	x8, _TLS_SESSION_ID_MAX_LEN@GOTPAGE
Lloh56:
	ldr	x8, [x8, _TLS_SESSION_ID_MAX_LEN@GOTPAGEOFF]
Lloh57:
	ldr	x8, [x8]
	cmp	x3, x8
	b.gt	LBB0_25
; %bb.23:
	ldr	w0, [x25]
	add	x2, x23, #8
Lloh58:
	adrp	x1, l_.str.14@PAGE
Lloh59:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_wpa_hexdump
	ldr	x26, [x23]
	add	x8, x23, x26, lsl #3
	add	x23, x8, #8
	sub	x8, x28, x23
	cmp	x8, #15
	b.gt	LBB0_26
; %bb.24:
Lloh60:
	adrp	x1, l_.str.15@PAGE
Lloh61:
	add	x1, x1, l_.str.15@PAGEOFF
	b	LBB0_42
LBB0_25:
Lloh62:
	adrp	x1, l_.str.13@PAGE
Lloh63:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_42
LBB0_26:
	mov	x0, x23
	bl	_WPA_GET_BE16
	add	x27, x23, #16
	sub	x8, x28, x27
	sxtw	x23, w0
	cmp	x23, x8, asr #3
	b.le	LBB0_28
; %bb.27:
Lloh64:
	adrp	x1, l_.str.16@PAGE
Lloh65:
	add	x1, x1, l_.str.16@PAGEOFF
	b	LBB0_42
LBB0_28:
	ldr	w0, [x25]
Lloh66:
	adrp	x1, l_.str.17@PAGE
Lloh67:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	x2, x27
	mov	x3, x23
	bl	_wpa_hexdump
	tbnz	w23, #0, LBB0_41
; %bb.29:
	str	x26, [sp, #24]                  ; 8-byte Folded Spill
	mov	x25, #0
	add	x8, x19, #60
	stp	x8, x23, [sp, #40]              ; 16-byte Folded Spill
	cmp	w23, #0
	cinc	w8, w23, lt
	asr	w8, w8, #1
	cmp	w8, #1
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	csinc	w8, w8, wzr, hi
	sxtw	x8, w8
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=1
	mov	w26, #0
	add	x25, x25, #1
	cbnz	w26, LBB0_38
LBB0_31:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_34 Depth 2
	ldr	x8, [x19, #16]
	cmp	x25, x8
	b.hs	LBB0_45
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	x8, [x19, #24]
	ldr	w1, [x8, x25, lsl #2]
	mov	x0, x19
	bl	_testing_cipher_suite_filter
	cmp	x0, #0
	ccmp	w23, #2, #0, eq
	b.lo	LBB0_30
; %bb.33:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	x23, [sp, #56]                  ; 8-byte Folded Reload
	mov	x24, x27
LBB0_34:                                ;   Parent Loop BB0_31 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x27
	bl	_WPA_GET_BE16
	mov	x26, x0
	ldr	x8, [x19, #24]
	ldr	w8, [x8, x25, lsl #2]
	cmp	w8, w26
	b.eq	LBB0_37
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=2
	add	x27, x27, #16
	subs	x23, x23, #1
	b.ne	LBB0_34
; %bb.36:                               ;   in Loop: Header=BB0_31 Depth=1
	mov	w26, #0
LBB0_37:                                ;   in Loop: Header=BB0_31 Depth=1
	mov	x27, x24
	ldr	x23, [sp, #48]                  ; 8-byte Folded Reload
	add	x25, x25, #1
	cbz	w26, LBB0_31
LBB0_38:
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	mov	x1, x26
	bl	_tlsv1_record_set_cipher_suite
	tbnz	x0, #63, LBB0_47
; %bb.39:
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	lsl	w25, w8, #1
	add	x23, x27, w25, sxtw #3
	str	w26, [x19, #32]
	sub	x8, x28, x23
	cmp	x8, #7
	b.gt	LBB0_48
; %bb.40:
Lloh68:
	adrp	x1, l_.str.21@PAGE
Lloh69:
	add	x1, x1, l_.str.21@PAGEOFF
	b	LBB0_42
LBB0_41:
Lloh70:
	adrp	x1, l_.str.18@PAGE
Lloh71:
	add	x1, x1, l_.str.18@PAGEOFF
LBB0_42:
	mov	x0, x19
	bl	_tlsv1_server_log
Lloh72:
	adrp	x1, l_.str.34@PAGE
Lloh73:
	add	x1, x1, l_.str.34@PAGEOFF
	mov	x0, x19
	bl	_tlsv1_server_log
Lloh74:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh75:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh76:
	ldr	w1, [x8]
Lloh77:
	adrp	x8, _TLS_ALERT_DECODE_ERROR@GOTPAGE
Lloh78:
	ldr	x8, [x8, _TLS_ALERT_DECODE_ERROR@GOTPAGEOFF]
LBB0_43:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tlsv1_server_alert
	mov	w0, #-1
LBB0_44:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_45:
Lloh79:
	adrp	x1, l_.str.19@PAGE
Lloh80:
	add	x1, x1, l_.str.19@PAGEOFF
LBB0_46:
	mov	x0, x19
	bl	_tlsv1_server_log
Lloh81:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh82:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh83:
	ldr	w1, [x8]
Lloh84:
	adrp	x8, _TLS_ALERT_ILLEGAL_PARAMETER@GOTPAGE
Lloh85:
	ldr	x8, [x8, _TLS_ALERT_ILLEGAL_PARAMETER@GOTPAGEOFF]
	b	LBB0_43
LBB0_47:
Lloh86:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh87:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh88:
	ldr	w0, [x8]
Lloh89:
	adrp	x1, l_.str.20@PAGE
Lloh90:
	add	x1, x1, l_.str.20@PAGEOFF
	bl	_wpa_printf
Lloh91:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh92:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh93:
	ldr	w1, [x8]
Lloh94:
	adrp	x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGE
Lloh95:
	ldr	x8, [x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_43
LBB0_48:
	ldr	x8, [x23], #8
	sub	x9, x28, x23
	sxtw	x24, w8
	cmp	x24, x9, asr #3
	b.le	LBB0_50
; %bb.49:
Lloh96:
	adrp	x1, l_.str.22@PAGE
Lloh97:
	add	x1, x1, l_.str.22@PAGEOFF
	b	LBB0_42
LBB0_50:
	lsl	x26, x8, #32
Lloh98:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh99:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh100:
	ldr	w0, [x8]
Lloh101:
	adrp	x1, l_.str.23@PAGE
Lloh102:
	add	x1, x1, l_.str.23@PAGEOFF
	mov	x2, x23
	mov	x3, x24
	bl	_wpa_hexdump
	cbz	x26, LBB0_63
; %bb.51:
Lloh103:
	adrp	x8, _TLS_COMPRESSION_NULL@GOTPAGE
Lloh104:
	ldr	x8, [x8, _TLS_COMPRESSION_NULL@GOTPAGEOFF]
Lloh105:
	ldrsw	x8, [x8]
	cmp	x24, #1
	csinc	x9, x24, xzr, hi
	cmp	x9, #8
	b.hs	LBB0_53
; %bb.52:
	mov	w11, #0
	mov	x10, #0
	mov	x0, x23
	b	LBB0_57
LBB0_53:
	sxtw	x11, w25
	and	x10, x9, #0xfffffffffffffff8
	add	x0, x23, x10, lsl #3
	dup.2d	v0, x8
	ldr	x12, [sp, #24]                  ; 8-byte Folded Reload
	add	x12, x12, x22
	add	x11, x12, x11
	add	x11, x21, x11, lsl #3
	add	x11, x11, #128
	movi.2d	v1, #0000000000000000
	movi.2s	v3, #1
	mov	x12, x10
	movi.2d	v5, #0000000000000000
	movi.2d	v4, #0000000000000000
	movi.2d	v2, #0000000000000000
LBB0_54:                                ; =>This Inner Loop Header: Depth=1
	ldp	q6, q7, [x11, #-48]
	ldp	q16, q17, [x11, #-16]
	cmeq.2d	v6, v6, v0
	xtn.2s	v6, v6
	cmeq.2d	v7, v7, v0
	xtn.2s	v7, v7
	cmeq.2d	v16, v16, v0
	xtn.2s	v16, v16
	cmeq.2d	v17, v17, v0
	xtn.2s	v17, v17
	bit.8b	v1, v3, v6
	bit.8b	v5, v3, v7
	bit.8b	v4, v3, v16
	bit.8b	v2, v3, v17
	add	x11, x11, #64
	subs	x12, x12, #8
	b.ne	LBB0_54
; %bb.55:
	cmeq.2s	v0, v1, #0
	bsl.8b	v0, v5, v1
	cmeq.2s	v1, v0, #0
	bit.8b	v0, v4, v1
	cmeq.2s	v1, v0, #0
	bit.8b	v0, v2, v1
	fmov	x11, d0
	cmp	x11, #0
	cset	w11, ne
	cmp	x9, x10
	b.ne	LBB0_57
; %bb.56:
	add	x8, x23, x10, lsl #3
	sub	x23, x8, #8
	b	LBB0_60
LBB0_57:
	sub	x9, x9, x10
LBB0_58:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x0], #8
	cmp	x10, x8
	csinc	w11, w11, wzr, ne
	subs	x9, x9, #1
	b.ne	LBB0_58
; %bb.59:
	sub	x23, x0, #8
LBB0_60:
	cbz	w11, LBB0_63
; %bb.61:
	sub	x8, x28, x0
	cmp	x8, #8
	b.ne	LBB0_64
; %bb.62:
	ldr	x8, [x0]
	str	x8, [sp]
Lloh106:
	adrp	x1, l_.str.25@PAGE
Lloh107:
	add	x1, x1, l_.str.25@PAGEOFF
	b	LBB0_42
LBB0_63:
Lloh108:
	adrp	x1, l_.str.24@PAGE
Lloh109:
	add	x1, x1, l_.str.24@PAGEOFF
	b	LBB0_46
LBB0_64:
	cmp	x8, #9
	b.lt	LBB0_80
; %bb.65:
	bl	_WPA_GET_BE16
	mov	x22, x0
	add	x24, x23, #24
	str	x0, [sp]
Lloh110:
	adrp	x1, l_.str.26@PAGE
Lloh111:
	add	x1, x1, l_.str.26@PAGEOFF
	mov	x0, x19
	bl	_tlsv1_server_log
	sub	x8, x28, x24
	asr	x8, x8, #3
	cmp	x8, w22, sxtw
	b.ne	LBB0_68
; %bb.66:
	cmp	x24, x28
	b.hs	LBB0_80
; %bb.67:
Lloh112:
	adrp	x22, l_.str.31@PAGE
Lloh113:
	add	x22, x22, l_.str.31@PAGEOFF
Lloh114:
	adrp	x27, _TLS_EXT_SESSION_TICKET@GOTPAGE
Lloh115:
	ldr	x27, [x27, _TLS_EXT_SESSION_TICKET@GOTPAGEOFF]
Lloh116:
	adrp	x23, l_.str.32@PAGE
Lloh117:
	add	x23, x23, l_.str.32@PAGEOFF
	b	LBB0_71
LBB0_68:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	stp	x22, x8, [sp]
Lloh118:
	adrp	x1, l_.str.27@PAGE
Lloh119:
	add	x1, x1, l_.str.27@PAGEOFF
	b	LBB0_42
LBB0_69:                                ;   in Loop: Header=BB0_71 Depth=1
	mov	w8, #1
	str	w8, [x19, #52]
LBB0_70:                                ;   in Loop: Header=BB0_71 Depth=1
	add	x24, x24, x25, lsl #3
	cmp	x24, x28
	b.hs	LBB0_80
LBB0_71:                                ; =>This Inner Loop Header: Depth=1
	sub	x8, x28, x24
	cmp	x8, #15
	b.le	LBB0_81
; %bb.72:                               ;   in Loop: Header=BB0_71 Depth=1
	mov	x0, x24
	bl	_WPA_GET_BE16
	mov	x26, x0
	add	x0, x24, #16
	sub	x8, x28, x0
	cmp	x8, #15
	b.le	LBB0_82
; %bb.73:                               ;   in Loop: Header=BB0_71 Depth=1
	bl	_WPA_GET_BE16
	add	x24, x24, #32
	sub	x8, x28, x24
	sxtw	x25, w0
	cmp	x25, x8, asr #3
	b.gt	LBB0_83
; %bb.74:                               ;   in Loop: Header=BB0_71 Depth=1
	mov	x8, x26
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x22
	bl	_tlsv1_server_log
Lloh120:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh121:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh122:
	ldr	w0, [x8]
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	bl	_wpa_hexdump
	ldr	w8, [x27]
	cmp	w8, w26
	b.ne	LBB0_77
; %bb.75:                               ;   in Loop: Header=BB0_71 Depth=1
	ldr	x0, [x19, #40]
	bl	_os_free
	mov	x0, x25
	bl	_os_malloc
	str	x0, [x19, #40]
	cbz	x0, LBB0_70
; %bb.76:                               ;   in Loop: Header=BB0_71 Depth=1
	mov	x1, x24
	mov	x2, x25
	bl	_os_memcpy
	str	w25, [x19, #48]
	b	LBB0_70
LBB0_77:                                ;   in Loop: Header=BB0_71 Depth=1
Lloh123:
	adrp	x8, _TLS_EXT_STATUS_REQUEST@GOTPAGE
Lloh124:
	ldr	x8, [x8, _TLS_EXT_STATUS_REQUEST@GOTPAGEOFF]
Lloh125:
	ldr	w8, [x8]
	cmp	w8, w26
	b.eq	LBB0_69
; %bb.78:                               ;   in Loop: Header=BB0_71 Depth=1
Lloh126:
	adrp	x8, _TLS_EXT_STATUS_REQUEST_V2@GOTPAGE
Lloh127:
	ldr	x8, [x8, _TLS_EXT_STATUS_REQUEST_V2@GOTPAGEOFF]
Lloh128:
	ldr	w8, [x8]
	cmp	w8, w26
	b.ne	LBB0_70
; %bb.79:                               ;   in Loop: Header=BB0_71 Depth=1
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	bl	_tls_process_status_request_v2
	b	LBB0_70
LBB0_80:
	sub	x8, x28, x21
	asr	x8, x8, #3
	str	x8, [x20]
Lloh129:
	adrp	x1, l_.str.33@PAGE
Lloh130:
	add	x1, x1, l_.str.33@PAGEOFF
	mov	x0, x19
	bl	_tlsv1_server_log
	mov	w0, #0
Lloh131:
	adrp	x8, _SERVER_HELLO@GOTPAGE
Lloh132:
	ldr	x8, [x8, _SERVER_HELLO@GOTPAGEOFF]
Lloh133:
	ldr	w8, [x8]
	str	w8, [x19, #56]
	b	LBB0_44
LBB0_81:
Lloh134:
	adrp	x1, l_.str.28@PAGE
Lloh135:
	add	x1, x1, l_.str.28@PAGEOFF
	b	LBB0_42
LBB0_82:
Lloh136:
	adrp	x1, l_.str.29@PAGE
Lloh137:
	add	x1, x1, l_.str.29@PAGEOFF
	b	LBB0_42
LBB0_83:
Lloh138:
	adrp	x1, l_.str.30@PAGE
Lloh139:
	add	x1, x1, l_.str.30@PAGEOFF
	b	LBB0_42
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGot	Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpAdd	Lloh96, Lloh97
	.loh AdrpAdd	Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpAdd	Lloh106, Lloh107
	.loh AdrpAdd	Lloh108, Lloh109
	.loh AdrpAdd	Lloh110, Lloh111
	.loh AdrpAdd	Lloh116, Lloh117
	.loh AdrpLdrGot	Lloh114, Lloh115
	.loh AdrpAdd	Lloh112, Lloh113
	.loh AdrpAdd	Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpLdrGotLdr	Lloh126, Lloh127, Lloh128
	.loh AdrpLdrGotLdr	Lloh131, Lloh132, Lloh133
	.loh AdrpAdd	Lloh129, Lloh130
	.loh AdrpAdd	Lloh134, Lloh135
	.loh AdrpAdd	Lloh136, Lloh137
	.loh AdrpAdd	Lloh138, Lloh139
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS_CONTENT_TYPE_HANDSHAKE,8,3 ; @TLS_CONTENT_TYPE_HANDSHAKE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Expected Handshake; received content type 0x%x"

	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ; @TLS_ALERT_LEVEL_FATAL
	.comm	_TLS_ALERT_UNEXPECTED_MESSAGE,4,2 ; @TLS_ALERT_UNEXPECTED_MESSAGE
l_.str.1:                               ; @.str.1
	.asciz	"Truncated handshake message (expected ClientHello)"

	.comm	_TLS_HANDSHAKE_TYPE_CLIENT_HELLO,8,3 ; @TLS_HANDSHAKE_TYPE_CLIENT_HELLO
l_.str.2:                               ; @.str.2
	.asciz	"Received unexpected handshake message %d (expected ClientHello)"

l_.str.3:                               ; @.str.3
	.asciz	"Received ClientHello"

l_.str.4:                               ; @.str.4
	.asciz	"Truncated ClientHello (len=%d left=%d)"

	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.5:                               ; @.str.5
	.asciz	"TLSv1: ClientHello"

l_.str.6:                               ; @.str.6
	.asciz	"Truncated ClientHello/client_version"

l_.str.7:                               ; @.str.7
	.asciz	"Client version %d.%d"

	.comm	_TLS_VERSION_1,4,2              ; @TLS_VERSION_1
l_.str.8:                               ; @.str.8
	.asciz	"Unexpected protocol version in ClientHello %u.%u"

	.comm	_TLS_ALERT_PROTOCOL_VERSION,4,2 ; @TLS_ALERT_PROTOCOL_VERSION
	.comm	_TLS_VERSION,4,2                ; @TLS_VERSION
	.comm	_TLS_VERSION_1_1,4,2            ; @TLS_VERSION_1_1
l_.str.9:                               ; @.str.9
	.asciz	"Using TLS v%s"

	.comm	_TLS_RANDOM_LEN,4,2             ; @TLS_RANDOM_LEN
l_.str.10:                              ; @.str.10
	.asciz	"Truncated ClientHello/client_random"

l_.str.11:                              ; @.str.11
	.asciz	"TLSv1: client_random"

l_.str.12:                              ; @.str.12
	.asciz	"Truncated ClientHello/session_id len"

	.comm	_TLS_SESSION_ID_MAX_LEN,8,3     ; @TLS_SESSION_ID_MAX_LEN
l_.str.13:                              ; @.str.13
	.asciz	"Truncated ClientHello/session_id"

l_.str.14:                              ; @.str.14
	.asciz	"TLSv1: client session_id"

l_.str.15:                              ; @.str.15
	.asciz	"Truncated ClientHello/cipher_suites len"

l_.str.16:                              ; @.str.16
	.asciz	"Truncated ClientHello/cipher_suites"

l_.str.17:                              ; @.str.17
	.asciz	"TLSv1: client cipher suites"

l_.str.18:                              ; @.str.18
	.asciz	"Odd len ClientHello/cipher_suites"

l_.str.19:                              ; @.str.19
	.asciz	"No supported cipher suite available"

	.comm	_TLS_ALERT_ILLEGAL_PARAMETER,4,2 ; @TLS_ALERT_ILLEGAL_PARAMETER
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.20:                              ; @.str.20
	.asciz	"TLSv1: Failed to set CipherSuite for record layer"

	.comm	_TLS_ALERT_INTERNAL_ERROR,4,2   ; @TLS_ALERT_INTERNAL_ERROR
l_.str.21:                              ; @.str.21
	.asciz	"Truncated ClientHello/compression_methods len"

l_.str.22:                              ; @.str.22
	.asciz	"Truncated ClientHello/compression_methods"

l_.str.23:                              ; @.str.23
	.asciz	"TLSv1: client compression_methods"

	.comm	_TLS_COMPRESSION_NULL,4,2       ; @TLS_COMPRESSION_NULL
l_.str.24:                              ; @.str.24
	.asciz	"Client does not accept NULL compression"

l_.str.25:                              ; @.str.25
	.asciz	"Unexpected extra octet in the end of ClientHello: 0x%02x"

l_.str.26:                              ; @.str.26
	.asciz	"%u bytes of ClientHello extensions"

l_.str.27:                              ; @.str.27
	.asciz	"Invalid ClientHello extension list length %u (expected %u)"

l_.str.28:                              ; @.str.28
	.asciz	"Invalid extension_type field"

l_.str.29:                              ; @.str.29
	.asciz	"Invalid extension_data length field"

l_.str.30:                              ; @.str.30
	.asciz	"Invalid extension_data field"

l_.str.31:                              ; @.str.31
	.asciz	"ClientHello Extension type %u"

l_.str.32:                              ; @.str.32
	.asciz	"TLSv1: ClientHello Extension data"

	.comm	_TLS_EXT_SESSION_TICKET,4,2     ; @TLS_EXT_SESSION_TICKET
	.comm	_TLS_EXT_STATUS_REQUEST,4,2     ; @TLS_EXT_STATUS_REQUEST
	.comm	_TLS_EXT_STATUS_REQUEST_V2,4,2  ; @TLS_EXT_STATUS_REQUEST_V2
l_.str.33:                              ; @.str.33
	.asciz	"ClientHello OK - proceed to ServerHello"

	.comm	_SERVER_HELLO,4,2               ; @SERVER_HELLO
l_.str.34:                              ; @.str.34
	.asciz	"Failed to decode ClientHello"

	.comm	_TLS_ALERT_DECODE_ERROR,4,2     ; @TLS_ALERT_DECODE_ERROR
	.comm	_TLS_VERSION_1_2,4,2            ; @TLS_VERSION_1_2
	.no_dead_strip	_tls_process_client_hello
.subsections_via_symbols
