	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpu_timer_open
_mpu_timer_open:                        ## @mpu_timer_open
	.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	_timer_open@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_3
LBB0_2:
	movq	_dev_conf@GOTPCREL(%rip), %rax
	movq	_sound_timer_devs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%edi, %rdx
	movq	(%rcx,%rdx,8), %rcx
	movslq	(%rcx), %r14
	movq	%r14, %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	callq	_tmr_reset
	movq	_curr_tempo@GOTPCREL(%rip), %rax
	movl	$50, (%rax)
	movl	%r14d, %edi
	movl	$224, %esi
	movl	$50, %edx
	callq	_mpu_cmd
	movq	_hw_timebase@GOTPCREL(%rip), %rax
	movl	$120, (%rax)
	movq	_curr_timebase@GOTPCREL(%rip), %rax
	movl	$120, (%rax)
	movl	%r14d, %edi
	movl	$120, %esi
	callq	_set_timebase
	movl	$1, (%rbx)
	movq	_metronome_mode@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	%r14d, %edi
	callq	_set_timer_mode
	movl	%r14d, %edi
	movl	$231, %esi
	movl	$4, %edx
	callq	_mpu_cmd
	xorl	%ebx, %ebx
	movl	%r14d, %edi
	movl	$149, %esi
	xorl	%edx, %edx
	callq	_mpu_cmd
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sound_timer_devs,8,3           ## @sound_timer_devs
	.comm	_dev_conf,8,3                   ## @dev_conf
	.comm	_timer_open,4,2                 ## @timer_open
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_curr_tempo,4,2                 ## @curr_tempo
	.comm	_hw_timebase,4,2                ## @hw_timebase
	.comm	_curr_timebase,4,2              ## @curr_timebase
	.comm	_metronome_mode,8,3             ## @metronome_mode
	.no_dead_strip	_mpu_timer_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpu_timer_open
_mpu_timer_open:                        ; @mpu_timer_open
	.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, _timer_open@GOTPAGE
Lloh1:
	ldr	x20, [x20, _timer_open@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _dev_conf@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dev_conf@GOTPAGEOFF]
Lloh7:
	adrp	x9, _sound_timer_devs@GOTPAGE
Lloh8:
	ldr	x9, [x9, _sound_timer_devs@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	ldr	x9, [x9]
	ldr	x9, [x9, w0, sxtw #3]
	ldrsw	x19, [x9]
	add	x0, x8, x19, lsl #2
	bl	_tmr_reset
Lloh11:
	adrp	x8, _curr_tempo@GOTPAGE
Lloh12:
	ldr	x8, [x8, _curr_tempo@GOTPAGEOFF]
	mov	w9, #50
Lloh13:
	str	w9, [x8]
	mov	x0, x19
	mov	w1, #224
	mov	w2, #50
	bl	_mpu_cmd
Lloh14:
	adrp	x8, _hw_timebase@GOTPAGE
Lloh15:
	ldr	x8, [x8, _hw_timebase@GOTPAGEOFF]
	mov	w9, #120
Lloh16:
	str	w9, [x8]
Lloh17:
	adrp	x8, _curr_timebase@GOTPAGE
Lloh18:
	ldr	x8, [x8, _curr_timebase@GOTPAGEOFF]
Lloh19:
	str	w9, [x8]
	mov	x0, x19
	mov	w1, #120
	bl	_set_timebase
	mov	w8, #1
	str	w8, [x20]
Lloh20:
	adrp	x8, _metronome_mode@GOTPAGE
Lloh21:
	ldr	x8, [x8, _metronome_mode@GOTPAGEOFF]
Lloh22:
	str	xzr, [x8]
	mov	x0, x19
	bl	_set_timer_mode
	mov	x0, x19
	mov	w1, #231
	mov	w2, #4
	bl	_mpu_cmd
	mov	x0, x19
	mov	w1, #149
	mov	w2, #0
	bl	_mpu_cmd
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_sound_timer_devs,8,3           ; @sound_timer_devs
	.comm	_dev_conf,8,3                   ; @dev_conf
	.comm	_timer_open,4,2                 ; @timer_open
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_curr_tempo,4,2                 ; @curr_tempo
	.comm	_hw_timebase,4,2                ; @hw_timebase
	.comm	_curr_timebase,4,2              ; @curr_timebase
	.comm	_metronome_mode,8,3             ; @metronome_mode
	.no_dead_strip	_mpu_timer_open
.subsections_via_symbols
