	.file	"451341.c"
	.intel_syntax noprefix
	.text
	.globl	iSampleRate
	.section	.rodata
	.align 4
	.type	iSampleRate, @object
	.size	iSampleRate, 4
iSampleRate:
	.long	44100
	.text
	.globl	sinco
	.type	sinco, @function
sinco:
.LFB0:
	.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	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	QWORD PTR -24[rbp], rcx
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -4[rbp]
	movsd	xmm0, QWORD PTR .LC0[rip]
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -24[rbp]
	test	rax, rax
	js	.L2
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L3
.L2:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L3:
	mulsd	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -8[rbp]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	call	sin@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	add	eax, 1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	mulsd	xmm1, xmm0
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	sinco, .-sinco
	.globl	phaseindex
	.type	phaseindex, @function
phaseindex:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	shr	rax, 21
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	shr	rax, 16
	and	rax, QWORD PTR -24[rbp]
	or	rax, rdx
	mov	esi, 44100
	mov	rcx, rax
	mov	edx, 55000
	mov	edi, 42
	call	sinco
	movzx	ebx, ax
	mov	rax, QWORD PTR -24[rbp]
	shr	rax, 4
	mov	rsi, rax
	mov	rcx, QWORD PTR -24[rbp]
	movabs	rdx, 1713330243218011869
	mov	rax, rcx
	mul	rdx
	mov	rax, rdx
	shr	rax, 10
	imul	rdx, rax, 11025
	mov	rax, rcx
	sub	rax, rdx
	and	rax, rsi
	sal	rax, 4
	shr	rax, 2
	mov	r12, rax
	mov	rax, QWORD PTR -24[rbp]
	and	eax, 1
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR -24[rbp]
	shr	rax
	mov	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	shr	rax
	shr	rax, 9
	and	eax, 31
	mov	rdx, rax
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	and	rax, rcx
	shr	rax, 4
	mov	rsi, rax
	jmp	.L7
.L6:
	mov	esi, 512
.L7:
	mov	edi, 44100
	mov	rcx, QWORD PTR -24[rbp]
	movabs	rdx, 1713330243218011869
	mov	rax, rcx
	mul	rdx
	mov	rax, rdx
	shr	rax, 10
	imul	rdx, rax, 11025
	mov	rax, rcx
	sub	rax, rdx
	test	rax, rax
	jne	.L8
	mov	eax, 84
	jmp	.L9
.L8:
	mov	eax, 164
.L9:
	mov	rcx, rsi
	mov	edx, 65536
	mov	esi, edi
	mov	edi, eax
	call	sinco
	movzx	eax, ax
	sub	eax, 1
	cdqe
	xor	rax, r12
	or	rax, rbx
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	phaseindex, .-phaseindex
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -12[rbp], 21
	mov	WORD PTR -14[rbp], 0
	mov	QWORD PTR -8[rbp], 0
.L12:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	phaseindex
	mov	rdx, rax
	mov	esi, 44100
	mov	eax, DWORD PTR -12[rbp]
	mov	rcx, rdx
	mov	edx, 65536
	mov	edi, eax
	call	sinco
	mov	WORD PTR -14[rbp], ax
	movzx	eax, WORD PTR -14[rbp]
	movzx	eax, al
	mov	edi, eax
	call	putchar@PLT
	movzx	eax, WORD PTR -14[rbp]
	shr	ax, 8
	movzx	eax, ax
	movzx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	QWORD PTR -8[rbp], 1
	jmp	.L12
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	1413754136
	.long	1075388923
	.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	"451341.c"
	.text
	.global	iSampleRate
	.section	.rodata
	.align	2
	.type	iSampleRate, %object
	.size	iSampleRate, 4
iSampleRate:
	.word	44100
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_ui2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.global	__aeabi_d2uiz
	.text
	.align	2
	.global	sinco
	.syntax unified
	.arm
	.fpu softvfp
	.type	sinco, %function
sinco:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-16]
	bl	__aeabi_i2d
	ldr	r2, .L3
	ldr	r3, .L3+4
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-28]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-20]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sin
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-24]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	add	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-24]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L4:
	.align	2
.L3:
	.word	1413754136
	.word	1075388923
	.size	sinco, .-sinco
	.align	2
	.global	phaseindex
	.syntax unified
	.arm
	.fpu softvfp
	.type	phaseindex, %function
phaseindex:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	ldr	r0, .L11
	ldr	r3, [fp, #-16]
	lsr	r3, r3, #21
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	lsr	r1, r3, #16
	ldr	r3, [fp, #-16]
	and	r3, r3, r1
	orr	r3, r2, r3
	ldr	r2, .L11+4
	mov	r1, r0
	mov	r0, #42
	bl	sinco
	mov	r3, r0
	mov	r5, r3
	ldr	r3, [fp, #-16]
	lsr	r0, r3, #4
	ldr	r1, [fp, #-16]
	ldr	r3, .L11+8
	umull	r2, r3, r1, r3
	lsr	r2, r3, #13
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #6
	sub	r3, r3, r2
	sub	r2, r1, r3
	and	r3, r0, r2
	lsl	r3, r3, #4
	lsr	r4, r3, #2
	ldr	r1, [fp, #-16]
	ldr	r3, .L11+8
	umull	r2, r3, r1, r3
	lsr	r2, r3, #13
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #6
	sub	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L6
	mov	r0, #84
	b	.L7
.L6:
	mov	r0, #164
.L7:
	ldr	ip, .L11
	ldr	r3, [fp, #-16]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-16]
	lsr	r1, r3, #1
	ldr	r3, [fp, #-16]
	lsr	r3, r3, #1
	lsr	r3, r3, #9
	and	r2, r3, #31
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	and	r3, r3, r1
	lsr	r3, r3, #4
	b	.L9
.L8:
	mov	r3, #512
.L9:
	mov	r2, #65536
	mov	r1, ip
	bl	sinco
	mov	r3, r0
	sub	r3, r3, #1
	eor	r3, r3, r4
	orr	r3, r5, r3
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L12:
	.align	2
.L11:
	.word	44100
	.word	55000
	.word	-1103641029
	.size	phaseindex, .-phaseindex
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	mov	r3, #21
	str	r3, [fp, #-16]
	mov	r3, #0
	strh	r3, [fp, #-22]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-20]
.L14:
	ldr	r4, .L15
	ldr	r0, [fp, #-20]
	bl	phaseindex
	mov	r3, r0
	mov	r2, #65536
	mov	r1, r4
	ldr	r0, [fp, #-16]
	bl	sinco
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	ldrh	r3, [fp, #-22]
	and	r3, r3, #255
	mov	r0, r3
	bl	putchar
	ldrh	r3, [fp, #-22]
	lsr	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #255
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L14
.L16:
	.align	2
.L15:
	.word	44100
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
