	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_timer_Start                    ## -- Begin function timer_Start
	.p2align	4, 0x90
_timer_Start:                           ## @timer_Start
	.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	%rdi, %r14
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sigemptyset
	movq	_SIGALRM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sigaddset
	movq	_SIG_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-52(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_sigprocmask
	movq	(%r14), %rax
	movq	_TIMER_STOPPED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_StopTimerNoBlock
LBB0_2:
	cmpq	$0, 8(%r14)
	je	LBB0_3
## %bb.4:
	movq	_TimerList@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_14
## %bb.5:
	movq	_ITIMER_REAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_getitimer
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.8:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_3:
	movq	_LogTIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_log_Printf
	jmp	LBB0_21
LBB0_14:
	movq	8(%r14), %rcx
	xorl	%r12d, %r12d
	xorl	%eax, %eax
LBB0_15:
	subq	%rax, %rcx
	movq	_TIMER_RUNNING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	leaq	16(%r14), %r13
	movq	%rcx, 16(%r14)
	movq	_LogTIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_log_Printf
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_6:
	movl	-48(%rbp), %edi
	callq	_RESTVAL
	movq	(%rbx), %rbx
	subq	16(%rbx), %rax
LBB0_9:
	movq	8(%r14), %rcx
	movq	16(%rbx), %rdx
	addq	%rax, %rdx
	cmpq	%rcx, %rdx
	jge	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r12
	movq	%rdx, %rax
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	16(%rbx), %rdx
	addq	%rax, %rdx
	cmpq	%rcx, %rdx
	jl	LBB0_13
	jmp	LBB0_11
LBB0_10:
	xorl	%r12d, %r12d
LBB0_11:
	movq	_TIMER_RUNNING@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, (%r14)
	subq	%rax, %rcx
	leaq	16(%r14), %r13
	movq	%rcx, 16(%r14)
	movq	_LogTIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r14), %edx
	movl	32(%rbx), %r8d
	movq	%rcx, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rcx
	movq	%rbx, %r9
	xorl	%eax, %eax
	callq	_log_Printf
	movb	$1, %r15b
LBB0_16:
	movq	%rbx, 24(%r14)
	testq	%r12, %r12
	je	LBB0_18
## %bb.17:
	movq	%r14, 24(%r12)
	testb	%r15b, %r15b
	je	LBB0_21
LBB0_20:
	movq	(%r13), %rax
	subq	%rax, 16(%rbx)
