	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_construct_ctos_alpn        ## -- Begin function tls_construct_ctos_alpn
	.p2align	4, 0x90
_tls_construct_ctos_alpn:               ## @tls_construct_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, (%rdi)
	movq	_EXT_RETURN_NOT_SENT@GOTPCREL(%rip), %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_8
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_SSL_IS_FIRST_HANDSHAKE
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	_TLSEXT_TYPE_application_layer_protocol_negotiation@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_WPACKET_put_bytes_u16
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movq	%r14, %rdi
	callq	_WPACKET_start_sub_packet_u16
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	16(%r15), %rsi
	movl	8(%r15), %edx
	movq	%r14, %rdi
	callq	_WPACKET_sub_memcpy_u16
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_WPACKET_close
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	$1, (%r15)
	movq	_EXT_RETURN_SENT@GOTPCREL(%rip), %rbx
	jmp	LBB0_8
LBB0_6:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_CTOS_ALPN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_SSLfatal
	movq	_EXT_RETURN_FAIL@GOTPCREL(%rip), %rbx
LBB0_8:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXT_RETURN_NOT_SENT,4,2        ## @EXT_RETURN_NOT_SENT
	.comm	_TLSEXT_TYPE_application_layer_protocol_negotiation,4,2 ## @TLSEXT_TYPE_application_layer_protocol_negotiation
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_CTOS_ALPN,4,2 ## @SSL_F_TLS_CONSTRUCT_CTOS_ALPN
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_EXT_RETURN_FAIL,4,2            ## @EXT_RETURN_FAIL
	.comm	_EXT_RETURN_SENT,4,2            ## @EXT_RETURN_SENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_construct_ctos_alpn        ; -- Begin function tls_construct_ctos_alpn
	.p2align	2
_tls_construct_ctos_alpn:               ; @tls_construct_ctos_alpn
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	wzr, [x0]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	bl	_SSL_IS_FIRST_HANDSHAKE
	cbz	w0, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _TLSEXT_TYPE_application_layer_protocol_negotiation@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLSEXT_TYPE_application_layer_protocol_negotiation@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_WPACKET_put_bytes_u16
	cbz	w0, LBB0_8
; %bb.3:
	mov	x0, x20
	bl	_WPACKET_start_sub_packet_u16
	cbz	w0, LBB0_8
; %bb.4:
	ldr	x1, [x19, #16]
	ldr	w2, [x19, #8]
	mov	x0, x20
	bl	_WPACKET_sub_memcpy_u16
	cbz	w0, LBB0_8
; %bb.5:
	mov	x0, x20
	bl	_WPACKET_close
	cbz	w0, LBB0_8
; %bb.6:
	mov	w8, #1
	str	w8, [x19]
Lloh3:
	adrp	x8, _EXT_RETURN_SENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EXT_RETURN_SENT@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh5:
	adrp	x8, _EXT_RETURN_NOT_SENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EXT_RETURN_NOT_SENT@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh7:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _SSL_F_TLS_CONSTRUCT_CTOS_ALPN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_CTOS_ALPN@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
Lloh16:
	adrp	x8, _EXT_RETURN_FAIL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EXT_RETURN_FAIL@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EXT_RETURN_NOT_SENT,4,2        ; @EXT_RETURN_NOT_SENT
	.comm	_TLSEXT_TYPE_application_layer_protocol_negotiation,4,2 ; @TLSEXT_TYPE_application_layer_protocol_negotiation
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_CTOS_ALPN,4,2 ; @SSL_F_TLS_CONSTRUCT_CTOS_ALPN
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_EXT_RETURN_FAIL,4,2            ; @EXT_RETURN_FAIL
	.comm	_EXT_RETURN_SENT,4,2            ; @EXT_RETURN_SENT
.subsections_via_symbols
