	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cb_server_alpn
_cb_server_alpn:                        ## @cb_server_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	%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	%r9, %rbx
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r14
	leaq	-56(%rbp), %rdi
	movq	%r9, %rsi
	callq	_next_protos_parse
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r13
	movq	-56(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	movq	%r12, %r8
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_SSL_select_next_proto
	movq	_OPENSSL_NPN_NEGOTIATED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movzbl	(%r15), %edi
	callq	_OPENSSL_malloc
	movq	_alpn_selected@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movq	(%r14), %rsi
	movzbl	(%r15), %edx
	movq	%rax, %rdi
	callq	_memcpy
	movq	(%rbx), %rax
	movq	%rax, (%r14)
	movq	_SSL_TLSEXT_ERR_OK@GOTPCREL(%rip), %rbx
	jmp	LBB0_4
LBB0_2:
	movq	_SSL_TLSEXT_ERR_NOACK@GOTPCREL(%rip), %rbx
LBB0_4:
	movq	%r13, %rdi
	callq	_OPENSSL_free
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_fprintf
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to parser ALPN server protocol string: %s\n"

	.comm	_OPENSSL_NPN_NEGOTIATED,8,3     ## @OPENSSL_NPN_NEGOTIATED
	.comm	_SSL_TLSEXT_ERR_NOACK,4,2       ## @SSL_TLSEXT_ERR_NOACK
	.comm	_alpn_selected,8,3              ## @alpn_selected
	.comm	_SSL_TLSEXT_ERR_OK,4,2          ## @SSL_TLSEXT_ERR_OK
	.no_dead_strip	_cb_server_alpn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cb_server_alpn
_cb_server_alpn:                        ; @cb_server_alpn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x5
	mov	x22, x4
	mov	x24, x3
	mov	x21, x2
	mov	x20, x1
	add	x0, sp, #8
	mov	x1, x5
	bl	_next_protos_parse
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x3, [sp, #8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x4, x24
	mov	x5, x22
	bl	_SSL_select_next_proto
Lloh0:
	adrp	x8, _OPENSSL_NPN_NEGOTIATED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPENSSL_NPN_NEGOTIATED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	ldrb	w0, [x21]
	bl	_OPENSSL_malloc
Lloh3:
	adrp	x22, _alpn_selected@GOTPAGE
Lloh4:
	ldr	x22, [x22, _alpn_selected@GOTPAGEOFF]
	str	x0, [x22]
	ldr	x1, [x20]
	ldrb	w2, [x21]
	bl	_memcpy
	ldr	x8, [x22]
	str	x8, [x20]
Lloh5:
	adrp	x20, _SSL_TLSEXT_ERR_OK@GOTPAGE
Lloh6:
	ldr	x20, [x20, _SSL_TLSEXT_ERR_OK@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x20, _SSL_TLSEXT_ERR_NOACK@GOTPAGE
Lloh8:
	ldr	x20, [x20, _SSL_TLSEXT_ERR_NOACK@GOTPAGEOFF]
LBB0_4:
	mov	x0, x19
	bl	_OPENSSL_free
	ldr	w0, [x20]
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_fprintf
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to parser ALPN server protocol string: %s\n"

	.comm	_OPENSSL_NPN_NEGOTIATED,8,3     ; @OPENSSL_NPN_NEGOTIATED
	.comm	_SSL_TLSEXT_ERR_NOACK,4,2       ; @SSL_TLSEXT_ERR_NOACK
	.comm	_alpn_selected,8,3              ; @alpn_selected
	.comm	_SSL_TLSEXT_ERR_OK,4,2          ; @SSL_TLSEXT_ERR_OK
	.no_dead_strip	_cb_server_alpn
.subsections_via_symbols
