	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thd_start
_thd_start:                             ## @thd_start
	.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	_NALLOCS_PER_THREAD@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_9
## %bb.1:
	movl	(%rdi), %r15d
	movq	_DUMP_INTERVAL@GOTPCREL(%rip), %rbx
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_prof_bt_count
	movq	%rax, %rbx
	movl	%r14d, %eax
	subl	%r12d, %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	%rax, %rdi
	movq	%rbx, %rsi
	leaq	L_.str.2(%rip), %rdx
	callq	_assert_zu_le
	movq	_NALLOCS_PER_THREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_DUMP_INTERVAL@GOTPCREL(%rip), %rbx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %r12d
	movl	%r13d, %r14d
	cmpl	%eax, %r13d
	jae	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_alloc_from_permuted_backtrace
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_dallocx
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	(%rbx)
	testl	%edx, %edx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_mallctl
	movl	%eax, %edi
	xorl	%esi, %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_assert_d_eq
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %eax
	xorl	%edx, %edx
	movq	_BT_COUNT_CHECK_INTERVAL@GOTPCREL(%rip), %rcx
	divl	(%rcx)
	leal	1(%r14), %r13d
	testl	%edx, %edx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_NALLOCS_PER_THREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r13d
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %r14d
	jmp	LBB0_8
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NALLOCS_PER_THREAD,4,2         ## @NALLOCS_PER_THREAD
	.comm	_DUMP_INTERVAL,4,2              ## @DUMP_INTERVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"prof.dump"

L_.str.1:                               ## @.str.1
	.asciz	"Unexpected error while dumping heap profile"

	.comm	_BT_COUNT_CHECK_INTERVAL,4,2    ## @BT_COUNT_CHECK_INTERVAL
L_.str.2:                               ## @.str.2
	.asciz	"Expected larger backtrace count increase"

	.no_dead_strip	_thd_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thd_start
_thd_start:                             ; @thd_start
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x25, _NALLOCS_PER_THREAD@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NALLOCS_PER_THREAD@GOTPAGEOFF]
	ldr	w8, [x25]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x28, #0
	mov	w23, #0
	mov	w20, #0
	ldr	w19, [x0]
Lloh2:
	adrp	x26, _DUMP_INTERVAL@GOTPAGE
Lloh3:
	ldr	x26, [x26, _DUMP_INTERVAL@GOTPAGEOFF]
Lloh4:
	adrp	x27, _BT_COUNT_CHECK_INTERVAL@GOTPAGE
Lloh5:
	ldr	x27, [x27, _BT_COUNT_CHECK_INTERVAL@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str.2@PAGE
Lloh7:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x21
	cmp	w21, w8
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_alloc_from_permuted_backtrace
	mov	w1, #0
	bl	_dallocx
	ldr	w8, [x26]
	udiv	w9, w23, w8
	msub	w8, w9, w8, w23
	cbnz	w8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_mallctl
	mov	w1, #0
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_assert_d_eq
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x27]
	udiv	w9, w23, w8
	msub	w9, w9, w8, w23
	add	w21, w23, #1
	ldr	w8, [x25]
	cmp	w9, #0
	ccmp	w21, w8, #4, ne
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_prof_bt_count
	mov	x24, x0
	sub	w8, w23, w20
	add	x0, x28, x8
	mov	x1, x24
	mov	x2, x22
	bl	_assert_zu_le
	ldr	w8, [x25]
	mov	x28, x24
	mov	x20, x23
	b	LBB0_2
LBB0_7:
	mov	x0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NALLOCS_PER_THREAD,4,2         ; @NALLOCS_PER_THREAD
	.comm	_DUMP_INTERVAL,4,2              ; @DUMP_INTERVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"prof.dump"

l_.str.1:                               ; @.str.1
	.asciz	"Unexpected error while dumping heap profile"

	.comm	_BT_COUNT_CHECK_INTERVAL,4,2    ; @BT_COUNT_CHECK_INTERVAL
l_.str.2:                               ; @.str.2
	.asciz	"Expected larger backtrace count increase"

	.no_dead_strip	_thd_start
.subsections_via_symbols
