	.file	"12639087.c"
	.intel_syntax noprefix
	.text
	.globl	gServos
	.bss
	.align 16
	.type	gServos, @object
	.size	gServos, 16
gServos:
	.zero	16
	.section	.rodata
.LC0:
	.string	"/dev/mem"
	.align 8
.LC1:
	.string	"Mapping memory for absolute memory access failed -- Test Try\n"
	.text
	.globl	servo_init
	.type	servo_init, @function
servo_init:
.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, 16
	mov	esi, 2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR gServos[rip+8], eax
	mov	QWORD PTR -8[rbp], 1074593792
	mov	DWORD PTR gServos[rip+12], 255
	mov	rcx, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR gServos[rip+8]
	mov	eax, DWORD PTR gServos[rip+12]
	cdqe
	mov	r9, rcx
	mov	r8d, edx
	mov	ecx, 1
	mov	edx, 3
	mov	rsi, rax
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR gServos[rip], rax
	mov	rax, QWORD PTR gServos[rip]
	cmp	rax, -1
	jne	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L3
.L2:
	mov	edx, 100
	mov	esi, 150
	mov	edi, 0
	call	servo_move
	mov	edx, 100
	mov	esi, 150
	mov	edi, 1
	call	servo_move
	mov	edx, 100
	mov	esi, 150
	mov	edi, 2
	call	servo_move
	mov	edx, 100
	mov	esi, 150
	mov	edi, 3
	call	servo_move
	mov	edx, 100
	mov	esi, 150
	mov	edi, 4
	call	servo_move
	mov	edx, 100
	mov	esi, 150
	mov	edi, 5
	call	servo_move
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	servo_init, .-servo_init
	.globl	servo_move
	.type	servo_move, @function
