	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_channel_idx
_get_channel_idx:                       ## @get_channel_idx
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	$0, -44(%rbp)
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movl	%ecx, %r14d
	movq	%rsi, %r15
	movsbl	%dl, %ebx
	movl	%ebx, %esi
	callq	_split
	movq	%rax, %r12
	cmpb	$45, %bl
	jne	LBB0_3
## %bb.2:
	testq	%r12, %r12
	jne	LBB0_3
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_3:
	movq	(%r13), %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdx
	callq	_sscanf
	cmpl	%ebx, -44(%rbp)
	jne	LBB0_4
## %bb.5:
	movl	(%r15), %eax
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	cmpl	%r14d, %eax
	jg	LBB0_4
## %bb.7:
	movq	%r12, (%r13)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d%n"

	.no_dead_strip	_get_channel_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_channel_idx
_get_channel_idx:                       ; @get_channel_idx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	str	wzr, [sp, #12]
	ldr	x0, [x0]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x1, x2
	bl	_split
	mov	x22, x0
	cmp	w23, #45
	b.ne	LBB0_4
; %bb.2:
	cbnz	x22, LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_AVERROR
LBB0_4:
	ldr	x0, [x19]
	bl	_strlen
	mov	x23, x0
	ldr	x0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #12
	mov	x2, x21
	bl	_sscanf
	ldr	w8, [sp, #12]
	cmp	w8, w23
	b.ne	LBB0_8
; %bb.5:
	ldr	w8, [x21]
	tbnz	w8, #31, LBB0_8
; %bb.6:
	cmp	w8, w20
	b.gt	LBB0_8
; %bb.7:
	mov	w0, #0
	str	x22, [x19]
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d%n"

	.no_dead_strip	_get_channel_idx
.subsections_via_symbols
