	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_session_lock
_remove_session_lock:                   ## @remove_session_lock
	.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
	xorl	%eax, %eax
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.1:
	movq	%rsi, %rbx
	cmpq	$0, (%rsi)
	je	LBB0_14
## %bb.2:
	movl	%edx, %r15d
	movq	%rdi, %r14
	testl	%edx, %edx
	je	LBB0_4
## %bb.3:
	movl	8(%r14), %edi
	callq	_CRYPTO_THREAD_write_lock
LBB0_4:
	movl	12(%r14), %edi
	movq	%rbx, %rsi
	callq	_lh_SSL_SESSION_retrieve
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	12(%r14), %edi
	movq	%r12, %rsi
	callq	_lh_SSL_SESSION_delete
	movq	%rax, %r13
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_SSL_SESSION_list_remove
	jmp	LBB0_7
LBB0_5:
	xorl	%r13d, %r13d
LBB0_7:
	movl	$1, 8(%rbx)
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.8:
	movl	8(%r14), %edi
	callq	_CRYPTO_THREAD_unlock
LBB0_9:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*%rax
LBB0_11:
	testq	%r12, %r12
	je	LBB0_12
## %bb.13:
	movq	%r13, %rdi
	callq	_SSL_SESSION_free
	movl	$1, %eax
	jmp	LBB0_14
LBB0_12:
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_remove_session_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_session_lock
_remove_session_lock:                   ; @remove_session_lock
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x1, LBB0_13
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1]
	cbz	x8, LBB0_13
; %bb.2:
	mov	x21, x2
	mov	x20, x0
	cbz	w2, LBB0_4
; %bb.3:
	ldr	w0, [x20, #8]
	bl	_CRYPTO_THREAD_write_lock
LBB0_4:
	ldr	w0, [x20, #12]
	mov	x1, x19
	bl	_lh_SSL_SESSION_retrieve
	mov	x22, x0
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x20, #12]
	mov	x1, x22
	bl	_lh_SSL_SESSION_delete
	mov	x23, x0
	mov	x0, x20
	mov	x1, x23
	bl	_SSL_SESSION_list_remove
	b	LBB0_7
LBB0_6:
	mov	x23, #0
LBB0_7:
	mov	w8, #1
	str	w8, [x19, #8]
	cbz	w21, LBB0_9
; %bb.8:
	ldr	w0, [x20, #8]
	bl	_CRYPTO_THREAD_unlock
LBB0_9:
	ldr	x8, [x20]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x20
	mov	x1, x19
	blr	x8
LBB0_11:
	cbz	x22, LBB0_13
; %bb.12:
	mov	x0, x23
	bl	_SSL_SESSION_free
	mov	w0, #1
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_remove_session_lock
.subsections_via_symbols
