	.file	"528749.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"w"
	.align 8
.LC1:
	.string	"/sys/class/pwm/pwmchip0/export"
.LC2:
	.string	"%d"
	.text
	.globl	pwm_open
	.type	pwm_open, @function
pwm_open:
.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, 272
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rax, -112[rbp]
	movabs	rsi, 7020094974615712559
	movabs	rdi, 8083800215904023411
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	movabs	rcx, 3400341316689948023
	mov	QWORD PTR 16[rax], rcx
	mov	DWORD PTR 24[rax], 812480368
	mov	BYTE PTR 28[rax], 0
	lea	rdx, -256[rbp]
	mov	eax, 0
	mov	ecx, 18
	mov	rdi, rdx
	rep stosq
	lea	rdx, -256[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR -232[rbp]
	and	eax, 61440
	cmp	eax, 16384
	sete	al
	mov	BYTE PTR -265[rbp], al
.L2:
	movzx	eax, BYTE PTR -265[rbp]
	xor	eax, 1
	test	al, al
	je	.L5
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -264[rbp], rax
	mov	rax, QWORD PTR -264[rbp]
	mov	edx, 0
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -264[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L5:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	pwm_open, .-pwm_open
	.section	.rodata
	.align 8
.LC3:
	.string	"/sys/class/pwm/pwmchip0/pwm0/polarity"
.LC4:
	.string	"normal"
	.text
	.globl	pwm_polarity
	.type	pwm_polarity, @function
pwm_polarity:
.LFB7:
	.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
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	pwm_polarity, .-pwm_polarity
	.section	.rodata
	.align 8
.LC5:
	.string	"/sys/class/pwm/pwmchip0/pwm0/enable"
	.text
	.globl	pwm_enable
	.type	pwm_enable, @function
pwm_enable:
.LFB8:
	.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
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 1
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	pwm_enable, .-pwm_enable
	.globl	pwm_stop
	.type	pwm_stop, @function
pwm_stop:
.LFB9:
	.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
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	pwm_stop, .-pwm_stop
	.section	.rodata
	.align 8
.LC6:
	.string	"/sys/class/pwm/pwmchip0/unexport"
	.text
	.globl	pwm_close
	.type	pwm_close, @function
pwm_close:
.LFB10:
	.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
	lea	rsi, .LC0[rip]
	lea	rdi, .LC6[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	pwm_close, .-pwm_close
	.section	.rodata
	.align 8
.LC8:
	.string	"/sys/class/pwm/pwmchip0/pwm0/period"
	.text
	.globl	pwm_freq
	.type	pwm_freq, @function
pwm_freq:
.LFB11:
	.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 -20[rbp], edi
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -20[rbp]
	movsd	xmm0, QWORD PTR .LC7[rip]
	divsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -12[rbp], eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC8[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	pwm_freq, .-pwm_freq
	.section	.rodata
	.align 8
.LC9:
	.string	"/sys/class/pwm/pwmchip0/pwm0/duty_cycle"
	.text
	.globl	pwm_duty
	.type	pwm_duty, @function
pwm_duty:
.LFB12:
	.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
	movss	DWORD PTR -20[rbp], xmm0
	mov	DWORD PTR -24[rbp], edi
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -24[rbp]
	mulss	xmm0, DWORD PTR -20[rbp]
	cvttss2si	eax, xmm0
	mov	DWORD PTR -12[rbp], eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC9[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	pwm_duty, .-pwm_duty
	.globl	pwm_led_test
	.type	pwm_led_test, @function
pwm_led_test:
.LFB13:
	.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
	call	pwm_open
	mov	edi, 60
	call	pwm_freq
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	pxor	xmm0, xmm0
	call	pwm_duty
	call	pwm_polarity
	call	pwm_enable
	mov	DWORD PTR -12[rbp], 0
	jmp	.L14
.L19:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L15
.L16:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -8[rbp]
	movsd	xmm1, QWORD PTR .LC11[rip]
	divsd	xmm0, xmm1
	pxor	xmm2, xmm2
	cvtsd2ss	xmm2, xmm0
	movd	eax, xmm2
	mov	edx, DWORD PTR -4[rbp]
	mov	edi, edx
	movd	xmm0, eax
	call	pwm_duty
	mov	edi, 60000
	call	usleep@PLT
	add	DWORD PTR -8[rbp], 5
.L15:
	cmp	DWORD PTR -8[rbp], 100
	jle	.L16
	mov	DWORD PTR -8[rbp], 100
	jmp	.L17
.L18:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -8[rbp]
	movsd	xmm1, QWORD PTR .LC11[rip]
	divsd	xmm0, xmm1
	pxor	xmm3, xmm3
	cvtsd2ss	xmm3, xmm0
	movd	eax, xmm3
	mov	edx, DWORD PTR -4[rbp]
	mov	edi, edx
	movd	xmm0, eax
	call	pwm_duty
	mov	edi, 60000
	call	usleep@PLT
	sub	DWORD PTR -8[rbp], 5
.L17:
	cmp	DWORD PTR -8[rbp], 0
	jns	.L18
	add	DWORD PTR -12[rbp], 1
.L14:
	cmp	DWORD PTR -12[rbp], 9
	jle	.L19
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	movss	xmm0, DWORD PTR .LC12[rip]
	call	pwm_duty
	call	pwm_stop
	call	pwm_close
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	pwm_led_test, .-pwm_led_test
	.globl	tong
	.type	tong, @function
tong:
.LFB14:
	.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 -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L22
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	usleep@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	usleep@PLT
	jmp	.L24
.L22:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	pwm_freq
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	movss	xmm0, DWORD PTR .LC12[rip]
	call	pwm_duty
	call	pwm_polarity
	call	pwm_enable
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	usleep@PLT
	call	pwm_stop
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	usleep@PLT
.L24:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	tong, .-tong
	.globl	tongsong
	.type	tongsong, @function
tongsong:
.LFB15:
	.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
	call	pwm_open
	mov	DWORD PTR -8[rbp], 0
	jmp	.L26
.L27:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, noteDurations.1[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, 1500000
	cdq
	idiv	ecx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, melody.0[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	tong
	add	DWORD PTR -8[rbp], 1
.L26:
	cmp	DWORD PTR -8[rbp], 7
	jle	.L27
	call	pwm_close
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	tongsong, .-tongsong
	.section	.rodata
.LC14:
	.string	"0 degree"
.LC16:
	.string	"90 degree"
.LC18:
	.string	"180 degree"
	.text
	.globl	servo
	.type	servo, @function
servo:
.LFB16:
	.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
	call	pwm_open
	mov	edi, 50
	call	pwm_freq
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	movss	xmm0, DWORD PTR .LC13[rip]
	call	pwm_duty
	call	pwm_polarity
	call	pwm_enable
	mov	DWORD PTR -8[rbp], 0
	jmp	.L30
.L31:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	movss	xmm0, DWORD PTR .LC13[rip]
	call	pwm_duty
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	edi, 1
	call	sleep@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	movss	xmm0, DWORD PTR .LC15[rip]
	call	pwm_duty
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	edi, 1
	call	sleep@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	movss	xmm0, DWORD PTR .LC17[rip]
	call	pwm_duty
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	edi, 1
	call	sleep@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	movss	xmm0, DWORD PTR .LC15[rip]
	call	pwm_duty
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	edi, 1
	call	sleep@PLT
	add	DWORD PTR -8[rbp], 1
.L30:
	cmp	DWORD PTR -8[rbp], 2
	jle	.L31
	call	pwm_stop
	call	pwm_close
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	servo, .-servo
	.data
	.align 32
	.type	noteDurations.1, @object
	.size	noteDurations.1, 32
noteDurations.1:
	.long	4
	.long	8
	.long	8
	.long	4
	.long	4
	.long	4
	.long	4
	.long	4
	.align 32
	.type	melody.0, @object
	.size	melody.0, 32
melody.0:
	.long	262
	.long	196
	.long	196
	.long	220
	.long	196
	.long	0
	.long	247
	.long	262
	.section	.rodata
	.align 8
.LC7:
	.long	0
	.long	1104006501
	.align 8
.LC11:
	.long	0
	.long	1079574528
	.align 4
.LC12:
	.long	1056964608
	.align 4
.LC13:
	.long	1028443341
	.align 4
.LC15:
	.long	1036831949
	.align 4
.LC17:
	.long	1041865114
	.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	"528749.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/sys/class/pwm/pwmchip0/pwm0\000"
	.align	2
.LC1:
	.ascii	"w\000"
	.align	2
.LC2:
	.ascii	"/sys/class/pwm/pwmchip0/export\000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pwm_open
	.syntax unified
	.arm
	.fpu softvfp
	.type	pwm_open, %function
pwm_open:
	@ args = 0, pretend = 0, frame = 200
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #200
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #108
	ldr	r2, .L6+4
	mov	ip, r3
	mov	lr, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strb	r3, [ip]
	sub	r3, fp, #196
	mov	r2, #88
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r2, fp, #196
	sub	r3, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-180]
	and	r3, r3, #61440
	cmp	r3, #16384
	moveq	r3, #1
	movne	r3, #0
	strb	r3, [fp, #-201]
.L2:
	ldrb	r3, [fp, #-201]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L5
	ldr	r1, .L6+8
	ldr	r0, .L6+12
	bl	fopen
	str	r0, [fp, #-200]
	mov	r2, #0
	ldr	r1, .L6+16
	ldr	r0, [fp, #-200]
	bl	fprintf
	ldr	r0, [fp, #-200]
	bl	fclose
.L5:
	nop
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L4
	bl	__stack_chk_fail
.L4:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	pwm_open, .-pwm_open
	.section	.rodata
	.align	2
.LC5:
	.ascii	"/sys/class/pwm/pwmchip0/pwm0/polarity\000"
	.align	2
.LC6:
	.ascii	"normal\000"
	.text
	.align	2
	.global	pwm_polarity
	.syntax unified
	.arm
	.fpu softvfp
	.type	pwm_polarity, %function
pwm_polarity:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r1, .L9
	ldr	r0, .L9+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L9+8
	bl	fwrite
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	.LC5
	.word	.LC6
	.size	pwm_polarity, .-pwm_polarity
	.section	.rodata
	.align	2
.LC7:
	.ascii	"/sys/class/pwm/pwmchip0/pwm0/enable\000"
	.text
	.align	2
	.global	pwm_enable
	.syntax unified
	.arm
	.fpu softvfp
	.type	pwm_enable, %function
pwm_enable:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r1, .L12
	ldr	r0, .L12+4
	bl	fopen
	str	r0, [fp, #-8]
	mov	r2, #1
	ldr	r1, .L12+8
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	.LC7
	.word	.LC3
	.size	pwm_enable, .-pwm_enable
	.align	2
	.global	pwm_stop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pwm_stop, %function
pwm_stop:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r1, .L15
	ldr	r0, .L15+4
	bl	fopen
	str	r0, [fp, #-8]
	mov	r2, #0
	ldr	r1, .L15+8
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC1
	.word	.LC7
	.word	.LC3
	.size	pwm_stop, .-pwm_stop
	.section	.rodata
	.align	2
.LC8:
	.ascii	"/sys/class/pwm/pwmchip0/unexport\000"
	.text
	.align	2
	.global	pwm_close
	.syntax unified
	.arm
	.fpu softvfp
	.type	pwm_close, %function
pwm_close:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r1, .L18
	ldr	r0, .L18+4
	bl	fopen
	str	r0, [fp, #-8]
	mov	r2, #0
	ldr	r1, .L18+8
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC1
	.word	.LC8
	.word	.LC3
	.size	pwm_close, .-pwm_close
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_d2iz
	.section	.rodata
	.align	2
.LC9:
	.ascii	"/sys/class/pwm/pwmchip0/pwm0/period\000"
	.text
	.align	2
	.global	pwm_freq
	.syntax unified
	.arm
	.fpu softvfp
	.type	pwm_freq, %function
pwm_freq:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L22
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r1, .L22+4
	ldr	r0, .L22+8
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r1, .L22+12
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r0, [fp, #-8]
	bl	fclose
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	1104006501
	.word	.LC1
	.word	.LC9
	.word	.LC3
	.size	pwm_freq, .-pwm_freq
	.global	__aeabi_i2f
	.global	__aeabi_fmul
	.global	__aeabi_f2iz
	.section	.rodata
	.align	2
.LC10:
	.ascii	"/sys/class/pwm/pwmchip0/pwm0/duty_cycle\000"
	.text
	.align	2
	.global	pwm_duty
	.syntax unified
	.arm
	.fpu softvfp
	.type	pwm_duty, %function
pwm_duty:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]	@ float
	str	r1, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-16]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r1, .L25
	ldr	r0, .L25+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r1, .L25+8
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC1
	.word	.LC10
	.word	.LC3
	.size	pwm_duty, .-pwm_duty
	.global	__aeabi_d2f
	.align	2
	.global	pwm_led_test
	.syntax unified
	.arm
	.fpu softvfp
	.type	pwm_led_test, %function
pwm_led_test:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	bl	pwm_open
	mov	r0, #60
	bl	pwm_freq
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	mov	r0, #0
	bl	pwm_duty
	bl	pwm_polarity
	bl	pwm_enable
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L28
.L33:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L29
.L30:
	ldr	r0, [fp, #-12]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L35
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	pwm_duty
	ldr	r0, .L35+4
	bl	usleep
	ldr	r3, [fp, #-12]
	add	r3, r3, #5
	str	r3, [fp, #-12]
.L29:
	ldr	r3, [fp, #-12]
	cmp	r3, #100
	ble	.L30
	mov	r3, #100
	str	r3, [fp, #-12]
	b	.L31
.L32:
	ldr	r0, [fp, #-12]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L35
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	pwm_duty
	ldr	r0, .L35+4
	bl	usleep
	ldr	r3, [fp, #-12]
	sub	r3, r3, #5
	str	r3, [fp, #-12]
.L31:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L32
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L28:
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	ble	.L33
	ldr	r1, [fp, #-8]
	mov	r0, #1056964608
	bl	pwm_duty
	bl	pwm_stop
	bl	pwm_close
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	1079574528
	.word	60000
	.size	pwm_led_test, .-pwm_led_test
	.align	2
	.global	tong
	.syntax unified
	.arm
	.fpu softvfp
	.type	tong, %function
tong:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, .L41
	smull	r1, r2, r3, r2
	asr	r2, r2, #1
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L38
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	usleep
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	usleep
	b	.L40
.L38:
	ldr	r0, [fp, #-16]
	bl	pwm_freq
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	mov	r0, #1056964608
	bl	pwm_duty
	bl	pwm_polarity
	bl	pwm_enable
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	usleep
	bl	pwm_stop
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	usleep
.L40:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	1717986919
	.size	tong, .-tong
	.global	__aeabi_idiv
	.align	2
	.global	tongsong
	.syntax unified
	.arm
	.fpu softvfp
	.type	tongsong, %function
tongsong:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	pwm_open
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L44
.L45:
	ldr	r2, .L47
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L47+4
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r2, .L47+8
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	tong
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L44:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L45
	bl	pwm_close
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	noteDurations.6069
	.word	1500000
	.word	melody.6068
	.size	tongsong, .-tongsong
	.section	.rodata
	.align	2
.LC11:
	.ascii	"0 degree\000"
	.align	2
.LC12:
	.ascii	"90 degree\000"
	.align	2
.LC13:
	.ascii	"180 degree\000"
	.text
	.align	2
	.global	servo
	.syntax unified
	.arm
	.fpu softvfp
	.type	servo, %function
servo:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	pwm_open
	mov	r0, #50
	bl	pwm_freq
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L53
	bl	pwm_duty
	bl	pwm_polarity
	bl	pwm_enable
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L50
.L51:
	ldr	r1, [fp, #-8]
	ldr	r0, .L53
	bl	pwm_duty
	ldr	r0, .L53+4
	bl	puts
	mov	r0, #1
	bl	sleep
	ldr	r1, [fp, #-8]
	ldr	r0, .L53+8
	bl	pwm_duty
	ldr	r0, .L53+12
	bl	puts
	mov	r0, #1
	bl	sleep
	ldr	r1, [fp, #-8]
	ldr	r0, .L53+16
	bl	pwm_duty
	ldr	r0, .L53+20
	bl	puts
	mov	r0, #1
	bl	sleep
	ldr	r1, [fp, #-8]
	ldr	r0, .L53+8
	bl	pwm_duty
	ldr	r0, .L53+12
	bl	puts
	mov	r0, #1
	bl	sleep
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L50:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L51
	bl	pwm_stop
	bl	pwm_close
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	1028443341
	.word	.LC11
	.word	1036831949
	.word	.LC12
	.word	1041865114
	.word	.LC13
	.size	servo, .-servo
	.data
	.align	2
	.type	noteDurations.6069, %object
	.size	noteDurations.6069, 32
noteDurations.6069:
	.word	4
	.word	8
	.word	8
	.word	4
	.word	4
	.word	4
	.word	4
	.word	4
	.align	2
	.type	melody.6068, %object
	.size	melody.6068, 32
melody.6068:
	.word	262
	.word	196
	.word	196
	.word	220
	.word	196
	.word	0
	.word	247
	.word	262
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
