	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_timer_mode
_set_timer_mode:                        ## @set_timer_mode
	.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
	movl	%edi, %ebx
	movq	_timer_mode@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	_TMR_MODE_CLS@GOTPCREL(%rip), %r14
	movl	$60, %esi
	testl	%eax, (%r14)
	jne	LBB0_2
## %bb.1:
	movq	_TMR_MODE_SMPTE@GOTPCREL(%rip), %rcx
	movl	$61, %esi
	testl	%eax, (%rcx)
	je	LBB0_3
LBB0_2:
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_mpu_cmd
LBB0_3:
	movl	(%r15), %eax
	movq	_TMR_INTERNAL@GOTPCREL(%rip), %rcx
	movl	$128, %esi
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.4:
	movq	_TMR_MODE_MIDI@GOTPCREL(%rip), %rcx
	movl	(%r14), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_7
## %bb.5:
	movl	%ebx, %edi
	movl	$130, %esi
	xorl	%edx, %edx
	callq	_mpu_cmd
	movl	$145, %esi
	jmp	LBB0_6
LBB0_7:
	movq	_TMR_MODE_FSK@GOTPCREL(%rip), %rcx
	movl	$129, %esi
	testl	%eax, (%rcx)
	je	LBB0_8
LBB0_6:
	movl	%ebx, %edi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mpu_cmd                        ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_timer_mode,4,2                 ## @timer_mode
	.comm	_TMR_MODE_CLS,4,2               ## @TMR_MODE_CLS
	.comm	_TMR_MODE_SMPTE,4,2             ## @TMR_MODE_SMPTE
	.comm	_TMR_INTERNAL,4,2               ## @TMR_INTERNAL
	.comm	_TMR_MODE_MIDI,4,2              ## @TMR_MODE_MIDI
	.comm	_TMR_MODE_FSK,4,2               ## @TMR_MODE_FSK
	.no_dead_strip	_set_timer_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_timer_mode
_set_timer_mode:                        ; @set_timer_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _timer_mode@GOTPAGE
Lloh1:
	ldr	x21, [x21, _timer_mode@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x20, _TMR_MODE_CLS@GOTPAGE
Lloh3:
	ldr	x20, [x20, _TMR_MODE_CLS@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w1, #60
	b	LBB0_4
LBB0_2:
Lloh4:
	adrp	x9, _TMR_MODE_SMPTE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _TMR_MODE_SMPTE@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	mov	w1, #61
LBB0_4:
	mov	x0, x19
	mov	w2, #0
	bl	_mpu_cmd
LBB0_5:
	ldr	w8, [x21]
Lloh7:
	adrp	x9, _TMR_INTERNAL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TMR_INTERNAL@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	w1, #128
	b	LBB0_11
LBB0_7:
Lloh10:
	adrp	x9, _TMR_MODE_MIDI@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TMR_MODE_MIDI@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	ldr	w10, [x20]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #130
	mov	w2, #0
	bl	_mpu_cmd
	mov	w1, #145
	b	LBB0_11
LBB0_9:
Lloh13:
	adrp	x9, _TMR_MODE_FSK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TMR_MODE_FSK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.10:
	mov	w1, #129
LBB0_11:
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mpu_cmd
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_timer_mode,4,2                 ; @timer_mode
	.comm	_TMR_MODE_CLS,4,2               ; @TMR_MODE_CLS
	.comm	_TMR_MODE_SMPTE,4,2             ; @TMR_MODE_SMPTE
	.comm	_TMR_INTERNAL,4,2               ; @TMR_INTERNAL
	.comm	_TMR_MODE_MIDI,4,2              ; @TMR_MODE_MIDI
	.comm	_TMR_MODE_FSK,4,2               ; @TMR_MODE_FSK
	.no_dead_strip	_set_timer_mode
.subsections_via_symbols
