	.file	"52034.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC1:
	.string	"error in pulsewave_s: freq must be positive\n"
	.align 8
.LC4:
	.string	"error in pulsewave_s: dty must be in [0 1]\n"
	.text
	.globl	pulsewave_s
	.type	pulsewave_s, @function
pulsewave_s:
.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, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	movss	DWORD PTR -68[rbp], xmm0
	movss	DWORD PTR -72[rbp], xmm1
	movss	DWORD PTR -76[rbp], xmm2
	movss	DWORD PTR -80[rbp], xmm3
	movss	xmm0, DWORD PTR .LC0[rip]
	comiss	xmm0, DWORD PTR -72[rbp]
	jbe	.L32
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L4
.L32:
	pxor	xmm0, xmm0
	comiss	xmm0, DWORD PTR -80[rbp]
	ja	.L5
	movss	xmm0, DWORD PTR -80[rbp]
	movss	xmm1, DWORD PTR .LC3[rip]
	comiss	xmm0, xmm1
	jbe	.L33
.L5:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L4
.L33:
	cmp	QWORD PTR -64[rbp], 0
	je	.L8
	movss	xmm0, DWORD PTR .LC0[rip]
	comiss	xmm0, DWORD PTR -80[rbp]
	ja	.L9
	movss	xmm0, DWORD PTR .LC0[rip]
	comiss	xmm0, DWORD PTR -68[rbp]
	jbe	.L10
	movss	xmm0, DWORD PTR -68[rbp]
	comiss	xmm0, DWORD PTR .LC5[rip]
	jbe	.L10
.L9:
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L13
.L14:
	mov	rax, QWORD PTR -56[rbp]
	pxor	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	sub	QWORD PTR -24[rbp], 1
	add	QWORD PTR -56[rbp], 4
.L13:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L14
	jmp	.L8
.L10:
	movss	xmm0, DWORD PTR -80[rbp]
	comiss	xmm0, DWORD PTR .LC6[rip]
	jbe	.L34
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L17
.L18:
	mov	rax, QWORD PTR -56[rbp]
	movss	xmm0, DWORD PTR -68[rbp]
	movss	DWORD PTR [rax], xmm0
	sub	QWORD PTR -16[rbp], 1
	add	QWORD PTR -56[rbp], 4
.L17:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L18
	jmp	.L8
.L34:
	movss	xmm0, DWORD PTR .LC7[rip]
	movss	DWORD PTR -40[rbp], xmm0
	movss	xmm0, DWORD PTR -72[rbp]
	mulss	xmm0, DWORD PTR -40[rbp]
	movss	DWORD PTR -36[rbp], xmm0
	movss	xmm1, DWORD PTR -80[rbp]
	movss	xmm0, DWORD PTR .LC8[rip]
	mulss	xmm0, xmm1
	movss	DWORD PTR -32[rbp], xmm0
	mov	QWORD PTR -8[rbp], 0
	jmp	.L19
.L26:
	mov	rax, QWORD PTR -8[rbp]
	test	rax, rax
	js	.L20
	pxor	xmm4, xmm4
	cvtsi2ss	xmm4, rax
	movd	eax, xmm4
	jmp	.L21
.L20:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rdx
	addss	xmm0, xmm0
	movd	eax, xmm0
.L21:
	movss	xmm1, DWORD PTR -76[rbp]
	movss	xmm0, DWORD PTR -36[rbp]
	movaps	xmm2, xmm1
	movaps	xmm1, xmm0
	movd	xmm0, eax
	call	fmaf@PLT
	movd	eax, xmm0
	movss	xmm0, DWORD PTR -40[rbp]
	movaps	xmm1, xmm0
	movd	xmm0, eax
	call	fmodf@PLT
	movd	eax, xmm0
	mov	DWORD PTR -28[rbp], eax
	movss	xmm0, DWORD PTR -28[rbp]
	comiss	xmm0, DWORD PTR -32[rbp]
	jbe	.L22
	movss	xmm0, DWORD PTR -40[rbp]
	subss	xmm0, DWORD PTR -32[rbp]
	comiss	xmm0, DWORD PTR -28[rbp]
	jbe	.L22
	mov	rax, QWORD PTR -56[rbp]
	pxor	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	jmp	.L25
.L22:
	mov	rax, QWORD PTR -56[rbp]
	movss	xmm0, DWORD PTR -68[rbp]
	movss	DWORD PTR [rax], xmm0
.L25:
	add	QWORD PTR -8[rbp], 1
	add	QWORD PTR -56[rbp], 4
