	.file	"extr_wmaprodec.c_decode_channel_transform.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Channel transform bit"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Unknown channel transform type"
	.section	.rodata.str1.1
.LC6:
	.string	"Coupled channels > 6"
	.text
	.p2align 4
	.type	decode_channel_transform, @function
decode_channel_transform:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR 8[rdi], 1
	mov	QWORD PTR [rdi], 0
	jg	.L2
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	lea	r14, 28[rdi]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r13d, DWORD PTR 12[rdi]
	mov	rdi, r14
	call	get_bits1@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L54
	mov	QWORD PTR [rbx], 0
	test	r13d, r13d
	je	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	movsx	rdx, DWORD PTR 12[rbx]
	mov	rax, rdx
	cmp	rdx, rbp
	jle	.L6
	sal	rbp, 5
	add	rbp, QWORD PTR 48[rbx]
	mov	QWORD PTR 8[rbp], 0
	mov	r15, QWORD PTR 0[rbp]
	cmp	r13d, 2
	jle	.L7
	xor	r12d, r12d
	test	eax, eax
	jg	.L8
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L10:
	add	r12, 1
	cmp	DWORD PTR 12[rbx], r12d
	jle	.L55
.L8:
	mov	rax, QWORD PTR 16[rbx]
	mov	rdx, QWORD PTR 40[rbx]
	movsx	rax, DWORD PTR [rax+r12*4]
	mov	r8d, DWORD PTR [rdx+rax*8]
	lea	rcx, 0[0+rax*8]
	test	r8d, r8d
	jne	.L10
	mov	rdi, r14
	mov	QWORD PTR 8[rsp], rcx
	call	get_bits1@PLT
	test	rax, rax
	je	.L10
	mov	rcx, QWORD PTR 8[rsp]
	add	rcx, QWORD PTR 40[rbx]
	add	r15, 8
	add	r12, 1
	movsx	rax, DWORD PTR 4[rcx]
	add	DWORD PTR 8[rbp], 1
	mov	DWORD PTR [rcx], 1
	mov	QWORD PTR -8[r15], rax
	cmp	DWORD PTR 12[rbx], r12d
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L55:
	cmp	DWORD PTR 8[rbp], 2
	je	.L30
	jle	.L52
	mov	rdi, r14
	call	get_bits1@PLT
	test	rax, rax
	jne	.L22
.L52:
	mov	eax, DWORD PTR 12[rbp]
.L18:
	test	eax, eax
	jne	.L20
.L25:
	mov	rax, QWORD PTR [rbx]
	sub	r13d, DWORD PTR 8[rbp]
	lea	rbp, 1[rax]
	mov	QWORD PTR [rbx], rbp
	jne	.L5
.L6:
	xor	eax, eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	DWORD PTR 8[rbp], r13d
	test	eax, eax
	jle	.L12
	mov	rdx, QWORD PTR 16[rbx]
	lea	ecx, -1[rax]
	mov	rsi, QWORD PTR 40[rbx]
	lea	rax, 4[rdx]
	lea	rcx, [rax+rcx*4]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L56:
	add	rax, 4
.L14:
	movsx	rdx, DWORD PTR [rdx]
	lea	rdx, [rsi+rdx*8]
	mov	edi, DWORD PTR [rdx]
	test	edi, edi
	jne	.L13
	movsx	rdi, DWORD PTR 4[rdx]
	add	r15, 8
	mov	QWORD PTR -8[r15], rdi
.L13:
	mov	DWORD PTR [rdx], 1
	mov	rdx, rax
	cmp	rcx, rax
	jne	.L56
.L12:
	cmp	r13d, 2
	jne	.L25
.L30:
	mov	rdi, r14
	call	get_bits1@PLT
	test	rax, rax
	jne	.L57
	cmp	DWORD PTR 8[rbx], 2
	mov	rax, QWORD PTR 16[rbp]
	mov	DWORD PTR 12[rbp], 1
	je	.L58
	mov	rsi, QWORD PTR .LC4[rip]
	mov	QWORD PTR [rax], rsi
	mov	rsi, QWORD PTR .LC5[rip]
	mov	QWORD PTR 8[rax], rsi
	mov	rsi, QWORD PTR .LC4[rip]
	mov	QWORD PTR 16[rax], rsi
	mov	QWORD PTR 24[rax], rsi
