	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_get_prev_session           ## -- Begin function ssl_get_prev_session
	.p2align	4, 0x90
_ssl_get_prev_session:                  ## @ssl_get_prev_session
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	callq	_SSL_IS_TLS13
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	$1, 20(%r15)
	movq	_TLSEXT_IDX_psk_kex_modes@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_EXT_CLIENT_HELLO@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	8(%rbx), %ecx
	movq	%r15, %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_tls_parse_extension
	movl	$-1, %r14d
	testl	%eax, %eax
	je	LBB0_36
## %bb.2:
	movq	_TLSEXT_IDX_psk@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movl	8(%rbx), %ecx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_tls_parse_extension
	testl	%eax, %eax
	je	LBB0_36
## %bb.3:
	movq	24(%r15), %rax
	movq	%rax, -48(%rbp)
	movb	$1, %r12b
	jmp	LBB0_10
LBB0_4:
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_tls_get_ticket_from_client
                                        ## kill: def $eax killed $eax def $rax
	leal	-132(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_29
## %bb.5:
	cmpl	$131, %eax
	je	LBB0_7
## %bb.6:
	cmpl	$134, %eax
	jne	LBB0_9
LBB0_7:
	movl	(%rbx), %edx
	testl	%edx, %edx
	jle	LBB0_9
## %bb.8:
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	callq	_lookup_sess_in_cache
	movq	%rax, -48(%rbp)
	movl	$1, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_29:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL_GET_PREV_SESSION@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_30:
	movl	$-1, %r14d
	jmp	LBB0_31
LBB0_9:
	xorl	%ebx, %ebx
	movb	$1, %r12b
	movq	-48(%rbp), %rax
LBB0_10:
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_31
## %bb.11:
	movq	(%rax), %rcx
	cmpq	(%r15), %rcx
	jne	LBB0_31
## %bb.12:
	movq	8(%rax), %rdx
	cmpq	8(%r15), %rdx
	jne	LBB0_31
## %bb.13:
	movl	40(%rax), %edi
	movl	52(%r15), %esi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_14
LBB0_31:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_36
## %bb.32:
	callq	_SSL_SESSION_free
	movq	%r15, %rdi
	callq	_SSL_IS_TLS13
	testq	%rax, %rax
	je	LBB0_34
## %bb.33:
	movq	$0, 24(%r15)
LBB0_34:
	testl	%ebx, %ebx
	jne	LBB0_36
## %bb.35:
	movl	$1, 20(%r15)
LBB0_36:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_SSL_VERIFY_PEER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r15)
	je	LBB0_18
## %bb.15:
	cmpq	$0, 8(%r15)
	je	LBB0_16
LBB0_18:
	movq	-48(%rbp), %rax
	movq	16(%rax), %r13
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_time
	movq	-48(%rbp), %rcx
	subq	32(%rcx), %rax
	cmpq	%rax, %r13
	jge	LBB0_22
## %bb.19:
	movq	40(%r15), %rdi
	addq	$4, %rdi
	callq	_tsan_counter
	testb	%r12b, %r12b
	je	LBB0_21
## %bb.20:
	xorl	%ebx, %ebx
	jmp	LBB0_31
LBB0_22:
	movq	_SSL_SESS_FLAG_EXTMS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TLS1_FLAGS_RECEIVED_EXTMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	48(%r15), %eax
	testl	%edx, 24(%rcx)
	je	LBB0_25
## %bb.23:
	testl	%eax, %eax
	jne	LBB0_26
## %bb.24:
	movq	_SSL_AD_ILLEGAL_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL_GET_PREV_SESSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_INCONSISTENT_EXTMS@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL_GET_PREV_SESSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_SESSION_ID_CONTEXT_UNINITIALIZED@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_SSLfatal
	jmp	LBB0_30
LBB0_21:
	movq	40(%r15), %rdi
	movq	-48(%rbp), %rsi
	callq	_SSL_CTX_remove_session
	movl	$1, %ebx
	jmp	LBB0_31
LBB0_25:
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_31
LBB0_26:
	movq	%r15, %rdi
	callq	_SSL_IS_TLS13
	testq	%rax, %rax
	jne	LBB0_28
## %bb.27:
	movq	24(%r15), %rdi
	callq	_SSL_SESSION_free
	movq	-48(%rbp), %rax
	movq	%rax, 24(%r15)
