	.file	"extr_atrac3plus.c_decode_tones_info.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"GHA amplitude mode 0"
	.text
	.p2align 4
	.type	decode_tones_info, @function
decode_tones_info:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	test	edx, edx
	jle	.L6
	lea	eax, -1[rdx]
	xor	r14d, r14d
	lea	r15, 8[0+rax*8]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR ATRAC3P_SUBBANDS[rip]
	xor	esi, esi
	lea	edx, 0[0+rax*4]
	mov	rax, QWORD PTR [rbx]
	mov	rdi, QWORD PTR [rax+r14]
	add	r14, 8
	call	memset@PLT
	cmp	r15, r14
	jne	.L5
.L6:
	mov	r14, QWORD PTR 8[rbx]
	mov	rdi, rbp
	call	get_bits1@PLT
	mov	QWORD PTR 56[r14], rax
	mov	rax, QWORD PTR 8[rbx]
	cmp	QWORD PTR 56[rax], 0
	je	.L3
	mov	rdi, QWORD PTR 48[rax]
	xor	esi, esi
	mov	edx, 8
	call	memset@PLT
	mov	r14, QWORD PTR 8[rbx]
	mov	rdi, rbp
	call	get_bits1@PLT
	mov	QWORD PTR 40[r14], rax
	mov	rax, QWORD PTR 8[rbx]
	cmp	QWORD PTR 40[rax], 0
	je	.L30
	mov	rax, QWORD PTR tone_vlc_tabs[rip]
	mov	ecx, 1
	mov	rdi, rbp
	mov	edx, DWORD PTR [rax]
	mov	esi, DWORD PTR 4[rax]
	call	get_vlc2@PLT
	mov	rcx, QWORD PTR 8[rbx]
	lea	edx, 1[rax]
	mov	DWORD PTR [rcx], edx
	cmp	r12d, 2
	je	.L31
	mov	QWORD PTR 24[rcx], 0
	test	r12d, r12d
	jle	.L3
.L10:
	xor	r14d, r14d
	mov	r15, rsp
	.p2align 4,,10
	.p2align 3
.L14:
	xor	eax, eax
	test	edx, edx
	jle	.L15
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edx, 1
	test	r14d, r14d
	je	.L11
	mov	rdx, QWORD PTR 16[rcx]
	cmp	QWORD PTR [rdx+rax*8], 0
	sete	dl
	movzx	edx, dl
.L11:
	mov	DWORD PTR [r15+rax*4], edx
	add	rax, 1
	cmp	DWORD PTR [rcx], eax
	jg	.L12
.L15:
	mov	rcx, r15
	mov	edx, r14d
	mov	rsi, rbx
	mov	rdi, rbp
	call	decode_tones_envelope@PLT
	mov	r8, r13
	mov	rcx, r15
	mov	edx, r14d
	mov	rsi, rbx
	mov	rdi, rbp
	call	decode_band_numwavs@PLT
	test	eax, eax
	js	.L1
	mov	edx, r14d
	mov	rcx, r15
	mov	rsi, rbx
	mov	rdi, rbp
	call	decode_tones_frequency@PLT
	mov	edx, r14d
	mov	rcx, r15
	mov	rsi, rbx
	mov	rdi, rbp
	call	decode_tones_amplitude@PLT
	mov	edx, r14d
	mov	rcx, r15
	mov	rsi, rbx
	mov	rdi, rbp
	add	r14d, 1
	call	decode_tones_phase@PLT
	cmp	r12d, r14d
	jle	.L13
	mov	rcx, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR [rcx]
	jmp	.L14
.L13:
	cmp	r12d, 2
	je	.L32
.L3:
	xor	eax, eax
