	.file	"601845.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"/sys/bus/iio/devices/iio:device0/in_voltage0_raw"
	.section	.data.rel.local,"aw"
	.align 8
	.type	ADC_CH0, @object
	.size	ADC_CH0, 8
ADC_CH0:
	.quad	.LC0
	.section	.rodata
	.align 8
.LC1:
	.string	"/sys/bus/iio/devices/iio:device0/in_voltage1_raw"
	.section	.data.rel.local
	.align 8
	.type	ADC_CH1, @object
	.size	ADC_CH1, 8
ADC_CH1:
	.quad	.LC1
	.section	.rodata
	.align 8
.LC2:
	.string	"/sys/bus/iio/devices/iio:device0/in_voltage2_raw"
	.section	.data.rel.local
	.align 8
	.type	ADC_CH2, @object
	.size	ADC_CH2, 8
ADC_CH2:
	.quad	.LC2
	.section	.rodata
	.align 8
.LC3:
	.string	"/sys/bus/iio/devices/iio:device0/in_voltage3_raw"
	.section	.data.rel.local
	.align 8
	.type	ADC_CH3, @object
	.size	ADC_CH3, 8
ADC_CH3:
	.quad	.LC3
	.section	.rodata
	.align 8
.LC4:
	.string	"/sys/bus/iio/devices/iio:device0/in_voltage4_raw"
	.section	.data.rel.local
	.align 8
	.type	ADC_CH4, @object
	.size	ADC_CH4, 8
ADC_CH4:
	.quad	.LC4
	.section	.rodata
	.align 8
.LC5:
	.string	"/sys/bus/iio/devices/iio:device0/in_voltage5_raw"
	.section	.data.rel.local
	.align 8
	.type	ADC_CH5, @object
	.size	ADC_CH5, 8
ADC_CH5:
	.quad	.LC5
	.section	.rodata
.LC6:
	.string	"Content-Type: text/html\n"
.LC7:
	.string	"QUERY_STRING"
.LC8:
	.string	"QUERY_STRING is %s\n\n"
	.align 8
.LC9:
	.string	"<P>Error! Error in passing data from form to script."
	.align 8
.LC10:
	.string	"period=%ld&duty=%ld&channel=%ld"
	.align 8
.LC11:
	.string	"<P>Error! Invalid data. Data must be numeric."
	.align 8
.LC12:
	.string	"<P>The period is %ld, duty is %ld, and ADC channel is %ld.\n"
.LC13:
	.string	"\n\n Open ADC device failed!!"
.LC14:
	.string	"ADC"
.LC15:
	.string	"Open ADC device ok!"
.LC16:
	.string	"ADC conversion result = %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	getenv@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -24[rbp], 0
	jne	.L2
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L2:
	lea	rsi, -32[rbp]
	lea	rcx, -40[rbp]
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, rsi
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 3
	je	.L4
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L4:
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L3:
	mov	rax, QWORD PTR -32[rbp]
	test	rax, rax
	jne	.L5
	mov	rax, QWORD PTR ADC_CH0[rip]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -56[rbp], eax
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, 1
	jne	.L7
	mov	rax, QWORD PTR ADC_CH1[rip]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -56[rbp], eax
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, 2
	jne	.L8
	mov	rax, QWORD PTR ADC_CH2[rip]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -56[rbp], eax
	jmp	.L6
.L8:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, 3
	jne	.L9
	mov	rax, QWORD PTR ADC_CH3[rip]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -56[rbp], eax
	jmp	.L6
.L9:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, 4
	jne	.L10
	mov	rax, QWORD PTR ADC_CH4[rip]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -56[rbp], eax
	jmp	.L6
.L10:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, 5
	jne	.L6
	mov	rax, QWORD PTR ADC_CH5[rip]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -56[rbp], eax
