	.file	"237642998.c"
	.intel_syntax noprefix
	.text
	.local	waveform_array
	.comm	waveform_array,64,32
	.section	.rodata
.LC3:
	.string	"writing to stdout"
	.align 8
.LC4:
	.string	"failed to write %d bytes to stdout, only wrote %d bytes"
	.text
	.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, 64
	movss	xmm0, DWORD PTR .LC0[rip]
	movss	DWORD PTR -44[rbp], xmm0
	movss	xmm0, DWORD PTR .LC1[rip]
	movss	DWORD PTR -40[rbp], xmm0
	mov	WORD PTR -50[rbp], 32767
	mov	DWORD PTR -48[rbp], 0
	jmp	.L2
.L3:
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -44[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	call	sin@PLT
	movsd	xmm1, QWORD PTR .LC2[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	WORD PTR -50[rbp], ax
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rcx, [rax+rax]
	lea	rdx, waveform_array[rip]
	movzx	eax, WORD PTR -50[rbp]
	mov	WORD PTR [rcx+rdx], ax
	movss	xmm0, DWORD PTR -44[rbp]
	addss	xmm0, DWORD PTR -40[rbp]
	movss	DWORD PTR -44[rbp], xmm0
	add	DWORD PTR -48[rbp], 1
.L2:
	cmp	DWORD PTR -48[rbp], 31
	jle	.L3
	mov	edx, 64
	lea	rsi, waveform_array[rip]
	mov	edi, 1
	call	write@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -32[rbp], 1
	mov	DWORD PTR -28[rbp], eax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L4:
	cmp	DWORD PTR -36[rbp], 64
	je	.L5
	mov	DWORD PTR -24[rbp], 1
	mov	DWORD PTR -20[rbp], 0
	lea	rax, .LC4[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	ecx, DWORD PTR -36[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	esi, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	r8d, ecx
	mov	ecx, 64
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L5:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC0:
	.long	1070141403
	.align 4
.LC1:
	.long	1044975579
	.align 8
.LC2:
	.long	0
	.long	1088421824
	.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	"237642998.c"
	.text
	.local	waveform_array
	.comm	waveform_array,64,4
	.global	__aeabi_f2d
	.global	__aeabi_dmul
	.global	__aeabi_d2iz
	.global	__aeabi_fadd
	.section	.rodata
	.align	2
.LC0:
	.ascii	"writing to stdout\000"
	.align	2
.LC1:
	.ascii	"failed to write %d bytes to stdout, only wrote %d b"
	.ascii	"ytes\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L7
	str	r3, [fp, #-40]	@ float
	ldr	r3, .L7+4
	str	r3, [fp, #-36]	@ float
	mvn	r3, #32768
	strh	r3, [fp, #-46]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L2
.L3:
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sin
	mov	r2, #0
	ldr	r3, .L7+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	strh	r3, [fp, #-46]	@ movhi
	ldr	r2, .L7+12
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r2, [fp, #-46]	@ movhi
	strh	r2, [r3]	@ movhi
	ldr	r1, [fp, #-36]	@ float
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-40]	@ float
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L2:
	ldr	r3, [fp, #-44]
	cmp	r3, #31
	ble	.L3
	mov	r2, #64
	ldr	r1, .L7+12
	mov	r0, #1
	bl	write
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, .L7+16
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	error
	nop
.L4:
	ldr	r3, [fp, #-32]
	cmp	r3, #64
	beq	.L5
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L7+20
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	mov	r3, #64
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	error
	nop
.L5:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	1070141403
	.word	1044975579
	.word	1088421824
	.word	waveform_array
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
