	.file	"944830.c"
	.intel_syntax noprefix
	.text
	.globl	AUDC
	.bss
	.type	AUDC, @object
	.size	AUDC, 2
AUDC:
	.zero	2
	.globl	AUDF
	.type	AUDF, @object
	.size	AUDF, 2
AUDF:
	.zero	2
	.globl	AUDV
	.type	AUDV, @object
	.size	AUDV, 2
AUDV:
	.zero	2
	.local	Outvol
	.comm	Outvol,2,1
	.data
	.align 8
	.type	Bit4, @object
	.size	Bit4, 15
Bit4:
	.string	"\001\001"
	.string	"\001\001\001"
	.string	""
	.string	""
	.string	""
	.string	"\001"
	.string	"\001"
	.string	""
	.align 16
	.type	Bit5, @object
	.size	Bit5, 31
Bit5:
	.string	""
	.string	""
	.string	"\001"
	.string	"\001\001"
	.string	""
	.string	"\001\001\001\001\001"
	.string	""
	.string	""
	.string	"\001\001"
	.string	"\001\001\001"
	.string	"\001"
	.string	"\001"
	.string	""
	.string	""
	.string	""
	.ascii	"\001"
	.align 16
	.type	Div31, @object
	.size	Div31, 31
Div31:
	.string	""
	.string	"\001"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	"\001"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.local	Bit9
	.comm	Bit9,511,32
	.local	P4
	.comm	P4,2,1
	.local	P5
	.comm	P5,2,1
	.local	P9
	.comm	P9,4,2
	.local	Div_n_cnt
	.comm	Div_n_cnt,2,1
	.local	Div_n_max
	.comm	Div_n_max,2,1
	.local	Samp_n_max
	.comm	Samp_n_max,2,2
	.local	Samp_n_cnt
	.comm	Samp_n_cnt,2,2
	.text
	.globl	Tia_sound_init
	.type	Tia_sound_init, @function
Tia_sound_init:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	edx, edi
	mov	eax, esi
	mov	WORD PTR -20[rbp], dx
	mov	WORD PTR -24[rbp], ax
	mov	WORD PTR -2[rbp], 0
	jmp	.L2
.L3:
	call	rand@PLT
	mov	edx, eax
	movsx	eax, WORD PTR -2[rbp]
	mov	ecx, edx
	and	ecx, 1
	cdqe
	lea	rdx, Bit9[rip]
	mov	BYTE PTR [rax+rdx], cl
	movzx	eax, WORD PTR -2[rbp]
	add	eax, 1
	mov	WORD PTR -2[rbp], ax
.L2:
	cmp	WORD PTR -2[rbp], 510
	jle	.L3
	movzx	eax, WORD PTR -20[rbp]
	sal	eax, 8
	movzx	esi, WORD PTR -24[rbp]
	mov	edx, 0
	div	esi
	mov	WORD PTR Samp_n_max[rip], ax
	mov	WORD PTR Samp_n_cnt[rip], 0
	mov	BYTE PTR -3[rbp], 0
	jmp	.L4
.L5:
	movzx	eax, BYTE PTR -3[rbp]
	cdqe
	lea	rdx, Outvol[rip]
	mov	BYTE PTR [rax+rdx], 0
	movzx	eax, BYTE PTR -3[rbp]
	cdqe
	lea	rdx, Div_n_cnt[rip]
	mov	BYTE PTR [rax+rdx], 0
	movzx	eax, BYTE PTR -3[rbp]
	cdqe
	lea	rdx, Div_n_max[rip]
	mov	BYTE PTR [rax+rdx], 0
	movzx	eax, BYTE PTR -3[rbp]
	cdqe
	lea	rdx, AUDC[rip]
	mov	BYTE PTR [rax+rdx], 0
	movzx	eax, BYTE PTR -3[rbp]
	cdqe
	lea	rdx, AUDF[rip]
	mov	BYTE PTR [rax+rdx], 0
	movzx	eax, BYTE PTR -3[rbp]
	cdqe
	lea	rdx, AUDV[rip]
	mov	BYTE PTR [rax+rdx], 0
	movzx	eax, BYTE PTR -3[rbp]
	cdqe
	lea	rdx, P4[rip]
	mov	BYTE PTR [rax+rdx], 0
	movzx	eax, BYTE PTR -3[rbp]
	cdqe
	lea	rdx, P5[rip]
	mov	BYTE PTR [rax+rdx], 0
	movzx	eax, BYTE PTR -3[rbp]
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, P9[rip]
	mov	WORD PTR [rdx+rax], 0
	movzx	eax, BYTE PTR -3[rbp]
	add	eax, 1
	mov	BYTE PTR -3[rbp], al
.L4:
	cmp	BYTE PTR -3[rbp], 1
	jbe	.L5
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	Tia_sound_init, .-Tia_sound_init
	.globl	Update_tia_sound
	.type	Update_tia_sound, @function