LBB0_28:
	movq	40(%r15), %rdi
	callq	_tsan_counter
	movq	24(%r15), %rax
	movl	28(%rax), %eax
	movl	%eax, 32(%r15)
	movl	$1, %r14d
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.comm	_TLSEXT_IDX_psk_kex_modes,4,2   ## @TLSEXT_IDX_psk_kex_modes
	.comm	_SSL_EXT_CLIENT_HELLO,4,2       ## @SSL_EXT_CLIENT_HELLO
	.comm	_TLSEXT_IDX_psk,4,2             ## @TLSEXT_IDX_psk
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_SSL_GET_PREV_SESSION,4,2 ## @SSL_F_SSL_GET_PREV_SESSION
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_SSL_VERIFY_PEER,4,2            ## @SSL_VERIFY_PEER
	.comm	_SSL_R_SESSION_ID_CONTEXT_UNINITIALIZED,4,2 ## @SSL_R_SESSION_ID_CONTEXT_UNINITIALIZED
	.comm	_SSL_SESS_FLAG_EXTMS,4,2        ## @SSL_SESS_FLAG_EXTMS
	.comm	_TLS1_FLAGS_RECEIVED_EXTMS,4,2  ## @TLS1_FLAGS_RECEIVED_EXTMS
	.comm	_SSL_AD_ILLEGAL_PARAMETER,4,2   ## @SSL_AD_ILLEGAL_PARAMETER
	.comm	_SSL_R_INCONSISTENT_EXTMS,4,2   ## @SSL_R_INCONSISTENT_EXTMS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_get_prev_session           ; -- Begin function ssl_get_prev_session
	.p2align	2
