	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_handle_alpn                ## -- Begin function tls_handle_alpn
	.p2align	4, 0x90
_tls_handle_alpn:                       ## @tls_handle_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	$0, -32(%rbp)
	movb	$0, -17(%rbp)
	movq	64(%rdi), %rdx
	movq	(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	56(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.2:
	movl	48(%rbx), %r8d
	movl	8(%rdx), %r9d
	leaq	-32(%rbp), %rsi
	leaq	-17(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*%rax
	movq	_SSL_TLSEXT_ERR_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.3:
	movq	40(%rbx), %rdi
	callq	_OPENSSL_free
	movq	-32(%rbp), %rdi
	movzbl	-17(%rbp), %esi
	callq	_OPENSSL_memdup
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movb	-17(%rbp), %al
	movb	%al, 24(%rbx)
	movq	$0, 32(%rbx)
	movq	8(%rbx), %rcx
	movq	8(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.7:
	cmpb	(%rcx), %al
	jne	LBB0_10
## %bb.8:
	movq	-32(%rbp), %rdi
	movzbl	%al, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_9
LBB0_10:
	movq	$0, (%rbx)
	movl	$1, %r14d
	cmpl	$0, 16(%rbx)
	jne	LBB0_18
## %bb.11:
	movq	8(%rbx), %rax
	xorl	%edi, %edi
	cmpq	$0, 8(%rax)
	sete	%dil
	callq	_ossl_assert
	testl	%eax, %eax
	je	LBB0_4
## %bb.12:
	movq	-32(%rbp), %rdi
	movzbl	-17(%rbp), %esi
	callq	_OPENSSL_memdup
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.13:
	movb	-17(%rbp), %al
	movb	%al, (%rcx)
	jmp	LBB0_18
LBB0_14:
	movq	_SSL_TLSEXT_ERR_NOACK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
LBB0_16:
	movq	8(%rbx), %rax
	movl	$1, %r14d
	cmpq	$0, 8(%rax)
	je	LBB0_18
## %bb.17:
	movq	$0, (%rbx)
	jmp	LBB0_18
LBB0_4:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_HANDLE_ALPN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_15:
	movq	_SSL_AD_NO_APPLICATION_PROTOCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_HANDLE_ALPN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_NO_APPLICATION_PROTOCOL@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_SSLfatal
	xorl	%r14d, %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movl	$1, %r14d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_TLSEXT_ERR_OK,4,2          ## @SSL_TLSEXT_ERR_OK
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_HANDLE_ALPN,4,2      ## @SSL_F_TLS_HANDLE_ALPN
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_SSL_TLSEXT_ERR_NOACK,4,2       ## @SSL_TLSEXT_ERR_NOACK
	.comm	_SSL_AD_NO_APPLICATION_PROTOCOL,4,2 ## @SSL_AD_NO_APPLICATION_PROTOCOL
	.comm	_SSL_R_NO_APPLICATION_PROTOCOL,4,2 ## @SSL_R_NO_APPLICATION_PROTOCOL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_handle_alpn                ; -- Begin function tls_handle_alpn
	.p2align	2
_tls_handle_alpn:                       ; @tls_handle_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	x19, x0
	str	xzr, [sp, #8]
	strb	wzr, [sp, #7]
	ldr	x9, [x0, #64]
	ldr	x8, [x9]
	cbz	x8, LBB0_12
; %bb.1:
	ldr	x3, [x19, #56]
	cbz	x3, LBB0_12
; %bb.2:
	ldr	w4, [x19, #48]
	ldr	w5, [x9, #8]
	add	x1, sp, #8
	add	x2, sp, #7
	mov	x0, x19
	blr	x8
Lloh0:
	adrp	x8, _SSL_TLSEXT_ERR_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_TLSEXT_ERR_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.3:
	ldr	x0, [x19, #40]
	bl	_OPENSSL_free
	ldr	x0, [sp, #8]
	ldrb	w1, [sp, #7]
	bl	_OPENSSL_memdup
	str	x0, [x19, #40]
	cbz	x0, LBB0_16
; %bb.4:
	ldrb	w2, [sp, #7]
	strb	w2, [x19, #24]
	str	xzr, [x19, #32]
	ldr	x8, [x19, #8]
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_7
; %bb.5:
	ldrb	w8, [x8]
	cmp	w2, w8
	b.ne	LBB0_7
; %bb.6:
	ldr	x0, [sp, #8]
	bl	_memcmp
	cbz	x0, LBB0_14
LBB0_7:
	str	xzr, [x19]
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_14
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_ossl_assert
	cbz	w0, LBB0_16
; %bb.9:
	ldr	x0, [sp, #8]
	ldrb	w1, [sp, #7]
	bl	_OPENSSL_memdup
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
	cbz	x0, LBB0_16
; %bb.10:
	ldrb	w9, [sp, #7]
	strb	w9, [x8]
	b	LBB0_14
LBB0_11:
Lloh3:
	adrp	x8, _SSL_TLSEXT_ERR_NOACK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_TLSEXT_ERR_NOACK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_17
LBB0_12:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_14
; %bb.13:
	str	xzr, [x19]
LBB0_14:
	mov	w0, #1
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_16:
Lloh6:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _SSL_F_TLS_HANDLE_ALPN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSL_F_TLS_HANDLE_ALPN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh14:
	adrp	x8, _SSL_AD_NO_APPLICATION_PROTOCOL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SSL_AD_NO_APPLICATION_PROTOCOL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _SSL_F_TLS_HANDLE_ALPN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SSL_F_TLS_HANDLE_ALPN@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x8, _SSL_R_NO_APPLICATION_PROTOCOL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SSL_R_NO_APPLICATION_PROTOCOL@GOTPAGEOFF]
LBB0_18:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w0, #0
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_TLSEXT_ERR_OK,4,2          ; @SSL_TLSEXT_ERR_OK
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_HANDLE_ALPN,4,2      ; @SSL_F_TLS_HANDLE_ALPN
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_SSL_TLSEXT_ERR_NOACK,4,2       ; @SSL_TLSEXT_ERR_NOACK
	.comm	_SSL_AD_NO_APPLICATION_PROTOCOL,4,2 ; @SSL_AD_NO_APPLICATION_PROTOCOL
	.comm	_SSL_R_NO_APPLICATION_PROTOCOL,4,2 ; @SSL_R_NO_APPLICATION_PROTOCOL
.subsections_via_symbols
