	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libopus_validate_layout_and_get_channel_map
_libopus_validate_layout_and_get_channel_map: ## @libopus_validate_layout_and_get_channel_map
	.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	%rdx, %r14
	movl	%esi, %ecx
	movq	%rdi, %r15
	testl	%esi, %esi
	jg	LBB0_5
## %bb.1:
	cmpl	$-1, %ecx
	je	LBB0_8
## %bb.2:
	testl	%ecx, %ecx
	jne	LBB0_12
## %bb.3:
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_libopus_check_max_channels
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.4:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_libopus_check_vorbis_layout
	jmp	LBB0_15
LBB0_5:
	cmpl	$1, %ecx
	je	LBB0_10
## %bb.6:
	cmpl	$255, %ecx
	jne	LBB0_12
## %bb.7:
	movq	%r15, %rdi
	movl	$254, %esi
	callq	_libopus_check_max_channels
	jmp	LBB0_14
LBB0_8:
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_libopus_check_max_channels
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	movl	$-1, %esi
	callq	_libopus_check_vorbis_layout
	jmp	LBB0_14
LBB0_10:
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_libopus_check_max_channels
	testl	%eax, %eax
	je	LBB0_11
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_12:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_11:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_libopus_check_vorbis_layout
	movq	_ff_vorbis_channel_layout_offsets@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%r15), %rdx
	movq	-8(%rcx,%rdx,8), %rbx
LBB0_15:
	movq	%rbx, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_vorbis_channel_layout_offsets,8,3 ## @ff_vorbis_channel_layout_offsets
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown channel mapping family %d. Output channel layout may be invalid.\n"

	.no_dead_strip	_libopus_validate_layout_and_get_channel_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libopus_validate_layout_and_get_channel_map
_libopus_validate_layout_and_get_channel_map: ; @libopus_validate_layout_and_get_channel_map
	.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
	mov	x19, x2
	mov	x3, x1
	mov	x20, x0
	cmp	w1, #0
	b.gt	LBB0_5
; %bb.1:
	cmn	w3, #1
	b.eq	LBB0_8
; %bb.2:
	cbnz	w3, LBB0_13
; %bb.3:
	mov	x0, x20
	mov	w1, #2
	bl	_libopus_check_max_channels
	cbnz	w0, LBB0_12
; %bb.4:
	mov	x0, x20
	mov	w1, #0
	b	LBB0_10
LBB0_5:
	cmp	w3, #1
	b.eq	LBB0_11
; %bb.6:
	cmp	w3, #255
	b.ne	LBB0_13
; %bb.7:
	mov	x0, x20
	mov	w1, #254
	bl	_libopus_check_max_channels
	b	LBB0_12
LBB0_8:
	mov	x0, x20
	mov	w1, #8
	bl	_libopus_check_max_channels
	cbnz	w0, LBB0_12
; %bb.9:
	mov	x0, x20
	mov	w1, #-1
LBB0_10:
	bl	_libopus_check_vorbis_layout
	b	LBB0_12
LBB0_11:
	mov	x0, x20
	mov	w1, #8
	bl	_libopus_check_max_channels
	cbz	w0, LBB0_14
LBB0_12:
	mov	x8, #0
	b	LBB0_15
LBB0_13:
Lloh0:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
	mov	x8, #0
	mov	w0, #0
	b	LBB0_15
LBB0_14:
	mov	x0, x20
	mov	w1, #1
	bl	_libopus_check_vorbis_layout
Lloh5:
	adrp	x8, _ff_vorbis_channel_layout_offsets@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ff_vorbis_channel_layout_offsets@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #3
	ldur	x8, [x8, #-8]
LBB0_15:
	str	x8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_vorbis_channel_layout_offsets,8,3 ; @ff_vorbis_channel_layout_offsets
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown channel mapping family %d. Output channel layout may be invalid.\n"

	.no_dead_strip	_libopus_validate_layout_and_get_channel_map
.subsections_via_symbols