_ssl_get_prev_session:                  ; @ssl_get_prev_session
	.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
	str	xzr, [sp, #8]
	bl	_SSL_IS_TLS13
	cbz	x0, LBB0_5
; %bb.1:
	mov	w8, #1
Lloh0:
	adrp	x9, _TLSEXT_IDX_psk_kex_modes@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TLSEXT_IDX_psk_kex_modes@GOTPAGEOFF]
	str	w8, [x19, #20]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x21, _SSL_EXT_CLIENT_HELLO@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SSL_EXT_CLIENT_HELLO@GOTPAGEOFF]
	ldr	w2, [x21]
	ldr	w3, [x20, #8]
	mov	x0, x19
	mov	x4, #0
	mov	w5, #0
	bl	_tls_parse_extension
	cbz	w0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _TLSEXT_IDX_psk@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TLSEXT_IDX_psk@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x21]
	ldr	w3, [x20, #8]
	mov	x0, x19
	mov	x4, #0
	mov	w5, #0
	bl	_tls_parse_extension
	cbz	w0, LBB0_4
; %bb.3:
	mov	w21, #0
	ldr	x0, [x19, #24]
	str	x0, [sp, #8]
	mov	w20, #1
	cbnz	x0, LBB0_13
	b	LBB0_16
LBB0_4:
	mov	w20, #-1
	b	LBB0_22
LBB0_5:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_tls_get_ticket_from_client
	sub	w8, w0, #132
	cmp	w8, #2
	b.lo	LBB0_10
; %bb.6:
	cmp	w0, #131
	b.eq	LBB0_8
; %bb.7:
	cmp	w0, #134
	b.ne	LBB0_12
LBB0_8:
	ldr	w2, [x20]
	cmp	w2, #1
	b.lt	LBB0_12
; %bb.9:
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_lookup_sess_in_cache
	mov	w20, #0
	str	x0, [sp, #8]
	mov	w21, #1
	cbnz	x0, LBB0_13
	b	LBB0_16
LBB0_10:
Lloh8:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _SSL_F_SSL_GET_PREV_SESSION@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSL_F_SSL_GET_PREV_SESSION@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w21, #0
LBB0_11:
	mov	w20, #-1
	b	LBB0_17
LBB0_12:
	mov	w21, #0
	mov	w20, #1
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_16
LBB0_13:
	ldr	x8, [x0]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.14:
	ldr	x2, [x0, #8]
	ldr	x8, [x19, #8]
	cmp	x2, x8
	b.ne	LBB0_16
; %bb.15:
	ldr	w0, [x0, #40]
	ldr	w1, [x19, #52]
	bl	_memcmp
	cbz	x0, LBB0_23
LBB0_16:
	mov	w20, #0
LBB0_17:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_22
; %bb.18:
	bl	_SSL_SESSION_free
	mov	x0, x19
	bl	_SSL_IS_TLS13
	cbz	x0, LBB0_20
; %bb.19:
	str	xzr, [x19, #24]
LBB0_20:
	cbnz	w21, LBB0_22
; %bb.21:
	mov	w8, #1
	str	w8, [x19, #20]
LBB0_22:
	mov	x0, x20
	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_23:
	ldr	w8, [x19, #16]
Lloh17:
	adrp	x9, _SSL_VERIFY_PEER@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SSL_VERIFY_PEER@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_25
; %bb.24:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_31
LBB0_25:
	ldr	x8, [sp, #8]
	ldr	x22, [x8, #16]
	mov	x0, #0
	bl	_time
	ldr	x8, [sp, #8]
	ldr	x9, [x8, #32]
	sub	x9, x0, x9
	cmp	x22, x9
	b.ge	LBB0_28
; %bb.26:
	ldr	x8, [x19, #40]
	add	x0, x8, #4
	bl	_tsan_counter
	tbz	w20, #0, LBB0_33
; %bb.27:
	mov	w20, #0
	mov	w21, #0
	b	LBB0_17
LBB0_28:
	ldr	w9, [x8, #24]
Lloh20:
	adrp	x8, _SSL_SESS_FLAG_EXTMS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SSL_SESS_FLAG_EXTMS@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x8]
	ldr	w8, [x19, #48]
Lloh23:
	adrp	x11, _TLS1_FLAGS_RECEIVED_EXTMS@GOTPAGE
Lloh24:
	ldr	x11, [x11, _TLS1_FLAGS_RECEIVED_EXTMS@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x11]
	and	w8, w11, w8
	tst	w10, w9
	b.eq	LBB0_34
; %bb.29:
	cbnz	w8, LBB0_35
; %bb.30:
Lloh26:
	adrp	x8, _SSL_AD_ILLEGAL_PARAMETER@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SSL_AD_ILLEGAL_PARAMETER@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _SSL_F_SSL_GET_PREV_SESSION@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SSL_F_SSL_GET_PREV_SESSION@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x8, _SSL_R_INCONSISTENT_EXTMS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SSL_R_INCONSISTENT_EXTMS@GOTPAGEOFF]
	b	LBB0_32
LBB0_31:
Lloh34:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _SSL_F_SSL_GET_PREV_SESSION@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SSL_F_SSL_GET_PREV_SESSION@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
Lloh40:
	adrp	x8, _SSL_R_SESSION_ID_CONTEXT_UNINITIALIZED@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SSL_R_SESSION_ID_CONTEXT_UNINITIALIZED@GOTPAGEOFF]
LBB0_32:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	b	LBB0_11
LBB0_33:
	ldr	x0, [x19, #40]
	ldr	x1, [sp, #8]
	bl	_SSL_CTX_remove_session
	mov	w20, #0
	mov	w21, #1
	b	LBB0_17
LBB0_34:
	cbnz	w8, LBB0_16
LBB0_35:
	mov	x0, x19
	bl	_SSL_IS_TLS13
	cbnz	x0, LBB0_37
; %bb.36:
	ldr	x0, [x19, #24]
	bl	_SSL_SESSION_free
	ldr	x8, [sp, #8]
	str	x8, [x19, #24]
LBB0_37:
	ldr	x0, [x19, #40]
	bl	_tsan_counter
	ldr	x8, [x19, #24]
	ldr	w8, [x8, #28]
	str	w8, [x19, #32]
	mov	w20, #1
	b	LBB0_22
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_TLSEXT_IDX_psk_kex_modes,4,2   ; @TLSEXT_IDX_psk_kex_modes
	.comm	_SSL_EXT_CLIENT_HELLO,4,2       ; @SSL_EXT_CLIENT_HELLO
	.comm	_TLSEXT_IDX_psk,4,2             ; @TLSEXT_IDX_psk
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_SSL_GET_PREV_SESSION,4,2 ; @SSL_F_SSL_GET_PREV_SESSION
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_SSL_VERIFY_PEER,4,2            ; @SSL_VERIFY_PEER
	.comm	_SSL_R_SESSION_ID_CONTEXT_UNINITIALIZED,4,2 ; @SSL_R_SESSION_ID_CONTEXT_UNINITIALIZED
	.comm	_SSL_SESS_FLAG_EXTMS,4,2        ; @SSL_SESS_FLAG_EXTMS
	.comm	_TLS1_FLAGS_RECEIVED_EXTMS,4,2  ; @TLS1_FLAGS_RECEIVED_EXTMS
	.comm	_SSL_AD_ILLEGAL_PARAMETER,4,2   ; @SSL_AD_ILLEGAL_PARAMETER
	.comm	_SSL_R_INCONSISTENT_EXTMS,4,2   ; @SSL_R_INCONSISTENT_EXTMS
.subsections_via_symbols
