	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prof_reset                     ## -- Begin function prof_reset
	.p2align	4, 0x90
_prof_reset:                            ## @prof_reset
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%edi, %edi
	cmpq	$32, %rsi
	setb	%dil
	callq	_assert
	movq	%r15, %rdi
	callq	_tsd_tsdn
	movq	_prof_dump_mtx@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	callq	_malloc_mutex_lock
	movq	%r15, %rdi
	callq	_tsd_tsdn
	movq	_tdatas_mtx@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	callq	_malloc_mutex_lock
	movq	_lg_prof_sample@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	xorl	%r12d, %r12d
	movq	_prof_tdata_reset_iter@GOTPCREL(%rip), %r13
	movq	_tdatas@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rcx
	callq	_tdata_tree_iter
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_tdata_tree_next
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_prof_tdata_destroy_locked
	testq	%r12, %r12
	jne	LBB0_1
LBB0_3:
	movq	%r15, %rdi
	callq	_tsd_tsdn
	movq	_tdatas_mtx@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	callq	_malloc_mutex_unlock
	movq	%r15, %rdi
	callq	_tsd_tsdn
	movq	_prof_dump_mtx@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_malloc_mutex_unlock            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_prof_dump_mtx,4,2              ## @prof_dump_mtx
	.comm	_tdatas_mtx,4,2                 ## @tdatas_mtx
	.comm	_lg_prof_sample,8,3             ## @lg_prof_sample
	.comm	_tdatas,4,2                     ## @tdatas
	.comm	_prof_tdata_reset_iter,4,2      ## @prof_tdata_reset_iter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prof_reset                     ; -- Begin function prof_reset
	.p2align	2
_prof_reset:                            ; @prof_reset
	.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
	mov	x20, x1
	mov	x19, x0
	cmp	x1, #32
	cset	w0, lo
	bl	_assert
	mov	x0, x19
	bl	_tsd_tsdn
Lloh0:
	adrp	x1, _prof_dump_mtx@GOTPAGE
Lloh1:
	ldr	x1, [x1, _prof_dump_mtx@GOTPAGEOFF]
	bl	_malloc_mutex_lock
	mov	x0, x19
	bl	_tsd_tsdn
Lloh2:
	adrp	x1, _tdatas_mtx@GOTPAGE
Lloh3:
	ldr	x1, [x1, _tdatas_mtx@GOTPAGEOFF]
	bl	_malloc_mutex_lock
	mov	x21, #0
Lloh4:
	adrp	x8, _lg_prof_sample@GOTPAGE
Lloh5:
	ldr	x8, [x8, _lg_prof_sample@GOTPAGEOFF]
Lloh6:
	str	x20, [x8]
Lloh7:
	adrp	x23, _prof_tdata_reset_iter@GOTPAGE
Lloh8:
	ldr	x23, [x23, _prof_tdata_reset_iter@GOTPAGEOFF]
Lloh9:
	adrp	x20, _tdatas@GOTPAGE
Lloh10:
	ldr	x20, [x20, _tdatas@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	bl	_tdata_tree_iter
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_tdata_tree_next
	mov	x21, x0
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_prof_tdata_destroy_locked
	cbnz	x21, LBB0_1
LBB0_3:
	mov	x0, x19
	bl	_tsd_tsdn
Lloh11:
	adrp	x1, _tdatas_mtx@GOTPAGE
Lloh12:
	ldr	x1, [x1, _tdatas_mtx@GOTPAGEOFF]
	bl	_malloc_mutex_unlock
	mov	x0, x19
	bl	_tsd_tsdn
Lloh13:
	adrp	x1, _prof_dump_mtx@GOTPAGE
Lloh14:
	ldr	x1, [x1, _prof_dump_mtx@GOTPAGEOFF]
	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
	b	_malloc_mutex_unlock
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_prof_dump_mtx,4,2              ; @prof_dump_mtx
	.comm	_tdatas_mtx,4,2                 ; @tdatas_mtx
	.comm	_lg_prof_sample,8,3             ; @lg_prof_sample
	.comm	_tdatas,4,2                     ; @tdatas
	.comm	_prof_tdata_reset_iter,4,2      ; @prof_tdata_reset_iter
.subsections_via_symbols
