	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dumpsum                        ## -- Begin function dumpsum
	.p2align	4, 0x90
_dumpsum:                               ## @dumpsum
	.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	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_err
LBB0_2:
	movq	_gmonhdr@GOTPCREL(%rip), %rdi
	movl	$12, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fwrite
	cmpl	$1, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_err
LBB0_4:
	movq	_samples@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_histcounter_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_nsamples@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rcx
	callq	_fwrite
	cmpl	(%r15), %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_err
LBB0_6:
	movq	_nl@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_npe@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r13
	jae	LBB0_14
## %bb.7:
	leaq	-56(%rbp), %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_npe@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	$8, %r13
	cmpq	%rax, %r13
	jae	LBB0_14
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	(%r13), %r12
	testq	%r12, %r12
	jne	LBB0_9
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	24(%r12), %r12
	testq	%r12, %r12
	je	LBB0_12
LBB0_9:                                 ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	8(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	(%r12), %eax
	movl	%eax, -56(%rbp)
	movq	%r15, %rdi
	movl	$12, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fwrite
	cmpl	$1, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	$1, %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_err
	jmp	LBB0_11
LBB0_14:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fclose                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_gmonhdr,12,2                   ## @gmonhdr
	.comm	_samples,8,3                    ## @samples
	.comm	_histcounter_size,4,2           ## @histcounter_size
	.comm	_nsamples,4,2                   ## @nsamples
	.comm	_nl,8,3                         ## @nl
	.comm	_npe,8,3                        ## @npe
	.comm	_SAMPLEDEBUG,4,2                ## @SAMPLEDEBUG
	.comm	_debug,4,2                      ## @debug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dumpsum                        ; -- Begin function dumpsum
	.p2align	2
_dumpsum:                               ; @dumpsum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_err
LBB0_2:
Lloh4:
	adrp	x0, _gmonhdr@GOTPAGE
Lloh5:
	ldr	x0, [x0, _gmonhdr@GOTPAGEOFF]
	mov	w1, #12
	mov	w2, #1
	mov	x3, x20
	bl	_fwrite
	cmp	w0, #1
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_err
LBB0_4:
Lloh8:
	adrp	x8, _samples@GOTPAGE
Lloh9:
	ldr	x8, [x8, _samples@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
Lloh11:
	adrp	x8, _histcounter_size@GOTPAGE
Lloh12:
	ldr	x8, [x8, _histcounter_size@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x21, _nsamples@GOTPAGE
Lloh15:
	ldr	x21, [x21, _nsamples@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x3, x20
	bl	_fwrite
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.5:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_err
LBB0_6:
Lloh18:
	adrp	x8, _nl@GOTPAGE
Lloh19:
	ldr	x8, [x8, _nl@GOTPAGEOFF]
Lloh20:
	ldr	x22, [x8]
Lloh21:
	adrp	x23, _npe@GOTPAGE
Lloh22:
	ldr	x23, [x23, _npe@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x22, x8
	b.hs	LBB0_14
; %bb.7:
Lloh23:
	adrp	x21, l_.str.1@PAGE
Lloh24:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x23]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #8
	cmp	x22, x8
	b.hs	LBB0_14
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x24, [x22]
	cbnz	x24, LBB0_12
	b	LBB0_9
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	x24, [x24, #24]
	cbz	x24, LBB0_8
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x9, x8, [x24, #8]
	ldr	w10, [x8]
	ldr	w8, [x9]
	ldr	w9, [x24]
	stp	w8, w10, [sp, #4]
	str	w9, [sp]
	mov	x0, sp
	mov	w1, #12
	mov	w2, #1
	mov	x3, x20
	bl	_fwrite
	cmp	w0, #1
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	w0, #1
	mov	x1, x21
	mov	x2, x19
	bl	_err
	b	LBB0_11
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_fclose
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_gmonhdr,12,2                   ; @gmonhdr
	.comm	_samples,8,3                    ; @samples
	.comm	_histcounter_size,4,2           ; @histcounter_size
	.comm	_nsamples,4,2                   ; @nsamples
	.comm	_nl,8,3                         ; @nl
	.comm	_npe,8,3                        ; @npe
	.comm	_SAMPLEDEBUG,4,2                ; @SAMPLEDEBUG
	.comm	_debug,4,2                      ; @debug
.subsections_via_symbols
