	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_default_channel_config
_set_default_channel_config:            ## @set_default_channel_config
	.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
	movl	%ecx, %ebx
	movq	%rdi, %r15
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.1:
	cmpl	$12, %ebx
	ja	LBB0_3
## %bb.2:
	leal	-8(%rbx), %eax
	cmpl	$2, %eax
	jbe	LBB0_3
## %bb.4:
	movq	%rsi, %r14
	movq	_tags_per_config@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, (%rdx)
	movq	_aac_channel_layout_map@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leal	-1(%rbx), %edx
	movl	(%rcx,%rdx,4), %esi
	shll	$2, %eax
	leal	(%rax,%rax,2), %edx
	movq	%r14, %rdi
	callq	_memcpy
	xorl	%r12d, %r12d
	cmpl	$7, %ebx
	jne	LBB0_7
## %bb.5:
	movq	_FF_COMPLIANCE_STRICT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, (%r15)
	jge	LBB0_7
## %bb.6:
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	movq	_AAC_CHANNEL_SIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	jmp	LBB0_7
LBB0_3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_7:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid default channel configuration (%d)\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_tags_per_config,8,3            ## @tags_per_config
	.comm	_aac_channel_layout_map,8,3     ## @aac_channel_layout_map
	.comm	_FF_COMPLIANCE_STRICT,4,2       ## @FF_COMPLIANCE_STRICT
	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"Assuming an incorrectly encoded 7.1 channel layout instead of a spec-compliant 7.1(wide) layout, use -strict %d to decode according to the specification instead.\n"

	.comm	_AAC_CHANNEL_SIDE,4,2           ## @AAC_CHANNEL_SIDE
	.no_dead_strip	_set_default_channel_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_default_channel_config
_set_default_channel_config:            ; @set_default_channel_config
	.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	x21, x3
	mov	x20, x0
	subs	w8, w3, #1
	b.lt	LBB0_6
; %bb.1:
	cmp	w21, #12
	b.hi	LBB0_6
; %bb.2:
	sub	w9, w21, #8
	cmp	w9, #2
	b.ls	LBB0_6
; %bb.3:
	mov	x19, x1
Lloh0:
	adrp	x9, _tags_per_config@GOTPAGE
Lloh1:
	ldr	x9, [x9, _tags_per_config@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w9, [x9, w21, uxtw #2]
Lloh3:
	adrp	x10, _aac_channel_layout_map@GOTPAGE
Lloh4:
	ldr	x10, [x10, _aac_channel_layout_map@GOTPAGEOFF]
	str	w9, [x2]
Lloh5:
	ldr	x10, [x10]
	ldr	w1, [x10, w8, uxtw #2]
	add	w8, w9, w9, lsl #1
	lsl	w2, w8, #2
	mov	x0, x19
	bl	_memcpy
	cmp	w21, #7
	b.ne	LBB0_7
; %bb.4:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _FF_COMPLIANCE_STRICT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FF_COMPLIANCE_STRICT@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x9]
	cmp	w8, w3
	b.ge	LBB0_7
; %bb.5:
Lloh9:
	adrp	x8, _AV_LOG_INFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_INFO@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_av_log
	mov	w0, #0
Lloh14:
	adrp	x8, _AAC_CHANNEL_SIDE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AAC_CHANNEL_SIDE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	b	LBB0_8
LBB0_6:
Lloh17:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	bl	_av_log
Lloh22:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid default channel configuration (%d)\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_tags_per_config,8,3            ; @tags_per_config
	.comm	_aac_channel_layout_map,8,3     ; @aac_channel_layout_map
	.comm	_FF_COMPLIANCE_STRICT,4,2       ; @FF_COMPLIANCE_STRICT
	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"Assuming an incorrectly encoded 7.1 channel layout instead of a spec-compliant 7.1(wide) layout, use -strict %d to decode according to the specification instead.\n"

	.comm	_AAC_CHANNEL_SIDE,4,2           ; @AAC_CHANNEL_SIDE
	.no_dead_strip	_set_default_channel_config
.subsections_via_symbols
