	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function svg_cstate
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_1:
	.quad	0x4018000000000000              ## double 6
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_svg_cstate
	.p2align	4, 0x90
_svg_cstate:                            ## @svg_cstate
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, -188(%rbp)                ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_svgfile@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_3
## %bb.1:
	movl	%edx, %r12d
	movl	%esi, %ebx
	cmpl	$6, %ecx
	movl	$6, %r15d
	cmovll	%ecx, %r15d
	leaq	L_.str(%rip), %rsi
	leaq	-176(%rbp), %rdi
	movl	%r15d, %edx
	callq	_sprintf
	movl	(%r14), %r13d
	movl	%ebx, %edi
	callq	_time2pixels
	movsd	%xmm0, -200(%rbp)               ## 8-byte Spill
	movl	%r12d, %edi
	callq	_time2pixels
	movsd	%xmm0, -184(%rbp)               ## 8-byte Spill
	movl	%ebx, %edi
	callq	_time2pixels
	movsd	-184(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movsd	%xmm1, -184(%rbp)               ## 8-byte Spill
	movl	-188(%rbp), %edi                ## 4-byte Reload
	callq	_cpu2y
	movapd	%xmm0, %xmm2
	movq	_SLOT_MULT@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm3                   ## xmm3 = mem[0],zero
	movq	_SLOT_HEIGHT@GOTPCREL(%rip), %rax
	addsd	(%rax), %xmm3
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edi
	leaq	-176(%rbp), %rdx
	movsd	-200(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	-184(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movb	$4, %al
	callq	_fprintf
	movl	%r12d, %edi
	callq	_time2pixels
	movsd	%xmm0, -184(%rbp)               ## 8-byte Spill
	movl	%ebx, %edi
	callq	_time2pixels
	movsd	-184(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	mulsd	LCPI0_0(%rip), %xmm1
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	minsd	%xmm1, %xmm0
	callq	_round_text_size
	movq	_MIN_TEXT_SIZE@GOTPCREL(%rip), %rax
	ucomisd	(%rax), %xmm0
	jbe	LBB0_3
## %bb.2:
	movl	(%r14), %r12d
	movl	%ebx, %edi
	movsd	%xmm0, -200(%rbp)               ## 8-byte Spill
	callq	_time2pixels
	movsd	%xmm0, -184(%rbp)               ## 8-byte Spill
	movl	-188(%rbp), %edi                ## 4-byte Reload
	callq	_cpu2y
	movsd	-200(%rbp), %xmm2               ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movapd	%xmm2, %xmm1
	addsd	%xmm0, %xmm1
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edi
	movsd	-184(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	%r15d, %edx
	movb	$3, %al
	callq	_fprintf
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_svgfile,4,2                    ## @svgfile
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"c%i"

L_.str.1:                               ## @.str.1
	.asciz	"<rect class=\"%s\" x=\"%4.8f\" width=\"%4.8f\" y=\"%4.1f\" height=\"%4.1f\"/>\n"

	.comm	_SLOT_MULT,8,3                  ## @SLOT_MULT
	.comm	_SLOT_HEIGHT,8,3                ## @SLOT_HEIGHT
	.comm	_MIN_TEXT_SIZE,8,3              ## @MIN_TEXT_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"<text x=\"%4.8f\" y=\"%4.8f\" font-size=\"%3.8fpt\">C%i</text>\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svg_cstate                     ; -- Begin function svg_cstate
	.p2align	2
_svg_cstate:                            ; @svg_cstate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	d9, d8, [sp, #176]              ; 16-byte Folded Spill
	stp	x26, x25, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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 b8, -88
	.cfi_offset b9, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x24, _svgfile@GOTPAGE
Lloh4:
	ldr	x24, [x24, _svgfile@GOTPAGEOFF]
	ldr	w8, [x24]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	mov	w8, #6
	cmp	w3, #6
	csel	w20, w3, w8, lt
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	add	x25, sp, #40
	add	x0, sp, #40
	mov	x2, x20
	bl	_sprintf
	ldr	w23, [x24]
	mov	x0, x21
	bl	_time2pixels
	fmov	d8, d0
	mov	x0, x22
	bl	_time2pixels
	fmov	d9, d0
	mov	x0, x21
	bl	_time2pixels
	fsub	d9, d9, d0
	mov	x0, x19
	bl	_cpu2y
Lloh7:
	adrp	x8, _SLOT_MULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SLOT_MULT@GOTPAGEOFF]
Lloh9:
	ldr	d1, [x8]
Lloh10:
	adrp	x8, _SLOT_HEIGHT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SLOT_HEIGHT@GOTPAGEOFF]
Lloh12:
	ldr	d2, [x8]
	fadd	d1, d1, d2
	stp	d0, d1, [sp, #24]
	stp	d8, d9, [sp, #8]
	str	x25, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_fprintf
	mov	x0, x22
	bl	_time2pixels
	fmov	d8, d0
	mov	x0, x21
	bl	_time2pixels
	fsub	d0, d8, d0
	fmov	d1, #0.50000000
	fmul	d0, d0, d1
	fmov	d1, #6.00000000
	fmin	d0, d0, d1
	bl	_round_text_size
	fmov	d8, d0
Lloh15:
	adrp	x8, _MIN_TEXT_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MIN_TEXT_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	d0, [x8]
	fcmp	d8, d0
	b.le	LBB0_3
; %bb.2:
	ldr	w22, [x24]
	mov	x0, x21
	bl	_time2pixels
	fmov	d9, d0
	mov	x0, x19
	bl	_cpu2y
	fadd	d0, d8, d0
	str	x20, [sp, #24]
	stp	d0, d8, [sp, #8]
	str	d9, [sp]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_fprintf
LBB0_3:
	ldur	x8, [x29, #-88]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #176]              ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_svgfile,4,2                    ; @svgfile
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"c%i"

l_.str.1:                               ; @.str.1
	.asciz	"<rect class=\"%s\" x=\"%4.8f\" width=\"%4.8f\" y=\"%4.1f\" height=\"%4.1f\"/>\n"

	.comm	_SLOT_MULT,8,3                  ; @SLOT_MULT
	.comm	_SLOT_HEIGHT,8,3                ; @SLOT_HEIGHT
	.comm	_MIN_TEXT_SIZE,8,3              ; @MIN_TEXT_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"<text x=\"%4.8f\" y=\"%4.8f\" font-size=\"%3.8fpt\">C%i</text>\n"

.subsections_via_symbols
