	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_parse_stoc_npn             ## -- Begin function tls_parse_stoc_npn
	.p2align	4, 0x90
_tls_parse_stoc_npn:                    ## @tls_parse_stoc_npn
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_SSL_IS_FIRST_HANDSHAKE
	movl	$1, %r14d
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movq	24(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.3:
	movl	(%r15), %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ssl_next_proto_validate
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movq	24(%rbx), %rax
	movq	(%rax), %r13
	movq	%r15, %rdi
	callq	_PACKET_data
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_PACKET_remaining
	movq	24(%rbx), %rcx
	movl	8(%rcx), %r9d
	leaq	-56(%rbp), %rsi
	leaq	-41(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	*%r13
	movq	_SSL_TLSEXT_ERR_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.7:
	movq	16(%rbx), %rdi
	callq	_OPENSSL_free
	movzbl	-41(%rbp), %edi
	callq	_OPENSSL_malloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	-56(%rbp), %rsi
	movzbl	-41(%rbp), %edx
	movq	%rax, %rdi
	callq	_memcpy
	movb	-41(%rbp), %al
	movb	%al, 8(%rbx)
	movl	$1, (%rbx)
	movl	$1, %r14d
	jmp	LBB0_10
LBB0_2:
	movq	_SSL_AD_UNSUPPORTED_EXTENSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PARSE_STOC_NPN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_BAD_EXTENSION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_SSLfatal
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_5:
	movq	_SSL_AD_HANDSHAKE_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PARSE_STOC_NPN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_BAD_EXTENSION@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_8:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PARSE_STOC_NPN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_SSLfatal
LBB0_10:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AD_UNSUPPORTED_EXTENSION,4,2 ## @SSL_AD_UNSUPPORTED_EXTENSION
	.comm	_SSL_F_TLS_PARSE_STOC_NPN,4,2   ## @SSL_F_TLS_PARSE_STOC_NPN
	.comm	_SSL_R_BAD_EXTENSION,4,2        ## @SSL_R_BAD_EXTENSION
	.comm	_SSL_TLSEXT_ERR_OK,8,3          ## @SSL_TLSEXT_ERR_OK
	.comm	_SSL_AD_HANDSHAKE_FAILURE,4,2   ## @SSL_AD_HANDSHAKE_FAILURE
	.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_stoc_npn             ; -- Begin function tls_parse_stoc_npn
	.p2align	2
_tls_parse_stoc_npn:                    ; @tls_parse_stoc_npn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_SSL_IS_FIRST_HANDSHAKE
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	w8, [x20]
	str	w8, [sp]
	mov	x1, sp
	mov	x0, x19
	bl	_ssl_next_proto_validate
	cbz	w0, LBB0_11
; %bb.3:
	ldr	x8, [x19, #24]
	ldr	x22, [x8]
	mov	x0, x20
	bl	_PACKET_data
	mov	x21, x0
	mov	x0, x20
	bl	_PACKET_remaining
	mov	x4, x0
	ldr	x8, [x19, #24]
	ldr	w5, [x8, #8]
	add	x1, sp, #8
	add	x2, sp, #7
	mov	x0, x19
	mov	x3, x21
	blr	x22
Lloh0:
	adrp	x8, _SSL_TLSEXT_ERR_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_TLSEXT_ERR_OK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.4:
	ldr	x0, [x19, #16]
	bl	_OPENSSL_free
	ldrb	w0, [sp, #7]
	bl	_OPENSSL_malloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_12
; %bb.5:
	ldr	x1, [sp, #8]
	ldrb	w2, [sp, #7]
	bl	_memcpy
	ldrb	w8, [sp, #7]
	strb	w8, [x19, #8]
	mov	w0, #1
	str	w0, [x19]
	b	LBB0_11
LBB0_6:
	mov	w0, #1
	b	LBB0_11
LBB0_7:
Lloh3:
	adrp	x8, _SSL_AD_UNSUPPORTED_EXTENSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_AD_UNSUPPORTED_EXTENSION@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x8, _SSL_AD_HANDSHAKE_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SSL_AD_HANDSHAKE_FAILURE@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _SSL_F_TLS_PARSE_STOC_NPN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SSL_F_TLS_PARSE_STOC_NPN@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x8, _SSL_R_BAD_EXTENSION@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SSL_R_BAD_EXTENSION@GOTPAGEOFF]
LBB0_10:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_12:
Lloh12:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _SSL_F_TLS_PARSE_STOC_NPN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SSL_F_TLS_PARSE_STOC_NPN@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_UNSUPPORTED_EXTENSION,4,2 ; @SSL_AD_UNSUPPORTED_EXTENSION
	.comm	_SSL_F_TLS_PARSE_STOC_NPN,4,2   ; @SSL_F_TLS_PARSE_STOC_NPN
	.comm	_SSL_R_BAD_EXTENSION,4,2        ; @SSL_R_BAD_EXTENSION
	.comm	_SSL_TLSEXT_ERR_OK,8,3          ; @SSL_TLSEXT_ERR_OK
	.comm	_SSL_AD_HANDSHAKE_FAILURE,4,2   ; @SSL_AD_HANDSHAKE_FAILURE
	.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
