	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function channel_tone_porta
_channel_tone_porta:                    ## @channel_tone_porta
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	testq	%rax, %rax
	jle	LBB0_5
## %bb.1:
	movq	8(%rdi), %rcx
	movl	16(%rdi), %edx
	shll	$2, %edx
	movslq	%edx, %rdx
	cmpq	%rcx, %rax
	jge	LBB0_3
## %bb.2:
	addq	%rdx, %rax
	cmpq	%rcx, %rax
	cmovgeq	%rcx, %rax
	jmp	LBB0_4
LBB0_3:
	subq	%rdx, %rax
	cmpq	%rcx, %rax
	cmovleq	%rcx, %rax
LBB0_4:
	movq	%rax, (%rdi)
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_channel_tone_porta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function channel_tone_porta
_channel_tone_porta:                    ; @channel_tone_porta
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	x9, [x0, #8]
	ldr	w10, [x0, #16]
	lsl	w10, w10, #2
	sxtw	x10, w10
	sub	x11, x8, x10
	cmp	x11, x9
	csel	x11, x11, x9, gt
	add	x10, x8, x10
	cmp	x10, x9
	csel	x10, x10, x9, lt
	cmp	x8, x9
	csel	x8, x11, x10, ge
	str	x8, [x0]
LBB0_2:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_channel_tone_porta
.subsections_via_symbols