.L19:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -64[rbp]
	jb	.L26
.L8:
	mov	eax, 0
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	pulsewave_s, .-pulsewave_s
	.section	.rodata
	.align 8
.LC10:
	.string	"error in pulsewave_d: freq must be positive\n"
	.align 8
.LC13:
	.string	"error in pulsewave_d: dty must be in [0 1]\n"
	.text
	.globl	pulsewave_d
	.type	pulsewave_d, @function
pulsewave_d:
.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, 112
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	movsd	QWORD PTR -88[rbp], xmm0
	movsd	QWORD PTR -96[rbp], xmm1
	movsd	QWORD PTR -104[rbp], xmm2
	movsd	QWORD PTR -112[rbp], xmm3
	movsd	xmm0, QWORD PTR .LC9[rip]
	comisd	xmm0, QWORD PTR -96[rbp]
	jbe	.L66
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L38
.L66:
	pxor	xmm0, xmm0
	comisd	xmm0, QWORD PTR -112[rbp]
	ja	.L39
	movsd	xmm0, QWORD PTR -112[rbp]
	movsd	xmm1, QWORD PTR .LC12[rip]
	comisd	xmm0, xmm1
	jbe	.L67
.L39:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L38
.L67:
	cmp	QWORD PTR -80[rbp], 0
	je	.L42
	movsd	xmm0, QWORD PTR .LC9[rip]
	comisd	xmm0, QWORD PTR -112[rbp]
	ja	.L43
	movsd	xmm0, QWORD PTR .LC9[rip]
	comisd	xmm0, QWORD PTR -88[rbp]
	jbe	.L44
	movsd	xmm0, QWORD PTR -88[rbp]
	comisd	xmm0, QWORD PTR .LC14[rip]
	jbe	.L44
.L43:
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L47
.L48:
	mov	rax, QWORD PTR -72[rbp]
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rax], xmm0
	sub	QWORD PTR -56[rbp], 1
	add	QWORD PTR -72[rbp], 8
.L47:
	cmp	QWORD PTR -56[rbp], 0
	jne	.L48
	jmp	.L42
.L44:
	movsd	xmm0, QWORD PTR -112[rbp]
	comisd	xmm0, QWORD PTR .LC15[rip]
	jbe	.L68
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -48[rbp], rax
	jmp	.L51
.L52:
	mov	rax, QWORD PTR -72[rbp]
	movsd	xmm0, QWORD PTR -88[rbp]
	movsd	QWORD PTR [rax], xmm0
	sub	QWORD PTR -48[rbp], 1
	add	QWORD PTR -72[rbp], 8
.L51:
	cmp	QWORD PTR -48[rbp], 0
	jne	.L52
	jmp	.L42
.L68:
	movsd	xmm0, QWORD PTR .LC16[rip]
	movsd	QWORD PTR -32[rbp], xmm0
	movsd	xmm0, QWORD PTR -96[rbp]
	mulsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm1, QWORD PTR -112[rbp]
	movsd	xmm0, QWORD PTR .LC17[rip]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	mov	QWORD PTR -40[rbp], 0
	jmp	.L53
.L60:
	mov	rax, QWORD PTR -40[rbp]
	test	rax, rax
	js	.L54
	pxor	xmm4, xmm4
	cvtsi2sd	xmm4, rax
	movq	rax, xmm4
	jmp	.L55
.L54:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
	movq	rax, xmm0
.L55:
	movsd	xmm1, QWORD PTR -104[rbp]
	movsd	xmm0, QWORD PTR -24[rbp]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	fma@PLT
	movq	rax, xmm0
	movsd	xmm0, QWORD PTR -32[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	fmod@PLT
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	movsd	xmm0, QWORD PTR -8[rbp]
	comisd	xmm0, QWORD PTR -16[rbp]
	jbe	.L56
	movsd	xmm0, QWORD PTR -32[rbp]
	subsd	xmm0, QWORD PTR -16[rbp]
	comisd	xmm0, QWORD PTR -8[rbp]
	jbe	.L56
	mov	rax, QWORD PTR -72[rbp]
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rax], xmm0
	jmp	.L59
.L56:
	mov	rax, QWORD PTR -72[rbp]
	movsd	xmm0, QWORD PTR -88[rbp]
	movsd	QWORD PTR [rax], xmm0
.L59:
	add	QWORD PTR -40[rbp], 1
	add	QWORD PTR -72[rbp], 8
