	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_che
_get_che:                               ## @get_che
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rdi), %rax
	movl	16(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %eax
	movq	_TYPE_CPE@GOTPCREL(%rip), %rdi
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	cmpl	%r15d, (%rdi)
	jne	LBB0_9
## %bb.4:
	cmpl	$1, %ecx
	jne	LBB0_9
## %bb.5:
	movq	%rsp, %r13
	movq	_MAX_ELEM_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %eax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%rbx, %rdi
	callq	_push_output_configuration
	movl	36(%rbx), %edi
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movl	36(%rbx), %edi
	leaq	-52(%rbp), %rdx
	movq	%r12, %rsi
	movl	$2, %ecx
	callq	_set_default_channel_config
	testq	%rax, %rax
	js	LBB0_7
## %bb.6:
	movl	-52(%rbp), %edx
	movq	_OC_TRIAL_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$1, %r8d
	callq	_output_configure
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:
	movq	24(%rbx), %rax
	movq	$2, 16(%rax)
	movq	%r13, %rsp
	movl	(%rbx), %eax
	movq	_TYPE_CPE@GOTPCREL(%rip), %rdi
LBB0_9:
	movq	_TYPE_SCE@GOTPCREL(%rip), %r13
	testl	%eax, %eax
	jne	LBB0_17
## %bb.10:
	cmpl	%r15d, (%r13)
	jne	LBB0_17
## %bb.11:
	movq	24(%rbx), %rax
	cmpl	$2, 16(%rax)
	jne	LBB0_17
## %bb.12:
	movq	%rsp, %r13
	movq	_MAX_ELEM_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %eax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%rbx, %rdi
	callq	_push_output_configuration
	movl	36(%rbx), %edi
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movl	36(%rbx), %edi
	leaq	-52(%rbp), %rdx
	movq	%r12, %rsi
	movl	$1, %ecx
	callq	_set_default_channel_config
	testq	%rax, %rax
	js	LBB0_7
## %bb.13:
	movl	-52(%rbp), %edx
	movq	_OC_TRIAL_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$1, %r8d
	callq	_output_configure
	testq	%rax, %rax
	js	LBB0_7
## %bb.14:
	movq	24(%rbx), %rax
	movl	$1, 16(%rax)
	cmpq	$0, 24(%rax)
	je	LBB0_16
## %bb.15:
	movl	$-1, 20(%rax)
LBB0_16:
	movq	%r13, %rsp
	movq	_TYPE_CPE@GOTPCREL(%rip), %rdi
	movq	_TYPE_SCE@GOTPCREL(%rip), %r13
LBB0_17:
	movq	24(%rbx), %rax
	movl	16(%rax), %ecx
	xorl	%eax, %eax
	leal	-1(%rcx), %edx
	cmpl	$11, %edx
	ja	LBB0_65
## %bb.18:
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_19:
	movl	(%rbx), %eax
	cmpl	$3, %eax
	jne	LBB0_23
## %bb.20:
	cmpl	%r15d, (%rdi)
	jne	LBB0_23
## %bb.21:
	movl	$4, (%rbx)
	movslq	(%rdi), %rcx
	movq	8(%rbx), %rax
	movq	16(%rbx), %rdx
	movq	(%rax,%rcx,8), %rax
	movq	16(%rax), %rax
	jmp	LBB0_64
LBB0_1:
	movq	16(%rbx), %rax
	movslq	%r15d, %rcx
	movq	(%rax,%rcx,8), %rax
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %rax
	jmp	LBB0_65
LBB0_7:
	movq	%r13, %rsp
	xorl	%eax, %eax
	jmp	LBB0_65
LBB0_59:
	movl	(%rbx), %edx
	jmp	LBB0_60
LBB0_42:
	movl	(%rbx), %eax
	jmp	LBB0_43
LBB0_38:
	movl	(%rbx), %eax
	jmp	LBB0_39
LBB0_28:
	movl	(%rbx), %eax
	jmp	LBB0_29
LBB0_22:
	movl	(%rbx), %eax
LBB0_23:
	cmpl	$2, %eax
	jne	LBB0_29
## %bb.24:
	movl	$2, %eax
	cmpl	$11, %ecx
	jne	LBB0_29
## %bb.25:
	cmpl	%r15d, (%r13)
	je	LBB0_26
LBB0_29:
	movq	_tags_per_config@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rcx,4), %edx
	decl	%edx
	cmpl	%edx, %eax
	jne	LBB0_39
