	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ptls_free                      ## -- Begin function ptls_free
	.p2align	4, 0x90
_ptls_free:                             ## @ptls_free
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_PTLS_PROBE0
	leaq	104(%rbx), %r14
	leaq	108(%rbx), %rdi
	callq	_ptls_buffer_dispose
	movq	%r14, %rdi
	callq	_ptls_buffer_dispose
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_free_exporter_master_secret
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_free_exporter_master_secret
	cmpq	$0, 96(%rbx)
	je	LBB0_2
## %bb.1:
	leaq	96(%rbx), %rdi
	movq	48(%rbx), %rsi
	callq	_free_esni_secret
LBB0_2:
	movq	88(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_key_schedule_free
LBB0_4:
	movq	80(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_ptls_aead_free
LBB0_6:
	movq	72(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_ptls_aead_free
LBB0_8:
	movq	64(%rbx), %rdi
	callq	_free
	movq	56(%rbx), %rdi
	callq	_free
	cmpq	$0, 48(%rbx)
	jne	LBB0_13
## %bb.9:
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	40(%rbx), %r14
	movq	(%rax), %r15
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_ptls_iovec_init
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	*%r15
LBB0_11:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_free
LBB0_13:
	movq	24(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_15
## %bb.14:
	movl	16(%rbx), %r14d
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_ptls_iovec_init
	movl	%eax, %r15d
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_ptls_iovec_init
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	*%r12
LBB0_15:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:
	movq	_PTLS_MAX_DIGEST_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ptls_clear_memory
	movq	8(%rbx), %rdi
	callq	_free
LBB0_17:
	movl	(%rbx), %edi
	movl	$-1, %esi
	callq	_update_open_count
	movq	%rbx, %rdi
	movl	$112, %esi
	callq	_ptls_clear_memory
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FREE,4,2                       ## @FREE
	.comm	_PTLS_MAX_DIGEST_SIZE,4,2       ## @PTLS_MAX_DIGEST_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ptls_free                      ; -- Begin function ptls_free
	.p2align	2
_ptls_free:                             ; @ptls_free
	.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
Lloh0:
	adrp	x8, _FREE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FREE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_PTLS_PROBE0
	add	x20, x19, #104
	add	x0, x19, #108
	bl	_ptls_buffer_dispose
	mov	x0, x20
	bl	_ptls_buffer_dispose
	mov	x0, x19
	mov	w1, #1
	bl	_free_exporter_master_secret
	mov	x0, x19
	mov	w1, #0
	bl	_free_exporter_master_secret
	mov	x0, x19
	ldr	x8, [x0, #96]!
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x1, [x19, #48]
	bl	_free_esni_secret
LBB0_2:
	ldr	x0, [x19, #88]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_key_schedule_free
LBB0_4:
	ldr	x0, [x19, #80]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_ptls_aead_free
LBB0_6:
	ldr	x0, [x19, #72]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_ptls_aead_free
LBB0_8:
	ldr	x0, [x19, #64]
	bl	_free
	ldr	x0, [x19, #56]
	bl	_free
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_13
; %bb.9:
	mov	x20, x19
	ldr	x8, [x20, #40]!
	cbz	x8, LBB0_11
; %bb.10:
	ldr	x21, [x8]
	mov	x0, #0
	mov	w1, #0
	bl	_ptls_iovec_init
	mov	x3, x0
	mov	x0, x20
	mov	w1, #1
	mov	x2, #0
	blr	x21
LBB0_11:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_free
LBB0_13:
	ldr	x22, [x19, #24]
	cbz	x22, LBB0_15
; %bb.14:
	ldr	w20, [x19, #16]
	mov	x0, #0
	mov	w1, #0
	bl	_ptls_iovec_init
	mov	x21, x0
	mov	x0, #0
	mov	w1, #0
	bl	_ptls_iovec_init
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	blr	x22
LBB0_15:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_17
; %bb.16:
Lloh3:
	adrp	x8, _PTLS_MAX_DIGEST_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PTLS_MAX_DIGEST_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ptls_clear_memory
	ldr	x0, [x19, #8]
	bl	_free
LBB0_17:
	ldr	w0, [x19]
	mov	w1, #-1
	bl	_update_open_count
	mov	x0, x19
	mov	w1, #112
	bl	_ptls_clear_memory
	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	_free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FREE,4,2                       ; @FREE
	.comm	_PTLS_MAX_DIGEST_SIZE,4,2       ; @PTLS_MAX_DIGEST_SIZE
.subsections_via_symbols
