	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_alpn
_verify_alpn:                           ## @verify_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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	$0, -36(%rbp)
	movl	$0, -40(%rbp)
	leaq	-48(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	callq	_SSL_get0_alpn_selected
	leaq	-56(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_SSL_get0_alpn_selected
	movq	_alpn_selected@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_OPENSSL_free
	movq	$0, (%rbx)
	movl	-36(%rbp), %ebx
	cmpl	-40(%rbp), %ebx
	jne	LBB0_1
## %bb.3:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	movq	-56(%rbp), %rsi
	movl	%ebx, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_5
LBB0_1:
	movq	_bio_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_2:
	xorl	%eax, %eax
	callq	_BIO_printf
LBB0_13:
	movq	_bio_stdout@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_BIO_printf
	movl	(%rbx), %edi
	movq	-48(%rbp), %rsi
	movl	-36(%rbp), %edx
	callq	_BIO_write
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_BIO_printf
	movl	(%rbx), %edi
	movq	-56(%rbp), %rsi
	movl	-40(%rbp), %edx
	callq	_BIO_write
	movl	(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_BIO_printf
	movl	(%rbx), %edi
	movq	_alpn_client@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_BIO_printf
	movq	%r14, %rdi
	callq	_SSL_get_SSL_CTX
	movq	_s_ctx2@GOTPCREL(%rip), %rcx
	movl	(%rbx), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.15:
	movq	_alpn_server2@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_alpn_server@GOTPCREL(%rip), %rax
LBB0_16:
	movq	(%rax), %rdx
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_BIO_printf
	movl	$-1, %r15d
LBB0_17:
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	-36(%rbp), %ebx
LBB0_6:
	movq	_alpn_expected@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.7:
	testq	%rdi, %rdi
	jne	LBB0_9
## %bb.8:
	movq	_bio_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_9:
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.10:
	callq	_strlen
	cmpl	%eax, %ebx
	jne	LBB0_12
## %bb.11:
	movq	-48(%rbp), %rdi
	movq	(%r12), %rsi
	movl	-36(%rbp), %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_17
LBB0_12:
	movq	_bio_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_BIO_printf
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_alpn_selected,8,3              ## @alpn_selected
	.comm	_bio_stdout,4,2                 ## @bio_stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ALPN selected protocols differ!\n"

	.comm	_alpn_expected,8,3              ## @alpn_expected
L_.str.1:                               ## @.str.1
	.asciz	"ALPN unexpectedly negotiated\n"

L_.str.2:                               ## @.str.2
	.asciz	"ALPN selected protocols not equal to expected protocol: %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"ALPN results: client: '"

L_.str.4:                               ## @.str.4
	.asciz	"', server: '"

L_.str.5:                               ## @.str.5
	.asciz	"'\n"

L_.str.6:                               ## @.str.6
	.asciz	"ALPN configured: client: '%s', server: '"

	.comm	_alpn_client,8,3                ## @alpn_client
	.comm	_s_ctx2,8,3                     ## @s_ctx2
L_.str.7:                               ## @.str.7
	.asciz	"%s'\n"

	.comm	_alpn_server2,8,3               ## @alpn_server2
	.comm	_alpn_server,8,3                ## @alpn_server
	.no_dead_strip	_verify_alpn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_alpn
_verify_alpn:                           ; @verify_alpn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	str	xzr, [sp, #8]
	add	x1, sp, #24
	add	x2, sp, #12
	bl	_SSL_get0_alpn_selected
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x0, x19
	bl	_SSL_get0_alpn_selected
Lloh0:
	adrp	x20, _alpn_selected@GOTPAGE
Lloh1:
	ldr	x20, [x20, _alpn_selected@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_OPENSSL_free
	str	xzr, [x20]
	ldp	w8, w20, [sp, #8]
Lloh2:
	adrp	x21, _bio_stdout@GOTPAGE
Lloh3:
	ldr	x21, [x21, _bio_stdout@GOTPAGEOFF]
	cmp	w20, w8
	b.ne	LBB0_3
; %bb.1:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x1, [sp, #16]
	mov	x2, x20
	bl	_memcmp
	cbz	x0, LBB0_6
LBB0_3:
	ldr	w0, [x21]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	bl	_BIO_printf
	ldr	w0, [x21]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_BIO_printf
	ldr	w0, [x21]
	ldr	x1, [sp, #24]
	ldr	w2, [sp, #12]
	bl	_BIO_write
	ldr	w0, [x21]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_BIO_printf
	ldr	w0, [x21]
	ldr	x1, [sp, #16]
	ldr	w2, [sp, #8]
	bl	_BIO_write
	ldr	w0, [x21]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_BIO_printf
	ldr	w0, [x21]
Lloh12:
	adrp	x8, _alpn_client@GOTPAGE
Lloh13:
	ldr	x8, [x8, _alpn_client@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_BIO_printf
	mov	x0, x19
	bl	_SSL_get_SSL_CTX
Lloh17:
	adrp	x8, _s_ctx2@GOTPAGE
Lloh18:
	ldr	x8, [x8, _s_ctx2@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x8]
Lloh20:
	adrp	x10, _alpn_server2@GOTPAGE
Lloh21:
	ldr	x10, [x10, _alpn_server2@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh22:
	adrp	x11, _alpn_server@GOTPAGE
Lloh23:
	ldr	x11, [x11, _alpn_server@GOTPAGEOFF]
	cmp	x0, x9
	csel	x9, x10, x11, eq
	ldr	x9, [x9]
	str	x9, [sp]
Lloh24:
	adrp	x1, l_.str.7@PAGE
Lloh25:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x8
	bl	_BIO_printf
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	ldr	w20, [sp, #12]
LBB0_7:
Lloh26:
	adrp	x22, _alpn_expected@GOTPAGE
Lloh27:
	ldr	x22, [x22, _alpn_expected@GOTPAGEOFF]
	ldr	x0, [x22]
	cbz	w20, LBB0_10
; %bb.8:
	cbnz	x0, LBB0_10
; %bb.9:
	ldr	w0, [x21]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_10:
	cbz	x0, LBB0_5
; %bb.11:
	bl	_strlen
	cmp	w20, w0
	b.ne	LBB0_13
; %bb.12:
	ldr	x0, [sp, #24]
	ldr	x1, [x22]
	ldr	w2, [sp, #12]
	bl	_memcmp
	cbz	x0, LBB0_5
LBB0_13:
	ldr	w0, [x21]
	ldr	x8, [x22]
	str	x8, [sp]
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_alpn_selected,8,3              ; @alpn_selected
	.comm	_bio_stdout,4,2                 ; @bio_stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ALPN selected protocols differ!\n"

	.comm	_alpn_expected,8,3              ; @alpn_expected
l_.str.1:                               ; @.str.1
	.asciz	"ALPN unexpectedly negotiated\n"

l_.str.2:                               ; @.str.2
	.asciz	"ALPN selected protocols not equal to expected protocol: %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"ALPN results: client: '"

l_.str.4:                               ; @.str.4
	.asciz	"', server: '"

l_.str.5:                               ; @.str.5
	.asciz	"'\n"

l_.str.6:                               ; @.str.6
	.asciz	"ALPN configured: client: '%s', server: '"

	.comm	_alpn_client,8,3                ; @alpn_client
	.comm	_s_ctx2,8,3                     ; @s_ctx2
l_.str.7:                               ; @.str.7
	.asciz	"%s'\n"

	.comm	_alpn_server2,8,3               ; @alpn_server2
	.comm	_alpn_server,8,3                ; @alpn_server
	.no_dead_strip	_verify_alpn
.subsections_via_symbols
