	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function time_blitter
_time_blitter:                          ## @time_blitter
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	_time_blitter.count(%rip), %r14d
	xorl	%eax, %eax
	callq	_clock
	movq	%rax, %rbx
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.4:
	cmpq	_time_blitter.end_time(%rip), %rbx
	jl	LBB0_7
## %bb.5:
	movl	_time_blitter.count(%rip), %eax
	leal	3(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$2, %esi
	xorl	%r14d, %r14d
	movl	$6000, %eax                     ## imm = 0x1770
	xorl	%edx, %edx
	idivl	%esi
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_clock
	cmpq	%rbx, %rax
	je	LBB0_1
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_clock
	subq	%rbx, %rax
	movq	_CLOCKS_PER_SEC@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jle	LBB0_6
## %bb.3:
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_8
LBB0_6:
	xorl	%eax, %eax
	callq	_clock
	movq	(%rbx), %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, _time_blitter.end_time(%rip)
LBB0_7:
	incl	_time_blitter.count(%rip)
	movl	$1, %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_time_blitter.end_time,8,3 ## @time_blitter.end_time
.zerofill __DATA,__bss,_time_blitter.count,4,2 ## @time_blitter.count
	.comm	_CLOCKS_PER_SEC,8,3             ## @CLOCKS_PER_SEC
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Performance: %d frames per second, which would use %d%% CPU at 60 FPS\n"

L_str:                                  ## @str
	.asciz	"Insufficient time resolution"

	.no_dead_strip	_time_blitter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function time_blitter
_time_blitter:                          ; @time_blitter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	adrp	x20, _time_blitter.count@PAGE
	ldr	w21, [x20, _time_blitter.count@PAGEOFF]
	bl	_clock
	mov	x19, x0
	cbz	w21, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _time_blitter.end_time@PAGE
Lloh1:
	ldr	x8, [x8, _time_blitter.end_time@PAGEOFF]
	cmp	x19, x8
	b.lt	LBB0_7
; %bb.2:
	ldr	w8, [x20, _time_blitter.count@PAGEOFF]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	mov	w9, #6000
	sdiv	w9, w9, w8
	stp	x8, x9, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	mov	w0, #0
	b	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_clock
	cmp	x0, x19
	b.eq	LBB0_3
; %bb.4:
	bl	_clock
Lloh4:
	adrp	x21, _CLOCKS_PER_SEC@GOTPAGE
Lloh5:
	ldr	x21, [x21, _CLOCKS_PER_SEC@GOTPAGEOFF]
	ldr	x8, [x21]
	sub	x9, x0, x19
	cmp	x9, x8
	b.le	LBB0_6
; %bb.5:
Lloh6:
	adrp	x0, l_str@PAGE
Lloh7:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	bl	_clock
	ldr	x8, [x21]
	add	x8, x0, x8, lsl #2
	adrp	x9, _time_blitter.end_time@PAGE
	str	x8, [x9, _time_blitter.end_time@PAGEOFF]
LBB0_7:
	ldr	w8, [x20, _time_blitter.count@PAGEOFF]
	add	w8, w8, #1
	str	w8, [x20, _time_blitter.count@PAGEOFF]
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_time_blitter.end_time,8,3 ; @time_blitter.end_time
.zerofill __DATA,__bss,_time_blitter.count,4,2 ; @time_blitter.count
	.comm	_CLOCKS_PER_SEC,8,3             ; @CLOCKS_PER_SEC
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Performance: %d frames per second, which would use %d%% CPU at 60 FPS\n"

l_str:                                  ; @str
	.asciz	"Insufficient time resolution"

	.no_dead_strip	_time_blitter
.subsections_via_symbols