## %bb.30:
	movq	_TYPE_LFE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	(%r13), %edx
	cmpl	%r15d, %esi
	je	LBB0_32
## %bb.31:
	cmpl	%r15d, %edx
	je	LBB0_32
LBB0_39:
	cmpl	$2, %eax
	jne	LBB0_43
## %bb.40:
	cmpl	%r15d, (%rdi)
	jne	LBB0_43
## %bb.41:
	movl	$3, (%rbx)
	movslq	(%rdi), %rcx
	jmp	LBB0_27
LBB0_43:
	movq	_tags_per_config@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rcx,4), %edx
	decl	%edx
	cmpl	%edx, %eax
	jne	LBB0_51
## %bb.44:
	movq	_TYPE_LFE@GOTPCREL(%rip), %rsi
	movl	(%r13), %edx
	cmpl	%r15d, (%rsi)
	je	LBB0_46
## %bb.45:
	cmpl	%r15d, %edx
	je	LBB0_46
LBB0_51:
	cmpl	$2, %eax
	jne	LBB0_54
## %bb.52:
	cmpl	$4, %ecx
	jne	LBB0_54
## %bb.53:
	cmpl	%r15d, (%r13)
	jne	LBB0_54
LBB0_26:
	movl	$3, (%rbx)
	movslq	(%r13), %rcx
LBB0_27:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rdx
	movq	(%rax,%rcx,8), %rax
	movq	8(%rax), %rax
	jmp	LBB0_64
LBB0_54:
	movl	(%rbx), %edx
	xorl	%eax, %eax
	cmpl	$2, %ecx
	setne	%al
	cmpl	%eax, %edx
	jne	LBB0_57
## %bb.55:
	cmpl	%r15d, (%rdi)
	jne	LBB0_57
## %bb.56:
	incl	%edx
	movl	%edx, (%rbx)
	movslq	(%rdi), %rcx
	jmp	LBB0_63
LBB0_57:
	cmpl	$2, %ecx
	jne	LBB0_60
## %bb.58:
	xorl	%eax, %eax
	jmp	LBB0_65
LBB0_60:
	xorl	%eax, %eax
	testl	%edx, %edx
	jne	LBB0_65
## %bb.61:
	cmpl	%r15d, (%r13)
	jne	LBB0_65
## %bb.62:
	movl	$1, (%rbx)
	movslq	(%r13), %rcx
LBB0_63:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rdx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
LBB0_64:
	movq	(%rdx,%rcx,8), %rcx
	movslq	%r14d, %rdx
	movq	%rax, (%rcx,%rdx,8)
LBB0_65:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_67
## %bb.66:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	cmpl	$0, 32(%rbx)
	jne	LBB0_36
## %bb.33:
	testl	%r14d, %r14d
	jne	LBB0_35
## %bb.34:
	cmpl	%r15d, %esi
	je	LBB0_36
LBB0_35:
	cmpl	%r15d, %edx
	movl	36(%rbx), %edi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.2(%rip), %rdx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_av_log
	incl	32(%rbx)
	movl	(%rbx), %eax
LBB0_36:
	incl	%eax
	movl	%eax, (%rbx)
	movslq	(%r12), %rax
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rdx
	movq	(%rcx,%rax,8), %rax
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	jmp	LBB0_64
LBB0_46:
	cmpl	$0, 32(%rbx)
	jne	LBB0_50
## %bb.47:
	cmpl	$1, %r14d
	jne	LBB0_49