servo_move:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	ecx, esi
	mov	eax, edx
	mov	edx, edi
	mov	BYTE PTR -20[rbp], dl
	mov	edx, ecx
	mov	BYTE PTR -24[rbp], dl
	mov	BYTE PTR -28[rbp], al
	movzx	eax, BYTE PTR -28[rbp]
	sal	eax, 8
	mov	edx, eax
	movzx	eax, BYTE PTR -24[rbp]
	or	eax, edx
	mov	DWORD PTR -4[rbp], eax
	movzx	eax, BYTE PTR -20[rbp]
	cmp	eax, 5
	ja	.L13
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L7[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L7[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L7:
	.long	.L13-.L7
	.long	.L11-.L7
	.long	.L10-.L7
	.long	.L9-.L7
	.long	.L8-.L7
	.long	.L6-.L7
	.text
.L11:
	mov	rax, QWORD PTR gServos[rip]
	lea	rdx, 256[rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L12
.L10:
	mov	rax, QWORD PTR gServos[rip]
	lea	rdx, 260[rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L12
.L9:
	mov	rax, QWORD PTR gServos[rip]
	lea	rdx, 264[rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L12
.L8:
	mov	rax, QWORD PTR gServos[rip]
	lea	rdx, 268[rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L12
.L6:
	mov	rax, QWORD PTR gServos[rip]
	lea	rdx, 272[rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L12
.L13:
	nop
.L12:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	servo_move, .-servo_move
	.globl	servo_release
	.type	servo_release, @function
servo_release:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR gServos[rip+12]
	movsx	rdx, eax
	mov	rax, QWORD PTR gServos[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	munmap@PLT
	mov	eax, DWORD PTR gServos[rip+8]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	servo_release, .-servo_release
	.section	.rodata
	.align 8
.LC2:
	.string	"\n-------------  ATTENTION ROBOT WILL BE MOVING!  --------------------\n"
	.align 8
.LC3:
	.string	"Please ensure robot power is OFF. Hold it in middle position. Then, turn it on."
	.text
	.globl	main
	.type	main, @function
main:
.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
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	mov	eax, 0
	call	sleep@PLT
	mov	eax, 0
	call	servo_init
	test	eax, eax
	je	.L16
	mov	eax, -1
	jmp	.L17
.L16:
	mov	edi, 2
	mov	eax, 0
	call	sleep@PLT
	mov	edx, 25
	mov	esi, 145
	mov	edi, 1
	call	servo_move
	mov	edi, 50000
	mov	eax, 0
	call	usleep@PLT
	mov	edx, 20
	mov	esi, 90
	mov	edi, 2
	call	servo_move
	mov	edx, 25
	mov	esi, 145
	mov	edi, 3
	call	servo_move
	mov	edx, 25
	mov	esi, 145
	mov	edi, 4
	call	servo_move
	mov	edi, 100000
	mov	eax, 0
	call	usleep@PLT
	mov	edx, 25
	mov	esi, 100
	mov	edi, 5
	call	servo_move
	mov	edi, 1
	mov	eax, 0
	call	sleep@PLT
	mov	edx, 50
	mov	esi, 200
	mov	edi, 2
	call	servo_move
	mov	edx, 50
	mov	esi, 200
	mov	edi, 3
	call	servo_move
	mov	edi, 495000
	mov	eax, 0
	call	usleep@PLT
	mov	edx, 50
	mov	esi, 240
	mov	edi, 5
	call	servo_move
	mov	eax, 0
	call	servo_release
	mov	eax, 0
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"12639087.c"
	.text
	.comm	gServos,12,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/mem\000"
	.align	2
.LC1:
	.ascii	"Mapping memory for absolute memory access failed --"
	.ascii	" Test Try\012\000"
	.text
	.align	2
	.global	servo_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	servo_init, %function
servo_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r1, #2
	ldr	r0, .L4
	bl	open
	mov	r3, r0
	ldr	r2, .L4+4
	str	r3, [r2, #4]
	ldr	r3, .L4+8
	str	r3, [fp, #-8]
	ldr	r3, .L4+4
	mov	r2, #255
	str	r2, [r3, #8]
	ldr	r3, .L4+4
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r3, .L4+4
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	mov	r3, r0
	ldr	r2, .L4+4
	str	r3, [r2]
	ldr	r3, .L4+4
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L4+12
	bl	perror
	mov	r3, #1
	b	.L3
.L2:
	mov	r2, #100
	mov	r1, #150
	mov	r0, #0
	bl	servo_move
	mov	r2, #100
	mov	r1, #150
	mov	r0, #1
	bl	servo_move
	mov	r2, #100
	mov	r1, #150
	mov	r0, #2
	bl	servo_move
	mov	r2, #100
	mov	r1, #150
	mov	r0, #3
	bl	servo_move
	mov	r2, #100
	mov	r1, #150
	mov	r0, #4
	bl	servo_move
	mov	r2, #100
	mov	r1, #150
	mov	r0, #5
	bl	servo_move
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	gServos
	.word	1074593792
	.word	.LC1
	.size	servo_init, .-servo_init
	.align	2
	.global	servo_move
	.syntax unified
	.arm
	.fpu softvfp
	.type	servo_move, %function
servo_move:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	mov	r3, r0
	strb	r3, [fp, #-13]
	mov	r3, r1
	strb	r3, [fp, #-14]
	mov	r3, r2
	strb	r3, [fp, #-15]
	ldrb	r3, [fp, #-15]	@ zero_extendqisi2
	lsl	r2, r3, #8
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	orr	r3, r2, r3
	str	r3, [fp, #-8]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L15
.L9:
	.word	.L13
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L8
.L13:
	ldr	r3, .L16
	ldr	r3, [r3]
	add	r3, r3, #256
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	b	.L14
.L12:
	ldr	r3, .L16
	ldr	r3, [r3]
	add	r3, r3, #260
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	b	.L14
.L11:
	ldr	r3, .L16
	ldr	r3, [r3]
	add	r3, r3, #264
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	b	.L14
.L10:
	ldr	r3, .L16
	ldr	r3, [r3]
	add	r3, r3, #268
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	b	.L14
.L8:
	ldr	r3, .L16
	ldr	r3, [r3]
	add	r3, r3, #272
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	b	.L14
.L15:
	nop
.L14:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L17:
	.align	2
.L16:
	.word	gServos
	.size	servo_move, .-servo_move
	.align	2
	.global	servo_release
	.syntax unified
	.arm
	.fpu softvfp
	.type	servo_release, %function
servo_release:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L19
	ldr	r3, [r3]
	ldr	r2, .L19
	ldr	r2, [r2, #8]
	mov	r1, r2
	mov	r0, r3
	bl	munmap
	ldr	r3, .L19
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	close
	nop
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	gServos
	.size	servo_release, .-servo_release
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\012-------------  ATTENTION ROBOT WILL BE MOVING! "
	.ascii	" --------------------\012\000"
	.align	2
.LC3:
	.ascii	"Please ensure robot power is OFF. Hold it in middle"
	.ascii	" position. Then, turn it on.\000"
	.text
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r0, .L24
	bl	puts
	ldr	r0, .L24+4
	bl	puts
	mov	r0, #1
	bl	sleep
	bl	servo_init
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	mvn	r3, #0
	b	.L23
.L22:
	mov	r0, #2
	bl	sleep
	mov	r2, #25
	mov	r1, #145
	mov	r0, #1
	bl	servo_move
	ldr	r0, .L24+8
	bl	usleep
	mov	r2, #20
	mov	r1, #90
	mov	r0, #2
	bl	servo_move
	mov	r2, #25
	mov	r1, #145
	mov	r0, #3
	bl	servo_move
	mov	r2, #25
	mov	r1, #145
	mov	r0, #4
	bl	servo_move
	ldr	r0, .L24+12
	bl	usleep
	mov	r2, #25
	mov	r1, #100
	mov	r0, #5
	bl	servo_move
	mov	r0, #1
	bl	sleep
	mov	r2, #50
	mov	r1, #200
	mov	r0, #2
	bl	servo_move
	mov	r2, #50
	mov	r1, #200
	mov	r0, #3
	bl	servo_move
	ldr	r0, .L24+16
	bl	usleep
	mov	r2, #50
	mov	r1, #240
	mov	r0, #5
	bl	servo_move
	bl	servo_release
	mov	r3, #0
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC2
	.word	.LC3
	.word	50000
	.word	100000
	.word	495000
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
