	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function def_tmr_event
_def_tmr_event:                         ## @def_tmr_event
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movb	1(%rsi), %cl
	movq	_TIMER_NOT_ARMED@GOTPCREL(%rip), %rbx
	addb	$-128, %cl
	cmpb	$6, %cl
	ja	LBB0_12
## %bb.1:
	movslq	4(%rsi), %rax
	movzbl	%cl, %ecx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_prev_event_time@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
LBB0_3:
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	_curr_ticks@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jbe	LBB0_12
## %bb.5:
	movq	_prev_event_time@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_next_event_time@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_TIMER_ARMED@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
LBB0_9:
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	cmpq	$9, %rax
	movl	$8, %ecx
	cmovaeq	%rax, %rcx
	cmpq	$360, %rcx                      ## imm = 0x168
	movl	$360, %r14d                     ## imm = 0x168
	cmovbq	%rcx, %r14
	movq	_tmr_ctr@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_tmr_offs@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	callq	_tmr2ticks
	movq	_ticks_offs@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
	movl	$0, (%r15)
	movq	_curr_tempo@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	jmp	LBB0_12
LBB0_6:
	movq	_tmr_running@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	jmp	LBB0_12
LBB0_7:
	xorl	%eax, %eax
	callq	_tmr_reset
LBB0_8:
	movq	_tmr_running@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_12
LBB0_11:
	movq	%rsi, %rdi
	movl	$8, %esi
	callq	_seq_copy_to_input
LBB0_12:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_9
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_11
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_prev_event_time,8,3            ## @prev_event_time
	.comm	_curr_ticks,8,3                 ## @curr_ticks
	.comm	_TIMER_NOT_ARMED,4,2            ## @TIMER_NOT_ARMED
	.comm	_next_event_time,8,3            ## @next_event_time
	.comm	_TIMER_ARMED,4,2                ## @TIMER_ARMED
	.comm	_tmr_running,4,2                ## @tmr_running
	.comm	_tmr_ctr,4,2                    ## @tmr_ctr
	.comm	_tmr_offs,4,2                   ## @tmr_offs
	.comm	_ticks_offs,4,2                 ## @ticks_offs
	.comm	_curr_tempo,8,3                 ## @curr_tempo
	.no_dead_strip	_def_tmr_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function def_tmr_event
_def_tmr_event:                         ; @def_tmr_event
	.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
	ldrb	w8, [x1, #1]
	sub	w9, w8, #128
	cmp	w9, #6
	b.hi	LBB0_11
; %bb.1:
	ldrsw	x8, [x1, #4]
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh2:
	adrp	x9, _prev_event_time@GOTPAGE
Lloh3:
	ldr	x9, [x9, _prev_event_time@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x8, x9, x8
LBB0_3:
Lloh5:
	adrp	x9, _curr_ticks@GOTPAGE
Lloh6:
	ldr	x9, [x9, _curr_ticks@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x8, x9, #0, ne
	b.ls	LBB0_11
; %bb.4:
Lloh8:
	adrp	x9, _prev_event_time@GOTPAGE
Lloh9:
	ldr	x9, [x9, _prev_event_time@GOTPAGEOFF]
Lloh10:
	str	x8, [x9]
Lloh11:
	adrp	x9, _next_event_time@GOTPAGE
Lloh12:
	ldr	x9, [x9, _next_event_time@GOTPAGEOFF]
Lloh13:
	str	x8, [x9]
Lloh14:
	adrp	x8, _TIMER_ARMED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TIMER_ARMED@GOTPAGEOFF]
	b	LBB0_12
LBB0_5:
	cbz	w8, LBB0_11
; %bb.6:
	mov	w9, #8
	cmp	x8, #8
	csel	x8, x8, x9, hi
	mov	w9, #360
	cmp	x8, #360
	csel	x19, x8, x9, lo
Lloh16:
	adrp	x20, _tmr_ctr@GOTPAGE
Lloh17:
	ldr	x20, [x20, _tmr_ctr@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh18:
	adrp	x8, _tmr_offs@GOTPAGE
Lloh19:
	ldr	x8, [x8, _tmr_offs@GOTPAGEOFF]
Lloh20:
	str	w0, [x8]
	bl	_tmr2ticks
Lloh21:
	adrp	x8, _ticks_offs@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ticks_offs@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w0
	str	w9, [x8]
	str	wzr, [x20]
Lloh23:
	adrp	x8, _curr_tempo@GOTPAGE
Lloh24:
	ldr	x8, [x8, _curr_tempo@GOTPAGEOFF]
Lloh25:
	str	x19, [x8]
	b	LBB0_11
LBB0_7:
Lloh26:
	adrp	x8, _tmr_running@GOTPAGE
Lloh27:
	ldr	x8, [x8, _tmr_running@GOTPAGEOFF]
Lloh28:
	str	wzr, [x8]
	b	LBB0_11
LBB0_8:
	bl	_tmr_reset
LBB0_9:
Lloh29:
	adrp	x8, _tmr_running@GOTPAGE
Lloh30:
	ldr	x8, [x8, _tmr_running@GOTPAGEOFF]
	mov	w9, #1
Lloh31:
	str	w9, [x8]
	b	LBB0_11
LBB0_10:
	mov	x0, x1
	mov	w1, #8
	bl	_seq_copy_to_input
LBB0_11:
Lloh32:
	adrp	x8, _TIMER_NOT_ARMED@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TIMER_NOT_ARMED@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_prev_event_time,8,3            ; @prev_event_time
	.comm	_curr_ticks,8,3                 ; @curr_ticks
	.comm	_TIMER_NOT_ARMED,4,2            ; @TIMER_NOT_ARMED
	.comm	_next_event_time,8,3            ; @next_event_time
	.comm	_TIMER_ARMED,4,2                ; @TIMER_ARMED
	.comm	_tmr_running,4,2                ; @tmr_running
	.comm	_tmr_ctr,4,2                    ; @tmr_ctr
	.comm	_tmr_offs,4,2                   ; @tmr_offs
	.comm	_ticks_offs,4,2                 ; @ticks_offs
	.comm	_curr_tempo,8,3                 ; @curr_tempo
	.no_dead_strip	_def_tmr_event
.subsections_via_symbols
