	.file	"780891.c"
	.intel_syntax noprefix
	.text
	.globl	fd
	.data
	.align 4
	.type	fd, @object
	.size	fd, 4
fd:
	.long	-1
	.section	.rodata
.LC0:
	.string	"r"
	.align 8
.LC1:
	.string	"su -c 'echo 1 > /sys/module/binder_filter/parameters/filter_enable'"
	.align 8
.LC2:
	.string	"su -c 'chmod 666 /dev/binderfilter'"
	.align 8
.LC3:
	.string	"su -c 'chcon u:object_r:binder_device:s0 /dev/binderfilter'"
	.align 8
.LC4:
	.string	"su -c 'if [ ! -f /data/local/tmp/bf.policy ]; then touch /data/local/tmp/bf.policy; chmod 777 /data/local/tmp/bf.policy; fi'"
.LC5:
	.string	"/dev/binderfilter"
	.text
	.globl	setup_dev_permissions
	.type	setup_dev_permissions, @function
setup_dev_permissions:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	popen@PLT
	test	rax, rax
	jne	.L2
	mov	eax, -1
	jmp	.L3
.L2:
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	popen@PLT
	test	rax, rax
	jne	.L4
	mov	eax, -2
	jmp	.L3
.L4:
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	popen@PLT
	test	rax, rax
	jne	.L5
	mov	eax, -3
	jmp	.L3
.L5:
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	popen@PLT
	test	rax, rax
	jne	.L6
	mov	eax, -5
	jmp	.L3
.L6:
	mov	esi, 2
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd[rip], eax
	mov	eax, DWORD PTR fd[rip]
	test	eax, eax
	js	.L7
	mov	eax, DWORD PTR fd[rip]
	jmp	.L3
.L7:
	mov	eax, -4
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	setup_dev_permissions, .-setup_dev_permissions
	.section	.rodata
	.align 8
.LC6:
	.string	"Could not convert '%s' to long."
	.text
	.type	parseInt, @function
parseInt:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rcx, -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	cmp	QWORD PTR -40[rbp], rax
	je	.L9
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L10
.L9:
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	parseInt, .-parseInt
	.section	.rodata
.LC7:
	.string	"Unknown option `-%c'.\n"
	.align 8
.LC8:
	.string	"Unknown option character `\\x%x'.\n"
.LC9:
	.string	"m:u:a:d:c:t:v:"
	.align 8
.LC10:
	.string	"Setup failed with return code %d\n"
.LC11:
	.string	"message was null"
	.align 8
.LC12:
	.string	"context value for string type cannot be null"
.LC13:
	.string	"context type %d not valid"
	.text
	.globl	main
	.type	main, @function
main:
.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, 160
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -120[rbp], 0
	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
	jmp	.L14