## %bb.48:
	cmpl	%r15d, %edx
	je	LBB0_50
LBB0_49:
	cmpl	%r15d, %edx
	movl	36(%rbx), %edi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.5(%rip), %rdx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_av_log
	incl	32(%rbx)
	movl	(%rbx), %eax
LBB0_50:
	incl	%eax
	movl	%eax, (%rbx)
	movslq	(%r13), %rax
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rdx
	movq	(%rcx,%rax,8), %rax
	movq	8(%rax), %rax
	movslq	%r15d, %rcx
	jmp	LBB0_64
LBB0_67:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_59, LBB0_59-LJTI0_0
.set L0_0_set_54, LBB0_54-LJTI0_0
.set L0_0_set_42, LBB0_42-LJTI0_0
.set L0_0_set_38, LBB0_38-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_65, LBB0_65-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_59
	.long	L0_0_set_54
	.long	L0_0_set_54
	.long	L0_0_set_42
	.long	L0_0_set_38
	.long	L0_0_set_28
	.long	L0_0_set_19
	.long	L0_0_set_65
	.long	L0_0_set_65
	.long	L0_0_set_65
	.long	L0_0_set_22
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_TYPE_CPE,4,2                   ## @TYPE_CPE
	.comm	_MAX_ELEM_ID,4,2                ## @MAX_ELEM_ID
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mono with CPE\n"

	.comm	_OC_TRIAL_FRAME,4,2             ## @OC_TRIAL_FRAME
	.comm	_TYPE_SCE,4,2                   ## @TYPE_SCE
L_.str.1:                               ## @.str.1
	.asciz	"stereo with SCE\n"

	.comm	_tags_per_config,8,3            ## @tags_per_config
	.comm	_TYPE_LFE,4,2                   ## @TYPE_LFE
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"This stream seems to incorrectly report its last channel as %s[%d], mapping to LFE[0]\n"

L_.str.3:                               ## @.str.3
	.asciz	"SCE"

L_.str.4:                               ## @.str.4
	.asciz	"LFE"