.L53:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -80[rbp]
	jb	.L60
.L42:
	mov	eax, 0
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	pulsewave_d, .-pulsewave_d
	.section	.rodata
	.align 8
.LC18:
	.string	"error in pulsewave_c: amp must be nonnegative\n"
	.align 8
.LC19:
	.string	"error in pulsewave_c: freq must be positive\n"
	.align 8
.LC20:
	.string	"error in pulsewave_c: dty must be in [0 1]\n"
	.text
	.globl	pulsewave_c
	.type	pulsewave_c, @function
pulsewave_c:
.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, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	movss	DWORD PTR -68[rbp], xmm0
	movss	DWORD PTR -72[rbp], xmm1
	movss	DWORD PTR -76[rbp], xmm2
	movss	DWORD PTR -80[rbp], xmm3
	pxor	xmm0, xmm0
	comiss	xmm0, DWORD PTR -68[rbp]
	jbe	.L109
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 46
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L72
.L109:
	movss	xmm0, DWORD PTR .LC0[rip]
	comiss	xmm0, DWORD PTR -72[rbp]
	jbe	.L110
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L72
.L110:
	pxor	xmm0, xmm0
	comiss	xmm0, DWORD PTR -80[rbp]
	ja	.L75
	movss	xmm0, DWORD PTR -80[rbp]
	movss	xmm1, DWORD PTR .LC3[rip]
	comiss	xmm0, xmm1
	jbe	.L111
.L75:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L72
.L111:
	cmp	QWORD PTR -64[rbp], 0
	je	.L78
	movss	xmm0, DWORD PTR .LC0[rip]
	comiss	xmm0, DWORD PTR -80[rbp]
	ja	.L79
	movss	xmm0, DWORD PTR .LC0[rip]
	comiss	xmm0, DWORD PTR -68[rbp]
	jbe	.L80
	movss	xmm0, DWORD PTR -68[rbp]
	comiss	xmm0, DWORD PTR .LC5[rip]
	jbe	.L80
.L79:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rax
	mov	QWORD PTR -24[rbp], rax
	jmp	.L83
.L84:
	mov	rax, QWORD PTR -56[rbp]
	pxor	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	sub	QWORD PTR -24[rbp], 1
	add	QWORD PTR -56[rbp], 4
.L83:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L84
	jmp	.L78
.L80:
	movss	xmm0, DWORD PTR -80[rbp]
	comiss	xmm0, DWORD PTR .LC6[rip]
	jbe	.L112
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rax
	mov	QWORD PTR -16[rbp], rax
	jmp	.L87
.L88:
	mov	rax, QWORD PTR -56[rbp]
	movss	xmm0, DWORD PTR -68[rbp]
	movss	DWORD PTR [rax], xmm0
	sub	QWORD PTR -16[rbp], 1
	add	QWORD PTR -56[rbp], 4
.L87:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L88
	jmp	.L78
.L112:
	movss	xmm0, DWORD PTR .LC7[rip]
	movss	DWORD PTR -40[rbp], xmm0
	movss	xmm0, DWORD PTR -72[rbp]
	mulss	xmm0, DWORD PTR -40[rbp]
	movss	DWORD PTR -36[rbp], xmm0
	movss	xmm1, DWORD PTR -80[rbp]
	movss	xmm0, DWORD PTR .LC8[rip]
	mulss	xmm0, xmm1
	movss	DWORD PTR -32[rbp], xmm0
	mov	QWORD PTR -8[rbp], 0
	jmp	.L89
.L100:
	mov	rax, QWORD PTR -8[rbp]
	test	rax, rax
	js	.L90
	pxor	xmm4, xmm4
	cvtsi2ss	xmm4, rax
	movd	eax, xmm4
	jmp	.L91
.L90:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rdx
	addss	xmm0, xmm0
	movd	eax, xmm0
.L91:
	movss	xmm1, DWORD PTR -76[rbp]
	movss	xmm0, DWORD PTR -36[rbp]
	movaps	xmm2, xmm1
	movaps	xmm1, xmm0
	movd	xmm0, eax
	call	fmaf@PLT
	movd	eax, xmm0
	movss	xmm0, DWORD PTR -40[rbp]
	movaps	xmm1, xmm0
	movd	xmm0, eax
	call	fmodf@PLT
	movd	eax, xmm0
	mov	DWORD PTR -28[rbp], eax
	movss	xmm0, DWORD PTR -28[rbp]
	comiss	xmm0, DWORD PTR -32[rbp]
	jbe	.L92
	movss	xmm0, DWORD PTR -40[rbp]
	subss	xmm0, DWORD PTR -32[rbp]
	comiss	xmm0, DWORD PTR -28[rbp]
	jbe	.L92
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 4[rax]
	mov	QWORD PTR -56[rbp], rdx
	pxor	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	jmp	.L95
