	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prof_tdata_merge_iter
_prof_tdata_merge_iter:                 ## @prof_tdata_merge_iter
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	(%rdx), %edi
	movl	4(%rsi), %esi
	callq	_malloc_mutex_lock
	cmpl	$0, 44(%rbx)
	je	LBB0_1
## %bb.6:
	movl	$0, (%rbx)
	jmp	LBB0_7
LBB0_1:
	movl	$1, (%rbx)
	leaq	8(%rbx), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	$0, -56(%rbp)
	leaq	40(%rbx), %r15
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_ckh_iter
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	leaq	-56(%rbp), %r12
	leaq	-48(%rbp), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_prof_tctx_merge_tdata
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	movq	%r13, %rcx
	callq	_ckh_iter
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	movl	32(%rbx), %eax
	addl	%eax, 16(%r14)
	movl	24(%rbx), %eax
	addl	%eax, 12(%r14)
	movq	_opt_prof_accum@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.5:
	movl	16(%rbx), %eax
	addl	%eax, 8(%r14)
	movl	8(%rbx), %eax
	addl	%eax, 4(%r14)
LBB0_7:
	movl	(%r14), %edi
	movl	4(%rbx), %esi
	callq	_malloc_mutex_unlock
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_opt_prof_accum,8,3             ## @opt_prof_accum
	.no_dead_strip	_prof_tdata_merge_iter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prof_tdata_merge_iter
_prof_tdata_merge_iter:                 ; @prof_tdata_merge_iter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
	ldr	w0, [x2]
	ldr	w1, [x1, #4]
	bl	_malloc_mutex_lock
	ldr	w8, [x19, #44]
	cbz	w8, LBB0_2
; %bb.1:
	str	wzr, [x19]
	b	LBB0_7
LBB0_2:
	mov	w8, #1
	mov	x22, x19
	str	w8, [x22], #40
	add	x21, x19, #8
	mov	x0, x21
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	str	xzr, [sp, #8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x3, sp
	mov	x0, x22
	mov	x2, #0
	bl	_ckh_iter
	cbnz	w0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20]
	ldr	x1, [sp]
	mov	x2, x19
	bl	_prof_tctx_merge_tdata
	b	LBB0_3
LBB0_5:
	ldur	q0, [x19, #24]
	ldur	d1, [x20, #12]
	xtn.2s	v0, v0
	add.2s	v0, v1, v0
	stur	d0, [x20, #12]
Lloh0:
	adrp	x8, _opt_prof_accum@GOTPAGE
Lloh1:
	ldr	x8, [x8, _opt_prof_accum@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	q0, [x21]
	ldur	d1, [x20, #4]
	xtn.2s	v0, v0
	add.2s	v0, v1, v0
	stur	d0, [x20, #4]
LBB0_7:
	ldr	w0, [x20]
	ldr	w1, [x19, #4]
	bl	_malloc_mutex_unlock
	mov	x0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_opt_prof_accum,8,3             ; @opt_prof_accum
	.no_dead_strip	_prof_tdata_merge_iter
.subsections_via_symbols
