	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hist_browser__dump
_hist_browser__dump:                    ## @hist_browser__dump
	.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	%r12
	pushq	%rbx
	subq	$144, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	(%rdi), %ecx
	leaq	L_.str(%rip), %r14
	leaq	-112(%rbp), %r15
	movq	_F_OK@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$64, %esi
	movq	%r14, %rdx
	callq	_scnprintf
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_access
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %ecx
	incl	%ecx
	movl	%ecx, (%rbx)
	cmpl	$8192, %ecx                     ## imm = 0x2000
	jne	LBB0_1
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_ui_helpline__fpush
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	leaq	-112(%rbp), %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %r14
	incl	(%rbx)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_hist_browser__fprintf
	movq	%r14, %rdi
	callq	_fclose
	leaq	L_.str.4(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	-112(%rbp), %rsi
	xorl	%eax, %eax
	callq	_ui_helpline__fpush
	jmp	LBB0_8
LBB0_6:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-176(%rbp), %rsi
	movl	$64, %edx
	callq	_strerror_r
	leaq	L_.str.3(%rip), %rdi
	leaq	-112(%rbp), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_ui_helpline__fpush
LBB0_7:
	movl	$-1, %ebx
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	addq	$144, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"perf.hist.%d"

	.comm	_F_OK,4,2                       ## @F_OK
L_.str.1:                               ## @.str.1
	.asciz	"Too many perf.hist.N files, nothing written!"

L_.str.2:                               ## @.str.2
	.asciz	"w"

	.comm	_errno,4,2                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"Couldn't write to %s: %s"

L_.str.4:                               ## @.str.4
	.asciz	"%s written!"

	.no_dead_strip	_hist_browser__dump
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hist_browser__dump
_hist_browser__dump:                    ; @hist_browser__dump
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	w3, [x0]
Lloh3:
	adrp	x20, l_.str@PAGE
Lloh4:
	add	x20, x20, l_.str@PAGEOFF
Lloh5:
	adrp	x21, _F_OK@GOTPAGE
Lloh6:
	ldr	x21, [x21, _F_OK@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #88
	mov	w1, #64
	mov	x2, x20
	bl	_scnprintf
	ldr	w1, [x21]
	add	x0, sp, #88
	bl	_access
	cbnz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19]
	add	w3, w8, #1
	str	w3, [x19]
	cmp	w3, #2, lsl #12                 ; =8192
	b.ne	LBB0_1
; %bb.3:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_4:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x21, sp, #88
	add	x0, sp, #88
	bl	_fopen
	cbz	x0, LBB0_6
; %bb.5:
	mov	x20, x0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	_hist_browser__fprintf
	mov	x0, x20
	bl	_fclose
	str	x21, [sp]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_ui_helpline__fpush
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh13:
	adrp	x8, _errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	add	x1, sp, #24
	mov	w2, #64
	bl	_strerror_r
	stp	x21, x0, [sp]
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_7:
	bl	_ui_helpline__fpush
	mov	w0, #-1
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"perf.hist.%d"

	.comm	_F_OK,4,2                       ; @F_OK
l_.str.1:                               ; @.str.1
	.asciz	"Too many perf.hist.N files, nothing written!"

l_.str.2:                               ; @.str.2
	.asciz	"w"

	.comm	_errno,4,2                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"Couldn't write to %s: %s"

l_.str.4:                               ; @.str.4
	.asciz	"%s written!"

	.no_dead_strip	_hist_browser__dump
.subsections_via_symbols
