	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%esi, %esi
	callq	_wolfSSL_CTX_get_ex_data
	movq	_tls_global@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	callq	_os_free
LBB0_2:
	movq	%rbx, %rdi
	callq	_wolfSSL_CTX_free
	movq	_tls_ref_count@GOTPCREL(%rip), %rax
	decq	(%rax)
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_wolfSSL_Cleanup
	movq	(%r14), %rdi
	callq	_os_free
	movq	$0, (%r14)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tls_global,8,3                 ## @tls_global
	.comm	_tls_ref_count,8,3              ## @tls_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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w1, #0
	bl	_wolfSSL_CTX_get_ex_data
Lloh0:
	adrp	x20, _tls_global@GOTPAGE
Lloh1:
	ldr	x20, [x20, _tls_global@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	bl	_os_free
LBB0_2:
	mov	x0, x19
	bl	_wolfSSL_CTX_free
Lloh2:
	adrp	x8, _tls_ref_count@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tls_ref_count@GOTPAGEOFF]
	ldr	x9, [x8]
	subs	x9, x9, #1
	str	x9, [x8]
	b.ne	LBB0_4
; %bb.3:
	bl	_wolfSSL_Cleanup
	ldr	x0, [x20]
	bl	_os_free
	str	xzr, [x20]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_tls_global,8,3                 ; @tls_global
	.comm	_tls_ref_count,8,3              ; @tls_ref_count
.subsections_via_symbols