.L20:
	mov	rdi, r14
	call	get_bits1@PLT
	test	rax, rax
	je	.L59
	mov	rdi, QWORD PTR 24[rbp]
	mov	edx, DWORD PTR 24[rbx]
	mov	esi, 1
	call	memset@PLT
	mov	rax, QWORD PTR [rbx]
	sub	r13d, DWORD PTR 8[rbp]
	lea	rbp, 1[rax]
	mov	QWORD PTR [rbx], rbp
	jne	.L5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L59:
	mov	eax, DWORD PTR 24[rbx]
	test	eax, eax
	jle	.L25
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, r14
	lea	r15, [rax+r12*8]
	add	r12, 1
	call	get_bits1@PLT
	mov	QWORD PTR [r15], rax
	cmp	DWORD PTR 24[rbx], r12d
	jg	.L26
	mov	rax, QWORD PTR [rbx]
	sub	r13d, DWORD PTR 8[rbp]
	lea	rbp, 1[rax]
	mov	QWORD PTR [rbx], rbp
	jne	.L5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	mov	DWORD PTR 12[rbp], 1
	mov	rdi, r14
	call	get_bits1@PLT
	test	rax, rax
	jne	.L60
	movsx	rax, DWORD PTR 8[rbp]
	cmp	eax, 6
	jle	.L24
	mov	edi, DWORD PTR 32[rbx]
	lea	rsi, .LC6[rip]
	call	avpriv_request_sample@PLT
	mov	eax, DWORD PTR 12[rbp]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L57:
	mov	rdi, r14
	call	get_bits1@PLT
	test	rax, rax
	je	.L52
	mov	edi, DWORD PTR 32[rbx]
	lea	rsi, .LC1[rip]
	call	avpriv_request_sample@PLT
	mov	eax, DWORD PTR AVERROR_PATCHWELCOME[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edx, eax
	mov	rcx, QWORD PTR default_decorrelation[rip]
	mov	rdi, QWORD PTR 16[rbp]
	imul	edx, eax
	mov	esi, DWORD PTR [rcx+rax*4]
	sal	edx, 3
	call	memcpy@PLT
	jmp	.L52
	.p2align 4,,10
	.p2align 3
.L58:
	mov	rsi, QWORD PTR .LC2[rip]
	mov	QWORD PTR [rax], rsi
	mov	rsi, QWORD PTR .LC3[rip]
	mov	QWORD PTR 8[rax], rsi
	mov	rsi, QWORD PTR .LC2[rip]
	mov	QWORD PTR 16[rax], rsi
	mov	QWORD PTR 24[rax], rsi
	jmp	.L20
.L60:
	mov	rsi, rbp
	mov	rdi, rbx
	call	decode_decorrelation_matrix@PLT
	mov	eax, DWORD PTR 12[rbp]
	jmp	.L18
.L54:
	mov	edi, DWORD PTR 32[rbx]
	lea	rsi, .LC0[rip]
	call	avpriv_request_sample@PLT
	mov	eax, DWORD PTR AVERROR_PATCHWELCOME[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	decode_channel_transform, .-decode_channel_transform
	.comm	default_decorrelation,8,8
	.comm	AVERROR_PATCHWELCOME,4,4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1072693248
	.align 8
.LC3:
	.long	0
	.long	-1074790400
	.align 8
.LC4:
	.long	0
	.long	1072078848
	.align 8
.LC5:
	.long	0
	.long	-1075404800
	.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_wmaprodec.c_decode_channel_transform.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Channel transform bit\000"
	.align	2
.LC1:
	.ascii	"Unknown channel transform type\000"
	.align	2
.LC2:
	.ascii	"Coupled channels > 6\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	decode_channel_transform, %function
decode_channel_transform:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, #0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0, #4]
	str	r2, [r0]
	cmp	r3, #1
	bgt	.L2
.L6:
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r5, r0
	add	r10, r0, #20
	mov	r0, r10
	ldr	r9, [r5, #8]
	bl	get_bits1
	subs	r3, r0, #0
	bne	.L53
	cmp	r9, #0
	str	r3, [r5]
	beq	.L6
.L5:
	ldr	r1, [r5, #8]
	cmp	r1, r3
	ble	.L6
	mov	r4, #0
	ldr	r2, [r5, #32]
	add	r3, r3, r3, lsl #2
	add	r7, r2, r3, lsl #2
	cmp	r9, #2
	ldr	r6, [r2, r3, lsl #2]
	str	r4, [r7, #4]
	str	r4, [r7, #8]
	ble	.L7
	cmp	r1, r4
	bgt	.L8
	b	.L25
.L10:
	add	r4, r4, #1
	cmp	r1, r4
	ble	.L54
.L8:
	ldr	r2, [r5, #12]
	ldr	r3, [r5, #28]
	ldr	r8, [r2, r4, lsl #2]
	ldr	r3, [r3, r8, lsl #3]
	lsl	fp, r8, #3
	cmp	r3, #0
	bne	.L10
	mov	r0, r10
	bl	get_bits1
	cmp	r0, #0
	ldrne	r3, [r7, #4]
	ldrne	r2, [r5, #28]
	addne	r3, r3, #1
	addne	fp, r2, fp
	ldrne	r1, [fp, #4]
	strne	r3, [r7, #4]
	movne	r3, #1
	strne	r3, [r2, r8, lsl #3]
	strne	r1, [r6], #4
	ldr	r1, [r5, #8]
	add	r4, r4, #1
	cmp	r1, r4
	bgt	.L8
.L54:
	ldr	r3, [r7, #4]
	cmp	r3, #2
	beq	.L30
	ble	.L50
	mov	r0, r10
	bl	get_bits1
	cmp	r0, #0
	bne	.L22
.L50:
	ldr	r3, [r7, #8]
.L18:
	cmp	r3, #0
	bne	.L20
.L25:
	ldr	r2, [r7, #4]
	ldr	r3, [r5]
	subs	r9, r9, r2
	add	r3, r3, #1
	str	r3, [r5]
	bne	.L5
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	cmp	r1, #0
	str	r9, [r7, #4]
	ble	.L12
	mov	r4, #1
	ldr	r2, [r5, #12]
	ldr	r0, [r5, #28]
	sub	r2, r2, #4
	add	r1, r2, r1, lsl #2
.L14:
	ldr	r3, [r2, #4]!
	ldr	ip, [r0, r3, lsl #3]
	add	lr, r0, r3, lsl #3
	cmp	ip, #0
	ldreq	ip, [lr, #4]
	streq	ip, [r6], #4
	cmp	r1, r2
	str	r4, [r0, r3, lsl #3]
	bne	.L14
.L12:
	cmp	r9, #2
	bne	.L25
.L30:
	mov	r0, r10
	bl	get_bits1
	cmp	r0, #0
	bne	.L55
	mov	r2, #1
	ldr	r3, [r5, #4]
	mov	r1, #0
	cmp	r3, #2
	str	r2, [r7, #8]
	ldr	r3, [r7, #12]
	beq	.L56
	mov	fp, #0
	ldr	r2, .L59
	ldr	ip, .L59+4
	stm	r3, {r1-r2}
	str	fp, [r3, #8]
	str	ip, [r3, #12]
	str	r1, [r3, #16]
	str	r2, [r3, #20]
	str	r1, [r3, #24]
	str	r2, [r3, #28]
.L20:
	mov	r0, r10
	bl	get_bits1
	subs	r4, r0, #0
	beq	.L57
	mov	r1, #1
	ldr	r2, [r5, #16]
	ldr	r0, [r7, #16]
	bl	memset
	b	.L25
.L57:
	ldr	r3, [r5, #16]
	cmp	r3, #0
	ble	.L25
.L26:
	mov	r0, r10
	ldr	r6, [r7, #16]
	bl	get_bits1
	ldr	r3, [r5, #16]
	str	r0, [r6, r4, lsl #2]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L26
	b	.L25
.L22:
	mov	r3, #1
	mov	r0, r10
	str	r3, [r7, #8]
	bl	get_bits1
	cmp	r0, #0
	bne	.L58
	ldr	r3, [r7, #4]
	cmp	r3, #6
	ble	.L24
	ldr	r1, .L59+8
	ldr	r0, [r5, #24]
	bl	avpriv_request_sample
	ldr	r3, [r7, #8]
	b	.L18
.L55:
	mov	r0, r10
	bl	get_bits1
	cmp	r0, #0
	beq	.L50
	ldr	r0, [r5, #24]
	ldr	r1, .L59+12
	bl	avpriv_request_sample
	ldr	r3, .L59+16
	ldr	r0, [r3]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	mul	r2, r3, r3
	ldr	r1, .L59+20
	ldr	r0, [r7, #12]
	ldr	r1, [r1]
	lsl	r2, r2, #3
	ldr	r1, [r1, r3, lsl #2]
	bl	memcpy
	b	.L50
.L56:
	mov	fp, #0
	ldr	r2, .L59+24
	ldr	ip, .L59+28
	stm	r3, {r1-r2}
	str	fp, [r3, #8]
	str	ip, [r3, #12]
	str	r1, [r3, #16]
	str	r2, [r3, #20]
	str	r1, [r3, #24]
	str	r2, [r3, #28]
	b	.L20
.L58:
	mov	r1, r7
	mov	r0, r5
	bl	decode_decorrelation_matrix
	ldr	r3, [r7, #8]
	b	.L18
.L53:
	ldr	r0, [r5, #24]
	ldr	r1, .L59+32
	bl	avpriv_request_sample
	ldr	r3, .L59+16
	ldr	r0, [r3]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L60:
	.align	2
.L59:
	.word	1072078848
	.word	-1075404800
	.word	.LC2
	.word	.LC1
	.word	AVERROR_PATCHWELCOME
	.word	default_decorrelation
	.word	1072693248
	.word	-1074790400
	.word	.LC0
	.size	decode_channel_transform, .-decode_channel_transform
	.comm	default_decorrelation,4,4
	.comm	AVERROR_PATCHWELCOME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
