	.file	"998033.c"
	.intel_syntax noprefix
	.text
	.type	up_buttonmap, @function
up_buttonmap:
.LFB6:
	.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 -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 256
	test	eax, eax
	je	.L2
	or	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 512
	test	eax, eax
	je	.L3
	or	DWORD PTR -4[rbp], 2
.L3:
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 1024
	test	eax, eax
	je	.L4
	or	DWORD PTR -4[rbp], 4
.L4:
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	up_buttonmap, .-up_buttonmap
	.globl	up_x11events
	.type	up_x11events, @function
up_x11events:
.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, 208
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR g_display[rip]
	test	rax, rax
	je	.L12
	mov	rax, QWORD PTR g_display[rip]
	mov	rdi, rax
	call	XPending@PLT
	test	eax, eax
	jle	.L12
	mov	rax, QWORD PTR g_display[rip]
	lea	rdx, -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XNextEvent@PLT
	mov	eax, DWORD PTR -208[rbp]
	cmp	eax, 5
	jg	.L8
	cmp	eax, 4
	jge	.L9
	jmp	.L13
.L8:
	cmp	eax, 6
	jne	.L13
	mov	eax, DWORD PTR -128[rbp]
	mov	edi, eax
	call	up_buttonmap
	mov	edx, eax
	mov	ecx, DWORD PTR -140[rbp]
	mov	eax, DWORD PTR -144[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	up_buttonevent@PLT
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -128[rbp]
	mov	edi, eax
	call	up_buttonmap
	mov	edx, eax
	mov	ecx, DWORD PTR -140[rbp]
	mov	eax, DWORD PTR -144[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	up_buttonevent@PLT
	jmp	.L7
.L12:
	nop
	jmp	.L7
.L13:
	nop
.L7:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	up_x11events, .-up_x11events
	.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	"998033.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	up_buttonmap, %function
up_buttonmap:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	and	r3, r3, #256
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-8]
	orr	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-16]
	and	r3, r3, #512
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-8]
	orr	r3, r3, #2
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-16]
	and	r3, r3, #1024
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-8]
	orr	r3, r3, #4
	str	r3, [fp, #-8]
.L4:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	up_buttonmap, .-up_buttonmap
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	up_x11events
	.syntax unified
	.arm
	.fpu softvfp
	.type	up_x11events, %function
up_x11events:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #104
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L14+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L14+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	XPending
	mov	r3, r0
	cmp	r3, #0
	ble	.L12
	ldr	r3, .L14+4
	ldr	r3, [r3]
	sub	r2, fp, #112
	mov	r1, r2
	mov	r0, r3
	bl	XNextEvent
	ldr	r3, [fp, #-112]
	cmp	r3, #5
	bgt	.L8
	cmp	r3, #4
	bge	.L9
	b	.L13
.L8:
	cmp	r3, #6
	bne	.L13
	ldr	r4, [fp, #-80]
	ldr	r5, [fp, #-76]
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	up_buttonmap
	mov	r3, r0
	mov	r2, r3
	mov	r1, r5
	mov	r0, r4
	bl	up_buttonevent
	b	.L7
.L9:
	ldr	r4, [fp, #-80]
	ldr	r5, [fp, #-76]
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	up_buttonmap
	mov	r3, r0
	mov	r2, r3
	mov	r1, r5
	mov	r0, r4
	bl	up_buttonevent
	b	.L7
.L12:
	nop
	b	.L7
.L13:
	nop
.L7:
	nop
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	g_display
	.size	up_x11events, .-up_x11events
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