L_.str.5:                               ## @.str.5
	.asciz	"This stream seems to incorrectly report its last channel as %s[%d], mapping to SCE[1]\n"

	.no_dead_strip	_get_che
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function get_che
lCPI0_0:
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_get_che:                               ; @get_che
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x8, [x0, #24]
	ldr	w9, [x8, #16]
	cbz	w9, LBB0_17
; %bb.1:
	ldr	w8, [x20]
Lloh3:
	adrp	x23, _TYPE_CPE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _TYPE_CPE@GOTPAGEOFF]
	ldr	w10, [x23]
	cmp	w8, #0
	ccmp	w10, w21, #0, eq
	ccmp	w9, #1, #0, eq
	b.ne	LBB0_5
; %bb.2:
	mov	x24, sp
Lloh5:
	adrp	x8, _MAX_ELEM_ID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_ELEM_ID@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	lsl	w8, w8, #2
	mov	w12, #12
	umull	x9, w8, w12
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	umsubl	x22, w8, w12, x9
	mov	sp, x22
	mov	x0, x20
	bl	_push_output_configuration
	ldr	w0, [x20, #36]
Lloh10:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	ldr	w0, [x20, #36]
	sub	x2, x29, #76
	mov	x1, x22
	mov	w3, #2
	bl	_set_default_channel_config
	tbnz	x0, #63, LBB0_18
; %bb.3:
	ldur	w2, [x29, #-76]
Lloh15:
	adrp	x8, _OC_TRIAL_FRAME@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OC_TRIAL_FRAME@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	w4, #1
	bl	_output_configure
	tbnz	x0, #63, LBB0_18
; %bb.4:
	ldr	x8, [x20, #24]
Lloh18:
	adrp	x9, lCPI0_0@PAGE
Lloh19:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8, #16]
	mov	sp, x24
	ldr	w8, [x20]
LBB0_5:
Lloh20:
	adrp	x24, _TYPE_SCE@GOTPAGE
Lloh21:
	ldr	x24, [x24, _TYPE_SCE@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w8, #0
	ccmp	w9, w21, #0, eq
	b.ne	LBB0_12
; %bb.6:
	ldr	x8, [x20, #24]
	ldr	w8, [x8, #16]
	cmp	w8, #2
	b.ne	LBB0_12
; %bb.7:
	mov	x25, sp
Lloh22:
	adrp	x8, _MAX_ELEM_ID@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MAX_ELEM_ID@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	lsl	w8, w8, #2
	mov	w12, #12
	umull	x9, w8, w12
Lloh25:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh26:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	umsubl	x22, w8, w12, x9
	mov	sp, x22
	mov	x0, x20
	bl	_push_output_configuration
	ldr	w0, [x20, #36]
Lloh27:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.1@PAGE
Lloh31:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
	ldr	w0, [x20, #36]
	sub	x2, x29, #76
	mov	x1, x22
	mov	w3, #1
	bl	_set_default_channel_config
	tbnz	x0, #63, LBB0_19
; %bb.8:
	ldur	w2, [x29, #-76]
Lloh32:
	adrp	x8, _OC_TRIAL_FRAME@GOTPAGE
Lloh33:
	ldr	x8, [x8, _OC_TRIAL_FRAME@GOTPAGEOFF]
Lloh34:
	ldr	w3, [x8]
	mov	w26, #1
	mov	x0, x20
	mov	x1, x22
	mov	w4, #1
	bl	_output_configure
	tbnz	x0, #63, LBB0_19
; %bb.9:
	ldr	x8, [x20, #24]
	str	w26, [x8, #16]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_11
; %bb.10:
	mov	w9, #-1
	str	w9, [x8, #20]
LBB0_11:
	mov	sp, x25
LBB0_12:
	mov	x0, #0
	ldr	x8, [x20, #24]
	ldr	w8, [x8, #16]
	sub	w9, w8, #1
	cmp	w9, #11
	b.hi	LBB0_59
; %bb.13:
Lloh35:
	adrp	x10, lJTI0_0@PAGE
Lloh36:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_14
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_14:
	ldr	w9, [x20]
	cmp	w9, #3
	b.ne	LBB0_25
; %bb.15:
	ldr	w10, [x23]
	cmp	w10, w21
	b.ne	LBB0_25
; %bb.16:
	mov	w8, #4
	str	w8, [x20]
	ldrsw	x8, [x23]
	lsl	x8, x8, #3
	ldp	x9, x10, [x20, #8]
	ldr	x9, [x9, x8]
	ldr	x0, [x9, #16]
	b	LBB0_57
LBB0_17:
	ldr	x8, [x20, #16]
	ldr	x8, [x8, w21, sxtw #3]
	ldr	x0, [x8, w19, sxtw #3]
	b	LBB0_59
LBB0_18:
	mov	sp, x24
	mov	x0, #0
	b	LBB0_59
LBB0_19:
	mov	sp, x25
	mov	x0, #0
	b	LBB0_59
LBB0_20:
	ldr	w9, [x20]
	b	LBB0_50
LBB0_21:
	ldr	w9, [x20]
	b	LBB0_38
LBB0_22:
	ldr	w9, [x20]
	b	LBB0_35
LBB0_23:
	ldr	w9, [x20]
	b	LBB0_28
LBB0_24:
	ldr	w9, [x20]
LBB0_25:
	cmp	w9, #2
	b.ne	LBB0_28
; %bb.26:
	ldr	w9, [x24]
	cmp	w8, #11
	ccmp	w9, w21, #0, eq
	b.eq	LBB0_55
; %bb.27:
	mov	w9, #2
LBB0_28:
Lloh37:
	adrp	x10, _tags_per_config@GOTPAGE
Lloh38:
	ldr	x10, [x10, _tags_per_config@GOTPAGEOFF]
Lloh39:
	ldr	x10, [x10]
	ldr	w10, [x10, x8, lsl #2]
	sub	w10, w10, #1
	cmp	w9, w10
	b.ne	LBB0_35
; %bb.29:
Lloh40:
	adrp	x22, _TYPE_LFE@GOTPAGE
Lloh41:
	ldr	x22, [x22, _TYPE_LFE@GOTPAGEOFF]
	ldr	w11, [x22]
	ldr	w10, [x24]
	cmp	w11, w21
	ccmp	w10, w21, #4, ne
	b.ne	LBB0_35
; %bb.30:
	ldr	w8, [x20, #32]
	cbnz	w8, LBB0_34
; %bb.31:
	cbnz	w19, LBB0_33
; %bb.32:
	cmp	w11, w21
	b.eq	LBB0_34
LBB0_33:
	ldr	w0, [x20, #36]
Lloh42:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
Lloh45:
	adrp	x8, l_.str.4@PAGE
Lloh46:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh47:
	adrp	x9, l_.str.3@PAGE
Lloh48:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w10, w21
	csel	x8, x9, x8, eq
	stp	x8, x19, [sp, #-16]!
Lloh49:
	adrp	x2, l_.str.2@PAGE
Lloh50:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_av_log
	add	sp, sp, #16
	ldr	w8, [x20, #32]
	add	w8, w8, #1
	str	w8, [x20, #32]
	ldr	w9, [x20]
LBB0_34:
	add	w8, w9, #1
	str	w8, [x20]
	ldrsw	x8, [x22]
	ldp	x9, x10, [x20, #8]
	ldr	x8, [x9, x8, lsl #3]
	ldr	x0, [x8]
	ldr	x8, [x10, w21, sxtw #3]
	b	LBB0_58
LBB0_35:
	cmp	w9, #2
	b.ne	LBB0_38
; %bb.36:
	ldr	w10, [x23]
	cmp	w10, w21
	b.ne	LBB0_38
; %bb.37:
	mov	w8, #3
	str	w8, [x20]
	ldrsw	x8, [x23]
	b	LBB0_56
LBB0_38:
Lloh51:
	adrp	x10, _tags_per_config@GOTPAGE
Lloh52:
	ldr	x10, [x10, _tags_per_config@GOTPAGEOFF]
Lloh53:
	ldr	x10, [x10]
	ldr	w10, [x10, x8, lsl #2]
	sub	w10, w10, #1
	cmp	w9, w10
	b.ne	LBB0_45
; %bb.39:
Lloh54:
	adrp	x10, _TYPE_LFE@GOTPAGE
Lloh55:
	ldr	x10, [x10, _TYPE_LFE@GOTPAGEOFF]
Lloh56:
	ldr	w11, [x10]
	ldr	w10, [x24]
	cmp	w11, w21
	ccmp	w10, w21, #4, ne
	b.ne	LBB0_45
; %bb.40:
	ldr	w8, [x20, #32]
	cbnz	w8, LBB0_44
; %bb.41:
	cmp	w19, #1
	b.ne	LBB0_43
; %bb.42:
	cmp	w10, w21
	b.eq	LBB0_44
LBB0_43:
	ldr	w0, [x20, #36]
Lloh57:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh59:
	adrp	x9, l_.str.4@PAGE
Lloh60:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh61:
	ldr	w1, [x8]
Lloh62:
	adrp	x8, l_.str.3@PAGE
Lloh63:
	add	x8, x8, l_.str.3@PAGEOFF
	cmp	w10, w21
	csel	x8, x8, x9, eq
	mov	x9, x19
	stp	x8, x9, [sp, #-16]!
Lloh64:
	adrp	x2, l_.str.5@PAGE
Lloh65:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_av_log
	add	sp, sp, #16
	ldr	w8, [x20, #32]
	add	w8, w8, #1
	str	w8, [x20, #32]
	ldr	w9, [x20]
LBB0_44:
	add	w8, w9, #1
	str	w8, [x20]
	ldrsw	x8, [x24]
	ldp	x9, x10, [x20, #8]
	ldr	x8, [x9, x8, lsl #3]
	ldr	x0, [x8, #8]
	ldr	x8, [x10, w21, sxtw #3]
	b	LBB0_58
LBB0_45:
	cmp	w9, #2
	b.ne	LBB0_47
; %bb.46:
	ldr	w9, [x24]
	cmp	w8, #4
	ccmp	w9, w21, #0, eq
	b.eq	LBB0_55
LBB0_47:
	ldr	w9, [x20]
	cmp	w8, #2
	cset	w10, ne
	ldr	w11, [x23]
	cmp	w9, w10
	ccmp	w11, w21, #0, eq
	b.eq	LBB0_53
; %bb.48:
	cmp	w8, #2
	b.ne	LBB0_50
; %bb.49:
	mov	x0, #0
	b	LBB0_59
LBB0_50:
	mov	x0, #0
	cbnz	w9, LBB0_59
; %bb.51:
	ldr	w8, [x24]
	cmp	w8, w21
	b.ne	LBB0_59
; %bb.52:
	mov	w8, #1
	str	w8, [x20]
	ldrsw	x8, [x24]
	b	LBB0_54
LBB0_53:
	add	w8, w9, #1
	str	w8, [x20]
	ldrsw	x8, [x23]
LBB0_54:
	lsl	x8, x8, #3
	ldp	x9, x10, [x20, #8]
	ldr	x9, [x9, x8]
	ldr	x0, [x9]
	b	LBB0_57
LBB0_55:
	mov	w8, #3
	str	w8, [x20]
	ldrsw	x8, [x24]
LBB0_56:
	lsl	x8, x8, #3
	ldp	x9, x10, [x20, #8]
	ldr	x9, [x9, x8]
	ldr	x0, [x9, #8]
LBB0_57:
	ldr	x8, [x10, x8]
LBB0_58:
	str	x0, [x8, w19, sxtw #3]
LBB0_59:
	ldur	x8, [x29, #-72]
Lloh66:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh67:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh68:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_61
; %bb.60:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_61:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdr	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh61
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_20-LBB0_14)>>2
	.byte	(LBB0_47-LBB0_14)>>2
	.byte	(LBB0_47-LBB0_14)>>2
	.byte	(LBB0_21-LBB0_14)>>2
	.byte	(LBB0_22-LBB0_14)>>2
	.byte	(LBB0_23-LBB0_14)>>2
	.byte	(LBB0_14-LBB0_14)>>2
	.byte	(LBB0_59-LBB0_14)>>2
	.byte	(LBB0_59-LBB0_14)>>2
	.byte	(LBB0_59-LBB0_14)>>2
	.byte	(LBB0_24-LBB0_14)>>2
	.byte	(LBB0_14-LBB0_14)>>2
                                        ; -- End function
	.comm	_TYPE_CPE,4,2                   ; @TYPE_CPE
	.comm	_MAX_ELEM_ID,4,2                ; @MAX_ELEM_ID
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mono with CPE\n"

	.comm	_OC_TRIAL_FRAME,4,2             ; @OC_TRIAL_FRAME
	.comm	_TYPE_SCE,4,2                   ; @TYPE_SCE
l_.str.1:                               ; @.str.1
	.asciz	"stereo with SCE\n"

	.comm	_tags_per_config,8,3            ; @tags_per_config
	.comm	_TYPE_LFE,4,2                   ; @TYPE_LFE
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"This stream seems to incorrectly report its last channel as %s[%d], mapping to LFE[0]\n"

l_.str.3:                               ; @.str.3
	.asciz	"SCE"

l_.str.4:                               ; @.str.4
	.asciz	"LFE"

l_.str.5:                               ; @.str.5
	.asciz	"This stream seems to incorrectly report its last channel as %s[%d], mapping to SCE[1]\n"

	.no_dead_strip	_get_che
.subsections_via_symbols
