	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_muse_clock_pulse               ## -- Begin function muse_clock_pulse
	.p2align	4, 0x90
_muse_clock_pulse:                      ## @muse_clock_pulse
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_number_of_ones_to_bool@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_muse_theme@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_bit_for_value
	movl	%eax, %r14d
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	callq	_bit_for_value
	movl	%eax, %r15d
	movq	(%rbx), %rax
	movl	8(%rax), %edi
	callq	_bit_for_value
	movl	%eax, %r13d
	movq	(%rbx), %rax
	movl	12(%rax), %edi
	callq	_bit_for_value
                                        ## kill: def $eax killed $eax def $rax
	movq	_muse_timer_1bit@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%edx, %edx
	jne	LBB0_4
## %bb.1:
	leal	(%r14,%r15,2), %esi
	leal	(%rsi,%r13,4), %esi
	leal	(%rsi,%rax,8), %eax
	cltq
	movl	(%r12,%rax,4), %r9d
	movq	_muse_timer_2bit_counter@GOTPCREL(%rip), %r10
	movl	(%r10), %edi
	testl	%edi, %edi
	jne	LBB0_3
## %bb.2:
	movq	_muse_timer_2bit@GOTPCREL(%rip), %r8
	movl	(%r8), %ebx
	leal	1(%rbx), %eax
	leal	4(%rbx), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	andl	$-4, %esi
	negl	%esi
	leal	(%rbx,%rsi), %eax
	incl	%eax
	movl	%eax, (%r8)
LBB0_3:
	incl	%edi
	movslq	%edi, %rax
	imulq	$1431655766, %rax, %rsi         ## imm = 0x55555556
	movq	%rsi, %rdi
	shrq	$63, %rdi
	shrq	$32, %rsi
	addl	%edi, %esi
	leal	(%rsi,%rsi,2), %esi
	subl	%esi, %eax
	movl	%eax, (%r10)
	movq	_muse_timer_4bit@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	1(%rsi), %edi
	leal	16(%rsi), %ebx
	testl	%edi, %edi
	cmovnsl	%edi, %ebx
	andl	$-16, %ebx
	negl	%ebx
	addl	%ebx, %esi
	incl	%esi
	movl	%esi, (%rax)
	movq	_muse_timer_31bit@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(%r9,%rsi,2), %esi
	movl	%esi, (%rax)
LBB0_4:
	movl	%edx, %eax
	incl	%eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%esi, %edx
	incl	%edx
	andl	$-2, %edx
	subl	%edx, %eax
	movl	%eax, (%rcx)
	movq	_muse_interval@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_bit_for_value
	movl	%eax, %ebx
	movq	(%r14), %rax
	movl	4(%rax), %edi
	callq	_bit_for_value
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rbx,%rax,2), %ebx
	movq	(%r14), %rax
	movl	8(%rax), %edi
	callq	_bit_for_value
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rbx,%rax,4), %ebx
	movq	(%r14), %rax
	movl	12(%rax), %edi
	callq	_bit_for_value
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rbx,%rax,8), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_number_of_ones_to_bool,8,3     ## @number_of_ones_to_bool
	.comm	_muse_theme,8,3                 ## @muse_theme
	.comm	_muse_timer_1bit,4,2            ## @muse_timer_1bit
	.comm	_muse_timer_2bit_counter,4,2    ## @muse_timer_2bit_counter
	.comm	_muse_timer_2bit,4,2            ## @muse_timer_2bit
	.comm	_muse_timer_4bit,4,2            ## @muse_timer_4bit
	.comm	_muse_timer_31bit,4,2           ## @muse_timer_31bit
	.comm	_muse_interval,8,3              ## @muse_interval
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_muse_clock_pulse               ; -- Begin function muse_clock_pulse
	.p2align	2
