	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prof_dump_file
_prof_dump_file:                        ## @prof_dump_file
	.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	%r9, %r12
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	%esi, %edi
	movq	%rdx, %rsi
	callq	_prof_dump_open
	movq	_prof_dump_fd@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$1, %r14d
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.1:
	movq	%r15, %rdi
	callq	_tsd_tsdn
	movl	%eax, %edi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_prof_dump_header
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	32(%rbp), %r12
	movq	24(%rbp), %r13
	movq	%r15, %rdi
	callq	_tsd_tsdn
	movl	%eax, 4(%r13)
	movl	%ebx, (%r13)
	movq	_prof_gctx_dump_iter@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r13, %rcx
	callq	_gctx_tree_iter
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movl	%ebx, %edi
	callq	_prof_dump_maps
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movl	%ebx, %edi
	callq	_prof_dump_close
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%ebx, %edi
	callq	_prof_dump_close
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_prof_dump_fd,4,2               ## @prof_dump_fd
	.comm	_prof_gctx_dump_iter,4,2        ## @prof_gctx_dump_iter
	.no_dead_strip	_prof_dump_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prof_dump_file
_prof_dump_file:                        ; @prof_dump_file
	.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	x20, x7
	mov	x22, x5
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	mov	x1, x2
	bl	_prof_dump_open
Lloh0:
	adrp	x8, _prof_dump_fd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _prof_dump_fd@GOTPAGEOFF]
Lloh2:
	str	w0, [x8]
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
	mov	x0, x21
	bl	_tsd_tsdn
	mov	x1, x19
	mov	x2, x22
	bl	_prof_dump_header
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	x22, [x29, #16]
	mov	x0, x21
	bl	_tsd_tsdn
	stp	w19, w0, [x20]
Lloh3:
	adrp	x8, _prof_gctx_dump_iter@GOTPAGE
Lloh4:
	ldr	x8, [x8, _prof_gctx_dump_iter@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, #0
	mov	x3, x20
	bl	_gctx_tree_iter
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_prof_dump_maps
	cbz	x0, LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_prof_dump_close
LBB0_5:
	mov	w0, #1
LBB0_6:
	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
	ret
LBB0_7:
	mov	x0, x19
	bl	_prof_dump_close
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_6
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_prof_dump_fd,4,2               ; @prof_dump_fd
	.comm	_prof_gctx_dump_iter,4,2        ; @prof_gctx_dump_iter
	.no_dead_strip	_prof_dump_file
.subsections_via_symbols
