	.file	"237482.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"noshift"
.LC1:
	.string	"shift"
.LC2:
	.string	"altgr"
.LC3:
	.string	"shiftaltgr"
.LC4:
	.string	"capslock"
.LC5:
	.string	"shiftcapslock"
.LC6:
	.string	""
.LC7:
	.string	"Usage: %s out_filename\n"
	.align 8
.LC8:
	.string	"Example: %s /etc/xrdp/km-0409.ini\n"
	.align 8
.LC9:
	.string	"%s:  unable to open display '%s'\n"
.LC10:
	.string	"w"
	.align 8
.LC11:
	.string	"%s:  unable to create file '%s'\n"
.LC12:
	.string	"[%s]\n"
.LC13:
	.string	"Key%d=%d:%d\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, 1568
	mov	DWORD PTR -1556[rbp], edi
	mov	QWORD PTR -1568[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -1512[rbp], 0
	lea	rax, .LC0[rip]
	mov	QWORD PTR -1344[rbp], rax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -1336[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -1328[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -1320[rbp], rax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -1312[rbp], rax
	lea	rax, .LC5[rip]
	mov	QWORD PTR -1304[rbp], rax
	mov	DWORD PTR -1376[rbp], 0
	mov	DWORD PTR -1372[rbp], 1
	mov	DWORD PTR -1368[rbp], 128
	mov	DWORD PTR -1364[rbp], 129
	mov	DWORD PTR -1360[rbp], 2
	mov	DWORD PTR -1356[rbp], 3
	mov	DWORD PTR -1528[rbp], 0
	lea	rsi, .LC6[rip]
	mov	edi, 0
	call	setlocale@PLT
	mov	rax, QWORD PTR -1568[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -1504[rbp], rax
	cmp	DWORD PTR -1556[rbp], 2
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1504[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1504[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L12
.L2:
	mov	rax, QWORD PTR -1568[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -1496[rbp], rax
	mov	rax, QWORD PTR -1512[rbp]
	mov	rdi, rax
	call	XOpenDisplay@PLT
	mov	QWORD PTR -1488[rbp], rax
	cmp	QWORD PTR -1488[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR -1512[rbp]
	mov	rdi, rax
	call	XDisplayName@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1504[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L12
.L4:
	mov	rax, QWORD PTR -1496[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1480[rbp], rax
	cmp	QWORD PTR -1480[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -1496[rbp]
	mov	rdx, QWORD PTR -1504[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -1488[rbp]
	mov	rdi, rax
	call	XCloseDisplay@PLT
	mov	eax, 1
	jmp	.L12
.L5:
	lea	rax, -1472[rbp]
	mov	edx, 96
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -1472[rbp], 2
	mov	QWORD PTR -1464[rbp], 16
	mov	DWORD PTR -1456[rbp], 1
	mov	rax, QWORD PTR -1488[rbp]
	mov	QWORD PTR -1448[rbp], rax
	mov	DWORD PTR -1384[rbp], 1
	mov	DWORD PTR -1536[rbp], 0
	jmp	.L6
.L11:
	mov	eax, DWORD PTR -1536[rbp]
	cdqe
	mov	rdx, QWORD PTR -1344[rbp+rax*8]
	mov	rax, QWORD PTR -1480[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -1536[rbp]
	cdqe
	mov	eax, DWORD PTR -1376[rbp+rax*4]
	mov	DWORD PTR -1392[rbp], eax
	mov	DWORD PTR -1540[rbp], 8
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -1540[rbp]
	mov	DWORD PTR -1388[rbp], eax
	lea	rdx, -1520[rbp]
	lea	rsi, -272[rbp]
	lea	rax, -1472[rbp]
	mov	r8d, 0
	mov	rcx, rdx
	mov	edx, 255
	mov	rdi, rax
	call	XLookupString@PLT
	mov	DWORD PTR -1528[rbp], eax
	mov	eax, DWORD PTR -1528[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], 0
	lea	rcx, -272[rbp]
	lea	rax, -1296[rbp]
	mov	edx, 255
	mov	rsi, rcx
	mov	rdi, rax
	call	mbstowcs@PLT
	mov	DWORD PTR -1524[rbp], eax
	mov	DWORD PTR -1532[rbp], 0
	cmp	DWORD PTR -1524[rbp], 1
	jne	.L8
	mov	eax, DWORD PTR -1296[rbp]
	mov	DWORD PTR -1532[rbp], eax
.L8:
	mov	rax, QWORD PTR -1520[rbp]
	mov	esi, eax
	mov	ecx, DWORD PTR -1532[rbp]
	mov	edx, DWORD PTR -1540[rbp]
	mov	rax, QWORD PTR -1480[rbp]
	mov	r8d, ecx
	mov	ecx, esi
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -1540[rbp], 1
.L7:
	cmp	DWORD PTR -1540[rbp], 137
	jle	.L9
	cmp	DWORD PTR -1536[rbp], 4
	je	.L10
	mov	rax, QWORD PTR -1480[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L10:
	add	DWORD PTR -1536[rbp], 1
.L6:
	cmp	DWORD PTR -1536[rbp], 5
	jle	.L11
	mov	rax, QWORD PTR -1488[rbp]
	mov	rdi, rax
	call	XCloseDisplay@PLT
	mov	rax, QWORD PTR -1480[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L12:
	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	"237482.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"noshift\000"
	.align	2
.LC1:
	.ascii	"shift\000"
	.align	2
.LC2:
	.ascii	"altgr\000"
	.align	2
.LC3:
	.ascii	"shiftaltgr\000"
	.align	2
.LC4:
	.ascii	"capslock\000"
	.align	2
.LC5:
	.ascii	"shiftcapslock\000"
	.text
	.section	.rodata
	.align	2
.LC9:
	.ascii	"\000"
	.align	2
.LC10:
	.ascii	"Usage: %s out_filename\012\000"
	.align	2
.LC11:
	.ascii	"Example: %s /etc/xrdp/km-0409.ini\012\000"
	.align	2
.LC12:
	.ascii	"%s:  unable to open display '%s'\012\000"
	.align	2
.LC13:
	.ascii	"w\000"
	.align	2
.LC14:
	.ascii	"%s:  unable to create file '%s'\012\000"
	.align	2
.LC15:
	.ascii	"[%s]\012\000"
	.align	2
.LC16:
	.ascii	"Key%d=%d:%d\012\000"
	.align	2
.LC8:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.align	2
.LC7:
	.word	0
	.word	1
	.word	128
	.word	129
	.word	2
	.word	3
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1448
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1456
	sub	sp, sp, #4
	str	r0, [fp, #-1456]
	str	r1, [fp, #-1460]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1432]
	ldr	r3, .L14+4
	sub	ip, fp, #1328
	sub	ip, ip, #12
	sub	ip, ip, #4
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	ldr	r3, .L14+8
	sub	ip, fp, #1296
	sub	ip, ip, #12
	sub	ip, ip, #12
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	mov	r3, #0
	str	r3, [fp, #-1428]
	ldr	r1, .L14+12
	mov	r0, #0
	bl	setlocale
	ldr	r3, [fp, #-1460]
	ldr	r3, [r3]
	str	r3, [fp, #-1424]
	ldr	r3, [fp, #-1456]
	cmp	r3, #2
	beq	.L2
	ldr	r3, .L14+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-1424]
	ldr	r1, .L14+20
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L14+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-1424]
	ldr	r1, .L14+24
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L12
.L2:
	ldr	r3, [fp, #-1460]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-1420]
	ldr	r0, [fp, #-1432]
	bl	XOpenDisplay
	str	r0, [fp, #-1416]
	ldr	r3, [fp, #-1416]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L14+16
	ldr	r4, [r3]
	ldr	r0, [fp, #-1432]
	bl	XDisplayName
	mov	r3, r0
	ldr	r2, [fp, #-1424]
	ldr	r1, .L14+28
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L12
.L4:
	ldr	r1, .L14+32
	ldr	r0, [fp, #-1420]
	bl	fopen
	str	r0, [fp, #-1412]
	ldr	r3, [fp, #-1412]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L14+16
	ldr	r0, [r3]
	ldr	r3, [fp, #-1420]
	ldr	r2, [fp, #-1424]
	ldr	r1, .L14+36
	bl	fprintf
	ldr	r0, [fp, #-1416]
	bl	XCloseDisplay
	mov	r3, #1
	b	.L12
.L5:
	sub	r3, fp, #1392
	sub	r3, r3, #12
	mov	r2, #60
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	str	r3, [fp, #-1404]
	mov	r3, #16
	str	r3, [fp, #-1400]
	mov	r3, #1
	str	r3, [fp, #-1396]
	ldr	r3, [fp, #-1416]
	str	r3, [fp, #-1392]
	mov	r3, #1
	str	r3, [fp, #-1348]
	mov	r3, #0
	str	r3, [fp, #-1440]
	b	.L6
.L11:
	ldr	r3, [fp, #-1440]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-1332]
	mov	r2, r3
	ldr	r1, .L14+40
	ldr	r0, [fp, #-1412]
	bl	fprintf
	ldr	r3, [fp, #-1440]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-1308]
	str	r3, [fp, #-1356]
	mov	r3, #8
	str	r3, [fp, #-1444]
	b	.L7
.L9:
	ldr	r3, [fp, #-1444]
	str	r3, [fp, #-1352]
	sub	r3, fp, #1424
	sub	r3, r3, #12
	sub	r3, r3, #12
	sub	r1, fp, #272
	sub	r0, fp, #1392
	sub	r0, r0, #12
	mov	r2, #0
	str	r2, [sp]
	mov	r2, #255
	bl	XLookupString
	str	r0, [fp, #-1428]
	sub	r2, fp, #272
	ldr	r3, [fp, #-1428]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r1, fp, #272
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #255
	mov	r0, r3
	bl	mbstowcs
	mov	r3, r0
	str	r3, [fp, #-1408]
	mov	r3, #0
	str	r3, [fp, #-1436]
	ldr	r3, [fp, #-1408]
	cmp	r3, #1
	bne	.L8
	ldr	r3, [fp, #-1296]
	str	r3, [fp, #-1436]
.L8:
	ldr	r3, [fp, #-1448]
	mov	r2, r3
	ldr	r3, [fp, #-1436]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-1444]
	ldr	r1, .L14+44
	ldr	r0, [fp, #-1412]
	bl	fprintf
	ldr	r3, [fp, #-1444]
	add	r3, r3, #1
	str	r3, [fp, #-1444]
.L7:
	ldr	r3, [fp, #-1444]
	cmp	r3, #137
	ble	.L9
	ldr	r3, [fp, #-1440]
	cmp	r3, #4
	beq	.L10
	ldr	r1, [fp, #-1412]
	mov	r0, #10
	bl	fputc
.L10:
	ldr	r3, [fp, #-1440]
	add	r3, r3, #1
	str	r3, [fp, #-1440]
.L6:
	ldr	r3, [fp, #-1440]
	cmp	r3, #5
	ble	.L11
	ldr	r0, [fp, #-1416]
	bl	XCloseDisplay
	ldr	r0, [fp, #-1412]
	bl	fclose
	mov	r3, #0
.L12:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC17
	.word	.LC8
	.word	.LC7
	.word	.LC9
	.word	stderr
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
