	.file	"50137808.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/dev/%s"
.LC1:
	.string	"Failed to open %s\n"
	.align 8
.LC2:
	.string	"Failed to issue GET EVENT IOCTL (%d)\n"
	.align 8
.LC3:
	.string	"Failed to issue GPIOHANDLE GET LINE VALUES IOCTL (%d)\n"
.LC4:
	.string	"Monitoring line %d on %s\n"
.LC5:
	.string	"Initial line value: %d\n"
.LC6:
	.string	"nothing available\n"
.LC7:
	.string	"Failed to read event (%d)\n"
.LC8:
	.string	"Reading event failed\n"
.LC9:
	.string	"GPIO EVENT %lu: "
.LC10:
	.string	"rising edge"
.LC11:
	.string	"falling edge"
.LC12:
	.string	"unknown event"
	.align 8
.LC13:
	.string	"Failed to close GPIO character device file"
	.text
	.globl	monitor_device
	.type	monitor_device, @function
monitor_device:
.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, 208
	mov	QWORD PTR -184[rbp], rdi
	mov	DWORD PTR -188[rbp], esi
	mov	DWORD PTR -192[rbp], edx
	mov	DWORD PTR -196[rbp], ecx
	mov	DWORD PTR -200[rbp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -160[rbp], 0
	mov	rdx, QWORD PTR -184[rbp]
	lea	rax, -152[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	asprintf@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	jns	.L2
	mov	eax, -12
	jmp	.L20
.L2:
	mov	rax, QWORD PTR -152[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -156[rbp], eax
	cmp	DWORD PTR -156[rbp], -1
	jne	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	neg	eax
	mov	DWORD PTR -164[rbp], eax
	mov	rdx, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L5
.L4:
	mov	eax, DWORD PTR -188[rbp]
	mov	DWORD PTR -128[rbp], eax
	mov	eax, DWORD PTR -192[rbp]
	mov	DWORD PTR -124[rbp], eax
	mov	eax, DWORD PTR -196[rbp]
	mov	DWORD PTR -120[rbp], eax
	lea	rax, -128[rbp]
	add	rax, 12
	movabs	rcx, 7311142290899693671
	mov	QWORD PTR [rax], rcx
	mov	DWORD PTR 8[rax], 1831695470
	mov	WORD PTR 12[rax], 28271
	mov	BYTE PTR 14[rax], 0
	lea	rdx, -128[rbp]
	mov	eax, DWORD PTR -156[rbp]
	mov	esi, 3224417284
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], -1
	jne	.L6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	neg	eax
	mov	DWORD PTR -164[rbp], eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -164[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -84[rbp]
	lea	rdx, -80[rbp]
	mov	esi, 3225465864
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], -1
	jne	.L7
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	neg	eax
	mov	DWORD PTR -164[rbp], eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -164[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L5
.L7:
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, QWORD PTR -184[rbp]
	mov	edx, DWORD PTR -188[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	movzx	eax, BYTE PTR -80[rbp]
	movzx	edx, al
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L18:
	mov	eax, DWORD PTR -84[rbp]
	lea	rcx, -144[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], -1
	jne	.L8
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, -11
	jne	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	jmp	.L18
.L9:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	neg	eax
	mov	DWORD PTR -164[rbp], eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -164[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L5
.L8:
	cmp	DWORD PTR -164[rbp], 16
	je	.L12
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	DWORD PTR -164[rbp], -5
	jmp	.L5
.L12:
	mov	rdx, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -136[rbp]
	cmp	eax, 1
	je	.L13
	cmp	eax, 2
	je	.L14
	jmp	.L22
.L13:
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	jmp	.L16
.L14:
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	jmp	.L16
.L22:
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
.L16:
	mov	rax, QWORD PTR stdout[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	add	DWORD PTR -160[rbp], 1
	mov	eax, DWORD PTR -160[rbp]
	cmp	DWORD PTR -200[rbp], eax
	je	.L23
	jmp	.L18
.L23:
	nop
.L5:
	mov	eax, DWORD PTR -156[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	eax, -1
	jne	.L19
	lea	rdi, .LC13[rip]
	call	perror@PLT
.L19:
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -164[rbp]
.L20:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	monitor_device, .-monitor_device
	.section	.rodata
	.align 8
.LC14:
	.ascii	"Usage: gpio-event-mon [options]...\nListen to events on GPIO"
	.ascii	" lines, 0->1 1->0\n  -n <name>  Listen on GPIOs on a named d"
	.ascii	"evice (must be stated)\n  -o <n>     Offset to monitor\n  -d"
	.ascii	"         Set line as open drai"
	.string	"n\n  -s         Set line as open source\n  -r         Listen for rising edges\n  -f         Listen for falling edges\n [-c <n>]    Do <n> loops (optional, infinite loop if not stated)\n  -?         This helptext\n\nExample:\ngpio-event-mon -n gpiochip0 -o 4 -r -f\n"
	.text
	.globl	print_usage
	.type	print_usage, @function
print_usage:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 462
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_usage, .-print_usage
	.section	.rodata
.LC15:
	.string	"c:n:o:dsrf?"
	.align 8
.LC16:
	.string	"No flags specified, listening on both rising and falling edges"
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -8[rbp], 0
	mov	DWORD PTR -28[rbp], -1
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 1
	mov	DWORD PTR -16[rbp], 0
	nop
	jmp	.L27
.L38:
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 63
	cmp	eax, 52
	ja	.L27
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L29[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L29[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L29:
	.long	.L36-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L35-.L29
	.long	.L34-.L29
	.long	.L27-.L29
	.long	.L33-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L32-.L29
	.long	.L31-.L29
	.long	.L27-.L29
	.long	.L27-.L29
	.long	.L30-.L29
	.long	.L28-.L29
	.text
.L35:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR -24[rbp], eax
	jmp	.L27
.L32:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L27
.L31:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR -28[rbp], eax
	jmp	.L27
.L34:
	or	DWORD PTR -20[rbp], 8
	jmp	.L27
.L28:
	or	DWORD PTR -20[rbp], 16
	jmp	.L27
.L30:
	or	DWORD PTR -16[rbp], 1
	jmp	.L27
.L33:
	or	DWORD PTR -16[rbp], 2
	jmp	.L27
.L36:
	call	print_usage
	mov	eax, -1
	jmp	.L37
.L27:
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	lea	rdx, .LC15[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L38
	cmp	QWORD PTR -8[rbp], 0
	je	.L39
	cmp	DWORD PTR -28[rbp], -1
	jne	.L40
.L39:
	call	print_usage
	mov	eax, -1
	jmp	.L37
.L40:
	cmp	DWORD PTR -16[rbp], 0
	jne	.L41
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	DWORD PTR -16[rbp], 3
.L41:
	mov	edi, DWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -16[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	esi, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	monitor_device
.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	"50137808.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/%s\000"
	.align	2
.LC1:
	.ascii	"Failed to open %s\012\000"
	.align	2
.LC2:
	.ascii	"gpio-event-mon\000"
	.align	2
.LC3:
	.ascii	"Failed to issue GET EVENT IOCTL (%d)\012\000"
	.align	2
.LC4:
	.ascii	"Failed to issue GPIOHANDLE GET LINE VALUES IOCTL (%"
	.ascii	"d)\012\000"
	.align	2
.LC5:
	.ascii	"Monitoring line %d on %s\012\000"
	.align	2
.LC6:
	.ascii	"Initial line value: %d\012\000"
	.align	2
.LC7:
	.ascii	"nothing available\012\000"
	.align	2
.LC8:
	.ascii	"Failed to read event (%d)\012\000"
	.align	2
.LC9:
	.ascii	"Reading event failed\012\000"
	.align	2
.LC10:
	.ascii	"GPIO EVENT %llu: \000"
	.align	2
.LC11:
	.ascii	"rising edge\000"
	.align	2
.LC12:
	.ascii	"falling edge\000"
	.align	2
.LC13:
	.ascii	"unknown event\000"
	.align	2
.LC14:
	.ascii	"Failed to close GPIO character device file\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	monitor_device
	.syntax unified
	.arm
	.fpu softvfp
	.type	monitor_device, %function
monitor_device:
	@ args = 4, pretend = 0, frame = 168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	str	r0, [fp, #-160]
	str	r1, [fp, #-164]
	str	r2, [fp, #-168]
	str	r3, [fp, #-172]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-148]
	sub	r3, fp, #156
	ldr	r2, [fp, #-160]
	ldr	r1, .L24+4
	mov	r0, r3
	bl	asprintf
	str	r0, [fp, #-152]
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bge	.L2
	mvn	r3, #11
	b	.L20
.L2:
	ldr	r3, [fp, #-156]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-144]
	ldr	r3, [fp, #-144]
	cmn	r3, #1
	bne	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [fp, #-152]
	ldr	r3, .L24+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-156]
	ldr	r1, .L24+12
	mov	r0, r3
	bl	fprintf
	b	.L5
.L4:
	ldr	r3, [fp, #-164]
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-168]
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-172]
	str	r3, [fp, #-112]
	sub	r3, fp, #120
	add	r3, r3, #12
	ldr	r2, .L24+16
	mov	ip, r3
	mov	r3, r2
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strh	r3, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r3, #16
	strb	r3, [ip]
	sub	r3, fp, #120
	mov	r2, r3
	ldr	r1, .L24+20
	ldr	r0, [fp, #-144]
	bl	ioctl
	str	r0, [fp, #-152]
	ldr	r3, [fp, #-152]
	cmn	r3, #1
	bne	.L6
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [fp, #-152]
	ldr	r3, .L24+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-152]
	ldr	r1, .L24+24
	mov	r0, r3
	bl	fprintf
	b	.L5
.L6:
	ldr	r3, [fp, #-76]
	sub	r2, fp, #72
	ldr	r1, .L24+28
	mov	r0, r3
	bl	ioctl
	str	r0, [fp, #-152]
	ldr	r3, [fp, #-152]
	cmn	r3, #1
	bne	.L7
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [fp, #-152]
	ldr	r3, .L24+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-152]
	ldr	r1, .L24+32
	mov	r0, r3
	bl	fprintf
	b	.L5
.L7:
	ldr	r3, .L24+36
	ldr	r0, [r3]
	ldr	r3, [fp, #-160]
	ldr	r2, [fp, #-164]
	ldr	r1, .L24+40
	bl	fprintf
	ldr	r3, .L24+36
	ldr	r3, [r3]
	ldrb	r2, [fp, #-72]	@ zero_extendqisi2
	ldr	r1, .L24+44
	mov	r0, r3
	bl	fprintf
.L18:
	ldr	r3, [fp, #-76]
	sub	r1, fp, #140
	mov	r2, #16
	mov	r0, r3
	bl	read
	str	r0, [fp, #-152]
	ldr	r3, [fp, #-152]
	cmn	r3, #1
	bne	.L8
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmn	r3, #11
	bne	.L9
	ldr	r3, .L24+8
	ldr	r3, [r3]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L24+48
	bl	fwrite
	b	.L18
.L9:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [fp, #-152]
	ldr	r3, .L24+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-152]
	ldr	r1, .L24+52
	mov	r0, r3
	bl	fprintf
	b	.L5
.L8:
	ldr	r3, [fp, #-152]
	cmp	r3, #16
	beq	.L12
	ldr	r3, .L24+8
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L24+56
	bl	fwrite
	mvn	r3, #4
	str	r3, [fp, #-152]
	b	.L5
.L12:
	ldr	r3, .L24+36
	ldr	r0, [r3]
	sub	r3, fp, #140
	ldmia	r3, {r2-r3}
	ldr	r1, .L24+60
	bl	fprintf
	ldr	r3, [fp, #-132]
	cmp	r3, #1
	beq	.L13
	cmp	r3, #2
	beq	.L14
	b	.L22
.L13:
	ldr	r3, .L24+36
	ldr	r3, [r3]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L24+64
	bl	fwrite
	b	.L16
.L14:
	ldr	r3, .L24+36
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L24+68
	bl	fwrite
	b	.L16
.L22:
	ldr	r3, .L24+36
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L24+72
	bl	fwrite
.L16:
	ldr	r3, .L24+36
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	str	r3, [fp, #-148]
	ldr	r3, [fp, #-148]
	ldr	r2, [fp, #4]
	cmp	r2, r3
	beq	.L23
	b	.L18
.L23:
	nop
.L5:
	ldr	r0, [fp, #-144]
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L19
	ldr	r0, .L24+76
	bl	perror
.L19:
	ldr	r3, [fp, #-156]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-152]
.L20:
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC15
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	-1070550012
	.word	.LC3
	.word	-1069501432
	.word	.LC4
	.word	stdout
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	monitor_device, .-monitor_device
	.section	.rodata
	.align	2
.LC16:
	.ascii	"Usage: gpio-event-mon [options]...\012Listen to eve"
	.ascii	"nts on GPIO lines, 0->1 1->0\012  -n <name>  Listen"
	.ascii	" on GPIOs on a named device (must be stated)\012  -"
	.ascii	"o <n>     Offset to monitor\012  -d         Set lin"
	.ascii	"e as open drain\012  -s         Set line as open so"
	.ascii	"urce\012  -r         Listen for rising edges\012  -"
	.ascii	"f         Listen for falling edges\012 [-c <n>]    "
	.ascii	"Do <n> loops (optional, infinite loop if not stated"
	.ascii	")\012  -?         This helptext\012\012Example:\012"
	.ascii	"gpio-event-mon -n gpiochip0 -o 4 -r -f\012\000"
	.text
	.align	2
	.global	print_usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_usage, %function
print_usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L27
	ldr	r3, [r3]
	ldr	r2, .L27+4
	mov	r1, #1
	ldr	r0, .L27+8
	bl	fwrite
	nop
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	stderr
	.word	462
	.word	.LC16
	.size	print_usage, .-print_usage
	.section	.rodata
	.align	2
.LC17:
	.ascii	"c:n:o:dsrf?\000"
	.align	2
.LC18:
	.ascii	"No flags specified, listening on both rising and fa"
	.ascii	"lling edges\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-28]
	mvn	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	nop
	b	.L31
.L42:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #63
	cmp	r3, #52
	ldrls	pc, [pc, r3, asl #2]
	b	.L31
.L33:
	.word	.L40
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L39
	.word	.L38
	.word	.L31
	.word	.L37
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L36
	.word	.L35
	.word	.L31
	.word	.L31
	.word	.L34
	.word	.L32
.L39:
	ldr	r3, .L46
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [fp, #-20]
	b	.L31
.L36:
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	b	.L31
.L35:
	ldr	r3, .L46
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [fp, #-24]
	b	.L31
.L38:
	ldr	r3, [fp, #-16]
	orr	r3, r3, #8
	str	r3, [fp, #-16]
	b	.L31
.L32:
	ldr	r3, [fp, #-16]
	orr	r3, r3, #16
	str	r3, [fp, #-16]
	b	.L31
.L34:
	ldr	r3, [fp, #-12]
	orr	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L31
.L37:
	ldr	r3, [fp, #-12]
	orr	r3, r3, #2
	str	r3, [fp, #-12]
	b	.L31
.L40:
	bl	print_usage
	mvn	r3, #0
	b	.L41
.L31:
	ldr	r2, .L46+4
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	getopt
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L42
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L43
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L44
.L43:
	bl	print_usage
	mvn	r3, #0
	b	.L41
.L44:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L45
	ldr	r0, .L46+8
	bl	puts
	mov	r3, #3
	str	r3, [fp, #-12]
.L45:
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	monitor_device
	mov	r3, r0
.L41:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	optarg
	.word	.LC17
	.word	.LC18
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