.L1:
	mov	rsi, QWORD PTR 72[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L33
	add	rsp, 88
	.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
.L31:
	.cfi_restore_state
	mov	rsi, QWORD PTR 16[rcx]
	mov	rdi, rbp
	call	get_subband_flags@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, rbp
	mov	rsi, QWORD PTR 8[rax]
	mov	edx, DWORD PTR [rax]
	call	get_subband_flags@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, rbp
	mov	edx, DWORD PTR [rax]
	mov	rsi, QWORD PTR 32[rax]
	call	get_subband_flags@PLT
	mov	rcx, QWORD PTR 8[rbx]
	mov	QWORD PTR 24[rcx], 0
	mov	edx, DWORD PTR [rcx]
	jmp	.L10
.L32:
	mov	rax, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	jle	.L3
	xor	ebp, ebp
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L17:
	add	rbp, 1
	cmp	DWORD PTR [rax], ebp
	jle	.L3
.L18:
	mov	rcx, QWORD PTR 16[rax]
	lea	rdx, 0[0+rbp*8]
	cmp	QWORD PTR [rcx+rbp*8], 0
	je	.L16
	mov	rcx, QWORD PTR [rbx]
	mov	rsi, QWORD PTR [rcx]
	mov	rcx, QWORD PTR 8[rcx]
	mov	esi, DWORD PTR [rsi+rbp*4]
	mov	DWORD PTR [rcx+rbp*4], esi
.L16:
	mov	rcx, QWORD PTR 8[rax]
	cmp	QWORD PTR [rcx+rdx], 0
	je	.L17
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR Atrac3pWavesData[rip]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR [rdx+rbp*4]
	mov	esi, DWORD PTR [rax+rbp*4]
	call	FFSWAP@PLT
	mov	rax, QWORD PTR 8[rbx]
	jmp	.L17
.L30:
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	avpriv_report_missing_feature@PLT
	mov	eax, DWORD PTR AVERROR_PATCHWELCOME[rip]
	jmp	.L1
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	decode_tones_info, .-decode_tones_info
	.comm	tone_vlc_tabs,8,8
	.comm	Atrac3pWavesData,4,4
	.comm	AVERROR_PATCHWELCOME,4,4
	.comm	ATRAC3P_SUBBANDS,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_atrac3plus.c_decode_tones_info.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"GHA amplitude mode 0\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	decode_tones_info, %function
decode_tones_info:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r8, r3
	ldr	r3, .L41
	subs	r7, r2, #0
	sub	sp, sp, #84
	mov	r6, r0
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #76]
	mov	r3,#0
	movgt	r4, #0
	ldrgt	r9, .L41+4
	ble	.L5
.L2:
	ldr	r2, [r9]
	ldr	r3, [r5]
	mov	r1, #0
	ldr	r0, [r3, r4, lsl #2]
	lsl	r2, r2, #2
	add	r4, r4, #1
	bl	memset
	cmp	r7, r4
	bne	.L2
.L5:
	mov	r0, r6
	ldr	r4, [r5, #4]
	bl	get_bits1
	ldr	r3, [r5, #4]
	str	r0, [r4, #28]
	ldr	r2, [r3, #28]
	cmp	r2, #0
	beq	.L3
	mov	r4, #0
	ldr	r3, [r3, #24]
	mov	r0, r6
	strb	r4, [r3]
	strb	r4, [r3, #1]
	strb	r4, [r3, #2]
	strb	r4, [r3, #3]
	ldr	r9, [r5, #4]
	bl	get_bits1
	ldr	r3, [r5, #4]
	str	r0, [r9, #20]
	ldr	r3, [r3, #20]
	cmp	r3, r4
	beq	.L37
	ldr	r2, .L41+8
	mov	r3, #1
	ldr	r1, [r2]
	mov	r0, r6
	ldr	r2, [r1]
	ldr	r1, [r1, #4]
	bl	get_vlc2
	ldr	r1, [r5, #4]
	add	r2, r0, #1
	cmp	r7, #2
	str	r2, [r1]
	beq	.L38
	cmp	r7, #0
	str	r4, [r1, #12]
	ble	.L3
.L9:
	mov	r4, #0
.L13:
	cmp	r2, #0
	movgt	ip, #0
	addgt	r3, sp, #8
	ble	.L15
.L11:
	cmp	r4, #0
	ldrne	r2, [r1, #8]
	moveq	r2, #1
	ldrne	r2, [r2, ip, lsl #2]
	add	ip, ip, #1
	clzne	r2, r2
	lsrne	r2, r2, #5
	str	r2, [r3, #4]!
	ldr	r2, [r1]
	cmp	r2, ip
	bgt	.L11
.L15:
	mov	r2, r4
	mov	r1, r5
	add	r3, sp, #12
	mov	r0, r6
	bl	decode_tones_envelope
	mov	r2, r4
	mov	r1, r5
	mov	r0, r6
	str	r8, [sp]
	add	r3, sp, #12
	bl	decode_band_numwavs
	cmp	r0, #0
	blt	.L1
	mov	r2, r4
	mov	r1, r5
	add	r3, sp, #12
	mov	r0, r6
	bl	decode_tones_frequency
	mov	r2, r4
	mov	r1, r5
	add	r3, sp, #12
	mov	r0, r6
	bl	decode_tones_amplitude
	mov	r2, r4
	mov	r1, r5
	mov	r0, r6
	add	r3, sp, #12
	add	r4, r4, #1
	bl	decode_tones_phase
	cmp	r7, r4
	ldrgt	r1, [r5, #4]
	ldrgt	r2, [r1]
	bgt	.L13
.L12:
	cmp	r7, #2
	beq	.L39
.L3:
	mov	r0, #0
.L1:
	ldr	r3, .L41
	ldr	r2, [r3]
	ldr	r3, [sp, #76]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L40
	add	sp, sp, #84
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L38:
	ldr	r1, [r1, #8]
	mov	r0, r6
	bl	get_subband_flags
	ldr	r3, [r5, #4]
	mov	r0, r6
	ldr	r2, [r3]
	ldr	r1, [r3, #4]
	bl	get_subband_flags
	ldr	r3, [r5, #4]
	mov	r0, r6
	ldr	r2, [r3]
	ldr	r1, [r3, #16]
	bl	get_subband_flags
	ldr	r1, [r5, #4]
	ldr	r2, [r1]
	str	r4, [r1, #12]
	b	.L9
.L39:
	ldr	r3, [r5, #4]
	ldr	r2, [r3]
	cmp	r2, #0
	ble	.L3
	mov	r4, #0
	ldr	r6, .L41+12
	b	.L18
.L17:
	ldr	r2, [r3]
	add	r4, r4, #1
	cmp	r2, r4
	ble	.L3
.L18:
	ldr	r2, [r3, #8]
	lsl	r1, r4, #2
	ldr	r2, [r2, r4, lsl #2]
	cmp	r2, #0
	ldrne	r2, [r5]
	ldmne	r2, {r0, r2}
	ldrne	r0, [r0, r4, lsl #2]
	strne	r0, [r2, r4, lsl #2]
	ldr	r2, [r3, #4]
	ldr	r2, [r2, r1]
	cmp	r2, #0
	beq	.L17
	ldr	r3, [r5]
	ldr	r0, [r6]
	ldr	r2, [r3, #4]
	ldr	r3, [r3]
	ldr	r2, [r2, r1]
	ldr	r1, [r3, r1]
	bl	FFSWAP
	ldr	r3, [r5, #4]
	b	.L17
.L37:
	mov	r0, r8
	ldr	r1, .L41+16
	bl	avpriv_report_missing_feature
	ldr	r3, .L41+20
	ldr	r0, [r3]
	b	.L1
.L40:
	bl	__stack_chk_fail
.L42:
	.align	2
.L41:
	.word	.LC1
	.word	ATRAC3P_SUBBANDS
	.word	tone_vlc_tabs
	.word	Atrac3pWavesData
	.word	.LC0
	.word	AVERROR_PATCHWELCOME
	.size	decode_tones_info, .-decode_tones_info
	.comm	tone_vlc_tabs,4,4
	.comm	Atrac3pWavesData,4,4
	.comm	AVERROR_PATCHWELCOME,4,4
	.comm	ATRAC3P_SUBBANDS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
