	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_opt_get_channel_layout      ## -- Begin function av_opt_get_channel_layout
	.p2align	4, 0x90
_av_opt_get_channel_layout:             ## @av_opt_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
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r8d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	-32(%rbp), %r9
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_av_opt_find2
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	-32(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.3:
	movq	(%rax), %rdx
	movq	_AV_OPT_TYPE_CHANNEL_LAYOUT@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_4
## %bb.5:
	movslq	8(%rax), %rax
	movl	(%rcx,%rax,4), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_2:
	movq	_AVERROR_OPTION_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rcx
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_OPTION_NOT_FOUND,4,2   ## @AVERROR_OPTION_NOT_FOUND
	.comm	_AV_OPT_TYPE_CHANNEL_LAYOUT,8,3 ## @AV_OPT_TYPE_CHANNEL_LAYOUT
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The value for option '%s' is not a channel layout.\n"

	.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_opt_get_channel_layout      ; -- Begin function av_opt_get_channel_layout
	.p2align	2
_av_opt_get_channel_layout:             ; @av_opt_get_channel_layout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x3
	mov	x4, x2
	mov	x19, x1
	mov	x21, x0
	add	x5, sp, #8
	mov	x2, #0
	mov	w3, #0
	bl	_av_opt_find2
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x9, [sp, #8]
	cbz	x9, LBB0_4
; %bb.2:
	mov	x8, x0
	ldr	x10, [x0]
Lloh0:
	adrp	x11, _AV_OPT_TYPE_CHANNEL_LAYOUT@GOTPAGE
Lloh1:
	ldr	x11, [x11, _AV_OPT_TYPE_CHANNEL_LAYOUT@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_5
; %bb.3:
	mov	w0, #0
	ldrsw	x8, [x8, #8]
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [x20]
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _AVERROR_OPTION_NOT_FOUND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_OPTION_NOT_FOUND@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x19
	bl	_av_log
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_OPTION_NOT_FOUND,4,2   ; @AVERROR_OPTION_NOT_FOUND
	.comm	_AV_OPT_TYPE_CHANNEL_LAYOUT,8,3 ; @AV_OPT_TYPE_CHANNEL_LAYOUT
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The value for option '%s' is not a channel layout.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
