	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clean_layout
_clean_layout:                          ## @clean_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
	subq	$136, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -32(%rbp)
	leal	-1(%rax), %ecx
	testl	%ecx, %esi
	jne	LBB0_4
## %bb.1:
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movq	_AV_CH_FRONT_CENTER@GOTPCREL(%rip), %r15
	cmpl	%eax, (%r15)
	je	LBB0_4
## %bb.3:
	movq	%rdi, %rbx
	leaq	-160(%rbp), %r14
	movq	%r14, %rdi
	movl	$128, %esi
	movl	$-1, %edx
	movl	%eax, %ecx
	callq	_av_get_channel_layout_string
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	_av_log
	movl	(%r15), %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$136, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CH_FRONT_CENTER,4,2         ## @AV_CH_FRONT_CENTER
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Treating %s as mono\n"

	.no_dead_strip	_clean_layout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clean_layout
_clean_layout:                          ; @clean_layout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x3, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x20, _AV_CH_FRONT_CENTER@GOTPAGE
Lloh4:
	ldr	x20, [x20, _AV_CH_FRONT_CENTER@GOTPAGEOFF]
	ldr	w8, [x20]
	sub	w9, w1, #1
	and	w9, w1, w9
	cmp	w9, #0
	ccmp	w1, #0, #4, eq
	ccmp	w8, w1, #4, ne
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #128
	mov	w2, #-1
	bl	_av_get_channel_layout_string
Lloh5:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	x0, x19
	bl	_av_log
	ldr	w3, [x20]
LBB0_2:
	ldur	x8, [x29, #-24]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x3
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CH_FRONT_CENTER,4,2         ; @AV_CH_FRONT_CENTER
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Treating %s as mono\n"

	.no_dead_strip	_clean_layout
.subsections_via_symbols
