	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sane_layout
_sane_layout:                           ## @sane_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_AV_CH_LAYOUT_SURROUND@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	testl	%edi, (%rax)
	je	LBB0_6
## %bb.1:
	movl	%edi, %ebx
	movq	_AV_CH_FRONT_LEFT@GOTPCREL(%rip), %rax
	movq	_AV_CH_FRONT_RIGHT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	andl	%ebx, %edi
	callq	_even
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	_AV_CH_SIDE_LEFT@GOTPCREL(%rip), %rax
	movq	_AV_CH_SIDE_RIGHT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	andl	%ebx, %edi
	callq	_even
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movq	_AV_CH_BACK_LEFT@GOTPCREL(%rip), %rax
	movq	_AV_CH_BACK_RIGHT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	andl	%ebx, %edi
	callq	_even
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	_AV_CH_FRONT_LEFT_OF_CENTER@GOTPCREL(%rip), %rax
	movq	_AV_CH_FRONT_RIGHT_OF_CENTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	andl	%ebx, %edi
	callq	_even
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%ebx, %edi
	callq	_av_get_channel_layout_nb_channels
	movq	_SWR_CH_MAX@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	setl	%r14b
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CH_LAYOUT_SURROUND,4,2      ## @AV_CH_LAYOUT_SURROUND
	.comm	_AV_CH_FRONT_LEFT,4,2           ## @AV_CH_FRONT_LEFT
	.comm	_AV_CH_FRONT_RIGHT,4,2          ## @AV_CH_FRONT_RIGHT
	.comm	_AV_CH_SIDE_LEFT,4,2            ## @AV_CH_SIDE_LEFT
	.comm	_AV_CH_SIDE_RIGHT,4,2           ## @AV_CH_SIDE_RIGHT
	.comm	_AV_CH_BACK_LEFT,4,2            ## @AV_CH_BACK_LEFT
	.comm	_AV_CH_BACK_RIGHT,4,2           ## @AV_CH_BACK_RIGHT
	.comm	_AV_CH_FRONT_LEFT_OF_CENTER,4,2 ## @AV_CH_FRONT_LEFT_OF_CENTER
	.comm	_AV_CH_FRONT_RIGHT_OF_CENTER,4,2 ## @AV_CH_FRONT_RIGHT_OF_CENTER
	.comm	_SWR_CH_MAX,8,3                 ## @SWR_CH_MAX
	.no_dead_strip	_sane_layout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sane_layout
_sane_layout:                           ; @sane_layout
	.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
Lloh0:
	adrp	x8, _AV_CH_LAYOUT_SURROUND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_CH_LAYOUT_SURROUND@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _AV_CH_FRONT_LEFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_CH_FRONT_LEFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _AV_CH_FRONT_RIGHT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AV_CH_FRONT_RIGHT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w0, w8, w0
	bl	_even
	cbz	w0, LBB0_7
; %bb.2:
Lloh9:
	adrp	x8, _AV_CH_SIDE_LEFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_CH_SIDE_LEFT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _AV_CH_SIDE_RIGHT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AV_CH_SIDE_RIGHT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w0, w8, w19
	bl	_even
	cbz	w0, LBB0_7
; %bb.3:
Lloh15:
	adrp	x8, _AV_CH_BACK_LEFT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_CH_BACK_LEFT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _AV_CH_BACK_RIGHT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AV_CH_BACK_RIGHT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w0, w8, w19
	bl	_even
	cbz	w0, LBB0_7
; %bb.4:
Lloh21:
	adrp	x8, _AV_CH_FRONT_LEFT_OF_CENTER@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_CH_FRONT_LEFT_OF_CENTER@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _AV_CH_FRONT_RIGHT_OF_CENTER@GOTPAGE
Lloh25:
	ldr	x9, [x9, _AV_CH_FRONT_RIGHT_OF_CENTER@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w0, w8, w19
	bl	_even
	cbz	w0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_av_get_channel_layout_nb_channels
Lloh27:
	adrp	x8, _SWR_CH_MAX@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SWR_CH_MAX@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, lt
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CH_LAYOUT_SURROUND,4,2      ; @AV_CH_LAYOUT_SURROUND
	.comm	_AV_CH_FRONT_LEFT,4,2           ; @AV_CH_FRONT_LEFT
	.comm	_AV_CH_FRONT_RIGHT,4,2          ; @AV_CH_FRONT_RIGHT
	.comm	_AV_CH_SIDE_LEFT,4,2            ; @AV_CH_SIDE_LEFT
	.comm	_AV_CH_SIDE_RIGHT,4,2           ; @AV_CH_SIDE_RIGHT
	.comm	_AV_CH_BACK_LEFT,4,2            ; @AV_CH_BACK_LEFT
	.comm	_AV_CH_BACK_RIGHT,4,2           ; @AV_CH_BACK_RIGHT
	.comm	_AV_CH_FRONT_LEFT_OF_CENTER,4,2 ; @AV_CH_FRONT_LEFT_OF_CENTER
	.comm	_AV_CH_FRONT_RIGHT_OF_CENTER,4,2 ; @AV_CH_FRONT_RIGHT_OF_CENTER
	.comm	_SWR_CH_MAX,8,3                 ; @SWR_CH_MAX
	.no_dead_strip	_sane_layout
.subsections_via_symbols
