	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mov_get_channel_layout      ## -- Begin function ff_mov_get_channel_layout
	.p2align	4, 0x90
_ff_mov_get_channel_layout:             ## @ff_mov_get_channel_layout
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MOV_CH_LAYOUT_USE_DESCRIPTIONS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%edi, (%rcx)
	je	LBB0_7
## %bb.1:
	movq	_MOV_CH_LAYOUT_USE_BITMAP@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	cmpl	$262144, %esi                   ## imm = 0x40000
	cmovll	%esi, %eax
	popq	%rbp
	retq
LBB0_3:
	movzwl	%di, %eax
	xorl	%ecx, %ecx
	cmpl	$10, %eax
	cmovbl	%eax, %ecx
	movq	_mov_ch_layout_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rcx,8), %rax
	movq	$-1, %rcx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rax,%rcx,8), %edx
	incq	%rcx
	testl	%edx, %edx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%edi, %edx
	jne	LBB0_4
LBB0_6:
	movl	%ecx, %ecx
	movl	4(%rax,%rcx,8), %eax
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MOV_CH_LAYOUT_USE_DESCRIPTIONS,4,2 ## @MOV_CH_LAYOUT_USE_DESCRIPTIONS
	.comm	_MOV_CH_LAYOUT_USE_BITMAP,4,2   ## @MOV_CH_LAYOUT_USE_BITMAP
	.comm	_mov_ch_layout_map,8,3          ## @mov_ch_layout_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mov_get_channel_layout      ; -- Begin function ff_mov_get_channel_layout
	.p2align	2
_ff_mov_get_channel_layout:             ; @ff_mov_get_channel_layout
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MOV_CH_LAYOUT_USE_DESCRIPTIONS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MOV_CH_LAYOUT_USE_DESCRIPTIONS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
Lloh3:
	adrp	x8, _MOV_CH_LAYOUT_USE_BITMAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MOV_CH_LAYOUT_USE_BITMAP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_4
; %bb.3:
	cmp	w1, #64, lsl #12                ; =262144
	csel	w0, w1, wzr, lt
	ret
LBB0_4:
	and	w8, w0, #0xffff
Lloh6:
	adrp	x9, _mov_ch_layout_map@GOTPAGE
Lloh7:
	ldr	x9, [x9, _mov_ch_layout_map@GOTPAGEOFF]
	cmp	w8, #9
	csel	w8, wzr, w8, hi
Lloh8:
	ldr	x9, [x9]
	ldr	x8, [x9, w8, uxtw #3]
	mov	x9, #-1
	mov	x10, x8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #8
	add	x9, x9, #1
	cmp	w11, #0
	ccmp	w11, w0, #4, ne
	b.ne	LBB0_5
; %bb.6:
	add	x8, x8, w9, uxtw #3
	ldr	w0, [x8, #4]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MOV_CH_LAYOUT_USE_DESCRIPTIONS,4,2 ; @MOV_CH_LAYOUT_USE_DESCRIPTIONS
	.comm	_MOV_CH_LAYOUT_USE_BITMAP,4,2   ; @MOV_CH_LAYOUT_USE_BITMAP
	.comm	_mov_ch_layout_map,8,3          ; @mov_ch_layout_map
.subsections_via_symbols