LBB0_21:
	movq	_SIG_SETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-52(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigprocmask
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_TimerList@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	movzbl	%r15b, %edi
	callq	_timer_InitService
	testb	%r15b, %r15b
	jne	LBB0_20
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGALRM,4,2                    ## @SIGALRM
	.comm	_SIG_BLOCK,4,2                  ## @SIG_BLOCK
	.comm	_TIMER_STOPPED,8,3              ## @TIMER_STOPPED
	.comm	_LogTIMER,4,2                   ## @LogTIMER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s timer[%p] has 0 load!\n"

	.comm	_SIG_SETMASK,4,2                ## @SIG_SETMASK
	.comm	_TimerList,8,3                  ## @TimerList
	.comm	_ITIMER_REAL,4,2                ## @ITIMER_REAL
	.comm	_TIMER_RUNNING,8,3              ## @TIMER_RUNNING
L_.str.1:                               ## @.str.1
	.asciz	"timer_Start: Inserting %s timer[%p] before %s timer[%p], delta = %ld\n"

L_.str.2:                               ## @.str.2
	.asciz	"timer_Start: Inserting %s timer[%p]\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_timer_Start                    ; -- Begin function timer_Start
	.p2align	2
_timer_Start:                           ; @timer_Start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	add	x0, sp, #36
	bl	_sigemptyset
Lloh0:
	adrp	x8, _SIGALRM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGALRM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #36
	bl	_sigaddset
Lloh3:
	adrp	x8, _SIG_BLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIG_BLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, sp, #36
	add	x2, sp, #32
	bl	_sigprocmask
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _TIMER_STOPPED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TIMER_STOPPED@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_StopTimerNoBlock
LBB0_2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.3:
Lloh9:
	adrp	x21, _TimerList@GOTPAGE
Lloh10:
	ldr	x21, [x21, _TimerList@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.4:
Lloh11:
	adrp	x8, _ITIMER_REAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ITIMER_REAL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	x1, sp, #40
	bl	_getitimer
	cbz	x0, LBB0_13
; %bb.5:
	ldr	x22, [x21]
	cbz	x22, LBB0_8
; %bb.6:
	mov	x8, #0
	b	LBB0_14
LBB0_7:
Lloh14:
	adrp	x8, _LogTIMER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LogTIMER@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w2, [x19, #32]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	bl	_log_Printf
	b	LBB0_12
LBB0_8:
	mov	x23, #0
	mov	x8, #0
	ldr	x9, [x19, #8]
LBB0_9:
Lloh19:
	adrp	x10, _TIMER_RUNNING@GOTPAGE
Lloh20:
	ldr	x10, [x10, _TIMER_RUNNING@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	str	x10, [x19]
	sub	x8, x9, x8
	mov	x24, x19
	str	x8, [x24, #16]!
Lloh22:
	adrp	x8, _LogTIMER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LogTIMER@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	w2, [x19, #32]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x3, x19
	bl	_log_Printf
	mov	x22, #0
	mov	w20, #0
	str	x22, [x19, #24]
	cbz	x23, LBB0_19
LBB0_10:
	str	x19, [x23, #24]
	cbz	w20, LBB0_12
LBB0_11:
	ldr	x8, [x24]
	ldr	x9, [x22, #16]
	sub	x8, x9, x8
	str	x8, [x22, #16]
LBB0_12:
Lloh27:
	adrp	x8, _SIG_SETMASK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SIG_SETMASK@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	add	x1, sp, #32
	mov	x2, #0
	bl	_sigprocmask
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	ldr	w0, [sp, #40]
	bl	_RESTVAL
	ldr	x22, [x21]
	ldr	x8, [x22, #16]
	sub	x8, x0, x8
LBB0_14:
	ldr	x9, [x19, #8]
	ldr	x10, [x22, #16]
	add	x10, x10, x8
	cmp	x10, x9
	b.ge	LBB0_17
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x23, x22
	mov	x8, x10
	ldr	x22, [x22, #24]
	cbz	x22, LBB0_9
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x10, [x22, #16]
	add	x10, x10, x8
	cmp	x10, x9
	b.lt	LBB0_15
	b	LBB0_18
LBB0_17:
	mov	x23, #0
LBB0_18:
Lloh30:
	adrp	x10, _TIMER_RUNNING@GOTPAGE
Lloh31:
	ldr	x10, [x10, _TIMER_RUNNING@GOTPAGEOFF]
Lloh32:
	ldr	x10, [x10]
	sub	x8, x9, x8
	mov	x24, x19
	str	x8, [x24, #16]!
	str	x10, [x19]
Lloh33:
	adrp	x9, _LogTIMER@GOTPAGE
Lloh34:
	ldr	x9, [x9, _LogTIMER@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x9]
	ldr	w2, [x19, #32]
	ldr	w9, [x22, #32]
	stp	x22, x8, [sp, #8]
	str	x9, [sp]
Lloh36:
	adrp	x1, l_.str.1@PAGE
Lloh37:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_log_Printf
	mov	w20, #1
	str	x22, [x19, #24]
	cbnz	x23, LBB0_10
LBB0_19:
	str	x19, [x21]
	mov	x0, x20
	bl	_timer_InitService
	cbnz	w20, LBB0_11
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGALRM,4,2                    ; @SIGALRM
	.comm	_SIG_BLOCK,4,2                  ; @SIG_BLOCK
	.comm	_TIMER_STOPPED,8,3              ; @TIMER_STOPPED
	.comm	_LogTIMER,4,2                   ; @LogTIMER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s timer[%p] has 0 load!\n"

	.comm	_SIG_SETMASK,4,2                ; @SIG_SETMASK
	.comm	_TimerList,8,3                  ; @TimerList
	.comm	_ITIMER_REAL,4,2                ; @ITIMER_REAL
	.comm	_TIMER_RUNNING,8,3              ; @TIMER_RUNNING
l_.str.1:                               ; @.str.1
	.asciz	"timer_Start: Inserting %s timer[%p] before %s timer[%p], delta = %ld\n"

l_.str.2:                               ; @.str.2
	.asciz	"timer_Start: Inserting %s timer[%p]\n"

.subsections_via_symbols