.L92:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 4[rax]
	mov	QWORD PTR -56[rbp], rdx
	movss	xmm0, DWORD PTR -68[rbp]
	movss	DWORD PTR [rax], xmm0
.L95:
	movss	xmm0, DWORD PTR .LC21[rip]
	subss	xmm0, DWORD PTR -28[rbp]
	movd	eax, xmm0
	movss	xmm0, DWORD PTR -40[rbp]
	movaps	xmm1, xmm0
	movd	xmm0, eax
	call	fmodf@PLT
	movd	eax, xmm0
	mov	DWORD PTR -28[rbp], eax
	movss	xmm0, DWORD PTR -28[rbp]
	comiss	xmm0, DWORD PTR -32[rbp]
	jbe	.L96
	movss	xmm0, DWORD PTR -40[rbp]
	subss	xmm0, DWORD PTR -32[rbp]
	comiss	xmm0, DWORD PTR -28[rbp]
	jbe	.L96
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 4[rax]
	mov	QWORD PTR -56[rbp], rdx
	pxor	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	jmp	.L99
.L96:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 4[rax]
	mov	QWORD PTR -56[rbp], rdx
	movss	xmm0, DWORD PTR -68[rbp]
	movss	DWORD PTR [rax], xmm0
.L99:
	add	QWORD PTR -8[rbp], 1
	add	QWORD PTR -56[rbp], 4
.L89:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -64[rbp]
	jb	.L100
.L78:
	mov	eax, 0
.L72:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	pulsewave_c, .-pulsewave_c
	.section	.rodata
	.align 8
.LC22:
	.string	"error in pulsewave_z: amp must be nonnegative\n"
	.align 8
.LC23:
	.string	"error in pulsewave_z: freq must be positive\n"
	.align 8
.LC24:
	.string	"error in pulsewave_z: dty must be in [0 1]\n"
	.text
	.globl	pulsewave_z
	.type	pulsewave_z, @function