.L6:
	cmp	DWORD PTR -56[rbp], -1
	jne	.L11
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rcx, -12[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rax, -12[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.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	"601845.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/sys/bus/iio/devices/iio:device0/in_voltage0_raw\000"
	.data
	.align	2
	.type	ADC_CH0, %object
	.size	ADC_CH0, 4
ADC_CH0:
	.word	.LC0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"/sys/bus/iio/devices/iio:device0/in_voltage1_raw\000"
	.data
	.align	2
	.type	ADC_CH1, %object
	.size	ADC_CH1, 4
ADC_CH1:
	.word	.LC1
	.section	.rodata
	.align	2
.LC2:
	.ascii	"/sys/bus/iio/devices/iio:device0/in_voltage2_raw\000"
	.data
	.align	2
	.type	ADC_CH2, %object
	.size	ADC_CH2, 4
ADC_CH2:
	.word	.LC2
	.section	.rodata
	.align	2
.LC3:
	.ascii	"/sys/bus/iio/devices/iio:device0/in_voltage3_raw\000"
	.data
	.align	2
	.type	ADC_CH3, %object
	.size	ADC_CH3, 4
ADC_CH3:
	.word	.LC3
	.section	.rodata
	.align	2
.LC4:
	.ascii	"/sys/bus/iio/devices/iio:device0/in_voltage4_raw\000"
	.data
	.align	2
	.type	ADC_CH4, %object
	.size	ADC_CH4, 4
ADC_CH4:
	.word	.LC4
	.section	.rodata
	.align	2
.LC5:
	.ascii	"/sys/bus/iio/devices/iio:device0/in_voltage5_raw\000"
	.data
	.align	2
	.type	ADC_CH5, %object
	.size	ADC_CH5, 4
ADC_CH5:
	.word	.LC5
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Content-Type: text/html\012\000"
	.align	2
.LC7:
	.ascii	"QUERY_STRING\000"
	.align	2
.LC8:
	.ascii	"QUERY_STRING is %s\012\012\000"
	.align	2
.LC9:
	.ascii	"<P>Error! Error in passing data from form to script"
	.ascii	".\000"
	.align	2
.LC10:
	.ascii	"period=%ld&duty=%ld&channel=%ld\000"
	.align	2
.LC11:
	.ascii	"<P>Error! Invalid data. Data must be numeric.\000"
	.align	2
.LC12:
	.ascii	"<P>The period is %ld, duty is %ld, and ADC channel "
	.ascii	"is %ld.\012\000"
	.align	2
.LC13:
	.ascii	"\012\012 Open ADC device failed!!\000"
	.align	2
.LC14:
	.ascii	"ADC\000"
	.align	2
.LC15:
	.ascii	"Open ADC device ok!\000"
	.align	2
.LC16:
	.ascii	"ADC conversion result = %d\012\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ 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]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L14+4
	bl	puts
	ldr	r0, .L14+8
	bl	getenv
	str	r0, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, .L14+12
	bl	printf
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L14+16
	bl	printf
	b	.L3
.L2:
	sub	r1, fp, #32
	sub	r2, fp, #36
	sub	r3, fp, #28
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L14+20
	ldr	r0, [fp, #-20]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #3
	beq	.L4
	ldr	r0, .L14+24
	bl	printf
	b	.L3
.L4:
	ldr	r1, [fp, #-36]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	ldr	r0, .L14+28
	bl	printf
.L3:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L14+32
	ldr	r3, [r3]
	mov	r1, #2
	mov	r0, r3
	bl	open
	str	r0, [fp, #-24]
	b	.L6
.L5:
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	bne	.L7
	ldr	r3, .L14+36
	ldr	r3, [r3]
	mov	r1, #2
	mov	r0, r3
	bl	open
	str	r0, [fp, #-24]
	b	.L6
.L7:
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	bne	.L8
	ldr	r3, .L14+40
	ldr	r3, [r3]
	mov	r1, #2
	mov	r0, r3
	bl	open
	str	r0, [fp, #-24]
	b	.L6
.L8:
	ldr	r3, [fp, #-28]
	cmp	r3, #3
	bne	.L9
	ldr	r3, .L14+44
	ldr	r3, [r3]
	mov	r1, #2
	mov	r0, r3
	bl	open
	str	r0, [fp, #-24]
	b	.L6
.L9:
	ldr	r3, [fp, #-28]
	cmp	r3, #4
	bne	.L10
	ldr	r3, .L14+48
	ldr	r3, [r3]
	mov	r1, #2
	mov	r0, r3
	bl	open
	str	r0, [fp, #-24]
	b	.L6
.L10:
	ldr	r3, [fp, #-28]
	cmp	r3, #5
	bne	.L6
	ldr	r3, .L14+52
	ldr	r3, [r3]
	mov	r1, #2
	mov	r0, r3
	bl	open
	str	r0, [fp, #-24]
.L6:
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L14+56
	bl	puts
	ldr	r0, .L14+60
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	ldr	r0, .L14+64
	bl	puts
	sub	r3, fp, #12
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	read
	sub	r3, fp, #12
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, .L14+68
	bl	printf
	ldr	r0, [fp, #-24]
	bl	close
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC17
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	ADC_CH0
	.word	ADC_CH1
	.word	ADC_CH2
	.word	ADC_CH3
	.word	ADC_CH4
	.word	ADC_CH5
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