Update_tia_sound:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	edx, esi
	mov	WORD PTR -20[rbp], ax
	mov	eax, edx
	mov	BYTE PTR -24[rbp], al
	mov	WORD PTR -2[rbp], 0
	movzx	eax, WORD PTR -20[rbp]
	sub	eax, 21
	cmp	eax, 5
	ja	.L7
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L9[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L9[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L9:
	.long	.L14-.L9
	.long	.L13-.L9
	.long	.L12-.L9
	.long	.L11-.L9
	.long	.L10-.L9
	.long	.L8-.L9
	.text
.L14:
	movzx	eax, BYTE PTR -24[rbp]
	and	eax, 15
	mov	BYTE PTR AUDC[rip], al
	mov	BYTE PTR -3[rbp], 0
	jmp	.L15
.L13:
	movzx	eax, BYTE PTR -24[rbp]
	and	eax, 15
	mov	BYTE PTR AUDC[rip+1], al
	mov	BYTE PTR -3[rbp], 1
	jmp	.L15
.L12:
	movzx	eax, BYTE PTR -24[rbp]
	and	eax, 31
	mov	BYTE PTR AUDF[rip], al
	mov	BYTE PTR -3[rbp], 0
	jmp	.L15
.L11:
	movzx	eax, BYTE PTR -24[rbp]
	and	eax, 31
	mov	BYTE PTR AUDF[rip+1], al
	mov	BYTE PTR -3[rbp], 1
	jmp	.L15
.L10:
	movzx	eax, BYTE PTR -24[rbp]
	sal	eax, 3
	and	eax, 120
	mov	BYTE PTR AUDV[rip], al
	mov	BYTE PTR -3[rbp], 0
	jmp	.L15
.L8:
	movzx	eax, BYTE PTR -24[rbp]
	sal	eax, 3
	and	eax, 120
	mov	BYTE PTR AUDV[rip+1], al
	mov	BYTE PTR -3[rbp], 1
	jmp	.L15
.L7:
	mov	BYTE PTR -3[rbp], -1
	nop
.L15:
	cmp	BYTE PTR -3[rbp], -1
	je	.L20
	movzx	eax, BYTE PTR -3[rbp]
	cdqe
	lea	rdx, AUDC[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L17
	mov	WORD PTR -2[rbp], 0
	movzx	eax, BYTE PTR -3[rbp]
	movzx	ecx, BYTE PTR -3[rbp]
	cdqe
	lea	rdx, AUDV[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movsx	rax, ecx
	lea	rcx, Outvol[rip]
	mov	BYTE PTR [rax+rcx], dl
	jmp	.L18
.L17:
	movzx	eax, BYTE PTR -3[rbp]
	cdqe
	lea	rdx, AUDF[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	add	eax, 1
	mov	WORD PTR -2[rbp], ax
	movzx	eax, BYTE PTR -3[rbp]
	cdqe
	lea	rdx, AUDC[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	and	eax, 12
	cmp	eax, 12
	jne	.L18
	movzx	edx, WORD PTR -2[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	mov	WORD PTR -2[rbp], ax
.L18:
	movzx	eax, BYTE PTR -3[rbp]
	cdqe
	lea	rdx, Div_n_max[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	cmp	WORD PTR -2[rbp], ax
	je	.L20
	movzx	eax, BYTE PTR -3[rbp]
	movzx	edx, WORD PTR -2[rbp]
	mov	ecx, edx
	cdqe
	lea	rdx, Div_n_max[rip]
	mov	BYTE PTR [rax+rdx], cl
	movzx	eax, BYTE PTR -3[rbp]
	cdqe
	lea	rdx, Div_n_cnt[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L19
	cmp	WORD PTR -2[rbp], 0
	jne	.L20
.L19:
	movzx	eax, BYTE PTR -3[rbp]
	movzx	edx, WORD PTR -2[rbp]
	mov	ecx, edx
	cdqe
	lea	rdx, Div_n_cnt[rip]
	mov	BYTE PTR [rax+rdx], cl
.L20:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Update_tia_sound, .-Update_tia_sound
	.globl	Tia_process
	.type	Tia_process, @function
Tia_process:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	WORD PTR -28[rbp], ax
	jmp	.L22
.L39:
	mov	BYTE PTR -1[rbp], 0
	jmp	.L23
.L38:
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, Div_n_cnt[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 1
	jbe	.L24
	movzx	eax, BYTE PTR -1[rbp]
	movsx	rdx, eax
	lea	rcx, Div_n_cnt[rip]
	movzx	edx, BYTE PTR [rdx+rcx]
	lea	ecx, -1[rdx]
	cdqe
	lea	rdx, Div_n_cnt[rip]
	mov	BYTE PTR [rax+rdx], cl
	jmp	.L25
.L24:
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, Div_n_cnt[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 1
	jne	.L25
	movzx	eax, BYTE PTR -1[rbp]
	movzx	ecx, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, Div_n_max[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movsx	rax, ecx
	lea	rcx, Div_n_cnt[rip]
	mov	BYTE PTR [rax+rcx], dl
	movzx	eax, BYTE PTR -1[rbp]
	movsx	rdx, eax
	lea	rcx, P5[rip]
	movzx	edx, BYTE PTR [rdx+rcx]
	lea	ecx, 1[rdx]
	cdqe
	lea	rdx, P5[rip]
	mov	BYTE PTR [rax+rdx], cl
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, P5[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 31
	jne	.L26
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, P5[rip]
	mov	BYTE PTR [rax+rdx], 0
.L26:
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, AUDC[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	and	eax, 2
	test	eax, eax
	je	.L27
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, AUDC[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	and	eax, 1
	test	eax, eax
	jne	.L28
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, P5[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	cdqe
	lea	rdx, Div31[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L27
.L28:
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, AUDC[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	and	eax, 1
	test	eax, eax
	je	.L25
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, P5[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	cdqe
	lea	rdx, Bit5[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L25
.L27:
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, AUDC[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	and	eax, 4
	test	eax, eax
	je	.L29
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, Outvol[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L30
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, Outvol[rip]
	mov	BYTE PTR [rax+rdx], 0
	jmp	.L25
.L30:
	movzx	eax, BYTE PTR -1[rbp]
	movzx	ecx, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, AUDV[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movsx	rax, ecx
	lea	rcx, Outvol[rip]
	mov	BYTE PTR [rax+rcx], dl
	jmp	.L25
.L29:
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, AUDC[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	and	eax, 8
	test	eax, eax
	je	.L31
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, AUDC[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 8
	jne	.L32
	movzx	eax, BYTE PTR -1[rbp]
	movsx	rdx, eax
	lea	rcx, [rdx+rdx]
	lea	rdx, P9[rip]
	movzx	edx, WORD PTR [rcx+rdx]
	lea	ecx, 1[rdx]
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, P9[rip]
	mov	WORD PTR [rdx+rax], cx
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, P9[rip]
	movzx	eax, WORD PTR [rdx+rax]
	cmp	ax, 511
	jne	.L33
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, P9[rip]
	mov	WORD PTR [rdx+rax], 0
.L33:
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, P9[rip]
	movzx	eax, WORD PTR [rdx+rax]
	movzx	eax, ax
	cdqe
	lea	rdx, Bit9[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L34
	movzx	eax, BYTE PTR -1[rbp]
	movzx	ecx, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, AUDV[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movsx	rax, ecx
	lea	rcx, Outvol[rip]
	mov	BYTE PTR [rax+rcx], dl
	jmp	.L25
.L34:
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, Outvol[rip]
	mov	BYTE PTR [rax+rdx], 0
	jmp	.L25
.L32:
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, P5[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	cdqe
	lea	rdx, Bit5[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L35
	movzx	eax, BYTE PTR -1[rbp]
	movzx	ecx, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, AUDV[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movsx	rax, ecx
	lea	rcx, Outvol[rip]
	mov	BYTE PTR [rax+rcx], dl
	jmp	.L25
.L35:
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, Outvol[rip]
	mov	BYTE PTR [rax+rdx], 0
	jmp	.L25
.L31:
	movzx	eax, BYTE PTR -1[rbp]
	movsx	rdx, eax
	lea	rcx, P4[rip]
	movzx	edx, BYTE PTR [rdx+rcx]
	lea	ecx, 1[rdx]
	cdqe
	lea	rdx, P4[rip]
	mov	BYTE PTR [rax+rdx], cl
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, P4[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 15
	jne	.L36
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, P4[rip]
	mov	BYTE PTR [rax+rdx], 0
.L36:
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, P4[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	cdqe
	lea	rdx, Bit4[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L37
	movzx	eax, BYTE PTR -1[rbp]
	movzx	ecx, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, AUDV[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movsx	rax, ecx
	lea	rcx, Outvol[rip]
	mov	BYTE PTR [rax+rcx], dl
	jmp	.L25
.L37:
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	lea	rdx, Outvol[rip]
	mov	BYTE PTR [rax+rdx], 0
.L25:
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L23:
	cmp	BYTE PTR -1[rbp], 1
	jbe	.L38
	movzx	eax, WORD PTR Samp_n_cnt[rip]
	sub	ax, 256
	mov	WORD PTR Samp_n_cnt[rip], ax
	movzx	eax, WORD PTR Samp_n_cnt[rip]
	cmp	ax, 255
	ja	.L22
	movzx	edx, WORD PTR Samp_n_cnt[rip]
	movzx	eax, WORD PTR Samp_n_max[rip]
	add	eax, edx
	mov	WORD PTR Samp_n_cnt[rip], ax
	movzx	esi, BYTE PTR Outvol[rip]
	movzx	ecx, BYTE PTR Outvol[rip+1]
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	lea	edx, [rsi+rcx]
	mov	BYTE PTR [rax], dl
	movzx	eax, WORD PTR -28[rbp]
	sub	eax, 1
	mov	WORD PTR -28[rbp], ax
.L22:
	cmp	WORD PTR -28[rbp], 0
	jne	.L39
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	Tia_process, .-Tia_process
	.globl	Tia_process_2
	.type	Tia_process_2, @function
Tia_process_2:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	WORD PTR -28[rbp], ax
	movzx	eax, BYTE PTR AUDC[rip]
	mov	BYTE PTR -4[rbp], al
	movzx	eax, BYTE PTR AUDV[rip]
	mov	BYTE PTR -3[rbp], al
	movzx	eax, BYTE PTR AUDC[rip+1]
	mov	BYTE PTR -2[rbp], al
	movzx	eax, BYTE PTR AUDV[rip+1]
	mov	BYTE PTR -1[rbp], al
	movzx	eax, BYTE PTR P5[rip]
	mov	BYTE PTR -8[rbp], al
	movzx	eax, BYTE PTR P5[rip+1]
	mov	BYTE PTR -7[rbp], al
	movzx	eax, BYTE PTR Outvol[rip]
	mov	BYTE PTR -6[rbp], al
	movzx	eax, BYTE PTR Outvol[rip+1]
	mov	BYTE PTR -5[rbp], al
	movzx	eax, BYTE PTR Div_n_cnt[rip]
	mov	BYTE PTR -10[rbp], al
	movzx	eax, BYTE PTR Div_n_cnt[rip+1]
	mov	BYTE PTR -9[rbp], al
	jmp	.L41
.L70:
	cmp	BYTE PTR -10[rbp], 1
	jbe	.L42
	movzx	eax, BYTE PTR -10[rbp]
	sub	eax, 1
	mov	BYTE PTR -10[rbp], al
	jmp	.L43
.L42:
	cmp	BYTE PTR -10[rbp], 1
	jne	.L43
	movzx	eax, BYTE PTR Div_n_max[rip]
	mov	BYTE PTR -10[rbp], al
	movzx	eax, BYTE PTR -8[rbp]
	add	eax, 1
	mov	BYTE PTR -8[rbp], al
	cmp	BYTE PTR -8[rbp], 31
	jne	.L44
	mov	BYTE PTR -8[rbp], 0
.L44:
	movzx	eax, BYTE PTR -4[rbp]
	and	eax, 2
	test	eax, eax
	je	.L45
	movzx	eax, BYTE PTR -4[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L46
	movzx	eax, BYTE PTR -8[rbp]
	cdqe
	lea	rdx, Div31[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L45
.L46:
	movzx	eax, BYTE PTR -4[rbp]
	and	eax, 1
	test	eax, eax
	je	.L43
	movzx	eax, BYTE PTR -8[rbp]
	cdqe
	lea	rdx, Bit5[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L43
.L45:
	movzx	eax, BYTE PTR -4[rbp]
	and	eax, 4
	test	eax, eax
	je	.L47
	cmp	BYTE PTR -6[rbp], 0
	je	.L48
	mov	BYTE PTR -6[rbp], 0
	jmp	.L43
.L48:
	movzx	eax, BYTE PTR -3[rbp]
	mov	BYTE PTR -6[rbp], al
	jmp	.L43
.L47:
	movzx	eax, BYTE PTR -4[rbp]
	and	eax, 8
	test	eax, eax
	je	.L49
	cmp	BYTE PTR -4[rbp], 8
	jne	.L50
	movzx	eax, WORD PTR P9[rip]
	add	eax, 1
	mov	WORD PTR P9[rip], ax
	movzx	eax, WORD PTR P9[rip]
	cmp	ax, 511
	jne	.L51
	mov	WORD PTR P9[rip], 0
.L51:
	movzx	eax, WORD PTR P9[rip]
	movzx	eax, ax
	cdqe
	lea	rdx, Bit9[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L52
	movzx	eax, BYTE PTR -3[rbp]
	mov	BYTE PTR -6[rbp], al
	jmp	.L43
.L52:
	mov	BYTE PTR -6[rbp], 0
	jmp	.L43
.L50:
	movzx	eax, BYTE PTR -8[rbp]
	cdqe
	lea	rdx, Bit5[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L53
	movzx	eax, BYTE PTR -3[rbp]
	mov	BYTE PTR -6[rbp], al
	jmp	.L43
.L53:
	mov	BYTE PTR -6[rbp], 0
	jmp	.L43
.L49:
	movzx	eax, BYTE PTR P4[rip]
	add	eax, 1
	mov	BYTE PTR P4[rip], al
	movzx	eax, BYTE PTR P4[rip]
	cmp	al, 15
	jne	.L54
	mov	BYTE PTR P4[rip], 0
.L54:
	movzx	eax, BYTE PTR P4[rip]
	movzx	eax, al
	cdqe
	lea	rdx, Bit4[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L55
	movzx	eax, BYTE PTR -3[rbp]
	mov	BYTE PTR -6[rbp], al
	jmp	.L43
.L55:
	mov	BYTE PTR -6[rbp], 0
.L43:
	cmp	BYTE PTR -9[rbp], 1
	jbe	.L56
	movzx	eax, BYTE PTR -9[rbp]
	sub	eax, 1
	mov	BYTE PTR -9[rbp], al
	jmp	.L57
.L56:
	cmp	BYTE PTR -9[rbp], 1
	jne	.L57
	movzx	eax, BYTE PTR Div_n_max[rip+1]
	mov	BYTE PTR -9[rbp], al
	movzx	eax, BYTE PTR -7[rbp]
	add	eax, 1
	mov	BYTE PTR -7[rbp], al
	cmp	BYTE PTR -7[rbp], 31
	jne	.L58
	mov	BYTE PTR -7[rbp], 0
.L58:
	movzx	eax, BYTE PTR -2[rbp]
	and	eax, 2
	test	eax, eax
	je	.L59
	movzx	eax, BYTE PTR -2[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L60
	movzx	eax, BYTE PTR -7[rbp]
	cdqe
	lea	rdx, Div31[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L59
.L60:
	movzx	eax, BYTE PTR -2[rbp]
	and	eax, 1
	test	eax, eax
	je	.L57
	movzx	eax, BYTE PTR -7[rbp]
	cdqe
	lea	rdx, Bit5[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L57
.L59:
	movzx	eax, BYTE PTR -2[rbp]
	and	eax, 4
	test	eax, eax
	je	.L61
	cmp	BYTE PTR -5[rbp], 0
	je	.L62
	mov	BYTE PTR -5[rbp], 0
	jmp	.L57
.L62:
	movzx	eax, BYTE PTR -1[rbp]
	mov	BYTE PTR -5[rbp], al
	jmp	.L57
.L61:
	movzx	eax, BYTE PTR -2[rbp]
	and	eax, 8
	test	eax, eax
	je	.L63
	cmp	BYTE PTR -2[rbp], 8
	jne	.L64
	movzx	eax, WORD PTR P9[rip+2]
	add	eax, 1
	mov	WORD PTR P9[rip+2], ax
	movzx	eax, WORD PTR P9[rip+2]
	cmp	ax, 511
	jne	.L65
	mov	WORD PTR P9[rip+2], 0
.L65:
	movzx	eax, WORD PTR P9[rip+2]
	movzx	eax, ax
	cdqe
	lea	rdx, Bit9[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L66
	movzx	eax, BYTE PTR -1[rbp]
	mov	BYTE PTR -5[rbp], al
	jmp	.L57
.L66:
	mov	BYTE PTR -5[rbp], 0
	jmp	.L57
.L64:
	movzx	eax, BYTE PTR -7[rbp]
	cdqe
	lea	rdx, Bit5[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L67
	movzx	eax, BYTE PTR -1[rbp]
	mov	BYTE PTR -5[rbp], al
	jmp	.L57
.L67:
	mov	BYTE PTR -5[rbp], 0
	jmp	.L57
.L63:
	movzx	eax, BYTE PTR P4[rip+1]
	add	eax, 1
	mov	BYTE PTR P4[rip+1], al
	movzx	eax, BYTE PTR P4[rip+1]
	cmp	al, 15
	jne	.L68
	mov	BYTE PTR P4[rip+1], 0
.L68:
	movzx	eax, BYTE PTR P4[rip+1]
	movzx	eax, al
	cdqe
	lea	rdx, Bit4[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L69
	movzx	eax, BYTE PTR -1[rbp]
	mov	BYTE PTR -5[rbp], al
	jmp	.L57
.L69:
	mov	BYTE PTR -5[rbp], 0
.L57:
	movzx	eax, WORD PTR Samp_n_cnt[rip]
	sub	ax, 256
	mov	WORD PTR Samp_n_cnt[rip], ax
	movzx	eax, WORD PTR Samp_n_cnt[rip]
	cmp	ax, 255
	ja	.L41
	movzx	edx, WORD PTR Samp_n_cnt[rip]
	movzx	eax, WORD PTR Samp_n_max[rip]
	add	eax, edx
	mov	WORD PTR Samp_n_cnt[rip], ax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	ecx, BYTE PTR -6[rbp]
	movzx	edx, BYTE PTR -5[rbp]
	add	edx, ecx
	mov	BYTE PTR [rax], dl
	movzx	eax, WORD PTR -28[rbp]
	sub	eax, 1
	mov	WORD PTR -28[rbp], ax
.L41:
	cmp	WORD PTR -28[rbp], 0
	jne	.L70
	movzx	eax, BYTE PTR -8[rbp]
	mov	BYTE PTR P5[rip], al
	movzx	eax, BYTE PTR -7[rbp]
	mov	BYTE PTR P5[rip+1], al
	movzx	eax, BYTE PTR -6[rbp]
	mov	BYTE PTR Outvol[rip], al
	movzx	eax, BYTE PTR -5[rbp]
	mov	BYTE PTR Outvol[rip+1], al
	movzx	eax, BYTE PTR -10[rbp]
	mov	BYTE PTR Div_n_cnt[rip], al
	movzx	eax, BYTE PTR -9[rbp]
	mov	BYTE PTR Div_n_cnt[rip+1], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	Tia_process_2, .-Tia_process_2
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"944830.c"
	.text
	.comm	AUDC,2,4
	.comm	AUDF,2,4
	.comm	AUDV,2,4
	.local	Outvol
	.comm	Outvol,2,4
	.data
	.align	2
	.type	Bit4, %object
	.size	Bit4, 15
Bit4:
	.ascii	"\001\001\000\001\001\001\000\000\000\000\001\000\001"
	.ascii	"\000\000"
	.align	2
	.type	Bit5, %object
	.size	Bit5, 31
Bit5:
	.ascii	"\000\000\001\000\001\001\000\000\001\001\001\001\001"
	.ascii	"\000\000\000\001\001\000\001\001\001\000\001\000\001"
	.ascii	"\000\000\000\000\001"
	.align	2
	.type	Div31, %object
	.size	Div31, 31
Div31:
	.ascii	"\000\001\000\000\000\000\000\000\000\000\000\000\000"
	.ascii	"\000\000\000\000\000\000\001\000\000\000\000\000\000"
	.ascii	"\000\000\000\000\000"
	.local	Bit9
	.comm	Bit9,511,4
	.local	P4
	.comm	P4,2,4
	.local	P5
	.comm	P5,2,4
	.local	P9
	.comm	P9,4,4
	.local	Div_n_cnt
	.comm	Div_n_cnt,2,4
	.local	Div_n_max
	.comm	Div_n_max,2,4
	.local	Samp_n_max
	.comm	Samp_n_max,2,2
	.local	Samp_n_cnt
	.comm	Samp_n_cnt,2,2
	.global	__aeabi_uidiv
	.text
	.align	2
	.global	Tia_sound_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	Tia_sound_init, %function
Tia_sound_init:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	mov	r2, r1
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-16]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-6]	@ movhi
	b	.L2
.L3:
	bl	rand
	mov	r3, r0
	and	r2, r3, #255
	ldrsh	r3, [fp, #-6]
	and	r2, r2, #1
	and	r1, r2, #255
	ldr	r2, .L6
	strb	r1, [r2, r3]
	ldrsh	r3, [fp, #-6]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-6]	@ movhi
.L2:
	ldrsh	r3, [fp, #-6]
	ldr	r2, .L6+4
	cmp	r3, r2
	blt	.L3
	ldrh	r3, [fp, #-14]
	lsl	r3, r3, #8
	ldrh	r2, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L6+8
	strh	r3, [r2]	@ movhi
	ldr	r3, .L6+12
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-7]
	b	.L4
.L5:
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldr	r2, .L6+16
	mov	r1, #0
	strb	r1, [r2, r3]
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldr	r2, .L6+20
	mov	r1, #0
	strb	r1, [r2, r3]
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldr	r2, .L6+24
	mov	r1, #0
	strb	r1, [r2, r3]
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldr	r2, .L6+28
	mov	r1, #0
	strb	r1, [r2, r3]
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldr	r2, .L6+32
	mov	r1, #0
	strb	r1, [r2, r3]
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldr	r2, .L6+36
	mov	r1, #0
	strb	r1, [r2, r3]
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldr	r2, .L6+40
	mov	r1, #0
	strb	r1, [r2, r3]
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldr	r2, .L6+44
	mov	r1, #0
	strb	r1, [r2, r3]
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldr	r2, .L6+48
	lsl	r3, r3, #1
	add	r3, r2, r3
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-7]
.L4:
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	cmp	r3, #1
	bls	.L5
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	Bit9
	.word	511
	.word	Samp_n_max
	.word	Samp_n_cnt
	.word	Outvol
	.word	Div_n_cnt
	.word	Div_n_max
	.word	AUDC
	.word	AUDF
	.word	AUDV
	.word	P4
	.word	P5
	.word	P9
	.size	Tia_sound_init, .-Tia_sound_init
	.align	2
	.global	Update_tia_sound
	.syntax unified
	.arm
	.fpu softvfp
	.type	Update_tia_sound, %function
Update_tia_sound:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	mov	r3, r0
	mov	r2, r1
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, r2
	strb	r3, [fp, #-15]
	mov	r3, #0
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-14]
	sub	r3, r3, #21
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L9
.L11:
	.word	.L16
	.word	.L15
	.word	.L14
	.word	.L13
	.word	.L12
	.word	.L10
.L16:
	ldrb	r3, [fp, #-15]
	and	r3, r3, #15
	and	r2, r3, #255
	ldr	r3, .L23
	strb	r2, [r3]
	mov	r3, #0
	strb	r3, [fp, #-7]
	b	.L17
.L15:
	ldrb	r3, [fp, #-15]
	and	r3, r3, #15
	and	r2, r3, #255
	ldr	r3, .L23
	strb	r2, [r3, #1]
	mov	r3, #1
	strb	r3, [fp, #-7]
	b	.L17
.L14:
	ldrb	r3, [fp, #-15]
	and	r3, r3, #31
	and	r2, r3, #255
	ldr	r3, .L23+4
	strb	r2, [r3]
	mov	r3, #0
	strb	r3, [fp, #-7]
	b	.L17
.L13:
	ldrb	r3, [fp, #-15]
	and	r3, r3, #31
	and	r2, r3, #255
	ldr	r3, .L23+4
	strb	r2, [r3, #1]
	mov	r3, #1
	strb	r3, [fp, #-7]
	b	.L17
.L12:
	ldrb	r3, [fp, #-15]	@ zero_extendqisi2
	lsl	r3, r3, #3
	and	r3, r3, #255
	and	r3, r3, #120
	and	r2, r3, #255
	ldr	r3, .L23+8
	strb	r2, [r3]
	mov	r3, #0
	strb	r3, [fp, #-7]
	b	.L17
.L10:
	ldrb	r3, [fp, #-15]	@ zero_extendqisi2
	lsl	r3, r3, #3
	and	r3, r3, #255
	and	r3, r3, #120
	and	r2, r3, #255
	ldr	r3, .L23+8
	strb	r2, [r3, #1]
	mov	r3, #1
	strb	r3, [fp, #-7]
	b	.L17
.L9:
	mvn	r3, #0
	strb	r3, [fp, #-7]
	nop
.L17:
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	cmp	r3, #255
	beq	.L22
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldr	r2, .L23
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L19
	mov	r3, #0
	strh	r3, [fp, #-6]	@ movhi
	ldrb	r2, [fp, #-7]	@ zero_extendqisi2
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldr	r1, .L23+8
	ldrb	r1, [r1, r2]	@ zero_extendqisi2
	ldr	r2, .L23+12
	strb	r1, [r2, r3]
	b	.L20
.L19:
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldr	r2, .L23+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	strh	r3, [fp, #-6]	@ movhi
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldr	r2, .L23
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	and	r3, r3, #12
	cmp	r3, #12
	bne	.L20
	ldrh	r3, [fp, #-6]	@ movhi
	mov	r2, r3	@ movhi
	lsl	r2, r2, #1
	add	r3, r2, r3
	strh	r3, [fp, #-6]	@ movhi
.L20:
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldr	r2, .L23+16
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldrh	r2, [fp, #-6]
	cmp	r2, r3
	beq	.L22
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldrh	r2, [fp, #-6]	@ movhi
	and	r1, r2, #255
	ldr	r2, .L23+16
	strb	r1, [r2, r3]
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldr	r2, .L23+20
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L21
	ldrh	r3, [fp, #-6]
	cmp	r3, #0
	bne	.L22
.L21:
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldrh	r2, [fp, #-6]	@ movhi
	and	r1, r2, #255
	ldr	r2, .L23+20
	strb	r1, [r2, r3]
.L22:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L24:
	.align	2
.L23:
	.word	AUDC
	.word	AUDF
	.word	AUDV
	.word	Outvol
	.word	Div_n_max
	.word	Div_n_cnt
	.size	Update_tia_sound, .-Update_tia_sound
	.align	2
	.global	Tia_process
	.syntax unified
	.arm
	.fpu softvfp
	.type	Tia_process, %function
Tia_process:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, r1
	strh	r3, [fp, #-18]	@ movhi
	b	.L26
.L43:
	mov	r3, #0
	strb	r3, [fp, #-5]
	b	.L27
.L42:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #1
	bls	.L28
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44
	ldrb	r2, [r2, r3]	@ zero_extendqisi2
	sub	r2, r2, #1
	and	r1, r2, #255
	ldr	r2, .L44
	strb	r1, [r2, r3]
	b	.L29
.L28:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L29
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r1, .L44+4
	ldrb	r1, [r1, r2]	@ zero_extendqisi2
	ldr	r2, .L44
	strb	r1, [r2, r3]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+8
	ldrb	r2, [r2, r3]	@ zero_extendqisi2
	add	r2, r2, #1
	and	r1, r2, #255
	ldr	r2, .L44+8
	strb	r1, [r2, r3]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #31
	bne	.L30
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+8
	mov	r1, #0
	strb	r1, [r2, r3]
.L30:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+12
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L31
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+12
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L32
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L44+16
	ldrb	r3, [r3, r2]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L31
.L32:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+12
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L29
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L44+20
	ldrb	r3, [r3, r2]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L29
.L31:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+12
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L33
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+24
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L34
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+24
	mov	r1, #0
	strb	r1, [r2, r3]
	b	.L29
.L34:
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r1, .L44+28
	ldrb	r1, [r1, r2]	@ zero_extendqisi2
	ldr	r2, .L44+24
	strb	r1, [r2, r3]
	b	.L29
.L33:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+12
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L35
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+12
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #8
	bne	.L36
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r1, .L44+32
	lsl	r2, r3, #1
	add	r2, r1, r2
	ldrh	r2, [r2]
	add	r2, r2, #1
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	ldr	r1, .L44+32
	lsl	r3, r3, #1
	add	r3, r1, r3
	strh	r2, [r3]	@ movhi
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+32
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	ldr	r2, .L44+36
	cmp	r3, r2
	bne	.L37
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+32
	lsl	r3, r3, #1
	add	r3, r2, r3
	mov	r2, #0
	strh	r2, [r3]	@ movhi
.L37:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+32
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, .L44+40
	ldrb	r3, [r3, r2]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L38
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r1, .L44+28
	ldrb	r1, [r1, r2]	@ zero_extendqisi2
	ldr	r2, .L44+24
	strb	r1, [r2, r3]
	b	.L29
.L38:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+24
	mov	r1, #0
	strb	r1, [r2, r3]
	b	.L29
.L36:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L44+20
	ldrb	r3, [r3, r2]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L39
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r1, .L44+28
	ldrb	r1, [r1, r2]	@ zero_extendqisi2
	ldr	r2, .L44+24
	strb	r1, [r2, r3]
	b	.L29
.L39:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+24
	mov	r1, #0
	strb	r1, [r2, r3]
	b	.L29
.L35:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+44
	ldrb	r2, [r2, r3]	@ zero_extendqisi2
	add	r2, r2, #1
	and	r1, r2, #255
	ldr	r2, .L44+44
	strb	r1, [r2, r3]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+44
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #15
	bne	.L40
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+44
	mov	r1, #0
	strb	r1, [r2, r3]
.L40:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+44
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L44+48
	ldrb	r3, [r3, r2]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L41
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r1, .L44+28
	ldrb	r1, [r1, r2]	@ zero_extendqisi2
	ldr	r2, .L44+24
	strb	r1, [r2, r3]
	b	.L29
.L41:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L44+24
	mov	r1, #0
	strb	r1, [r2, r3]
.L29:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L27:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #1
	bls	.L42
	ldr	r3, .L44+52
	ldrh	r3, [r3]
	sub	r3, r3, #256
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L44+52
	strh	r3, [r2]	@ movhi
	ldr	r3, .L44+52
	ldrh	r3, [r3]
	cmp	r3, #255
	bhi	.L26
	ldr	r3, .L44+52
	ldrh	r2, [r3]
	ldr	r3, .L44+56
	ldrh	r3, [r3]
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L44+52
	strh	r3, [r2]	@ movhi
	ldr	r3, .L44+24
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, .L44+24
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	add	r0, r3, #1
	str	r0, [fp, #-16]
	add	r2, r1, r2
	and	r2, r2, #255
	strb	r2, [r3]
	ldrh	r3, [fp, #-18]
	sub	r3, r3, #1
	strh	r3, [fp, #-18]	@ movhi
.L26:
	ldrh	r3, [fp, #-18]
	cmp	r3, #0
	bne	.L43
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L45:
	.align	2
.L44:
	.word	Div_n_cnt
	.word	Div_n_max
	.word	P5
	.word	AUDC
	.word	Div31
	.word	Bit5
	.word	Outvol
	.word	AUDV
	.word	P9
	.word	511
	.word	Bit9
	.word	P4
	.word	Bit4
	.word	Samp_n_cnt
	.word	Samp_n_max
	.size	Tia_process, .-Tia_process
	.align	2
	.global	Tia_process_2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Tia_process_2, %function
Tia_process_2:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	mov	r3, r1
	strh	r3, [fp, #-26]	@ movhi
	ldr	r3, .L77
	ldrb	r3, [r3]
	strb	r3, [fp, #-8]
	ldr	r3, .L77+4
	ldrb	r3, [r3]
	strb	r3, [fp, #-7]
	ldr	r3, .L77
	ldrb	r3, [r3, #1]
	strb	r3, [fp, #-6]
	ldr	r3, .L77+4
	ldrb	r3, [r3, #1]
	strb	r3, [fp, #-5]
	ldr	r3, .L77+8
	ldrb	r3, [r3]
	strb	r3, [fp, #-12]
	ldr	r3, .L77+8
	ldrb	r3, [r3, #1]
	strb	r3, [fp, #-11]
	ldr	r3, .L77+12
	ldrb	r3, [r3]
	strb	r3, [fp, #-10]
	ldr	r3, .L77+12
	ldrb	r3, [r3, #1]
	strb	r3, [fp, #-9]
	ldr	r3, .L77+16
	ldrb	r3, [r3]
	strb	r3, [fp, #-14]
	ldr	r3, .L77+16
	ldrb	r3, [r3, #1]
	strb	r3, [fp, #-13]
	b	.L47
.L76:
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	cmp	r3, #1
	bls	.L48
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	sub	r3, r3, #1
	strb	r3, [fp, #-14]
	b	.L49
.L48:
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L49
	ldr	r3, .L77+20
	ldrb	r3, [r3]
	strb	r3, [fp, #-14]
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-12]
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #31
	bne	.L50
	mov	r3, #0
	strb	r3, [fp, #-12]
.L50:
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L51
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L52
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	ldr	r2, .L77+24
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L51
.L52:
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L49
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	ldr	r2, .L77+28
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L49
.L51:
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L53
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L54
	mov	r3, #0
	strb	r3, [fp, #-10]
	b	.L49
.L54:
	ldrb	r3, [fp, #-7]
	strb	r3, [fp, #-10]
	b	.L49
.L53:
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L55
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	cmp	r3, #8
	bne	.L56
	ldr	r3, .L77+32
	ldrh	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L77+32
	strh	r3, [r2]	@ movhi
	ldr	r3, .L77+32
	ldrh	r3, [r3]
	ldr	r2, .L77+36
	cmp	r3, r2
	bne	.L57
	ldr	r3, .L77+32
	mov	r2, #0
	strh	r2, [r3]	@ movhi
.L57:
	ldr	r3, .L77+32
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, .L77+40
	ldrb	r3, [r3, r2]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L58
	ldrb	r3, [fp, #-7]
	strb	r3, [fp, #-10]
	b	.L49
.L58:
	mov	r3, #0
	strb	r3, [fp, #-10]
	b	.L49
.L56:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	ldr	r2, .L77+28
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L59
	ldrb	r3, [fp, #-7]
	strb	r3, [fp, #-10]
	b	.L49
.L59:
	mov	r3, #0
	strb	r3, [fp, #-10]
	b	.L49
.L55:
	ldr	r3, .L77+44
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, .L77+44
	strb	r2, [r3]
	ldr	r3, .L77+44
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #15
	bne	.L60
	ldr	r3, .L77+44
	mov	r2, #0
	strb	r2, [r3]
.L60:
	ldr	r3, .L77+44
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L77+48
	ldrb	r3, [r3, r2]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L61
	ldrb	r3, [fp, #-7]
	strb	r3, [fp, #-10]
	b	.L49
.L61:
	mov	r3, #0
	strb	r3, [fp, #-10]
.L49:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #1
	bls	.L62
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	sub	r3, r3, #1
	strb	r3, [fp, #-13]
	b	.L63
.L62:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L63
	ldr	r3, .L77+20
	ldrb	r3, [r3, #1]
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-11]
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	cmp	r3, #31
	bne	.L64
	mov	r3, #0
	strb	r3, [fp, #-11]
.L64:
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L65
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L66
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	ldr	r2, .L77+24
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L65
.L66:
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L63
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	ldr	r2, .L77+28
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L63
.L65:
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L67
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L68
	mov	r3, #0
	strb	r3, [fp, #-9]
	b	.L63
.L68:
	ldrb	r3, [fp, #-5]
	strb	r3, [fp, #-9]
	b	.L63
.L67:
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L69
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r3, #8
	bne	.L70
	ldr	r3, .L77+32
	ldrh	r3, [r3, #2]
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L77+32
	strh	r3, [r2, #2]	@ movhi
	ldr	r3, .L77+32
	ldrh	r3, [r3, #2]
	ldr	r2, .L77+36
	cmp	r3, r2
	bne	.L71
	ldr	r3, .L77+32
	mov	r2, #0
	strh	r2, [r3, #2]	@ movhi
.L71:
	ldr	r3, .L77+32
	ldrh	r3, [r3, #2]
	mov	r2, r3
	ldr	r3, .L77+40
	ldrb	r3, [r3, r2]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L72
	ldrb	r3, [fp, #-5]
	strb	r3, [fp, #-9]
	b	.L63
.L72:
	mov	r3, #0
	strb	r3, [fp, #-9]
	b	.L63
.L70:
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	ldr	r2, .L77+28
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L73
	ldrb	r3, [fp, #-5]
	strb	r3, [fp, #-9]
	b	.L63
.L73:
	mov	r3, #0
	strb	r3, [fp, #-9]
	b	.L63
.L69:
	ldr	r3, .L77+44
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, .L77+44
	strb	r2, [r3, #1]
	ldr	r3, .L77+44
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #15
	bne	.L74
	ldr	r3, .L77+44
	mov	r2, #0
	strb	r2, [r3, #1]
.L74:
	ldr	r3, .L77+44
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L77+48
	ldrb	r3, [r3, r2]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L75
	ldrb	r3, [fp, #-5]
	strb	r3, [fp, #-9]
	b	.L63
.L75:
	mov	r3, #0
	strb	r3, [fp, #-9]
.L63:
	ldr	r3, .L77+52
	ldrh	r3, [r3]
	sub	r3, r3, #256
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L77+52
	strh	r3, [r2]	@ movhi
	ldr	r3, .L77+52
	ldrh	r3, [r3]
	cmp	r3, #255
	bhi	.L47
	ldr	r3, .L77+52
	ldrh	r2, [r3]
	ldr	r3, .L77+56
	ldrh	r3, [r3]
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L77+52
	strh	r3, [r2]	@ movhi
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldrb	r1, [fp, #-10]
	ldrb	r2, [fp, #-9]
	add	r2, r1, r2
	and	r2, r2, #255
	strb	r2, [r3]
	ldrh	r3, [fp, #-26]
	sub	r3, r3, #1
	strh	r3, [fp, #-26]	@ movhi
.L47:
	ldrh	r3, [fp, #-26]
	cmp	r3, #0
	bne	.L76
	ldr	r2, .L77+8
	ldrb	r3, [fp, #-12]
	strb	r3, [r2]
	ldr	r2, .L77+8
	ldrb	r3, [fp, #-11]
	strb	r3, [r2, #1]
	ldr	r2, .L77+12
	ldrb	r3, [fp, #-10]
	strb	r3, [r2]
	ldr	r2, .L77+12
	ldrb	r3, [fp, #-9]
	strb	r3, [r2, #1]
	ldr	r2, .L77+16
	ldrb	r3, [fp, #-14]
	strb	r3, [r2]
	ldr	r2, .L77+16
	ldrb	r3, [fp, #-13]
	strb	r3, [r2, #1]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L78:
	.align	2
.L77:
	.word	AUDC
	.word	AUDV
	.word	P5
	.word	Outvol
	.word	Div_n_cnt
	.word	Div_n_max
	.word	Div31
	.word	Bit5
	.word	P9
	.word	511
	.word	Bit9
	.word	P4
	.word	Bit4
	.word	Samp_n_cnt
	.word	Samp_n_max
	.size	Tia_process_2, .-Tia_process_2
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
