	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_parse_ctos_server_name     ## -- Begin function tls_parse_ctos_server_name
	.p2align	4, 0x90
_tls_parse_ctos_server_name:            ## @tls_parse_ctos_server_name
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movq	%rdi, %r14
	leaq	-32(%rbp), %rsi
	movq	%rax, %rdi
	callq	_PACKET_as_length_prefixed_2
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	-32(%rbp), %rdi
	callq	_PACKET_remaining
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	leaq	-32(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	callq	_PACKET_get_1
	testl	%eax, %eax
	je	LBB0_2
## %bb.6:
	movl	-36(%rbp), %eax
	movq	_TLSEXT_NAMETYPE_host_name@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.7:
	leaq	-32(%rbp), %rdi
	leaq	-28(%rbp), %rsi
	callq	_PACKET_as_length_prefixed_2
	testl	%eax, %eax
	je	LBB0_2
## %bb.8:
	cmpq	$0, 32(%r14)
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_SSL_IS_TLS13
	testq	%rax, %rax
	je	LBB0_16
LBB0_10:
	leaq	-28(%rbp), %rdi
	callq	_PACKET_remaining
	movq	_TLSEXT_MAXLEN_host_name@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_11
## %bb.12:
	leaq	-28(%rbp), %rdi
	callq	_PACKET_contains_zero_byte
	testq	%rax, %rax
	je	LBB0_13
LBB0_11:
	movq	_SSL_AD_UNRECOGNIZED_NAME@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_SSL_AD_DECODE_ERROR@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PARSE_CTOS_SERVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_BAD_EXTENSION@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_SSLfatal
	xorl	%ebx, %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	16(%r14), %rbx
	movq	16(%r14), %rdi
	callq	_OPENSSL_free
	movq	$0, 16(%r14)
	leaq	-28(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_PACKET_strndup
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movl	$1, (%r14)
LBB0_16:
	movl	$1, %ebx
	cmpq	$0, 32(%r14)
	je	LBB0_21
## %bb.17:
	movq	24(%r14), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_22
## %bb.18:
	movq	%r15, %rdi
	callq	_strlen
	leaq	-28(%rbp), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_PACKET_equal
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, (%r14)
	jne	LBB0_21
## %bb.19:
	movq	24(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_21
## %bb.20:
	movq	$0, 8(%r14)
	jmp	LBB0_21
LBB0_22:
	movl	$0, (%r14)
	jmp	LBB0_21
LBB0_14:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PARSE_CTOS_SERVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AD_DECODE_ERROR,4,2        ## @SSL_AD_DECODE_ERROR
	.comm	_SSL_F_TLS_PARSE_CTOS_SERVER_NAME,4,2 ## @SSL_F_TLS_PARSE_CTOS_SERVER_NAME
	.comm	_SSL_R_BAD_EXTENSION,4,2        ## @SSL_R_BAD_EXTENSION
	.comm	_TLSEXT_NAMETYPE_host_name,4,2  ## @TLSEXT_NAMETYPE_host_name
	.comm	_TLSEXT_MAXLEN_host_name,8,3    ## @TLSEXT_MAXLEN_host_name
	.comm	_SSL_AD_UNRECOGNIZED_NAME,4,2   ## @SSL_AD_UNRECOGNIZED_NAME
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_parse_ctos_server_name     ; -- Begin function tls_parse_ctos_server_name
	.p2align	2
_tls_parse_ctos_server_name:            ; @tls_parse_ctos_server_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
	mov	x19, x0
	add	x1, sp, #8
	mov	x0, x8
	bl	_PACKET_as_length_prefixed_2
	cbz	w0, LBB0_10
; %bb.1:
	add	x0, sp, #8
	bl	_PACKET_remaining
	cbz	x0, LBB0_10
; %bb.2:
	add	x0, sp, #8
	add	x1, sp, #12
	bl	_PACKET_get_1
	cbz	w0, LBB0_10
; %bb.3:
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _TLSEXT_NAMETYPE_host_name@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TLSEXT_NAMETYPE_host_name@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.4:
	add	x0, sp, #8
	add	x1, sp, #4
	bl	_PACKET_as_length_prefixed_2
	cbz	w0, LBB0_10
; %bb.5:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_SSL_IS_TLS13
	cbz	x0, LBB0_16
LBB0_7:
	add	x0, sp, #4
	bl	_PACKET_remaining
Lloh3:
	adrp	x8, _TLSEXT_MAXLEN_host_name@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TLSEXT_MAXLEN_host_name@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_9
; %bb.8:
	add	x0, sp, #4
	bl	_PACKET_contains_zero_byte
	cbz	x0, LBB0_14
LBB0_9:
Lloh6:
	adrp	x8, _SSL_AD_UNRECOGNIZED_NAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_AD_UNRECOGNIZED_NAME@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh8:
	adrp	x8, _SSL_AD_DECODE_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSL_AD_DECODE_ERROR@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _SSL_F_TLS_PARSE_CTOS_SERVER_NAME@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SSL_F_TLS_PARSE_CTOS_SERVER_NAME@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x8, _SSL_R_BAD_EXTENSION@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SSL_R_BAD_EXTENSION@GOTPAGEOFF]
LBB0_12:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_14:
	mov	x20, x19
	ldr	x0, [x20, #16]!
	bl	_OPENSSL_free
	str	xzr, [x20]
	add	x0, sp, #4
	mov	x1, x20
	bl	_PACKET_strndup
	cbz	w0, LBB0_23
; %bb.15:
	mov	w8, #1
	str	w8, [x19]
LBB0_16:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_22
; %bb.17:
	ldr	x8, [x19, #24]
	ldr	x20, [x8]
	cbz	x20, LBB0_21
; %bb.18:
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	add	x0, sp, #4
	mov	x1, x20
	bl	_PACKET_equal
	cmp	x0, #0
	cset	w8, ne
	str	w8, [x19]
	cbnz	x0, LBB0_22
; %bb.19:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_22
; %bb.20:
	str	xzr, [x19, #8]
	b	LBB0_22
LBB0_21:
	str	wzr, [x19]
LBB0_22:
	mov	w0, #1
	b	LBB0_13
LBB0_23:
Lloh15:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _SSL_F_TLS_PARSE_CTOS_SERVER_NAME@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SSL_F_TLS_PARSE_CTOS_SERVER_NAME@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_DECODE_ERROR,4,2        ; @SSL_AD_DECODE_ERROR
	.comm	_SSL_F_TLS_PARSE_CTOS_SERVER_NAME,4,2 ; @SSL_F_TLS_PARSE_CTOS_SERVER_NAME
	.comm	_SSL_R_BAD_EXTENSION,4,2        ; @SSL_R_BAD_EXTENSION
	.comm	_TLSEXT_NAMETYPE_host_name,4,2  ; @TLSEXT_NAMETYPE_host_name
	.comm	_TLSEXT_MAXLEN_host_name,8,3    ; @TLSEXT_MAXLEN_host_name
	.comm	_SSL_AD_UNRECOGNIZED_NAME,4,2   ; @SSL_AD_UNRECOGNIZED_NAME
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
.subsections_via_symbols
