	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_sni_from_client_hello
_get_sni_from_client_hello:             ## @get_sni_from_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$0, -64(%rbp)
	movl	$0, -60(%rbp)
	leaq	-44(%rbp), %r12
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	-68(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	-52(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_BIO_get_mem_data
	movq	-80(%rbp), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_PACKET_buf_init
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_21
## %bb.1:
	movq	_SSL3_RT_HEADER_LENGTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-44(%rbp), %rdi
	callq	_PACKET_forward
	testl	%eax, %eax
	je	LBB0_21
## %bb.2:
	movq	_SSL3_HM_HEADER_LENGTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-44(%rbp), %rdi
	callq	_PACKET_forward
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_21
## %bb.3:
	movq	_CLIENT_VERSION_LEN@GOTPCREL(%rip), %rax
	movq	_SSL3_RANDOM_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	leaq	-44(%rbp), %rdi
	callq	_PACKET_forward
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_21
## %bb.4:
	leaq	-44(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_PACKET_get_length_prefixed_1
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_21
## %bb.5:
	leaq	-44(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_PACKET_get_length_prefixed_2
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_21
## %bb.6:
	leaq	-44(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_PACKET_get_length_prefixed_1
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_21
## %bb.7:
	leaq	-44(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_PACKET_as_length_prefixed_2
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_21
## %bb.8:
	leaq	-48(%rbp), %rbx
	leaq	-60(%rbp), %r12
	leaq	-68(%rbp), %r13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_PACKET_remaining
	testq	%rax, %rax
	je	LBB0_21
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_PACKET_get_net_2
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_21
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_PACKET_get_length_prefixed_2
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-60(%rbp), %eax
	movq	_TLSEXT_TYPE_server_name@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.13:
	leaq	-68(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_PACKET_get_length_prefixed_2
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_21
## %bb.14:
	leaq	-56(%rbp), %rdi
	callq	_PACKET_remaining
	xorl	%r15d, %r15d
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_TEST_uint_ne
	testl	%eax, %eax
	je	LBB0_21
## %bb.15:
	leaq	-56(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	callq	_PACKET_get_1
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_21
## %bb.16:
	movl	-64(%rbp), %edi
	movq	_TLSEXT_NAMETYPE_host_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_TEST_uint_eq
	testl	%eax, %eax
	je	LBB0_21
## %bb.17:
	leaq	-56(%rbp), %rdi
	leaq	-52(%rbp), %rsi
	callq	_PACKET_get_length_prefixed_2
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_21
## %bb.18:
	leaq	-52(%rbp), %rdi
	callq	_PACKET_remaining
	movq	_TLSEXT_MAXLEN_host_name@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_TEST_uint_le
	testl	%eax, %eax
	je	LBB0_21
## %bb.19:
	leaq	-52(%rbp), %rdi
	callq	_PACKET_contains_zero_byte
	movl	%eax, %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	leaq	-52(%rbp), %rdi
	movq	%r14, %rsi
	callq	_PACKET_strndup
	movl	%eax, %edi
	callq	_TEST_true
	xorl	%r15d, %r15d
	testl	%eax, %eax
	setne	%r15b
LBB0_21:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL3_RT_HEADER_LENGTH,8,3      ## @SSL3_RT_HEADER_LENGTH
	.comm	_SSL3_HM_HEADER_LENGTH,8,3      ## @SSL3_HM_HEADER_LENGTH
	.comm	_CLIENT_VERSION_LEN,8,3         ## @CLIENT_VERSION_LEN
	.comm	_SSL3_RANDOM_SIZE,8,3           ## @SSL3_RANDOM_SIZE
	.comm	_TLSEXT_TYPE_server_name,4,2    ## @TLSEXT_TYPE_server_name
	.comm	_TLSEXT_NAMETYPE_host_name,4,2  ## @TLSEXT_NAMETYPE_host_name
	.comm	_TLSEXT_MAXLEN_host_name,4,2    ## @TLSEXT_MAXLEN_host_name
	.no_dead_strip	_get_sni_from_client_hello
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_sni_from_client_hello
_get_sni_from_client_hello:             ; @get_sni_from_client_hello
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	stp	wzr, wzr, [sp, #12]
	sub	x0, x29, #28
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x0, sp, #28
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x0, sp, #20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	sub	x1, x29, #24
	mov	x0, x20
	bl	_BIO_get_mem_data
	mov	x2, x0
	ldur	x1, [x29, #-24]
	sub	x0, x29, #28
	bl	_PACKET_buf_init
	bl	_TEST_true
	cbz	w0, LBB0_21
; %bb.1:
Lloh0:
	adrp	x8, _SSL3_RT_HEADER_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL3_RT_HEADER_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	sub	x0, x29, #28
	bl	_PACKET_forward
	cbz	w0, LBB0_21
; %bb.2:
Lloh3:
	adrp	x8, _SSL3_HM_HEADER_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL3_HM_HEADER_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	sub	x0, x29, #28
	bl	_PACKET_forward
	bl	_TEST_true
	cbz	w0, LBB0_21
; %bb.3:
Lloh6:
	adrp	x8, _CLIENT_VERSION_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CLIENT_VERSION_LEN@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _SSL3_RANDOM_SIZE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SSL3_RANDOM_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	sub	x0, x29, #28
	bl	_PACKET_forward
	bl	_TEST_true
	cbz	w0, LBB0_21
; %bb.4:
	sub	x0, x29, #28
	add	x1, sp, #32
	bl	_PACKET_get_length_prefixed_1
	bl	_TEST_true
	cbz	w0, LBB0_21
; %bb.5:
	sub	x0, x29, #28
	add	x1, sp, #32
	bl	_PACKET_get_length_prefixed_2
	bl	_TEST_true
	cbz	w0, LBB0_21
; %bb.6:
	sub	x0, x29, #28
	add	x1, sp, #32
	bl	_PACKET_get_length_prefixed_1
	bl	_TEST_true
	cbz	w0, LBB0_21
; %bb.7:
	sub	x0, x29, #28
	add	x1, sp, #32
	bl	_PACKET_as_length_prefixed_2
	bl	_TEST_true
	cbz	w0, LBB0_21
; %bb.8:
Lloh12:
	adrp	x20, _TLSEXT_TYPE_server_name@GOTPAGE
Lloh13:
	ldr	x20, [x20, _TLSEXT_TYPE_server_name@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #32
	bl	_PACKET_remaining
	cbz	x0, LBB0_21
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #32
	add	x1, sp, #12
	bl	_PACKET_get_net_2
	bl	_TEST_true
	cbz	w0, LBB0_21
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #32
	add	x1, sp, #28
	bl	_PACKET_get_length_prefixed_2
	bl	_TEST_true
	cbz	w0, LBB0_21
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.13:
	add	x0, sp, #28
	add	x1, sp, #24
	bl	_PACKET_get_length_prefixed_2
	bl	_TEST_true
	cbz	w0, LBB0_21
; %bb.14:
	add	x0, sp, #24
	bl	_PACKET_remaining
	mov	w1, #0
	bl	_TEST_uint_ne
	cbz	w0, LBB0_21
; %bb.15:
	add	x0, sp, #24
	add	x1, sp, #16
	bl	_PACKET_get_1
	bl	_TEST_true
	cbz	w0, LBB0_21
; %bb.16:
	ldr	w0, [sp, #16]
Lloh14:
	adrp	x8, _TLSEXT_NAMETYPE_host_name@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TLSEXT_NAMETYPE_host_name@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_TEST_uint_eq
	cbz	w0, LBB0_21
; %bb.17:
	add	x0, sp, #24
	add	x1, sp, #20
	bl	_PACKET_get_length_prefixed_2
	bl	_TEST_true
	cbz	w0, LBB0_21
; %bb.18:
	add	x0, sp, #20
	bl	_PACKET_remaining
Lloh17:
	adrp	x8, _TLSEXT_MAXLEN_host_name@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TLSEXT_MAXLEN_host_name@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_TEST_uint_le
	cbz	w0, LBB0_21
; %bb.19:
	add	x0, sp, #20
	bl	_PACKET_contains_zero_byte
	bl	_TEST_false
	cbz	w0, LBB0_21
; %bb.20:
	add	x0, sp, #20
	mov	x1, x19
	bl	_PACKET_strndup
	bl	_TEST_true
	cmp	w0, #0
	cset	w0, ne
LBB0_21:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL3_RT_HEADER_LENGTH,8,3      ; @SSL3_RT_HEADER_LENGTH
	.comm	_SSL3_HM_HEADER_LENGTH,8,3      ; @SSL3_HM_HEADER_LENGTH
	.comm	_CLIENT_VERSION_LEN,8,3         ; @CLIENT_VERSION_LEN
	.comm	_SSL3_RANDOM_SIZE,8,3           ; @SSL3_RANDOM_SIZE
	.comm	_TLSEXT_TYPE_server_name,4,2    ; @TLSEXT_TYPE_server_name
	.comm	_TLSEXT_NAMETYPE_host_name,4,2  ; @TLSEXT_NAMETYPE_host_name
	.comm	_TLSEXT_MAXLEN_host_name,4,2    ; @TLSEXT_MAXLEN_host_name
	.no_dead_strip	_get_sni_from_client_hello
.subsections_via_symbols