pulsewave_z:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	movsd	QWORD PTR -88[rbp], xmm0
	movsd	QWORD PTR -96[rbp], xmm1
	movsd	QWORD PTR -104[rbp], xmm2
	movsd	QWORD PTR -112[rbp], xmm3
	pxor	xmm0, xmm0
	comisd	xmm0, QWORD PTR -88[rbp]
	jbe	.L153
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 46
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L116
.L153:
	movsd	xmm0, QWORD PTR .LC9[rip]
	comisd	xmm0, QWORD PTR -96[rbp]
	jbe	.L154
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC23[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L116
.L154:
	pxor	xmm0, xmm0
	comisd	xmm0, QWORD PTR -112[rbp]
	ja	.L119
	movsd	xmm0, QWORD PTR -112[rbp]
	movsd	xmm1, QWORD PTR .LC12[rip]
	comisd	xmm0, xmm1
	jbe	.L155
.L119:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC24[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L116
.L155:
	cmp	QWORD PTR -80[rbp], 0
	je	.L122
	movsd	xmm0, QWORD PTR .LC9[rip]
	comisd	xmm0, QWORD PTR -112[rbp]
	ja	.L123
	movsd	xmm0, QWORD PTR .LC9[rip]
	comisd	xmm0, QWORD PTR -88[rbp]
	jbe	.L124
	movsd	xmm0, QWORD PTR -88[rbp]
	comisd	xmm0, QWORD PTR .LC14[rip]
	jbe	.L124
.L123:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rax
	mov	QWORD PTR -56[rbp], rax
	jmp	.L127
.L128:
	mov	rax, QWORD PTR -72[rbp]
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rax], xmm0
	sub	QWORD PTR -56[rbp], 1
	add	QWORD PTR -72[rbp], 8
.L127:
	cmp	QWORD PTR -56[rbp], 0
	jne	.L128
	jmp	.L122
.L124:
	movsd	xmm0, QWORD PTR -112[rbp]
	comisd	xmm0, QWORD PTR .LC15[rip]
	jbe	.L156
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rax
	mov	QWORD PTR -48[rbp], rax
	jmp	.L131
.L132:
	mov	rax, QWORD PTR -72[rbp]
	movsd	xmm0, QWORD PTR -88[rbp]
	movsd	QWORD PTR [rax], xmm0
	sub	QWORD PTR -48[rbp], 1
	add	QWORD PTR -72[rbp], 8
.L131:
	cmp	QWORD PTR -48[rbp], 0
	jne	.L132
	jmp	.L122
.L156:
	movsd	xmm0, QWORD PTR .LC16[rip]
	movsd	QWORD PTR -32[rbp], xmm0
	movsd	xmm0, QWORD PTR -96[rbp]
	mulsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm1, QWORD PTR -112[rbp]
	movsd	xmm0, QWORD PTR .LC17[rip]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	mov	QWORD PTR -40[rbp], 0
	jmp	.L133
.L144:
	mov	rax, QWORD PTR -40[rbp]
	test	rax, rax
	js	.L134
	pxor	xmm4, xmm4
	cvtsi2sd	xmm4, rax
	movq	rax, xmm4
	jmp	.L135
.L134:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
	movq	rax, xmm0
.L135:
	movsd	xmm1, QWORD PTR -104[rbp]
	movsd	xmm0, QWORD PTR -24[rbp]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	fma@PLT
	movq	rax, xmm0
	movsd	xmm0, QWORD PTR -32[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	fmod@PLT
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	movsd	xmm0, QWORD PTR -8[rbp]
	comisd	xmm0, QWORD PTR -16[rbp]
	jbe	.L136
	movsd	xmm0, QWORD PTR -32[rbp]
	subsd	xmm0, QWORD PTR -16[rbp]
	comisd	xmm0, QWORD PTR -8[rbp]
	jbe	.L136
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -72[rbp], rdx
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rax], xmm0
	jmp	.L139
.L136:
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -72[rbp], rdx
	movsd	xmm0, QWORD PTR -88[rbp]
	movsd	QWORD PTR [rax], xmm0
.L139:
	movsd	xmm0, QWORD PTR .LC25[rip]
	subsd	xmm0, QWORD PTR -8[rbp]
	movq	rax, xmm0
	movsd	xmm0, QWORD PTR -32[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	fmod@PLT
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	movsd	xmm0, QWORD PTR -8[rbp]
	comisd	xmm0, QWORD PTR -16[rbp]
	jbe	.L140
	movsd	xmm0, QWORD PTR -32[rbp]
	subsd	xmm0, QWORD PTR -16[rbp]
	comisd	xmm0, QWORD PTR -8[rbp]
	jbe	.L140
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -72[rbp], rdx
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rax], xmm0
	jmp	.L143
.L140:
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -72[rbp], rdx
	movsd	xmm0, QWORD PTR -88[rbp]
	movsd	QWORD PTR [rax], xmm0
.L143:
	add	QWORD PTR -40[rbp], 1
.L133:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -80[rbp]
	jb	.L144
.L122:
	mov	eax, 0
.L116:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	pulsewave_z, .-pulsewave_z
	.section	.rodata
	.align 4
.LC0:
	.long	872415232
	.align 4
.LC3:
	.long	1065353216
	.align 4
.LC5:
	.long	-1275068416
	.align 4
.LC6:
	.long	1065353214
	.align 4
.LC7:
	.long	1086918619
	.align 4
.LC8:
	.long	1078530011
	.align 8
.LC9:
	.long	0
	.long	1018167296
	.align 8
.LC12:
	.long	0
	.long	1072693248
	.align 8
.LC14:
	.long	0
	.long	-1129316352
	.align 8
.LC15:
	.long	-2
	.long	1072693247
	.align 8
.LC16:
	.long	1413754136
	.long	1075388923
	.align 8
.LC17:
	.long	1413754136
	.long	1074340347
	.align 4
.LC21:
	.long	1070141403
	.align 8
.LC25:
	.long	1413754136
	.long	1073291771
	.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	"52034.c"
	.text
	.global	__aeabi_fcmplt
	.section	.rodata
	.align	2
.LC0:
	.ascii	"error in pulsewave_s: freq must be positive\012\000"
	.global	__aeabi_fcmpgt
	.align	2
.LC1:
	.ascii	"error in pulsewave_s: dty must be in [0 1]\012\000"
	.global	__aeabi_fmul
	.global	__aeabi_ui2f
	.global	__aeabi_fsub
	.text
	.align	2
	.global	pulsewave_s
	.syntax unified
	.arm
	.fpu softvfp
	.type	pulsewave_s, %function
pulsewave_s:
	@ args = 8, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]	@ float
	str	r3, [fp, #-52]	@ float
	mov	r1, #872415232
	ldr	r0, [fp, #-52]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r3, .L33
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L33+4
	bl	fwrite
	mov	r3, #1
	b	.L4
.L30:
	mov	r1, #0
	ldr	r0, [fp, #8]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	mov	r1, #1065353216
	ldr	r0, [fp, #8]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L31
.L5:
	ldr	r3, .L33
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L33+8
	bl	fwrite
	mov	r3, #1
	b	.L4
.L31:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L8
	mov	r1, #872415232
	ldr	r0, [fp, #8]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	mov	r1, #872415232
	ldr	r0, [fp, #-48]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	mov	r1, #-1275068416
	ldr	r0, [fp, #-48]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
.L9:
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-32]
	b	.L13
.L14:
	ldr	r3, [fp, #-40]
	mov	r2, #0
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	add	r3, r3, #4
	str	r3, [fp, #-40]
.L13:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L14
	b	.L8
.L10:
	ldr	r1, .L33+12
	ldr	r0, [fp, #8]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
	b	.L17
.L18:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-48]	@ float
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-40]
	add	r3, r3, #4
	str	r3, [fp, #-40]
.L17:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L18
	b	.L8
.L32:
	ldr	r3, .L33+16
	str	r3, [fp, #-20]	@ float
	ldr	r1, [fp, #-20]	@ float
	ldr	r0, [fp, #-52]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r1, .L33+20
	ldr	r0, [fp, #8]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-12]	@ float
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L19
.L24:
	ldr	r0, [fp, #-24]
	bl	__aeabi_ui2f
	mov	r3, r0
	ldr	r2, [fp, #4]	@ float
	ldr	r1, [fp, #-16]	@ float
	mov	r0, r3
	bl	fmaf
	mov	r3, r0
	ldr	r1, [fp, #-20]	@ float
	mov	r0, r3
	bl	fmodf
	str	r0, [fp, #-8]	@ float
	ldr	r1, [fp, #-12]	@ float
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r1, [fp, #-12]	@ float
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-40]
	mov	r2, #0
	str	r2, [r3]	@ float
	b	.L23
.L20:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-48]	@ float
	str	r2, [r3]	@ float
.L23:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	add	r3, r3, #4
	str	r3, [fp, #-40]
.L19:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	bcc	.L24
.L8:
	mov	r3, #0
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	1065353214
	.word	1086918619
	.word	1078530011
	.size	pulsewave_s, .-pulsewave_s
	.global	__aeabi_dcmplt
	.section	.rodata
	.align	2
.LC2:
	.ascii	"error in pulsewave_d: freq must be positive\012\000"
	.global	__aeabi_dcmpgt
	.align	2
.LC3:
	.ascii	"error in pulsewave_d: dty must be in [0 1]\012\000"
	.global	__aeabi_dmul
	.global	__aeabi_ui2d
	.global	__aeabi_dsub
	.text
	.align	2
	.global	pulsewave_d
	.syntax unified
	.arm
	.fpu softvfp
	.type	pulsewave_d, %function
pulsewave_d:
	@ args = 24, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	mov	r2, #0
	ldr	r3, .L67
	ldmib	fp, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L64
	ldr	r3, .L67+4
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L67+8
	bl	fwrite
	mov	r3, #1
	b	.L38
.L64:
	mov	r2, #0
	mov	r3, #0
	add	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L39
	mov	r2, #0
	ldr	r3, .L67+12
	add	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L65
.L39:
	ldr	r3, .L67+4
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L67+16
	bl	fwrite
	mov	r3, #1
	b	.L38
.L65:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L42
	mov	r2, #0
	ldr	r3, .L67
	add	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
	mov	r2, #0
	ldr	r3, .L67
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L44
	mov	r2, #0
	ldr	r3, .L67+20
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L44
.L43:
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-48]
	b	.L47
.L48:
	ldr	r1, [fp, #-56]
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-56]
	add	r3, r3, #8
	str	r3, [fp, #-56]
.L47:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L48
	b	.L42
.L44:
	mvn	r2, #1
	ldr	r3, .L67+24
	add	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L66
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-44]
	b	.L51
.L52:
	ldr	r1, [fp, #-56]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-56]
	add	r3, r3, #8
	str	r3, [fp, #-56]
.L51:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L52
	b	.L42
.L66:
	ldr	r2, .L67+28
	ldr	r3, .L67+32
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldmib	fp, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r2, .L67+28
	ldr	r3, .L67+36
	add	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L53
.L58:
	ldr	r0, [fp, #-40]
	bl	__aeabi_ui2d
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	bl	fma
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	fmod
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L54
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L54
	ldr	r1, [fp, #-56]
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	b	.L57
.L54:
	ldr	r1, [fp, #-56]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
.L57:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-56]
	add	r3, r3, #8
	str	r3, [fp, #-56]
.L53:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	bcc	.L58
.L42:
	mov	r3, #0
.L38:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L68:
	.align	2
.L67:
	.word	1018167296
	.word	stderr
	.word	.LC2
	.word	1072693248
	.word	.LC3
	.word	-1129316352
	.word	1072693247
	.word	1413754136
	.word	1075388923
	.word	1074340347
	.size	pulsewave_d, .-pulsewave_d
	.section	.rodata
	.align	2
.LC4:
	.ascii	"error in pulsewave_c: amp must be nonnegative\012\000"
	.align	2
.LC5:
	.ascii	"error in pulsewave_c: freq must be positive\012\000"
	.align	2
.LC6:
	.ascii	"error in pulsewave_c: dty must be in [0 1]\012\000"
	.text
	.align	2
	.global	pulsewave_c
	.syntax unified
	.arm
	.fpu softvfp
	.type	pulsewave_c, %function
pulsewave_c:
	@ args = 8, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]	@ float
	str	r3, [fp, #-52]	@ float
	mov	r1, #0
	ldr	r0, [fp, #-48]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L107
	ldr	r3, .L111
	ldr	r3, [r3]
	mov	r2, #46
	mov	r1, #1
	ldr	r0, .L111+4
	bl	fwrite
	mov	r3, #1
	b	.L72
.L107:
	mov	r1, #872415232
	ldr	r0, [fp, #-52]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L108
	ldr	r3, .L111
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L111+8
	bl	fwrite
	mov	r3, #1
	b	.L72
.L108:
	mov	r1, #0
	ldr	r0, [fp, #8]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L75
	mov	r1, #1065353216
	ldr	r0, [fp, #8]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L109
.L75:
	ldr	r3, .L111
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L111+12
	bl	fwrite
	mov	r3, #1
	b	.L72
.L109:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L78
	mov	r1, #872415232
	ldr	r0, [fp, #8]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L79
	mov	r1, #872415232
	ldr	r0, [fp, #-48]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L80
	mov	r1, #-1275068416
	ldr	r0, [fp, #-48]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L80
.L79:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L83
.L84:
	ldr	r3, [fp, #-40]
	mov	r2, #0
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	add	r3, r3, #4
	str	r3, [fp, #-40]
.L83:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L84
	b	.L78
.L80:
	ldr	r1, .L111+16
	ldr	r0, [fp, #8]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L110
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L87
.L88:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-48]	@ float
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-40]
	add	r3, r3, #4
	str	r3, [fp, #-40]
.L87:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L88
	b	.L78
.L110:
	ldr	r3, .L111+20
	str	r3, [fp, #-20]	@ float
	ldr	r1, [fp, #-20]	@ float
	ldr	r0, [fp, #-52]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r1, .L111+24
	ldr	r0, [fp, #8]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-12]	@ float
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L89
.L98:
	ldr	r0, [fp, #-24]
	bl	__aeabi_ui2f
	mov	r3, r0
	ldr	r2, [fp, #4]	@ float
	ldr	r1, [fp, #-16]	@ float
	mov	r0, r3
	bl	fmaf
	mov	r3, r0
	ldr	r1, [fp, #-20]	@ float
	mov	r0, r3
	bl	fmodf
	str	r0, [fp, #-8]	@ float
	ldr	r1, [fp, #-12]	@ float
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L90
	ldr	r1, [fp, #-12]	@ float
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L90
	ldr	r3, [fp, #-40]
	add	r2, r3, #4
	str	r2, [fp, #-40]
	mov	r2, #0
	str	r2, [r3]	@ float
	b	.L93
.L90:
	ldr	r3, [fp, #-40]
	add	r2, r3, #4
	str	r2, [fp, #-40]
	ldr	r2, [fp, #-48]	@ float
	str	r2, [r3]	@ float
.L93:
	ldr	r1, [fp, #-8]	@ float
	ldr	r0, .L111+28
	bl	__aeabi_fsub
	mov	r3, r0
	ldr	r1, [fp, #-20]	@ float
	mov	r0, r3
	bl	fmodf
	str	r0, [fp, #-8]	@ float
	ldr	r1, [fp, #-12]	@ float
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L94
	ldr	r1, [fp, #-12]	@ float
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L94
	ldr	r3, [fp, #-40]
	add	r2, r3, #4
	str	r2, [fp, #-40]
	mov	r2, #0
	str	r2, [r3]	@ float
	b	.L97
.L94:
	ldr	r3, [fp, #-40]
	add	r2, r3, #4
	str	r2, [fp, #-40]
	ldr	r2, [fp, #-48]	@ float
	str	r2, [r3]	@ float
.L97:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	add	r3, r3, #4
	str	r3, [fp, #-40]
.L89:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	bcc	.L98
.L78:
	mov	r3, #0
.L72:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L112:
	.align	2
.L111:
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	1065353214
	.word	1086918619
	.word	1078530011
	.word	1070141403
	.size	pulsewave_c, .-pulsewave_c
	.section	.rodata
	.align	2
.LC7:
	.ascii	"error in pulsewave_z: amp must be nonnegative\012\000"
	.align	2
.LC8:
	.ascii	"error in pulsewave_z: freq must be positive\012\000"
	.align	2
.LC9:
	.ascii	"error in pulsewave_z: dty must be in [0 1]\012\000"
	.text
	.align	2
	.global	pulsewave_z
	.syntax unified
	.arm
	.fpu softvfp
	.type	pulsewave_z, %function
pulsewave_z:
	@ args = 24, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L151
	ldr	r3, .L155
	ldr	r3, [r3]
	mov	r2, #46
	mov	r1, #1
	ldr	r0, .L155+4
	bl	fwrite
	mov	r3, #1
	b	.L116
.L151:
	mov	r2, #0
	ldr	r3, .L155+8
	ldmib	fp, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L152
	ldr	r3, .L155
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L155+12
	bl	fwrite
	mov	r3, #1
	b	.L116
.L152:
	mov	r2, #0
	mov	r3, #0
	add	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L119
	mov	r2, #0
	ldr	r3, .L155+16
	add	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L153
.L119:
	ldr	r3, .L155
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L155+20
	bl	fwrite
	mov	r3, #1
	b	.L116
.L153:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L122
	mov	r2, #0
	ldr	r3, .L155+8
	add	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L123
	mov	r2, #0
	ldr	r3, .L155+8
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L124
	mov	r2, #0
	ldr	r3, .L155+24
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L124
.L123:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #1
	str	r3, [fp, #-48]
	b	.L127
.L128:
	ldr	r1, [fp, #-56]
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-56]
	add	r3, r3, #8
	str	r3, [fp, #-56]
.L127:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L128
	b	.L122
.L124:
	mvn	r2, #1
	ldr	r3, .L155+28
	add	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L154
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L131
.L132:
	ldr	r1, [fp, #-56]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-56]
	add	r3, r3, #8
	str	r3, [fp, #-56]
.L131:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L132
	b	.L122
.L154:
	ldr	r2, .L155+32
	ldr	r3, .L155+36
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldmib	fp, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r2, .L155+32
	ldr	r3, .L155+40
	add	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L133
.L142:
	ldr	r0, [fp, #-40]
	bl	__aeabi_ui2d
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	bl	fma
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	fmod
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L134
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L134
	ldr	r3, [fp, #-56]
	add	r2, r3, #8
	str	r2, [fp, #-56]
	mov	r0, #0
	mov	r1, #0
	stm	r3, {r0-r1}
	b	.L137
.L134:
	ldr	r1, [fp, #-56]
	add	r3, r1, #8
	str	r3, [fp, #-56]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
.L137:
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L155+32
	ldr	r1, .L155+44
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	fmod
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L138
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L138
	ldr	r3, [fp, #-56]
	add	r2, r3, #8
	str	r2, [fp, #-56]
	mov	r0, #0
	mov	r1, #0
	stm	r3, {r0-r1}
	b	.L141
.L138:
	ldr	r1, [fp, #-56]
	add	r3, r1, #8
	str	r3, [fp, #-56]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
.L141:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L133:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	bcc	.L142
.L122:
	mov	r3, #0
.L116:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L156:
	.align	2
.L155:
	.word	stderr
	.word	.LC7
	.word	1018167296
	.word	.LC8
	.word	1072693248
	.word	.LC9
	.word	-1129316352
	.word	1072693247
	.word	1413754136
	.word	1075388923
	.word	1074340347
	.word	1073291771
	.size	pulsewave_z, .-pulsewave_z
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
