	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lookup_sess_in_cache           ## -- Begin function lookup_sess_in_cache
	.p2align	4, 0x90
_lookup_sess_in_cache:                  ## @lookup_sess_in_cache
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	_SSL_SESS_CACHE_NO_INTERNAL_LOOKUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
LBB0_4:
	movq	16(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.7:
	movl	$1, -48(%rbp)
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	*%rbx
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	(%r12), %rdi
	addq	$4, %rdi
	callq	_tsan_counter
	cmpl	$0, -48(%rbp)
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_SSL_SESSION_up_ref
LBB0_10:
	movq	(%r12), %rdi
	movq	_SSL_SESS_CACHE_NO_INTERNAL_STORE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	jne	LBB0_12
## %bb.11:
	movq	%rbx, %rsi
	callq	_SSL_CTX_add_session
	jmp	LBB0_12
LBB0_1:
	movl	8(%r12), %eax
	movl	%eax, -36(%rbp)
	movq	_SSL_MAX_SSL_SESSION_ID_LENGTH@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%r14, (%rax)
	setae	%dil
	callq	_ossl_assert
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	movq	%r14, -48(%rbp)
	movq	(%r12), %rax
	movl	24(%rax), %edi
	callq	_CRYPTO_THREAD_read_lock
	movq	(%r12), %rax
	movl	28(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_lh_SSL_SESSION_retrieve
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_SSL_SESSION_up_ref
	movq	(%r12), %rax
	movl	24(%rax), %edi
	callq	_CRYPTO_THREAD_unlock
	jmp	LBB0_12
LBB0_5:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%r12), %rax
	movl	24(%rax), %edi
	callq	_CRYPTO_THREAD_unlock
	movq	(%r12), %rdi
	addq	$8, %rdi
	callq	_tsan_counter
	movq	(%r12), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_SESS_CACHE_NO_INTERNAL_LOOKUP,4,2 ## @SSL_SESS_CACHE_NO_INTERNAL_LOOKUP
	.comm	_SSL_MAX_SSL_SESSION_ID_LENGTH,8,3 ## @SSL_MAX_SSL_SESSION_ID_LENGTH
	.comm	_SSL_SESS_CACHE_NO_INTERNAL_STORE,4,2 ## @SSL_SESS_CACHE_NO_INTERNAL_STORE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lookup_sess_in_cache           ; -- Begin function lookup_sess_in_cache
	.p2align	2
_lookup_sess_in_cache:                  ; @lookup_sess_in_cache
	.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, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _SSL_SESS_CACHE_NO_INTERNAL_LOOKUP@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SSL_SESS_CACHE_NO_INTERNAL_LOOKUP@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.1:
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_11
LBB0_2:
	mov	w9, #1
	str	w9, [sp]
	mov	x3, sp
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	blr	x8
	mov	x22, x0
	cbz	x0, LBB0_12
; %bb.3:
	ldr	x8, [x19]
	add	x0, x8, #4
	bl	_tsan_counter
	ldr	w8, [sp]
	cbz	w8, LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_SSL_SESSION_up_ref
LBB0_5:
	ldr	x0, [x19]
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _SSL_SESS_CACHE_NO_INTERNAL_STORE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SSL_SESS_CACHE_NO_INTERNAL_STORE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.6:
	mov	x1, x22
	bl	_SSL_CTX_add_session
	b	LBB0_12
LBB0_7:
	ldr	w8, [x19, #8]
	str	w8, [sp, #12]
Lloh6:
	adrp	x8, _SSL_MAX_SSL_SESSION_ID_LENGTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_MAX_SSL_SESSION_ID_LENGTH@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x20
	cset	w0, hs
	bl	_ossl_assert
	cbz	w0, LBB0_11
; %bb.8:
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	str	x20, [sp]
	ldr	x8, [x19]
	ldr	w0, [x8, #24]
	bl	_CRYPTO_THREAD_read_lock
	ldr	x8, [x19]
	ldr	w0, [x8, #28]
	mov	x1, sp
	bl	_lh_SSL_SESSION_retrieve
	cbz	x0, LBB0_10
; %bb.9:
	mov	x22, x0
	bl	_SSL_SESSION_up_ref
	ldr	x8, [x19]
	ldr	w0, [x8, #24]
	bl	_CRYPTO_THREAD_unlock
	b	LBB0_12
LBB0_10:
	ldr	x8, [x19]
	ldr	w0, [x8, #24]
	bl	_CRYPTO_THREAD_unlock
	ldr	x8, [x19]
	add	x0, x8, #8
	bl	_tsan_counter
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_2
LBB0_11:
	mov	x22, #0
LBB0_12:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_SESS_CACHE_NO_INTERNAL_LOOKUP,4,2 ; @SSL_SESS_CACHE_NO_INTERNAL_LOOKUP
	.comm	_SSL_MAX_SSL_SESSION_ID_LENGTH,8,3 ; @SSL_MAX_SSL_SESSION_ID_LENGTH
	.comm	_SSL_SESS_CACHE_NO_INTERNAL_STORE,4,2 ; @SSL_SESS_CACHE_NO_INTERNAL_STORE
.subsections_via_symbols
