	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prof_log_emit_traces
_prof_log_emit_traces:                  ## @prof_log_emit_traces
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_emitter_json_array_kv_begin
	movq	_log_bt_first@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	leaq	-80(%rbp), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_emitter_json_array_end
	movq	(%rbx), %r15
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_tsd_tsdn
	movl	%eax, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_idalloctm
	movq	%r15, %rbx
	testq	%r15, %r15
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r12, %rdi
	callq	_emitter_json_array_begin
	cmpq	$0, 8(%rbx)
	leaq	L_.str.1(%rip), %r14
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%rbx), %rax
	movl	(%rax,%r15,4), %ecx
	movl	$19, %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_malloc_snprintf
	movq	%r13, -96(%rbp)
	movq	_emitter_type_string@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	leaq	-96(%rbp), %rdx
	callq	_emitter_json_value
	incq	%r15
	cmpq	8(%rbx), %r15
	jb	LBB0_4
	jmp	LBB0_5
LBB0_6:
	movq	%r12, %rdi
	callq	_emitter_json_array_end
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stack_traces"

	.comm	_log_bt_first,8,3               ## @log_bt_first
L_.str.1:                               ## @.str.1
	.asciz	"%p"

	.comm	_emitter_type_string,4,2        ## @emitter_type_string
	.no_dead_strip	_prof_log_emit_traces
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prof_log_emit_traces
_prof_log_emit_traces:                  ; @prof_log_emit_traces
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_emitter_json_array_kv_begin
Lloh5:
	adrp	x8, _log_bt_first@GOTPAGE
Lloh6:
	ldr	x8, [x8, _log_bt_first@GOTPAGEOFF]
Lloh7:
	ldr	x22, [x8]
	cbz	x22, LBB0_6
; %bb.1:
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
	add	x23, sp, #21
Lloh10:
	adrp	x24, _emitter_type_string@GOTPAGE
Lloh11:
	ldr	x24, [x24, _emitter_type_string@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_emitter_json_array_end
	ldr	x25, [x22]
	mov	x0, x20
	bl	_tsd_tsdn
	mov	x1, x22
	mov	x2, #0
	mov	x3, #0
	mov	w4, #1
	mov	w5, #1
	bl	_idalloctm
	mov	x22, x25
	cbz	x25, LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x0, x19
	bl	_emitter_json_array_begin
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22, #16]
	ldr	w3, [x8, x25, lsl #2]
	add	x0, sp, #21
	mov	w1, #19
	mov	x2, x21
	bl	_malloc_snprintf
	str	x23, [sp, #8]
	ldr	w1, [x24]
	add	x2, sp, #8
	mov	x0, x19
	bl	_emitter_json_value
	add	x25, x25, #1
	ldr	x8, [x22, #8]
	cmp	x25, x8
	b.lo	LBB0_5
	b	LBB0_2
LBB0_6:
	mov	x0, x19
	bl	_emitter_json_array_end
	ldr	x8, [sp, #40]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stack_traces"

	.comm	_log_bt_first,8,3               ; @log_bt_first
l_.str.1:                               ; @.str.1
	.asciz	"%p"

	.comm	_emitter_type_string,4,2        ; @emitter_type_string
	.no_dead_strip	_prof_log_emit_traces
.subsections_via_symbols
