	.file	"484161.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	QWORD PTR -16[rbp], rdx
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -4[rbp]
	movsd	xmm0, QWORD PTR .LC0[rip]
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -16[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
	movsd	xmm1, QWORD PTR .LC1[rip]
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC2[rip]
	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
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	shr	rax, 2
	shr	rax, 7
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	shr	rax, 9
	and	rax, QWORD PTR -8[rbp]
	shr	rax
	and	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rax
	sal	rax, 4
	mov	rsi, rdx
	and	rsi, rax
	mov	edi, 44100
	mov	rcx, QWORD PTR -8[rbp]
	movabs	rdx, 3353953467947191203
	mov	rax, rcx
	mul	rdx
	shr	rdx, 2
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rax
	sub	rcx, rax
	mov	rdx, rcx
	test	rdx, rdx
	jne	.L6
	mov	eax, 200
	jmp	.L7
.L6:
	mov	eax, 100
.L7:
	mov	rdx, rsi
	mov	esi, edi
	mov	edi, eax
	call	sinco
	movzx	edx, ax
	cmp	QWORD PTR -8[rbp], 1048576
	jbe	.L8
	mov	rax, QWORD PTR -8[rbp]
	shr	rax, 7
	jmp	.L9
.L8:
	mov	eax, 0
.L9:
	or	rax, rdx
	leave
	.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], 50
	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	ecx, 44100
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, ecx
	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
	.align 8
.LC1:
	.long	0
	.long	1088421824
	.align 8
.LC2:
	.long	0
	.long	1088421888
	.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	"484161.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]
	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, #-24]
	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	r2, #0
	ldr	r3, .L3+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L3+12
	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
	.word	1088421824
	.word	1088421888
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r3, .L11
	umull	r2, r3, r1, r3
	lsr	r2, r3, #4
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L6
	mov	r0, #200
	b	.L7
.L6:
	mov	r0, #100
.L7:
	ldr	ip, .L11+4
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #2
	lsr	r2, r3, #7
	ldr	r3, [fp, #-8]
	lsr	r1, r3, #9
	ldr	r3, [fp, #-8]
	and	r3, r3, r1
	lsr	r3, r3, #1
	and	r2, r2, r3
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	lsl	r3, r3, #4
	and	r3, r3, r2
	mov	r2, r3
	mov	r1, ip
	bl	sinco
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	cmp	r3, #1048576
	bls	.L8
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #7
	b	.L9
.L8:
	mov	r3, #0
.L9:
	orr	r3, r3, r2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	-1171354717
	.word	44100
	.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, #50
	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, r3
	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
