	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_construct_server_hello     ## -- Begin function tls_construct_server_hello
	.p2align	4, 0x90
_tls_construct_server_hello:            ## @tls_construct_server_hello
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_SSL_IS_TLS13
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	(%r15), %rax
	movq	_SSL_HRR_PENDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
LBB0_2:
	movq	_TLS1_2_VERSION@GOTPCREL(%rip), %rax
	movb	$1, %bl
LBB0_3:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_WPACKET_put_bytes_u16
	testl	%eax, %eax
	je	LBB0_25
## %bb.4:
	movq	(%r15), %rax
	movq	_SSL_HRR_PENDING@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_6
## %bb.5:
	movq	_hrrrandom@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	leaq	72(%r15), %rax
LBB0_7:
	movl	(%rax), %esi
	movq	_SSL3_RANDOM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_WPACKET_memcpy
	testl	%eax, %eax
	je	LBB0_25
## %bb.8:
	movq	48(%r15), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_11
LBB0_9:
	movq	$0, (%rax)
	jmp	LBB0_13
LBB0_10:
	leaq	8(%r15), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_11:
	movq	88(%r15), %rcx
	movq	_SSL_SESS_CACHE_SERVER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	jne	LBB0_13
## %bb.12:
	cmpq	$0, 40(%r15)
	je	LBB0_9
LBB0_13:
	testb	%bl, %bl
	je	LBB0_16
## %bb.14:
	movq	16(%r15), %rdx
	cmpq	$8, %rdx
	ja	LBB0_25
## %bb.15:
	movq	24(%r15), %rsi
	jmp	LBB0_19
LBB0_16:
	movq	(%rax), %rdx
	cmpq	$9, %rdx
	jae	LBB0_25
## %bb.17:
	movq	8(%rax), %rsi
	movq	64(%r15), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movl	(%rax), %ebx
	jmp	LBB0_20
LBB0_19:
	xorl	%ebx, %ebx
LBB0_20:
	movq	%r14, %rdi
	callq	_WPACKET_sub_memcpy_u8
	testl	%eax, %eax
	je	LBB0_25
## %bb.21:
	movq	80(%r15), %rax
	movl	56(%r15), %edi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rsi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_25
## %bb.22:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_WPACKET_put_bytes_u8
	testl	%eax, %eax
	je	LBB0_25
## %bb.23:
	movq	(%r15), %rax
	cmpq	(%r12), %rax
	jne	LBB0_27
## %bb.24:
	movq	_SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_25:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_SERVER_HELLO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_SSLfatal
	xorl	%ebx, %ebx
LBB0_26:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movq	%r15, %rdi
	callq	_SSL_IS_TLS13
	testq	%rax, %rax
	jne	LBB0_29
## %bb.28:
	movq	_SSL_EXT_TLS1_2_SERVER_HELLO@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_29:
	movq	_SSL_EXT_TLS1_3_SERVER_HELLO@GOTPCREL(%rip), %rax
LBB0_30:
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_tls_construct_extensions
	testl	%eax, %eax
	je	LBB0_26
## %bb.31:
	movq	(%r15), %rax
	cmpq	(%r12), %rax
	jne	LBB0_33
## %bb.32:
	movq	48(%r15), %rdi
	callq	_SSL_SESSION_free
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r15)
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_create_synthetic_message_hash
	jmp	LBB0_35
LBB0_33:
	movq	_SSL_VERIFY_PEER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 32(%r15)
	jne	LBB0_36
## %bb.34:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ssl3_digest_cached_records
LBB0_35:
	testl	%eax, %eax
	je	LBB0_26
LBB0_36:
	movl	$1, %ebx
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_HRR_PENDING,8,3            ## @SSL_HRR_PENDING
	.comm	_TLS1_2_VERSION,4,2             ## @TLS1_2_VERSION
	.comm	_hrrrandom,4,2                  ## @hrrrandom
	.comm	_SSL3_RANDOM_SIZE,4,2           ## @SSL3_RANDOM_SIZE
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_SERVER_HELLO,4,2 ## @SSL_F_TLS_CONSTRUCT_SERVER_HELLO
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_SSL_SESS_CACHE_SERVER,4,2      ## @SSL_SESS_CACHE_SERVER
	.comm	_SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST,4,2 ## @SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST
	.comm	_SSL_EXT_TLS1_3_SERVER_HELLO,4,2 ## @SSL_EXT_TLS1_3_SERVER_HELLO
	.comm	_SSL_EXT_TLS1_2_SERVER_HELLO,4,2 ## @SSL_EXT_TLS1_2_SERVER_HELLO
	.comm	_SSL_VERIFY_PEER,4,2            ## @SSL_VERIFY_PEER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_construct_server_hello     ; -- Begin function tls_construct_server_hello
	.p2align	2
_tls_construct_server_hello:            ; @tls_construct_server_hello
	.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_TLS13
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x8, x19
	ldr	x9, [x8], #8
Lloh0:
	adrp	x10, _SSL_HRR_PENDING@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SSL_HRR_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
LBB0_2:
Lloh3:
	adrp	x8, _TLS1_2_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TLS1_2_VERSION@GOTPAGEOFF]
	mov	w21, #1
