	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function timer_open
_timer_open:                            ## @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	_opened@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_3
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_tmr_reset
	movq	_curr_tempo@GOTPCREL(%rip), %rax
	movl	$60, (%rax)
	movq	_curr_timebase@GOTPCREL(%rip), %rax
	movl	$100, (%rax)
	movl	$1, (%r14)
	xorl	%eax, %eax
	callq	_reprogram_timer
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_opened,4,2                     ## @opened
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_curr_tempo,4,2                 ## @curr_tempo
	.comm	_curr_timebase,4,2              ## @curr_timebase
	.no_dead_strip	_timer_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function timer_open
_timer_open:                            ; @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	x19, _opened@GOTPAGE
Lloh1:
	ldr	x19, [x19, _opened@GOTPAGEOFF]
	ldr	w8, [x19]
	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:
	bl	_tmr_reset
Lloh5:
	adrp	x8, _curr_tempo@GOTPAGE
Lloh6:
	ldr	x8, [x8, _curr_tempo@GOTPAGEOFF]
	mov	w9, #60
Lloh7:
	str	w9, [x8]
Lloh8:
	adrp	x8, _curr_timebase@GOTPAGE
Lloh9:
	ldr	x8, [x8, _curr_timebase@GOTPAGEOFF]
	mov	w9, #100
Lloh10:
	str	w9, [x8]
	mov	w8, #1
	str	w8, [x19]
	bl	_reprogram_timer
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_opened,4,2                     ; @opened
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_curr_tempo,4,2                 ; @curr_tempo
	.comm	_curr_timebase,4,2              ; @curr_timebase
	.no_dead_strip	_timer_open
.subsections_via_symbols
