	.file	"907593.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"#include <stdlib.h>"
.LC1:
	.string	"#include <stdio.h>"
.LC2:
	.string	"#include <X11/XKBlib.h>\n"
.LC3:
	.string	"int main(void) {"
.LC4:
	.string	"    int first_keycode = %d;\n"
	.align 8
.LC5:
	.string	"    int keysyms_per_keycode = %d;\n"
	.align 8
.LC6:
	.string	"    int num_of_keycodes = %d;\n"
.LC7:
	.string	"    KeySym keysyms[%d] = {\n"
.LC8:
	.string	"        "
.LC9:
	.string	"/* keycode = %d */ "
.LC10:
	.string	"%ld,"
.LC11:
	.string	"        0\n    };"
	.align 8
.LC12:
	.string	"    Display* display = XOpenDisplay(NULL);"
	.align 8
.LC13:
	.string	"    XChangeKeyboardMapping(display,first_keycode,keysyms_per_keycode,keysyms,num_of_keycodes);"
.LC14:
	.string	"    XCloseDisplay(display);"
.LC15:
	.string	"    return 0;"
.LC16:
	.string	"}"
	.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	XOpenDisplay@PLT
	mov	QWORD PTR -24[rbp], rax
	lea	rdx, -44[rbp]
	lea	rcx, -48[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XDisplayKeycodes@PLT
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, DWORD PTR -48[rbp]
	sub	eax, edx
	mov	edi, eax
	mov	eax, DWORD PTR -48[rbp]
	movzx	esi, al
	lea	rdx, -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rdx
	mov	edx, edi
	mov	rdi, rax
	call	XGetKeyboardMapping@PLT
	mov	QWORD PTR -16[rbp], rax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, DWORD PTR -48[rbp]
	sub	eax, edx
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -44[rbp]
	mov	ecx, DWORD PTR -48[rbp]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	imul	eax, edx
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L2
.L7:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -32[rbp], 0
	jmp	.L3
.L6:
	cmp	DWORD PTR -32[rbp], 0
	je	.L4
	mov	edi, 32
	call	putchar@PLT
	jmp	.L5
.L4:
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -28[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -32[rbp], 1
.L3:
	mov	eax, DWORD PTR -40[rbp]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L6
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -36[rbp], 1
.L2:
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, DWORD PTR -48[rbp]
	sub	eax, edx
	cmp	DWORD PTR -36[rbp], eax
	jl	.L7
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	XFree@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	XCloseDisplay@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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	"907593.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"#include <stdlib.h>\000"
	.align	2
.LC1:
	.ascii	"#include <stdio.h>\000"
	.align	2
.LC2:
	.ascii	"#include <X11/XKBlib.h>\012\000"
	.align	2
.LC3:
	.ascii	"int main(void) {\000"
	.align	2
.LC4:
	.ascii	"    int first_keycode = %d;\012\000"
	.align	2
.LC5:
	.ascii	"    int keysyms_per_keycode = %d;\012\000"
	.align	2
.LC6:
	.ascii	"    int num_of_keycodes = %d;\012\000"
	.align	2
.LC7:
	.ascii	"    KeySym keysyms[%d] = {\012\000"
	.align	2
.LC8:
	.ascii	"        \000"
	.align	2
.LC9:
	.ascii	"/* keycode = %d */ \000"
	.align	2
.LC10:
	.ascii	"%ld,\000"
	.align	2
.LC11:
	.ascii	"        0\012    };\000"
	.align	2
.LC12:
	.ascii	"    Display* display = XOpenDisplay(NULL);\000"
	.align	2
.LC13:
	.ascii	"    XChangeKeyboardMapping(display,first_keycode,ke"
	.ascii	"ysyms_per_keycode,keysyms,num_of_keycodes);\000"
	.align	2
.LC14:
	.ascii	"    XCloseDisplay(display);\000"
	.align	2
.LC15:
	.ascii	"    return 0;\000"
	.align	2
.LC16:
	.ascii	"}\000"
	.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 = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	XOpenDisplay
	str	r0, [fp, #-16]
	sub	r2, fp, #36
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	XDisplayKeycodes
	ldr	r3, [fp, #-40]
	and	r1, r3, #255
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	sub	r2, r2, r3
	sub	r3, fp, #32
	ldr	r0, [fp, #-16]
	bl	XGetKeyboardMapping
	str	r0, [fp, #-12]
	ldr	r0, .L10+4
	bl	puts
	ldr	r0, .L10+8
	bl	puts
	ldr	r0, .L10+12
	bl	puts
	ldr	r0, .L10+16
	bl	puts
	ldr	r3, [fp, #-40]
	mov	r1, r3
	ldr	r0, .L10+20
	bl	printf
	ldr	r3, [fp, #-32]
	mov	r1, r3
	ldr	r0, .L10+24
	bl	printf
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L10+28
	bl	printf
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	ldr	r2, [fp, #-32]
	mul	r3, r2, r3
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L10+32
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L2
.L7:
	ldr	r0, .L10+36
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L3
.L6:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L4
	mov	r0, #32
	bl	putchar
	b	.L5
.L4:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L10+40
	bl	printf
.L5:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L10+44
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L3:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L6
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L2:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L7
	ldr	r0, .L10+48
	bl	puts
	ldr	r0, .L10+52
	bl	puts
	ldr	r0, .L10+56
	bl	puts
	ldr	r0, .L10+60
	bl	puts
	ldr	r0, .L10+64
	bl	puts
	ldr	r0, .L10+68
	bl	puts
	ldr	r0, [fp, #-12]
	bl	XFree
	ldr	r0, [fp, #-16]
	bl	XCloseDisplay
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC17
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.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
