	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rgb_task_timers
_rgb_task_timers:                       ## @rgb_task_timers
	.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
	movq	_rgb_counters_buffer@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_timer_elapsed32
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_timer_read32
	movl	%eax, (%r14)
	movq	_g_rgb_counters@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_UINT32_MAX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %rcx
	jge	LBB0_2
## %bb.1:
	movq	%rdx, %rsi
	subq	%rbx, %rsi
	addq	%rcx, %rbx
	cmpq	%rcx, %rsi
	cmovlq	%rdx, %rbx
	movq	%rbx, (%rax)
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rgb_counters_buffer,4,2        ## @rgb_counters_buffer
	.comm	_g_rgb_counters,8,3             ## @g_rgb_counters
	.comm	_UINT32_MAX,8,3                 ## @UINT32_MAX
	.comm	_UINT16_MAX,8,3                 ## @UINT16_MAX
	.comm	_last_hit_buffer,16,3           ## @last_hit_buffer
	.no_dead_strip	_rgb_task_timers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rgb_task_timers
_rgb_task_timers:                       ; @rgb_task_timers
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _rgb_counters_buffer@GOTPAGE
Lloh1:
	ldr	x20, [x20, _rgb_counters_buffer@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_timer_elapsed32
	mov	x19, x0
	bl	_timer_read32
Lloh2:
	adrp	x8, _g_rgb_counters@GOTPAGE
Lloh3:
	ldr	x8, [x8, _g_rgb_counters@GOTPAGEOFF]
	str	w0, [x20]
	ldr	x9, [x8]
Lloh4:
	adrp	x10, _UINT32_MAX@GOTPAGE
Lloh5:
	ldr	x10, [x10, _UINT32_MAX@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_2
; %bb.1:
	add	x11, x9, x19
	sub	x12, x10, x19
	cmp	x12, x9
	csel	x9, x10, x11, lt
	str	x9, [x8]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_rgb_counters_buffer,4,2        ; @rgb_counters_buffer
	.comm	_g_rgb_counters,8,3             ; @g_rgb_counters
	.comm	_UINT32_MAX,8,3                 ; @UINT32_MAX
	.comm	_UINT16_MAX,8,3                 ; @UINT16_MAX
	.comm	_last_hit_buffer,16,3           ; @last_hit_buffer
	.no_dead_strip	_rgb_task_timers
.subsections_via_symbols
