	.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_sample
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_1:
	.quad	0x3ff4000000000000              ## double 1.25
LCPI0_2:
	.quad	0xbff0000000000000              ## double -1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_svg_sample
	.p2align	4, 0x90
_svg_sample:                            ## @svg_sample
	.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	_svgfile@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.1:
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movl	%esi, %r14d
	movl	%edi, %r15d
	movl	%edx, %edi
	callq	_time2pixels
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movl	%r13d, %edi
	callq	_time2pixels
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movl	%r12d, %edi
	callq	_time2pixels
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %edx
	movq	_SLOT_MULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%r15d, %eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	movq	_SLOT_HEIGHT@GOTPCREL(%rip), %rax
	cvttsd2si	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_fprintf
	movl	%r13d, %edi
	callq	_time2pixels
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movl	%r12d, %edi
	callq	_time2pixels
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	cmpl	$10, %r14d
	jl	LBB0_3
## %bb.2:
	mulsd	LCPI0_0(%rip), %xmm1
LBB0_3:
	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
	movq	_svgfile@GOTPCREL(%rip), %rax
	jbe	LBB0_4
## %bb.5:
	movl	(%rax), %ebx
	movl	%r12d, %edi
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	callq	_time2pixels
	movq	_SLOT_MULT@GOTPCREL(%rip), %rax
	imull	(%rax), %r15d
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r15d, %xmm1
	movq	_SLOT_HEIGHT@GOTPCREL(%rip), %rax
	addsd	(%rax), %xmm1
	addsd	LCPI0_2(%rip), %xmm1
	cvttsd2si	%xmm1, %edx
	incl	%r14d
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movl	%r14d, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_svgfile,4,2                    ## @svgfile
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<rect x=\"%4.8f\" width=\"%4.8f\" y=\"%4.1f\" height=\"%4.1f\" class=\"sample\"/>\n"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svg_sample                     ; -- Begin function svg_sample
	.p2align	2
_svg_sample:                            ; @svg_sample
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-96]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x24, _svgfile@GOTPAGE
Lloh1:
	ldr	x24, [x24, _svgfile@GOTPAGEOFF]
	ldr	w23, [x24]
	cbz	w23, LBB0_3
; %bb.1:
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x2
	bl	_time2pixels
	fmov	d8, d0
	mov	x0, x22
	bl	_time2pixels
	fmov	d9, d0
	mov	x0, x21
	bl	_time2pixels
	fsub	d0, d9, d0
	fcvtzs	w2, d0
Lloh2:
	adrp	x25, _SLOT_MULT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _SLOT_MULT@GOTPAGEOFF]
	ldr	w8, [x25]
	mul	w8, w8, w20
	scvtf	d1, w8
Lloh4:
	adrp	x26, _SLOT_HEIGHT@GOTPAGE
Lloh5:
	ldr	x26, [x26, _SLOT_HEIGHT@GOTPAGEOFF]
	ldr	d0, [x26]
	fcvtzs	w3, d0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	fmov	d0, d8
	bl	_fprintf
	mov	x0, x22
	bl	_time2pixels
	fmov	d8, d0
	mov	x0, x21
	bl	_time2pixels
	fsub	d0, d8, d0
	fmov	d1, #0.50000000
	fmul	d1, d0, d1
	cmp	w19, #9
	fcsel	d0, d1, d0, gt
	fmov	d1, #1.25000000
	fmin	d0, d0, d1
	bl	_round_text_size
	fmov	d8, d0
Lloh8:
	adrp	x8, _MIN_TEXT_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MIN_TEXT_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	d0, [x8]
	fcmp	d8, d0
	b.le	LBB0_3
; %bb.2:
	ldr	w22, [x24]
	mov	x0, x21
	bl	_time2pixels
	ldr	w8, [x25]
	mul	w8, w8, w20
	scvtf	d1, w8
	ldr	d2, [x26]
	fadd	d1, d2, d1
	fmov	d2, #-1.00000000
	fadd	d1, d1, d2
	fcvtzs	w2, d1
	add	w3, w19, #1
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	fmov	d1, d8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
	b	_fprintf
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_svgfile,4,2                    ; @svgfile
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<rect x=\"%4.8f\" width=\"%4.8f\" y=\"%4.1f\" height=\"%4.1f\" class=\"sample\"/>\n"

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

.subsections_via_symbols
