	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_parse_ctos_alpn            ## -- Begin function tls_parse_ctos_alpn
	.p2align	4, 0x90
_tls_parse_ctos_alpn:                   ## @tls_parse_ctos_alpn
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_SSL_IS_FIRST_HANDSHAKE
	movl	$1, %r15d
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_PACKET_as_length_prefixed_2
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	-36(%rbp), %rdi
	callq	_PACKET_remaining
	cmpl	$1, %eax
	jg	LBB0_4
LBB0_3:
	movq	_SSL_AD_DECODE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PARSE_CTOS_ALPN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_BAD_EXTENSION@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_SSLfatal
	xorl	%r15d, %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	-36(%rbp), %eax
	movl	%eax, -40(%rbp)
	leaq	-36(%rbp), %r12
	leaq	-44(%rbp), %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_PACKET_get_length_prefixed_1
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_PACKET_remaining
	testl	%eax, %eax
	je	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_PACKET_remaining
	testl	%eax, %eax
	jne	LBB0_5
## %bb.8:
	leaq	8(%r14), %rbx
	movq	8(%r14), %rdi
	callq	_OPENSSL_free
	movq	$0, 8(%r14)
	movl	$0, (%r14)
	leaq	-40(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_PACKET_memdup
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PARSE_CTOS_ALPN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AD_DECODE_ERROR,4,2        ## @SSL_AD_DECODE_ERROR
	.comm	_SSL_F_TLS_PARSE_CTOS_ALPN,4,2  ## @SSL_F_TLS_PARSE_CTOS_ALPN
	.comm	_SSL_R_BAD_EXTENSION,4,2        ## @SSL_R_BAD_EXTENSION
	.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_alpn            ; -- Begin function tls_parse_ctos_alpn
	.p2align	2
_tls_parse_ctos_alpn:                   ; @tls_parse_ctos_alpn
	.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	x20, x1
	mov	x19, x0
	bl	_SSL_IS_FIRST_HANDSHAKE
	cbz	w0, LBB0_10
; %bb.1:
	add	x1, sp, #12
	mov	x0, x20
	bl	_PACKET_as_length_prefixed_2
	cbz	w0, LBB0_3
; %bb.2:
	add	x0, sp, #12
	bl	_PACKET_remaining
	cmp	w0, #1
	b.gt	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _SSL_AD_DECODE_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_AD_DECODE_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SSL_F_TLS_PARSE_CTOS_ALPN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_F_TLS_PARSE_CTOS_ALPN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _SSL_R_BAD_EXTENSION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_R_BAD_EXTENSION@GOTPAGEOFF]
LBB0_4:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w0, #0
	b	LBB0_11
LBB0_5:
	ldr	w8, [sp, #12]
	str	w8, [sp, #8]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	add	x1, sp, #4
	bl	_PACKET_get_length_prefixed_1
	cbz	w0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #4
	bl	_PACKET_remaining
	cbz	w0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #12
	bl	_PACKET_remaining
	cbnz	w0, LBB0_6
; %bb.9:
	mov	x20, x19
	ldr	x0, [x20, #8]!
	bl	_OPENSSL_free
	str	xzr, [x20]
	str	wzr, [x19]
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x19
	bl	_PACKET_memdup
	cbz	w0, LBB0_12
LBB0_10:
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_12:
Lloh8:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _SSL_F_TLS_PARSE_CTOS_ALPN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSL_F_TLS_PARSE_CTOS_ALPN@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_DECODE_ERROR,4,2        ; @SSL_AD_DECODE_ERROR
	.comm	_SSL_F_TLS_PARSE_CTOS_ALPN,4,2  ; @SSL_F_TLS_PARSE_CTOS_ALPN
	.comm	_SSL_R_BAD_EXTENSION,4,2        ; @SSL_R_BAD_EXTENSION
	.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