LBB0_3:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_WPACKET_put_bytes_u16
	cbz	w0, LBB0_22
; %bb.4:
	mov	x8, x19
	ldr	x9, [x8], #72
Lloh5:
	adrp	x22, _SSL_HRR_PENDING@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SSL_HRR_PENDING@GOTPAGEOFF]
	ldr	x10, [x22]
Lloh7:
	adrp	x11, _hrrrandom@GOTPAGE
Lloh8:
	ldr	x11, [x11, _hrrrandom@GOTPAGEOFF]
	cmp	x9, x10
	csel	x8, x11, x8, eq
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _SSL3_RANDOM_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSL3_RANDOM_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_WPACKET_memcpy
	cbz	w0, LBB0_22
; %bb.5:
	ldr	x8, [x19, #48]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_8
LBB0_6:
	str	xzr, [x8]
	b	LBB0_10
LBB0_7:
	mov	w21, #0
	b	LBB0_3
LBB0_8:
	ldr	x9, [x19, #88]
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _SSL_SESS_CACHE_SERVER@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SSL_SESS_CACHE_SERVER@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_10
; %bb.9:
	ldr	x9, [x19, #40]
	cbz	x9, LBB0_6
LBB0_10:
	cbz	w21, LBB0_13
; %bb.11:
	ldr	x2, [x19, #16]
	cmp	x2, #8
	b.hi	LBB0_22
; %bb.12:
	mov	w21, #0
	ldr	x1, [x19, #24]
	b	LBB0_17
LBB0_13:
	ldr	x2, [x8]
	cmp	x2, #9
	b.hs	LBB0_22
; %bb.14:
	ldr	x1, [x8, #8]
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_16
; %bb.15:
	ldr	w21, [x8]
	b	LBB0_17
LBB0_16:
	mov	w21, #0
LBB0_17:
	mov	x0, x20
	bl	_WPACKET_sub_memcpy_u8
	cbz	w0, LBB0_22
; %bb.18:
	ldr	x8, [x19, #80]
	ldr	x8, [x8]
	ldr	w0, [x19, #56]
	add	x2, sp, #8
	mov	x1, x20
	blr	x8
	cbz	w0, LBB0_22
; %bb.19:
	mov	x0, x20
	mov	x1, x21
	bl	_WPACKET_put_bytes_u8
	cbz	w0, LBB0_22
; %bb.20:
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.21:
Lloh15:
	adrp	x8, _SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST@GOTPAGEOFF]
	b	LBB0_25
LBB0_22:
Lloh17:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _SSL_F_TLS_CONSTRUCT_SERVER_HELLO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_SERVER_HELLO@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w0, #0
LBB0_23:
	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_24:
	mov	x0, x19
	bl	_SSL_IS_TLS13
Lloh26:
	adrp	x8, _SSL_EXT_TLS1_3_SERVER_HELLO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SSL_EXT_TLS1_3_SERVER_HELLO@GOTPAGEOFF]
Lloh28:
	adrp	x9, _SSL_EXT_TLS1_2_SERVER_HELLO@GOTPAGE
Lloh29:
	ldr	x9, [x9, _SSL_EXT_TLS1_2_SERVER_HELLO@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
LBB0_25:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, #0
	mov	w4, #0
	bl	_tls_construct_extensions
	cbz	w0, LBB0_23
; %bb.26:
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_28
; %bb.27:
	ldr	x0, [x19, #48]
	bl	_SSL_SESSION_free
	stp	xzr, xzr, [x19, #40]
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_create_synthetic_message_hash
	cbnz	w0, LBB0_30
	b	LBB0_23
LBB0_28:
	ldr	w8, [x19, #32]
Lloh30:
	adrp	x9, _SSL_VERIFY_PEER@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SSL_VERIFY_PEER@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_30
; %bb.29:
	mov	x0, x19
	mov	w1, #0
	bl	_ssl3_digest_cached_records
	cbz	w0, LBB0_23
LBB0_30:
	mov	w0, #1
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_HRR_PENDING,8,3            ; @SSL_HRR_PENDING
	.comm	_TLS1_2_VERSION,4,2             ; @TLS1_2_VERSION
	.comm	_hrrrandom,4,2                  ; @hrrrandom
	.comm	_SSL3_RANDOM_SIZE,4,2           ; @SSL3_RANDOM_SIZE
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_SERVER_HELLO,4,2 ; @SSL_F_TLS_CONSTRUCT_SERVER_HELLO
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_SSL_SESS_CACHE_SERVER,4,2      ; @SSL_SESS_CACHE_SERVER
	.comm	_SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST,4,2 ; @SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST
	.comm	_SSL_EXT_TLS1_3_SERVER_HELLO,4,2 ; @SSL_EXT_TLS1_3_SERVER_HELLO
	.comm	_SSL_EXT_TLS1_2_SERVER_HELLO,4,2 ; @SSL_EXT_TLS1_2_SERVER_HELLO
	.comm	_SSL_VERIFY_PEER,4,2            ; @SSL_VERIFY_PEER
.subsections_via_symbols