_muse_clock_pulse:                      ; @muse_clock_pulse
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _number_of_ones_to_bool@GOTPAGE
Lloh1:
	ldr	x8, [x8, _number_of_ones_to_bool@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
Lloh3:
	adrp	x23, _muse_theme@GOTPAGE
Lloh4:
	ldr	x23, [x23, _muse_theme@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w0, [x8]
	bl	_bit_for_value
	mov	x19, x0
	ldr	x8, [x23]
	ldr	w0, [x8, #4]
	bl	_bit_for_value
	mov	x20, x0
	ldr	x8, [x23]
	ldr	w0, [x8, #8]
	bl	_bit_for_value
	mov	x21, x0
	ldr	x8, [x23]
	ldr	w0, [x8, #12]
	bl	_bit_for_value
Lloh5:
	adrp	x8, _muse_timer_1bit@GOTPAGE
Lloh6:
	ldr	x8, [x8, _muse_timer_1bit@GOTPAGEOFF]
	ldr	w9, [x8]
	cbnz	w9, LBB0_4
; %bb.1:
	add	w10, w19, w20, lsl #1
	add	w10, w10, w21, lsl #2
	add	w10, w10, w0, lsl #3
	ldr	w10, [x22, w10, sxtw #2]
Lloh7:
	adrp	x11, _muse_timer_2bit_counter@GOTPAGE
Lloh8:
	ldr	x11, [x11, _muse_timer_2bit_counter@GOTPAGEOFF]
	ldr	w12, [x11]
	cbnz	w12, LBB0_3
; %bb.2:
Lloh9:
	adrp	x13, _muse_timer_2bit@GOTPAGE
Lloh10:
	ldr	x13, [x13, _muse_timer_2bit@GOTPAGEOFF]
	ldr	w14, [x13]
	add	w14, w14, #1
	negs	w15, w14
	and	w15, w15, #0x3
	and	w14, w14, #0x3
	csneg	w14, w14, w15, mi
	str	w14, [x13]
LBB0_3:
	add	w12, w12, #1
	mov	w13, #21846
	movk	w13, #21845, lsl #16
	smull	x13, w12, w13
	lsr	x14, x13, #63
	lsr	x13, x13, #32
	add	w13, w13, w14
	add	w13, w13, w13, lsl #1
	sub	w12, w12, w13
	str	w12, [x11]
Lloh11:
	adrp	x11, _muse_timer_4bit@GOTPAGE
Lloh12:
	ldr	x11, [x11, _muse_timer_4bit@GOTPAGEOFF]
	ldr	w12, [x11]
	add	w12, w12, #1
	negs	w13, w12
	and	w13, w13, #0xf
	and	w12, w12, #0xf
	csneg	w12, w12, w13, mi
	str	w12, [x11]
Lloh13:
	adrp	x11, _muse_timer_31bit@GOTPAGE
Lloh14:
	ldr	x11, [x11, _muse_timer_31bit@GOTPAGEOFF]
	ldr	w12, [x11]
	add	w10, w10, w12, lsl #1
	str	w10, [x11]
LBB0_4:
	add	w9, w9, #1
	and	w10, w9, #0x1
	cmp	w9, #0
	cneg	w9, w10, lt
	str	w9, [x8]
Lloh15:
	adrp	x20, _muse_interval@GOTPAGE
Lloh16:
	ldr	x20, [x20, _muse_interval@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_bit_for_value
	mov	x19, x0
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
	bl	_bit_for_value
	add	w19, w19, w0, lsl #1
	ldr	x8, [x20]
	ldr	w0, [x8, #8]
	bl	_bit_for_value
	add	w19, w19, w0, lsl #2
	ldr	x8, [x20]
	ldr	w0, [x8, #12]
	bl	_bit_for_value
	add	w0, w19, w0, lsl #3
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_number_of_ones_to_bool,8,3     ; @number_of_ones_to_bool
	.comm	_muse_theme,8,3                 ; @muse_theme
	.comm	_muse_timer_1bit,4,2            ; @muse_timer_1bit
	.comm	_muse_timer_2bit_counter,4,2    ; @muse_timer_2bit_counter
	.comm	_muse_timer_2bit,4,2            ; @muse_timer_2bit
	.comm	_muse_timer_4bit,4,2            ; @muse_timer_4bit
	.comm	_muse_timer_31bit,4,2           ; @muse_timer_31bit
	.comm	_muse_interval,8,3              ; @muse_interval
.subsections_via_symbols