.L28:
	mov	eax, DWORD PTR -132[rbp]
	sub	eax, 63
	cmp	eax, 55
	ja	.L15
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L17[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L17[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L17:
	.long	.L24-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L23-.L17
	.long	.L15-.L17
	.long	.L22-.L17
	.long	.L21-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L20-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L19-.L17
	.long	.L18-.L17
	.long	.L16-.L17
	.text
.L20:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -120[rbp], rax
	mov	rdx, QWORD PTR optarg[rip]
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L14
.L18:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -112[rbp], rax
	jmp	.L14
.L23:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -104[rbp], rax
	jmp	.L14
.L21:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	rdx, QWORD PTR optarg[rip]
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L14
.L22:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -88[rbp], rax
	jmp	.L14
.L19:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -80[rbp], rax
	jmp	.L14
.L16:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	rdx, QWORD PTR optarg[rip]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L14
.L24:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR optopt[rip]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 16384
	test	eax, eax
	je	.L25
	mov	edx, DWORD PTR optopt[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L26
.L25:
	mov	edx, DWORD PTR optopt[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L26:
	mov	eax, 1
	jmp	.L36
.L15:
	call	abort@PLT
.L14:
	mov	rcx, QWORD PTR -160[rbp]
	mov	eax, DWORD PTR -148[rbp]
	lea	rdx, .LC9[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -132[rbp], eax
	cmp	DWORD PTR -132[rbp], -1
	jne	.L28
	mov	eax, DWORD PTR fd[rip]
	test	eax, eax
	jns	.L29
	mov	eax, 0
	call	setup_dev_permissions
	mov	DWORD PTR -128[rbp], eax
	cmp	DWORD PTR -128[rbp], 0
	jns	.L29
	mov	eax, DWORD PTR -128[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L29:
	cmp	QWORD PTR -120[rbp], 0
	jne	.L30
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L30:
	cmp	QWORD PTR -96[rbp], 0
	jne	.L31
	mov	edi, 1
	call	malloc@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	BYTE PTR [rax], 0
.L31:
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	parseInt
	mov	DWORD PTR -64[rbp], eax
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	parseInt
	mov	DWORD PTR -60[rbp], eax
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	parseInt
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	parseInt
	test	eax, eax
	je	.L32
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	parseInt
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	parseInt
	cmp	eax, 1
	jne	.L33
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	parseInt
	mov	DWORD PTR -32[rbp], eax
	jmp	.L32
.L33:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	parseInt
	cmp	eax, 2
	jne	.L34
	cmp	QWORD PTR -72[rbp], 0
	jne	.L35
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L35:
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L32
.L34:
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L32:
	mov	eax, DWORD PTR fd[rip]
	lea	rcx, -64[rbp]
	mov	edx, 48
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -124[rbp], eax
	mov	eax, 0
.L36:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"780891.c"
	.text
	.global	fd
	.data
	.align	2
	.type	fd, %object
	.size	fd, 4
fd:
	.word	-1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"su -c 'echo 1 > /sys/module/binder_filter/parameter"
	.ascii	"s/filter_enable'\000"
	.align	2
.LC2:
	.ascii	"su -c 'chmod 666 /dev/binderfilter'\000"
	.align	2
.LC3:
	.ascii	"su -c 'chcon u:object_r:binder_device:s0 /dev/binde"
	.ascii	"rfilter'\000"
	.align	2
.LC4:
	.ascii	"su -c 'if [ ! -f /data/local/tmp/bf.policy ]; then "
	.ascii	"touch /data/local/tmp/bf.policy; chmod 777 /data/lo"
	.ascii	"cal/tmp/bf.policy; fi'\000"
	.align	2
.LC5:
	.ascii	"/dev/binderfilter\000"
	.text
	.align	2
	.global	setup_dev_permissions
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_dev_permissions, %function
setup_dev_permissions:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L8
	ldr	r0, .L8+4
	bl	popen
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	mvn	r3, #0
	b	.L3
.L2:
	ldr	r1, .L8
	ldr	r0, .L8+8
	bl	popen
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	mvn	r3, #1
	b	.L3
.L4:
	ldr	r1, .L8
	ldr	r0, .L8+12
	bl	popen
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	mvn	r3, #2
	b	.L3
.L5:
	ldr	r1, .L8
	ldr	r0, .L8+16
	bl	popen
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	mvn	r3, #4
	b	.L3
.L6:
	mov	r1, #2
	ldr	r0, .L8+20
	bl	open
	mov	r3, r0
	ldr	r2, .L8+24
	str	r3, [r2]
	ldr	r3, .L8+24
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L7
	ldr	r3, .L8+24
	ldr	r3, [r3]
	b	.L3
.L7:
	mvn	r3, #3
.L3:
	mov	r0, r3
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	fd
	.size	setup_dev_permissions, .-setup_dev_permissions
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Could not convert '%s' to long.\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseInt, %function
parseInt:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	strtol
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	beq	.L11
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L12
.L11:
	ldr	r1, [fp, #-24]
	ldr	r0, .L15+4
	bl	printf
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, [fp, #-12]
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC7
	.word	.LC6
	.size	parseInt, .-parseInt
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Unknown option `-%c'.\012\000"
	.align	2
.LC9:
	.ascii	"Unknown option character `\\x%x'.\012\000"
	.align	2
.LC10:
	.ascii	"m:u:a:d:c:t:v:\000"
	.align	2
.LC11:
	.ascii	"Setup failed with return code %d\012\000"
	.align	2
.LC12:
	.ascii	"message was null\000"
	.align	2
.LC13:
	.ascii	"context value for string type cannot be null\000"
	.align	2
.LC14:
	.ascii	"context type %d not valid\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L42
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L18
.L32:
	ldr	r3, [fp, #-52]
	sub	r3, r3, #63
	cmp	r3, #55
	ldrls	pc, [pc, r3, asl #2]
	b	.L19
.L21:
	.word	.L28
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L27
	.word	.L19
	.word	.L26
	.word	.L25
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L24
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L23
	.word	.L22
	.word	.L20
.L24:
	ldr	r3, .L42+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-80]
	ldr	r3, .L42+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	strcpy
	b	.L18
.L22:
	ldr	r3, .L42+4
	ldr	r3, [r3]
	str	r3, [fp, #-76]
	b	.L18
.L27:
	ldr	r3, .L42+4
	ldr	r3, [r3]
	str	r3, [fp, #-72]
	b	.L18
.L25:
	ldr	r3, .L42+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-68]
	ldr	r3, .L42+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-68]
	bl	strcpy
	b	.L18
.L26:
	ldr	r3, .L42+4
	ldr	r3, [r3]
	str	r3, [fp, #-64]
	b	.L18
.L23:
	ldr	r3, .L42+4
	ldr	r3, [r3]
	str	r3, [fp, #-60]
	b	.L18
.L20:
	ldr	r3, .L42+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-56]
	ldr	r3, .L42+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	strcpy
	b	.L18
.L28:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, .L42+8
	ldr	r3, [r3]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #16384
	cmp	r3, #0
	beq	.L29
	ldr	r3, .L42+12
	ldr	r3, [r3]
	ldr	r2, .L42+8
	ldr	r2, [r2]
	ldr	r1, .L42+16
	mov	r0, r3
	bl	fprintf
	b	.L30
.L29:
	ldr	r3, .L42+12
	ldr	r3, [r3]
	ldr	r2, .L42+8
	ldr	r2, [r2]
	ldr	r1, .L42+20
	mov	r0, r3
	bl	fprintf
.L30:
	mov	r3, #1
	b	.L40
.L19:
	bl	abort
.L18:
	ldr	r2, .L42+24
	ldr	r1, [fp, #-92]
	ldr	r0, [fp, #-88]
	bl	getopt
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmn	r3, #1
	bne	.L32
	ldr	r3, .L42+28
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L33
	bl	setup_dev_permissions
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bge	.L33
	ldr	r1, [fp, #-48]
	ldr	r0, .L42+32
	bl	printf
	mov	r0, #1
	bl	exit
.L33:
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L34
	ldr	r0, .L42+36
	bl	puts
	mov	r0, #1
	bl	exit
.L34:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L35
	mov	r0, #1
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	mov	r2, #0
	strb	r2, [r3]
.L35:
	ldr	r0, [fp, #-72]
	bl	parseInt
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r0, [fp, #-76]
	bl	parseInt
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-64]
	bl	parseInt
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-64]
	bl	parseInt
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	ldr	r0, [fp, #-60]
	bl	parseInt
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-60]
	bl	parseInt
	mov	r3, r0
	cmp	r3, #1
	bne	.L37
	ldr	r0, [fp, #-56]
	bl	parseInt
	mov	r3, r0
	str	r3, [fp, #-16]
	b	.L36
.L37:
	ldr	r0, [fp, #-60]
	bl	parseInt
	mov	r3, r0
	cmp	r3, #2
	bne	.L38
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L39
	ldr	r0, .L42+40
	bl	printf
	mov	r0, #1
	bl	exit
.L39:
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-12]
	b	.L36
.L38:
	ldr	r0, .L42+44
	bl	printf
	mov	r0, #1
	bl	exit
.L36:
	ldr	r3, .L42+28
	ldr	r3, [r3]
	sub	r1, fp, #40
	mov	r2, #32
	mov	r0, r3
	bl	write
	str	r0, [fp, #-44]
	mov	r3, #0
.L40:
	ldr	r2, .L42
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L41
	bl	__stack_chk_fail
.L41:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC15
	.word	optarg
	.word	optopt
	.word	stderr
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	fd
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
