	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_svg_file
_write_svg_file:                        ## @write_svg_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_numcpus@GOTPCREL(%rip), %r14
	incq	(%r14)
	movq	%rdi, %r15
	movq	_TIME_THRESH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_determine_display_tasks
	cmpl	$14, %eax
	jg	LBB0_2
## %bb.1:
	movslq	(%rbx), %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$34, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_determine_display_tasks
LBB0_2:
	movq	(%r14), %rsi
	movq	_first_time@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_last_time@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_open_svg
	xorl	%eax, %eax
	callq	_svg_time_grid
	xorl	%eax, %eax
	callq	_svg_legenda
	cmpq	$0, (%r14)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	movq	_max_freq@GOTPCREL(%rip), %r15
	movq	_turbo_frequency@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_svg_cpu_box
	incq	%rbx
	cmpq	(%r14), %rbx
	jl	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	callq	_draw_cpu_usage
	xorl	%eax, %eax
	callq	_draw_process_bars
	xorl	%eax, %eax
	callq	_draw_c_p_states
	xorl	%eax, %eax
	callq	_draw_wakeups
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_svg_close                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_numcpus,8,3                    ## @numcpus
	.comm	_TIME_THRESH,4,2                ## @TIME_THRESH
	.comm	_first_time,4,2                 ## @first_time
	.comm	_last_time,4,2                  ## @last_time
	.comm	_max_freq,4,2                   ## @max_freq
	.comm	_turbo_frequency,4,2            ## @turbo_frequency
	.no_dead_strip	_write_svg_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_svg_file
_write_svg_file:                        ; @write_svg_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	x19, x0
Lloh0:
	adrp	x20, _numcpus@GOTPAGE
Lloh1:
	ldr	x20, [x20, _numcpus@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
Lloh2:
	adrp	x21, _TIME_THRESH@GOTPAGE
Lloh3:
	ldr	x21, [x21, _TIME_THRESH@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_determine_display_tasks
	mov	x2, x0
	cmp	w0, #14
	b.gt	LBB0_2
; %bb.1:
	ldrsw	x8, [x21]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w0, w8, w9
	bl	_determine_display_tasks
	mov	x2, x0
LBB0_2:
	ldr	x1, [x20]
Lloh4:
	adrp	x8, _first_time@GOTPAGE
Lloh5:
	ldr	x8, [x8, _first_time@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
Lloh7:
	adrp	x8, _last_time@GOTPAGE
Lloh8:
	ldr	x8, [x8, _last_time@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
	mov	x0, x19
	bl	_open_svg
	bl	_svg_time_grid
	bl	_svg_legenda
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x19, #0
Lloh10:
	adrp	x21, _max_freq@GOTPAGE
Lloh11:
	ldr	x21, [x21, _max_freq@GOTPAGEOFF]
Lloh12:
	adrp	x22, _turbo_frequency@GOTPAGE
Lloh13:
	ldr	x22, [x22, _turbo_frequency@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_svg_cpu_box
	add	x19, x19, #1
	ldr	x8, [x20]
	cmp	x19, x8
	b.lt	LBB0_4
LBB0_5:
	bl	_draw_cpu_usage
	bl	_draw_process_bars
	bl	_draw_c_p_states
	bl	_draw_wakeups
	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
	b	_svg_close
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_numcpus,8,3                    ; @numcpus
	.comm	_TIME_THRESH,4,2                ; @TIME_THRESH
	.comm	_first_time,4,2                 ; @first_time
	.comm	_last_time,4,2                  ; @last_time
	.comm	_max_freq,4,2                   ; @max_freq
	.comm	_turbo_frequency,4,2            ; @turbo_frequency
	.no_dead_strip	_write_svg_file
.subsections_via_symbols
