	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_get_standard_channel_layout ## -- Begin function av_get_standard_channel_layout
	.p2align	4, 0x90
_av_get_standard_channel_layout:        ## @av_get_standard_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
	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
	movl	%edi, %ebx
	movq	_channel_layout_map@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_FF_ARRAY_ELEMS
	cmpl	%ebx, %eax
	jbe	LBB0_1
## %bb.2:
	movl	%ebx, %ecx
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movq	(%r12), %rax
	movq	%rcx, %rdx
	shlq	$4, %rdx
	movl	8(%rax,%rdx), %eax
	movl	%eax, (%r15)
LBB0_4:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movq	(%r12), %rdx
	shlq	$4, %rcx
	movq	(%rdx,%rcx), %rcx
	movq	%rcx, (%r14)
	jmp	LBB0_6
LBB0_1:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_channel_layout_map,8,3         ## @channel_layout_map
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_get_standard_channel_layout ; -- Begin function av_get_standard_channel_layout
	.p2align	2
_av_get_standard_channel_layout:        ; @av_get_standard_channel_layout
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _channel_layout_map@GOTPAGE
Lloh1:
	ldr	x22, [x22, _channel_layout_map@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, w20
	b.ls	LBB0_5
; %bb.1:
	cbz	x21, LBB0_3
; %bb.2:
	ldr	x8, [x22]
	add	x8, x8, w20, uxtw #4
	ldr	w8, [x8, #8]
	str	w8, [x21]
LBB0_3:
	mov	w0, #0
	cbz	x19, LBB0_6
; %bb.4:
	ldr	x8, [x22]
	mov	w9, w20
	lsl	x9, x9, #4
	ldr	x8, [x8, x9]
	str	x8, [x19]
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_6:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_channel_layout_map,8,3         ; @channel_layout_map
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
.subsections_via_symbols
