	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mov_get_channel_layout_tag  ## -- Begin function ff_mov_get_channel_layout_tag
	.p2align	4, 0x90
_ff_mov_get_channel_layout_tag:         ## @ff_mov_get_channel_layout_tag
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	_mov_codec_ch_layouts@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_AV_CODEC_ID_NONE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	%edi, %esi
	movq	$-1, %rcx
	movq	%rax, %rdi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rbx
	incq	%rcx
	cmpq	%rsi, %rbx
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	$16, %rdi
	cmpq	%rdx, %rbx
	jne	LBB0_1
LBB0_3:
	cmpq	%rdx, %rbx
	jne	LBB0_5
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_5:
	movl	%ecx, %ecx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %r12
	xorl	%ebx, %ebx
	testq	%r12, %r12
	je	LBB0_18
## %bb.6:
	movq	%r15, %rdi
	callq	_av_get_channel_layout_nb_channels
	cmpl	$10, %eax
	cmovgel	%ebx, %eax
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	je	LBB0_17
## %bb.7:
	movq	_mov_ch_layout_map@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movslq	%eax, %rsi
	movq	(%rdx,%rsi,8), %r9
	leaq	16(%r9), %r8
	xorl	%edi, %edi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	4(%r12,%rdi,4), %ecx
	incq	%rdi
	testl	%ecx, %ecx
	je	LBB0_16
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movzwl	%cx, %edx
	cmpl	%eax, %edx
	jne	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r9), %rdx
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%ecx, %ebx
	movq	%r8, %rsi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	(%rsi), %rdx
	addq	$16, %rsi
	testq	%rdx, %rdx
	je	LBB0_15
LBB0_11:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rbx, %rdx
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	cmpq	%r15, -8(%rsi)
	jne	LBB0_14
## %bb.13:
	movl	%ecx, %ebx
	jmp	LBB0_17
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	movl	%ebx, %ebx
LBB0_18:
	testq	%rbx, %rbx
	sete	%al
	leaq	-1(%r15), %rcx
	cmpq	$262143, %rcx                   ## imm = 0x3FFFF
	setb	%cl
	testb	%al, %cl
	je	LBB0_19
## %bb.20:
	movq	_MOV_CH_LAYOUT_USE_BITMAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_21
LBB0_19:
	xorl	%r15d, %r15d
LBB0_21:
	movq	%r15, (%r14)
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mov_codec_ch_layouts,8,3       ## @mov_codec_ch_layouts
	.comm	_AV_CODEC_ID_NONE,8,3           ## @AV_CODEC_ID_NONE
	.comm	_mov_ch_layout_map,8,3          ## @mov_ch_layout_map
	.comm	_MOV_CH_LAYOUT_USE_BITMAP,8,3   ## @MOV_CH_LAYOUT_USE_BITMAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mov_get_channel_layout_tag  ; -- Begin function ff_mov_get_channel_layout_tag
	.p2align	2
_ff_mov_get_channel_layout_tag:         ; @ff_mov_get_channel_layout_tag
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _mov_codec_ch_layouts@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mov_codec_ch_layouts@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _AV_CODEC_ID_NONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CODEC_ID_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x9]
	mov	w11, w0
	mov	x9, #-1
	mov	x12, x8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x12], #16
	add	x9, x9, #1
	cmp	x13, x11
	ccmp	x13, x10, #4, ne
	b.ne	LBB0_1
; %bb.2:
	cmp	x13, x10
	b.eq	LBB0_14
; %bb.3:
	add	x8, x8, w9, uxtw #4
	ldr	x21, [x8, #8]
	cbz	x21, LBB0_14
; %bb.4:
	mov	x0, x20
	bl	_av_get_channel_layout_nb_channels
	cmp	w0, #9
	csel	w9, wzr, w0, gt
	ldr	w8, [x21]
	cbz	w8, LBB0_13
; %bb.5:
	mov	x10, #0
Lloh6:
	adrp	x11, _mov_ch_layout_map@GOTPAGE
Lloh7:
	ldr	x11, [x11, _mov_ch_layout_map@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	ldr	x11, [x11, w9, sxtw #3]
	add	x12, x11, #16
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x10, x10, #1
	ldr	w8, [x21, x10, lsl #2]
	cbz	w8, LBB0_13
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	cmp	w9, w8, uxth
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x15, [x11]
	cbz	x15, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w13, w8
	mov	x14, x12
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	x15, [x14], #16
	cbz	x15, LBB0_6
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x15, x13
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldur	x15, [x14, #-8]
	cmp	x15, x20
	b.ne	LBB0_10
LBB0_13:
	mov	w8, w8
	b	LBB0_15
LBB0_14:
	mov	x8, #0
LBB0_15:
	cmp	x8, #0
	cset	w9, eq
	sub	x10, x20, #1
	mov	w11, #262143
	cmp	x10, x11
	cset	w10, lo
Lloh9:
	adrp	x11, _MOV_CH_LAYOUT_USE_BITMAP@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MOV_CH_LAYOUT_USE_BITMAP@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	tst	w10, w9
	csel	x9, x20, xzr, ne
	csel	x0, x11, x8, ne
	str	x9, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_mov_codec_ch_layouts,8,3       ; @mov_codec_ch_layouts
	.comm	_AV_CODEC_ID_NONE,8,3           ; @AV_CODEC_ID_NONE
	.comm	_mov_ch_layout_map,8,3          ; @mov_ch_layout_map
	.comm	_MOV_CH_LAYOUT_USE_BITMAP,8,3   ; @MOV_CH_LAYOUT_USE_BITMAP
.subsections_via_symbols
