	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m88rs2000_set_tone
_m88rs2000_set_tone:                    ## @m88rs2000_set_tone
	.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	%esi, %r15d
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$154, %esi
	movl	$48, %edx
	callq	_m88rs2000_writereg
	movq	%rbx, %rdi
	movl	$177, %esi
	callq	_m88rs2000_readreg
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$178, %esi
	callq	_m88rs2000_readreg
	andl	$63, %eax
	cmpl	$129, %r15d
	je	LBB0_3
## %bb.1:
	cmpl	$128, %r15d
	jne	LBB0_4
## %bb.2:
	andl	$184, %r14d
	orl	$4, %r14d
	jmp	LBB0_4
LBB0_3:
	orl	$128, %eax
LBB0_4:
	movq	%rbx, %rdi
	movl	$178, %esi
	movl	%eax, %edx
	callq	_m88rs2000_writereg
	movq	%rbx, %rdi
	movl	$177, %esi
	movl	%r14d, %edx
	callq	_m88rs2000_writereg
	movq	%rbx, %rdi
	movl	$154, %esi
	movl	$176, %edx
	callq	_m88rs2000_writereg
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_m88rs2000_set_tone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m88rs2000_set_tone
_m88rs2000_set_tone:                    ; @m88rs2000_set_tone
	.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, x1
	ldr	x20, [x0]
	mov	x0, x20
	mov	w1, #154
	mov	w2, #48
	bl	_m88rs2000_writereg
	mov	x0, x20
	mov	w1, #177
	bl	_m88rs2000_readreg
	mov	x21, x0
	mov	x0, x20
	mov	w1, #178
	bl	_m88rs2000_readreg
	and	w8, w0, #0x3f
	orr	w9, w8, #0x80
	mov	w10, #184
	and	w10, w21, w10
	orr	w10, w10, #0x4
	cmp	w19, #128
	csel	w10, w21, w10, ne
	cmp	w19, #129
	csel	w19, w21, w10, eq
	csel	w2, w9, w8, eq
	mov	x0, x20
	mov	w1, #178
	bl	_m88rs2000_writereg
	mov	x0, x20
	mov	w1, #177
	mov	x2, x19
	bl	_m88rs2000_writereg
	mov	x0, x20
	mov	w1, #154
	mov	w2, #176
	bl	_m88rs2000_writereg
	mov	w0, #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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_m88rs2000_set_tone
.subsections_via_symbols
