	.file	"354543.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"-I"
.LC1:
	.string	"-O"
.LC2:
	.string	"unknown option %s\n"
.LC3:
	.string	"r"
.LC4:
	.string	"/proc/mounts"
.LC5:
	.string	"setmntent"
.LC6:
	.string	"%s"
.LC7:
	.string	"copying %s to %s\n"
.LC8:
	.string	"scp %s %s"
	.align 8
.LC9:
	.string	"%s not found. please ensure the device is correctly connected\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, 1344
	mov	DWORD PTR -1332[rbp], edi
	mov	QWORD PTR -1344[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1320[rbp], 0
	mov	DWORD PTR -1316[rbp], 0
	mov	DWORD PTR -1324[rbp], 1
	jmp	.L2
.L6:
	mov	eax, DWORD PTR -1324[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1344[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR -1324[rbp]
	add	eax, 1
	cmp	DWORD PTR -1332[rbp], eax
	jle	.L3
	mov	eax, DWORD PTR -1324[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1344[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	lea	rax, -1296[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	add	DWORD PTR -1324[rbp], 1
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -1324[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1344[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	mov	eax, DWORD PTR -1324[rbp]
	add	eax, 1
	cmp	DWORD PTR -1332[rbp], eax
	jle	.L5
	mov	eax, DWORD PTR -1324[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1344[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	add	DWORD PTR -1324[rbp], 1
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -1324[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1344[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -1320[rbp], -1
.L4:
	add	DWORD PTR -1324[rbp], 1
.L2:
	mov	eax, DWORD PTR -1324[rbp]
	cmp	eax, DWORD PTR -1332[rbp]
	jl	.L6
	cmp	DWORD PTR -1320[rbp], 0
	jne	.L7
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	setmntent@PLT
	mov	QWORD PTR -1312[rbp], rax
	cmp	QWORD PTR -1312[rbp], 0
	jne	.L9
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR -1304[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rdx, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L9
	mov	rax, QWORD PTR -1304[rbp]
	mov	rdx, QWORD PTR 8[rax]
	lea	rax, -784[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -1316[rbp], 1
.L9:
	mov	rax, QWORD PTR -1312[rbp]
	mov	rdi, rax
	call	getmntent@PLT
	mov	QWORD PTR -1304[rbp], rax
	cmp	QWORD PTR -1304[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR -1312[rbp]
	mov	rdi, rax
	call	endmntent@PLT
	cmp	DWORD PTR -1316[rbp], 0
	je	.L11
	lea	rdx, -784[rbp]
	lea	rax, -1296[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -784[rbp]
	lea	rdx, -1296[rbp]
	lea	rax, -528[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	system@PLT
	jmp	.L7
.L11:
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -1320[rbp], -1
.L7:
	mov	eax, DWORD PTR -1320[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, 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	"354543.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-I\000"
	.align	2
.LC1:
	.ascii	"-O\000"
	.align	2
.LC2:
	.ascii	"unknown option %s\012\000"
	.align	2
.LC3:
	.ascii	"r\000"
	.align	2
.LC4:
	.ascii	"/proc/mounts\000"
	.align	2
.LC5:
	.ascii	"setmntent\000"
	.align	2
.LC6:
	.ascii	"%s\000"
	.align	2
.LC7:
	.ascii	"copying %s to %s\012\000"
	.align	2
.LC8:
	.ascii	"scp %s %s\000"
	.align	2
.LC9:
	.ascii	"%s not found. please ensure the device is correctly"
	.ascii	" connected\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1312
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1312
	str	r0, [fp, #-1312]
	str	r1, [fp, #-1316]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1304]
	mov	r3, #0
	str	r3, [fp, #-1300]
	mov	r3, #1
	str	r3, [fp, #-1308]
	b	.L2
.L6:
	ldr	r3, [fp, #-1308]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1316]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L14+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-1308]
	add	r3, r3, #1
	ldr	r2, [fp, #-1312]
	cmp	r2, r3
	ble	.L3
	ldr	r3, [fp, #-1308]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1316]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-1308]
	add	r3, r3, #1
	str	r3, [fp, #-1308]
	b	.L4
.L3:
	ldr	r3, [fp, #-1308]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1316]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L14+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-1308]
	add	r3, r3, #1
	ldr	r2, [fp, #-1312]
	cmp	r2, r3
	ble	.L5
	ldr	r3, [fp, #-1308]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1316]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-1308]
	add	r3, r3, #1
	str	r3, [fp, #-1308]
	b	.L4
.L5:
	ldr	r3, [fp, #-1308]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1316]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L14+12
	bl	printf
	mvn	r3, #0
	str	r3, [fp, #-1304]
.L4:
	ldr	r3, [fp, #-1308]
	add	r3, r3, #1
	str	r3, [fp, #-1308]
.L2:
	ldr	r2, [fp, #-1308]
	ldr	r3, [fp, #-1312]
	cmp	r2, r3
	blt	.L6
	ldr	r3, [fp, #-1304]
	cmp	r3, #0
	bne	.L7
	ldr	r1, .L14+16
	ldr	r0, .L14+20
	bl	setmntent
	str	r0, [fp, #-1296]
	ldr	r3, [fp, #-1296]
	cmp	r3, #0
	bne	.L9
	ldr	r0, .L14+24
	bl	perror
	mov	r0, #1
	bl	exit
.L10:
	ldr	r3, [fp, #-1292]
	ldr	r2, [r3, #4]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-1292]
	ldr	r2, [r3, #4]
	sub	r3, fp, #776
	ldr	r1, .L14+28
	mov	r0, r3
	bl	sprintf
	mov	r3, #1
	str	r3, [fp, #-1300]
.L9:
	ldr	r0, [fp, #-1296]
	bl	getmntent
	str	r0, [fp, #-1292]
	ldr	r3, [fp, #-1292]
	cmp	r3, #0
	bne	.L10
	ldr	r0, [fp, #-1296]
	bl	endmntent
	ldr	r3, [fp, #-1300]
	cmp	r3, #0
	beq	.L11
	sub	r2, fp, #776
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L14+32
	bl	printf
	sub	r3, fp, #776
	sub	r2, fp, #1280
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r0, fp, #520
	ldr	r1, .L14+36
	bl	sprintf
	sub	r3, fp, #520
	mov	r0, r3
	bl	system
	b	.L7
.L11:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L14+40
	bl	printf
	mvn	r3, #0
	str	r3, [fp, #-1304]
.L7:
	ldr	r3, [fp, #-1304]
	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	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
