	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_deinit                     ## -- Begin function tls_deinit
	.p2align	4, 0x90
_tls_deinit:                            ## @tls_deinit
	.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
	movq	%rdi, %r14
	movq	32(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_SSL_CTX_get_app_data
	movq	_tls_global@GOTPCREL(%rip), %r15
	cmpq	%rax, (%r15)
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	callq	_os_free
LBB0_2:
	cmpq	$0, (%r14)
	jle	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_SSL_CTX_flush_sessions
LBB0_4:
	movq	24(%r14), %rdi
	callq	_os_free
	movq	%rbx, %rdi
	callq	_SSL_CTX_free
	movq	_tls_openssl_ref_count@GOTPCREL(%rip), %rax
	decq	(%rax)
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_ENGINE_cleanup
	xorl	%eax, %eax
	callq	_CRYPTO_cleanup_all_ex_data
	xorl	%edi, %edi
	callq	_ERR_remove_thread_state
	xorl	%eax, %eax
	callq	_ERR_free_strings
	xorl	%eax, %eax
	callq	_EVP_cleanup
	movq	(%r15), %rax
	movq	16(%rax), %rdi
	callq	_os_free
	movq	(%r15), %rdi
	movq	$0, 16(%rdi)
	callq	_os_free
	movq	$0, (%r15)
LBB0_6:
	movq	8(%r14), %rdi
	callq	_os_free
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_os_free                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tls_global,8,3                 ## @tls_global
	.comm	_tls_openssl_ref_count,8,3      ## @tls_openssl_ref_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_deinit                     ; -- Begin function tls_deinit
	.p2align	2
_tls_deinit:                            ; @tls_deinit
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldr	x20, [x0, #32]
	mov	x0, x20
	bl	_SSL_CTX_get_app_data
Lloh0:
	adrp	x21, _tls_global@GOTPAGE
Lloh1:
	ldr	x21, [x21, _tls_global@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, x0
	b.eq	LBB0_2
; %bb.1:
	bl	_os_free
LBB0_2:
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.3:
	mov	x0, x20
	mov	w1, #0
	bl	_SSL_CTX_flush_sessions
LBB0_4:
	ldr	x0, [x19, #24]
	bl	_os_free
	mov	x0, x20
	bl	_SSL_CTX_free
Lloh2:
	adrp	x8, _tls_openssl_ref_count@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tls_openssl_ref_count@GOTPAGEOFF]
	ldr	x9, [x8]
	subs	x9, x9, #1
	str	x9, [x8]
	b.ne	LBB0_6
; %bb.5:
	bl	_ENGINE_cleanup
	bl	_CRYPTO_cleanup_all_ex_data
	mov	x0, #0
	bl	_ERR_remove_thread_state
	bl	_ERR_free_strings
	bl	_EVP_cleanup
	ldr	x8, [x21]
	ldr	x0, [x8, #16]
	bl	_os_free
	ldr	x0, [x21]
	str	xzr, [x0, #16]
	bl	_os_free
	str	xzr, [x21]
LBB0_6:
	ldr	x0, [x19, #8]
	bl	_os_free
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_os_free
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_tls_global,8,3                 ; @tls_global
	.comm	_tls_openssl_ref_count,8,3      ; @tls_openssl_ref_count
.subsections_via_symbols
