	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quicly_free                    ## -- Begin function quicly_free
	.p2align	4, 0x90
_quicly_free:                           ## @quicly_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_probe_now
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_QUICLY_PROBE
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_destroy_all_streams
	leaq	96(%rbx), %rdi
	callq	_quicly_maxsender_dispose
	movq	88(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_quicly_maxsender_dispose
LBB0_2:
	movq	80(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	callq	_quicly_maxsender_dispose
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	72(%rdi), %rax
	movq	%rax, 64(%rbx)
	callq	_free
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	64(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_4
## %bb.6:
	leaq	56(%rbx), %rdi
	callq	_quicly_sentmap_dispose
	movq	_quicly_stream_t@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	48(%rbx), %esi
	callq	_kh_destroy
	leaq	36(%rbx), %r14
	leaq	40(%rbx), %r15
	leaq	44(%rbx), %rdi
	callq	_quicly_linklist_is_linked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	%r15, %rdi
	callq	_quicly_linklist_is_linked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	%r14, %rdi
	callq	_quicly_linklist_is_linked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	leaq	28(%rbx), %r14
	leaq	32(%rbx), %rdi
	callq	_quicly_linklist_is_linked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	%r14, %rdi
	callq	_quicly_linklist_is_linked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	leaq	24(%rbx), %rdi
	callq	_free_handshake_space
	leaq	20(%rbx), %rdi
	callq	_free_handshake_space
	leaq	16(%rbx), %rdi
	callq	_free_application_space
	leaq	12(%rbx), %rdi
	callq	_ptls_buffer_dispose
	movl	8(%rbx), %edi
	callq	_ptls_free
	movq	(%rbx), %rdi
	callq	_free
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FREE,4,2                       ## @FREE
	.comm	_quicly_stream_t,4,2            ## @quicly_stream_t
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quicly_free                    ; -- Begin function quicly_free
	.p2align	2
_quicly_free:                           ; @quicly_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	w20, [x8]
	bl	_probe_now
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_QUICLY_PROBE
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_destroy_all_streams
	add	x0, x19, #96
	bl	_quicly_maxsender_dispose
	ldr	x0, [x19, #88]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_quicly_maxsender_dispose
LBB0_2:
	ldr	x0, [x19, #80]
	cbz	x0, LBB0_5
; %bb.3:
	bl	_quicly_maxsender_dispose
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x0, #72]
	str	x8, [x19, #64]
	bl	_free
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #64]
	cbnz	x0, LBB0_4
; %bb.6:
	add	x0, x19, #56
	bl	_quicly_sentmap_dispose
Lloh3:
	adrp	x8, _quicly_stream_t@GOTPAGE
Lloh4:
	ldr	x8, [x8, _quicly_stream_t@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x19, #48]
	bl	_kh_destroy
	add	x20, x19, #36
	add	x21, x19, #40
	add	x0, x19, #44
	bl	_quicly_linklist_is_linked
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x21
	bl	_quicly_linklist_is_linked
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x20
	bl	_quicly_linklist_is_linked
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	add	x20, x19, #28
	add	x0, x19, #32
	bl	_quicly_linklist_is_linked
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x20
	bl	_quicly_linklist_is_linked
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	add	x0, x19, #24
	bl	_free_handshake_space
	add	x0, x19, #20
	bl	_free_handshake_space
	add	x0, x19, #16
	bl	_free_application_space
	add	x0, x19, #12
	bl	_ptls_buffer_dispose
	ldr	w0, [x19, #8]
	bl	_ptls_free
	ldr	x0, [x19]
	bl	_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	_free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FREE,4,2                       ; @FREE
	.comm	_quicly_stream_t,4,2            ; @quicly_stream_t
.subsections_via_symbols
