	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_get_channel_layout_channel_index ## -- Begin function av_get_channel_layout_channel_index
	.p2align	4, 0x90
_av_get_channel_layout_channel_index:   ## @av_get_channel_layout_channel_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testl	%edi, %esi
	je	LBB0_2
## %bb.1:
	movl	%esi, %ebx
	movl	%edi, %r14d
	movl	%esi, %edi
	callq	_av_get_channel_layout_nb_channels
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.3:
	decl	%ebx
	andl	%r14d, %ebx
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_av_get_channel_layout_nb_channels ## TAILCALL
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_get_channel_layout_channel_index ; -- Begin function av_get_channel_layout_channel_index
	.p2align	2
_av_get_channel_layout_channel_index:   ; @av_get_channel_layout_channel_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
	tst	w1, w0
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_av_get_channel_layout_nb_channels
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.2:
	sub	w8, w20, #1
	and	w0, w8, w19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_av_get_channel_layout_nb_channels
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
