	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_file
_process_file:                          ## @process_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$0, -44(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_fopen
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.23:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_1:
	movq	_command@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_my_popen
	movq	%rax, %rbx
LBB0_3:
	movq	%rbx, %rdi
	callq	_build_counters_from_header
	movq	_cnts@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.6:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_lace_cpus_together
	xorl	%eax, %eax
	callq	_print_header
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.7:
	movq	_ncnts@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_10
## %bb.8:
	movl	$8, %r13d
	leaq	L_.str.3(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	-8(%rax,%r13), %rsi
	movl	(%rax,%r13), %edx
	movq	%r12, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_printf
	incq	%rbx
	movslq	(%r15), %rax
	addq	$16, %r13
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	movq	_MAX_CPU@GOTPCREL(%rip), %r12
	movq	_glob_cpu@GOTPCREL(%rip), %r14
	movq	_cpu_count_out@GOTPCREL(%rip), %r15
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	$10, %edi
	callq	_putchar
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jge	LBB0_19
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
                                        ## kill: def $ebx killed $ebx killed $rbx def $rbx
	movq	%r13, %rdi
	callq	_read_a_line
	testq	%rax, %rax
	je	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	leal	1(%rbx), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_max_to_collect@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, (%r12)
	jle	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rax
	movl	(%rax,%r13,4), %edi
	movl	%ebx, %esi
	callq	_do_expression
	incq	%r13
	cmpl	(%r15), %r13d
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=2
	movl	$9, %edi
	callq	_putchar
	movslq	(%r12), %rax
	cmpq	%rax, %r13
	jl	LBB0_15
	jmp	LBB0_18
LBB0_19:
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_21
## %bb.20:
	movq	%r13, %rdi
	callq	_fclose
	jmp	LBB0_22
LBB0_4:
	leaq	L_str(%rip), %rdi
	callq	_puts
	testq	%rbx, %rbx
	je	LBB0_22
## %bb.5:
	movq	%rbx, %rdi
	callq	_fclose
	jmp	LBB0_22
LBB0_21:
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	callq	_my_pclose
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_command,4,2                    ## @command
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"Can't process file %s err:%d\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_cnts,8,3                       ## @cnts
	.comm	_verbose,8,3                    ## @verbose
	.comm	_ncnts,4,2                      ## @ncnts
L_.str.3:                               ## @.str.3
	.asciz	"Counter:%s cpu:%d index:%d\n"

	.comm	_max_to_collect,4,2             ## @max_to_collect
	.comm	_MAX_CPU,4,2                    ## @MAX_CPU
	.comm	_glob_cpu,8,3                   ## @glob_cpu
	.comm	_cpu_count_out,4,2              ## @cpu_count_out
L_str:                                  ## @str
	.asciz	"Nothing to do -- no counters built"

	.no_dead_strip	_process_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_file
_process_file:                          ; @process_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	str	wzr, [sp, #28]
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fopen
	mov	x20, x0
	cbnz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	stp	x19, x8, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	b	LBB0_21
LBB0_3:
Lloh7:
	adrp	x8, _command@GOTPAGE
Lloh8:
	ldr	x8, [x8, _command@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #28
	bl	_my_popen
	mov	x20, x0
LBB0_4:
	mov	x0, x20
	bl	_build_counters_from_header
Lloh12:
	adrp	x22, _cnts@GOTPAGE
Lloh13:
	ldr	x22, [x22, _cnts@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_19
; %bb.5:
	bl	_lace_cpus_together
	bl	_print_header
Lloh14:
	adrp	x8, _verbose@GOTPAGE
Lloh15:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x23, _ncnts@GOTPAGE
Lloh18:
	ldr	x23, [x23, _ncnts@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	x8, #0
	ccmp	w9, #1, #8, ne
	b.lt	LBB0_8
; %bb.6:
	mov	x24, #0
	mov	x25, #0
Lloh19:
	adrp	x21, l_.str.3@PAGE
Lloh20:
	add	x21, x21, l_.str.3@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x8, x8, x24
	ldr	x9, [x8]
	ldr	w8, [x8, #8]
	stp	x8, x25, [sp, #8]
	str	x9, [sp]
	mov	x0, x21
	bl	_printf
	add	x25, x25, #1
	ldrsw	x8, [x23]
	add	x24, x24, #16
	cmp	x25, x8
	b.lt	LBB0_7
LBB0_8:
	mov	w21, #0
Lloh21:
	adrp	x22, _max_to_collect@GOTPAGE
Lloh22:
	ldr	x22, [x22, _max_to_collect@GOTPAGEOFF]
Lloh23:
	adrp	x23, _MAX_CPU@GOTPAGE
Lloh24:
	ldr	x23, [x23, _MAX_CPU@GOTPAGEOFF]
Lloh25:
	adrp	x24, _glob_cpu@GOTPAGE
Lloh26:
	ldr	x24, [x24, _glob_cpu@GOTPAGEOFF]
Lloh27:
	adrp	x25, _cpu_count_out@GOTPAGE
Lloh28:
	ldr	x25, [x25, _cpu_count_out@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #10
	bl	_putchar
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w21, w21, #1
	cmp	w21, w26
	b.ge	LBB0_17
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	mov	x0, x20
	bl	_read_a_line
	cbz	x0, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w26, [x22]
	cbnz	x19, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x27, #0
LBB0_15:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24]
	ldr	w0, [x8, x27, lsl #2]
	mov	x1, x21
	bl	_do_expression
	add	x27, x27, #1
	ldr	w8, [x25]
	cmp	w27, w8
	b.eq	LBB0_9
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	w0, #9
	bl	_putchar
	ldrsw	x8, [x23]
	cmp	x27, x8
	b.lt	LBB0_15
	b	LBB0_10
LBB0_17:
	cbnz	x19, LBB0_20
; %bb.18:
	ldr	w1, [sp, #28]
	mov	x0, x20
	bl	_my_pclose
	b	LBB0_21
LBB0_19:
Lloh29:
	adrp	x0, l_str@PAGE
Lloh30:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	cbz	x20, LBB0_21
LBB0_20:
	mov	x0, x20
	bl	_fclose
LBB0_21:
	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
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_command,4,2                    ; @command
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"Can't process file %s err:%d\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_cnts,8,3                       ; @cnts
	.comm	_verbose,8,3                    ; @verbose
	.comm	_ncnts,4,2                      ; @ncnts
l_.str.3:                               ; @.str.3
	.asciz	"Counter:%s cpu:%d index:%d\n"

	.comm	_max_to_collect,4,2             ; @max_to_collect
	.comm	_MAX_CPU,4,2                    ; @MAX_CPU
	.comm	_glob_cpu,8,3                   ; @glob_cpu
	.comm	_cpu_count_out,4,2              ; @cpu_count_out
l_str:                                  ; @str
	.asciz	"Nothing to do -- no counters built"

	.no_dead_strip	_process_file
.subsections_via_symbols
