	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ch_id_to_ch_index
_ch_id_to_ch_index:                     ## @ch_id_to_ch_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	callq	_is_valid_channel
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movq	%rax, %rcx
	movl	$255, %eax
	testq	%rcx, %rcx
	jne	LBB0_10
## %bb.1:
	cmpl	$14, %ebx
	jg	LBB0_3
## %bb.2:
	decl	%ebx
	jmp	LBB0_9
LBB0_3:
	cmpl	$64, %ebx
	ja	LBB0_5
## %bb.4:
	addl	$20, %ebx
	jmp	LBB0_8
LBB0_5:
	cmpl	$140, %ebx
	ja	LBB0_7
## %bb.6:
	addl	$244, %ebx
	shrl	$2, %ebx
	andl	$63, %ebx
	jmp	LBB0_9
LBB0_7:
	addl	$-13, %ebx
LBB0_8:
	shrl	$2, %ebx
LBB0_9:
	movl	%ebx, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ch_id_to_ch_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ch_id_to_ch_index
_ch_id_to_ch_index:                     ; @ch_id_to_ch_index
	.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
	mov	x19, x0
	bl	_is_valid_channel
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	mov	w8, #255
	sub	w9, w19, #13
	lsr	w9, w9, #2
	add	w10, w19, #244
	ubfx	w10, w10, #2, #6
	cmp	w19, #140
	csel	w9, w9, w10, hi
	add	w10, w19, #20
	lsr	w10, w10, #2
	cmp	w19, #64
	csel	w9, w9, w10, hi
	sub	w10, w19, #1
	cmp	w19, #14
	csel	w9, w9, w10, gt
	cmp	x0, #0
	csel	w0, w8, w9, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ch_id_to_ch_index
.subsections_via_symbols
