	.file	"344448.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"ejectd: Error during udev_new()\n"
.LC1:
	.string	"hidraw"
.LC2:
	.string	"usb_device"
.LC3:
	.string	"usb"
	.align 8
.LC4:
	.string	"ejectd: Unable to find parent usb device: %s\n"
.LC5:
	.string	"idVendor"
.LC6:
	.string	"idProduct"
.LC7:
	.string	"usb_interface"
.LC8:
	.string	"bInterfaceNumber"
	.align 8
.LC9:
	.string	"ejectd: Found Eject Button Device: %s\n"
	.text
	.globl	open_usbhidraw
	.type	open_usbhidraw, @function
open_usbhidraw:
.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, 112
	mov	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	mov	QWORD PTR -104[rbp], rdx
	mov	DWORD PTR -108[rbp], ecx
	mov	DWORD PTR -80[rbp], 0
	mov	DWORD PTR -76[rbp], -1
	call	udev_new@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L2
	lea	rsi, .LC0[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, DWORD PTR -76[rbp]
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	udev_enumerate_new@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	udev_enumerate_add_match_subsystem@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	udev_enumerate_scan_devices@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	udev_enumerate_get_list_entry@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L4
.L14:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	udev_list_entry_get_name@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	udev_device_new_from_syspath@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	lea	rdx, .LC2[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	udev_device_get_parent_with_subsystem_devtype@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, rax
	lea	rsi, .LC4[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	udev_device_get_sysattr_value@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L7
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	udev_device_get_sysattr_value@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L7
	mov	eax, 1
	jmp	.L8
.L7:
	mov	eax, 0
.L8:
	mov	DWORD PTR -80[rbp], eax
	cmp	DWORD PTR -80[rbp], 0
	je	.L9
	mov	rax, QWORD PTR -64[rbp]
	lea	rdx, .LC7[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	udev_device_get_parent_with_subsystem_devtype@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L10
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	udev_device_get_sysattr_value@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L11
	mov	rdx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
	mov	eax, 1
	jmp	.L12
.L11:
	mov	eax, 0
.L12:
	mov	DWORD PTR -80[rbp], eax
	cmp	DWORD PTR -80[rbp], 0
	je	.L9
	jmp	.L13
.L10:
	mov	DWORD PTR -80[rbp], 0
.L9:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	udev_device_unref@PLT
.L6:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	udev_list_entry_get_next@PLT
	mov	QWORD PTR -72[rbp], rax
.L4:
	cmp	QWORD PTR -72[rbp], 0
	jne	.L14
.L13:
	cmp	DWORD PTR -80[rbp], 0
	je	.L15
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	udev_device_get_devnode@PLT
	mov	rdx, rax
	lea	rsi, .LC9[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	udev_device_get_devnode@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -108[rbp]
	mov	esi, eax
	mov	rdi, rdx
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -76[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	udev_unref@PLT
.L15:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	udev_enumerate_unref@PLT
	mov	eax, DWORD PTR -76[rbp]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	open_usbhidraw, .-open_usbhidraw
	.globl	monitoring
	.bss
	.align 4
	.type	monitoring, @object
	.size	monitoring, 4
monitoring:
	.zero	4
	.text
	.globl	stopnow
	.type	stopnow, @function
stopnow:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR monitoring[rip], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	stopnow, .-stopnow
	.section	.rodata
.LC10:
	.string	"eject /dev/cdrom"
	.text
	.globl	eject_cdrom
	.type	eject_cdrom, @function
eject_cdrom:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC10[rip]
	call	system@PLT
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	eject_cdrom, .-eject_cdrom
	.section	.rodata
	.align 8
.LC11:
	.string	"ejectd: error during daemon().\n"
	.align 8
.LC12:
	.string	"ejectd: Error during sigprocmask().\n"
.LC13:
	.string	"01"
.LC14:
	.string	"7703"
.LC15:
	.string	"0c45"
	.align 8
.LC16:
	.string	"ejectd: Failed to open the device.\n"
.LC17:
	.string	"ejectd: Error during ppoll()\n"
	.align 8
.LC18:
	.string	"ejectd: read() failed to read 2 bytes of data.\n"
	.align 8
.LC19:
	.string	"ejectd: Failed to eject optical drive\n"
	.align 8
.LC20:
	.string	"ejectd: The interface to Eject Button Device is closed.\n"
	.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, 304
	mov	DWORD PTR -292[rbp], edi
	mov	QWORD PTR -304[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 0
	mov	edi, 0
	call	daemon@PLT
	test	eax, eax
	je	.L20
	lea	rsi, .LC11[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, 1
	jmp	.L28
.L20:
	mov	DWORD PTR monitoring[rip], 1
	lea	rsi, stopnow[rip]
	mov	edi, 15
	call	signal@PLT
	lea	rsi, stopnow[rip]
	mov	edi, 3
	call	signal@PLT
	lea	rsi, stopnow[rip]
	mov	edi, 9
	call	signal@PLT
	lea	rsi, stopnow[rip]
	mov	edi, 2
	call	signal@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -272[rbp]
	mov	esi, 15
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -272[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -272[rbp]
	mov	esi, 9
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -272[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rdx, -144[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	sigprocmask@PLT
	test	eax, eax
	jns	.L22
	lea	rsi, .LC12[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, 1
	jmp	.L28
.L22:
	mov	ecx, 0
	lea	rdx, .LC13[rip]
	lea	rsi, .LC14[rip]
	lea	rdi, .LC15[rip]
	call	open_usbhidraw
	mov	DWORD PTR -280[rbp], eax
	mov	eax, DWORD PTR -280[rbp]
	test	eax, eax
	jns	.L23
	lea	rsi, .LC16[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, 1
	jmp	.L28
.L23:
	mov	WORD PTR -276[rbp], 1
	jmp	.L24
.L27:
	lea	rdx, -144[rbp]
	lea	rax, -280[rbp]
	mov	rcx, rdx
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	ppoll@PLT
	mov	DWORD PTR -284[rbp], eax
	cmp	DWORD PTR -284[rbp], -1
	jne	.L25
	lea	rsi, .LC17[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	jmp	.L24
.L25:
	mov	eax, DWORD PTR -280[rbp]
	lea	rcx, -10[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -284[rbp], eax
	cmp	DWORD PTR -284[rbp], 2
	je	.L26
	lea	rsi, .LC18[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	jmp	.L24
.L26:
	movzx	eax, BYTE PTR -10[rbp]
	cmp	al, 3
	jne	.L24
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 1
	jne	.L24
	mov	eax, 0
	call	eject_cdrom
	test	eax, eax
	jns	.L24
	lea	rsi, .LC19[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
.L24:
	mov	eax, DWORD PTR monitoring[rip]
	test	eax, eax
	jne	.L27
	mov	eax, DWORD PTR -280[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rsi, .LC20[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, 0
.L28:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	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	"344448.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ejectd: Error during udev_new()\012\000"
	.align	2
.LC1:
	.ascii	"hidraw\000"
	.align	2
.LC2:
	.ascii	"usb_device\000"
	.align	2
.LC3:
	.ascii	"usb\000"
	.align	2
.LC4:
	.ascii	"ejectd: Unable to find parent usb device: %s\012\000"
	.align	2
.LC5:
	.ascii	"idVendor\000"
	.align	2
.LC6:
	.ascii	"idProduct\000"
	.align	2
.LC7:
	.ascii	"usb_interface\000"
	.align	2
.LC8:
	.ascii	"bInterfaceNumber\000"
	.align	2
.LC9:
	.ascii	"ejectd: Found Eject Button Device: %s\012\000"
	.text
	.align	2
	.global	open_usbhidraw
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_usbhidraw, %function
open_usbhidraw:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-40]
	mvn	r3, #0
	str	r3, [fp, #-36]
	bl	udev_new
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L2
	ldr	r1, .L16
	mov	r0, #3
	bl	syslog
	ldr	r3, [fp, #-36]
	b	.L3
.L2:
	ldr	r0, [fp, #-32]
	bl	udev_enumerate_new
	str	r0, [fp, #-28]
	ldr	r1, .L16+4
	ldr	r0, [fp, #-28]
	bl	udev_enumerate_add_match_subsystem
	ldr	r0, [fp, #-28]
	bl	udev_enumerate_scan_devices
	ldr	r0, [fp, #-28]
	bl	udev_enumerate_get_list_entry
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-48]
	b	.L4
.L14:
	ldr	r0, [fp, #-48]
	bl	udev_list_entry_get_name
	str	r0, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-32]
	bl	udev_device_new_from_syspath
	str	r0, [fp, #-44]
	ldr	r2, .L16+8
	ldr	r1, .L16+12
	ldr	r0, [fp, #-44]
	bl	udev_device_get_parent_with_subsystem_devtype
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L5
	ldr	r2, [fp, #-20]
	ldr	r1, .L16+16
	mov	r0, #3
	bl	syslog
	b	.L6
.L5:
	ldr	r1, .L16+20
	ldr	r0, [fp, #-16]
	bl	udev_device_get_sysattr_value
	mov	r3, r0
	ldr	r1, [fp, #-56]
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r1, .L16+24
	ldr	r0, [fp, #-16]
	bl	udev_device_get_sysattr_value
	mov	r3, r0
	ldr	r1, [fp, #-60]
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	mov	r3, #1
	b	.L8
.L7:
	mov	r3, #0
.L8:
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L9
	ldr	r2, .L16+28
	ldr	r1, .L16+12
	ldr	r0, [fp, #-44]
	bl	udev_device_get_parent_with_subsystem_devtype
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L10
	ldr	r1, .L16+32
	ldr	r0, [fp, #-12]
	bl	udev_device_get_sysattr_value
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L11
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	mov	r3, #1
	b	.L12
.L11:
	mov	r3, #0
.L12:
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L9
	b	.L13
.L10:
	mov	r3, #0
	str	r3, [fp, #-40]
.L9:
	ldr	r0, [fp, #-44]
	bl	udev_device_unref
.L6:
	ldr	r0, [fp, #-48]
	bl	udev_list_entry_get_next
	str	r0, [fp, #-48]
.L4:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L14
.L13:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L15
	ldr	r0, [fp, #-44]
	bl	udev_device_get_devnode
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L16+36
	mov	r0, #3
	bl	syslog
	ldr	r0, [fp, #-44]
	bl	udev_device_get_devnode
	mov	r3, r0
	ldr	r1, [fp, #-68]
	mov	r0, r3
	bl	open
	str	r0, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	udev_unref
.L15:
	ldr	r0, [fp, #-28]
	bl	udev_enumerate_unref
	ldr	r3, [fp, #-36]
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	open_usbhidraw, .-open_usbhidraw
	.comm	monitoring,4,4
	.align	2
	.global	stopnow
	.syntax unified
	.arm
	.fpu softvfp
	.type	stopnow, %function
stopnow:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L19
	mov	r2, #0
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L20:
	.align	2
.L19:
	.word	monitoring
	.size	stopnow, .-stopnow
	.section	.rodata
	.align	2
.LC10:
	.ascii	"eject /dev/cdrom\000"
	.text
	.align	2
	.global	eject_cdrom
	.syntax unified
	.arm
	.fpu softvfp
	.type	eject_cdrom, %function
eject_cdrom:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L23
	bl	system
	mov	r3, r0
	mov	r0, r3
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC10
	.size	eject_cdrom, .-eject_cdrom
	.section	.rodata
	.align	2
.LC11:
	.ascii	"ejectd: error during daemon().\012\000"
	.align	2
.LC12:
	.ascii	"ejectd: Error during sigprocmask().\012\000"
	.align	2
.LC13:
	.ascii	"01\000"
	.align	2
.LC14:
	.ascii	"7703\000"
	.align	2
.LC15:
	.ascii	"0c45\000"
	.align	2
.LC16:
	.ascii	"ejectd: Failed to open the device.\012\000"
	.align	2
.LC17:
	.ascii	"ejectd: Error during ppoll()\012\000"
	.align	2
.LC18:
	.ascii	"ejectd: read() failed to read 2 bytes of data.\012\000"
	.align	2
.LC19:
	.ascii	"ejectd: Failed to eject optical drive\012\000"
	.align	2
.LC20:
	.ascii	"ejectd: The interface to Eject Button Device is clo"
	.ascii	"sed.\012\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	str	r0, [fp, #-288]
	str	r1, [fp, #-292]
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #0
	mov	r0, #0
	bl	daemon
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r1, .L36+4
	mov	r0, #3
	bl	syslog
	mov	r3, #1
	b	.L34
.L26:
	ldr	r3, .L36+8
	mov	r2, #1
	str	r2, [r3]
	ldr	r1, .L36+12
	mov	r0, #15
	bl	signal
	ldr	r1, .L36+12
	mov	r0, #3
	bl	signal
	ldr	r1, .L36+12
	mov	r0, #9
	bl	signal
	ldr	r1, .L36+12
	mov	r0, #2
	bl	signal
	sub	r3, fp, #268
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #268
	mov	r1, #15
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #268
	mov	r1, #3
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #268
	mov	r1, #9
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #268
	mov	r1, #2
	mov	r0, r3
	bl	sigaddset
	sub	r2, fp, #140
	sub	r3, fp, #268
	mov	r1, r3
	mov	r0, #0
	bl	sigprocmask
	mov	r3, r0
	cmp	r3, #0
	bge	.L28
	ldr	r1, .L36+16
	mov	r0, #3
	bl	syslog
	mov	r3, #1
	b	.L34
.L28:
	mov	r3, #0
	ldr	r2, .L36+20
	ldr	r1, .L36+24
	ldr	r0, .L36+28
	bl	open_usbhidraw
	mov	r3, r0
	str	r3, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	bge	.L29
	ldr	r1, .L36+32
	mov	r0, #3
	bl	syslog
	mov	r3, #1
	b	.L34
.L29:
	sub	r3, fp, #4
	sub	r3, r3, #272
	mov	r2, #1
	strh	r2, [r3, #4]	@ movhi
	b	.L30
.L33:
	sub	r3, fp, #140
	sub	r0, fp, #276
	mov	r2, #0
	mov	r1, #1
	bl	ppoll
	str	r0, [fp, #-280]
	ldr	r3, [fp, #-280]
	cmn	r3, #1
	bne	.L31
	ldr	r1, .L36+36
	mov	r0, #3
	bl	syslog
	b	.L30
.L31:
	ldr	r3, [fp, #-276]
	sub	r1, fp, #12
	mov	r2, #2
	mov	r0, r3
	bl	read
	str	r0, [fp, #-280]
	ldr	r3, [fp, #-280]
	cmp	r3, #2
	beq	.L32
	ldr	r1, .L36+40
	mov	r0, #3
	bl	syslog
	b	.L30
.L32:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #3
	bne	.L30
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L30
	bl	eject_cdrom
	mov	r3, r0
	cmp	r3, #0
	bge	.L30
	ldr	r1, .L36+44
	mov	r0, #3
	bl	syslog
.L30:
	ldr	r3, .L36+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L33
	ldr	r3, [fp, #-276]
	mov	r0, r3
	bl	close
	ldr	r1, .L36+48
	mov	r0, #3
	bl	syslog
	mov	r3, #0
.L34:
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC21
	.word	.LC11
	.word	monitoring
	.word	stopnow
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
