	.file	"extr_rematrix.c_sane_layout.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sane_layout, @function
sane_layout:
.LFB0:
	.cfi_startproc
	endbr64
	test	DWORD PTR AV_CH_LAYOUT_SURROUND[rip], edi
	jne	.L2
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edi
	mov	edi, DWORD PTR AV_CH_FRONT_LEFT[rip]
	or	edi, DWORD PTR AV_CH_FRONT_RIGHT[rip]
	and	edi, ebp
	call	even@PLT
	test	eax, eax
	je	.L4
	mov	edi, DWORD PTR AV_CH_SIDE_LEFT[rip]
	or	edi, DWORD PTR AV_CH_SIDE_RIGHT[rip]
	and	edi, ebp
	call	even@PLT
	test	eax, eax
	jne	.L21
.L4:
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	edi, DWORD PTR AV_CH_BACK_LEFT[rip]
	or	edi, DWORD PTR AV_CH_BACK_RIGHT[rip]
	and	edi, ebp
	call	even@PLT
	test	eax, eax
	je	.L4
	mov	edi, DWORD PTR AV_CH_FRONT_LEFT_OF_CENTER[rip]
	or	edi, DWORD PTR AV_CH_FRONT_RIGHT_OF_CENTER[rip]
	and	edi, ebp
	call	even@PLT
	test	eax, eax
	je	.L4
	mov	edi, ebp
	call	av_get_channel_layout_nb_channels@PLT
	cmp	rax, QWORD PTR SWR_CH_MAX[rip]
	pop	rbp
	.cfi_def_cfa_offset 8
	setl	al
	movzx	eax, al
	ret
	.cfi_endproc
.LFE0:
	.size	sane_layout, .-sane_layout
	.comm	SWR_CH_MAX,8,8
	.comm	AV_CH_SIDE_RIGHT,4,4
	.comm	AV_CH_SIDE_LEFT,4,4
	.comm	AV_CH_LAYOUT_SURROUND,4,4
	.comm	AV_CH_FRONT_RIGHT_OF_CENTER,4,4
	.comm	AV_CH_FRONT_RIGHT,4,4
	.comm	AV_CH_FRONT_LEFT_OF_CENTER,4,4
	.comm	AV_CH_FRONT_LEFT,4,4
	.comm	AV_CH_BACK_RIGHT,4,4
	.comm	AV_CH_BACK_LEFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_rematrix.c_sane_layout.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sane_layout, %function
sane_layout:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L22
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L2
	mov	r0, #0
	bx	lr
.L2:
	push	{r4, lr}
	mov	r4, r0
	ldr	r2, .L22+4
	ldr	r3, .L22+8
	ldr	r0, [r2]
	ldr	r3, [r3]
	orr	r0, r0, r3
	and	r0, r0, r4
	bl	even
	cmp	r0, #0
	beq	.L4
	ldr	r2, .L22+12
	ldr	r3, .L22+16
	ldr	r0, [r2]
	ldr	r3, [r3]
	orr	r0, r0, r3
	and	r0, r0, r4
	bl	even
	cmp	r0, #0
	bne	.L21
.L4:
	mov	r0, #0
	pop	{r4, pc}
.L21:
	ldr	r2, .L22+20
	ldr	r3, .L22+24
	ldr	r0, [r2]
	ldr	r3, [r3]
	orr	r0, r0, r3
	and	r0, r0, r4
	bl	even
	cmp	r0, #0
	beq	.L4
	ldr	r2, .L22+28
	ldr	r3, .L22+32
	ldr	r0, [r2]
	ldr	r3, [r3]
	orr	r0, r0, r3
	and	r0, r0, r4
	bl	even
	cmp	r0, #0
	beq	.L4
	mov	r0, r4
	bl	av_get_channel_layout_nb_channels
	ldr	r3, .L22+36
	ldr	r3, [r3]
	cmp	r0, r3
	movge	r0, #0
	movlt	r0, #1
	pop	{r4, pc}
.L23:
	.align	2
.L22:
	.word	AV_CH_LAYOUT_SURROUND
	.word	AV_CH_FRONT_LEFT
	.word	AV_CH_FRONT_RIGHT
	.word	AV_CH_SIDE_LEFT
	.word	AV_CH_SIDE_RIGHT
	.word	AV_CH_BACK_LEFT
	.word	AV_CH_BACK_RIGHT
	.word	AV_CH_FRONT_LEFT_OF_CENTER
	.word	AV_CH_FRONT_RIGHT_OF_CENTER
	.word	SWR_CH_MAX
	.size	sane_layout, .-sane_layout
	.comm	SWR_CH_MAX,4,4
	.comm	AV_CH_SIDE_RIGHT,4,4
	.comm	AV_CH_SIDE_LEFT,4,4
	.comm	AV_CH_LAYOUT_SURROUND,4,4
	.comm	AV_CH_FRONT_RIGHT_OF_CENTER,4,4
	.comm	AV_CH_FRONT_RIGHT,4,4
	.comm	AV_CH_FRONT_LEFT_OF_CENTER,4,4
	.comm	AV_CH_FRONT_LEFT,4,4
	.comm	AV_CH_BACK_RIGHT,4,4
	.comm	AV_CH_BACK_LEFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
