	.file	"379410.c"
	.intel_syntax noprefix
	.text
	.globl	setwinattr
	.bss
	.align 32
	.type	setwinattr, @object
	.size	setwinattr, 112
setwinattr:
	.zero	112
	.globl	xgcvl
	.align 32
	.type	xgcvl, @object
	.size	xgcvl, 128
xgcvl:
	.zero	128
	.globl	bstat
	.align 4
	.type	bstat, @object
	.size	bstat, 4
bstat:
	.zero	4
	.globl	menu_win_id
	.align 32
	.type	menu_win_id, @object
	.size	menu_win_id, 160
menu_win_id:
	.zero	160
	.globl	menu_width
	.align 32
	.type	menu_width, @object
	.size	menu_width, 80
menu_width:
	.zero	80
	.globl	menu_height
	.align 32
	.type	menu_height, @object
	.size	menu_height, 80
menu_height:
	.zero	80
	.globl	mgc_id
	.align 32
	.type	mgc_id, @object
	.size	mgc_id, 160
mgc_id:
	.zero	160
	.globl	mgc_comp_id
	.align 32
	.type	mgc_comp_id, @object
	.size	mgc_comp_id, 160
mgc_comp_id:
	.zero	160
	.globl	jroot
	.align 8
	.type	jroot, @object
	.size	jroot, 8
jroot:
	.zero	8
	.globl	jchild
	.align 8
	.type	jchild, @object
	.size	jchild, 8
jchild:
	.zero	8
	.globl	jmask
	.align 4
	.type	jmask, @object
	.size	jmask, 4
jmask:
	.zero	4
	.globl	ix_root
	.align 4
	.type	ix_root, @object
	.size	ix_root, 4
ix_root:
	.zero	4
	.globl	iy_root
	.align 4
	.type	iy_root, @object
	.size	iy_root, 4
iy_root:
	.zero	4
	.globl	ix
	.align 4
	.type	ix, @object
	.size	ix, 4
ix:
	.zero	4
	.globl	iy
	.align 4
	.type	iy, @object
	.size	iy, 4
iy:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"-ADOBE-HELVETICA-MEDIUM-R-NORMAL--*-100-*-*-P-*"
	.text
	.globl	init_menu
	.type	init_menu, @function
init_menu:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 440
	.cfi_offset 3, -24
	mov	DWORD PTR -420[rbp], edi
	mov	DWORD PTR -424[rbp], esi
	mov	DWORD PTR -428[rbp], edx
	mov	QWORD PTR -440[rbp], rcx
	mov	QWORD PTR -448[rbp], r8
	mov	DWORD PTR -432[rbp], r9d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR first.1[rip]
	test	eax, eax
	je	.L2
	mov	DWORD PTR first.1[rip], 0
	mov	edi, 0
	call	XOpenDisplay@PLT
	mov	QWORD PTR disp_id[rip], rax
	mov	rax, QWORD PTR disp_id[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	rax, QWORD PTR disp_id[rip]
	mov	eax, DWORD PTR 224[rax]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	QWORD PTR screen_id[rip], rax
	mov	rax, QWORD PTR screen_id[rip]
	mov	rdi, rax
	call	XRootWindowOfScreen@PLT
	mov	QWORD PTR root_win_id[rip], rax
	mov	DWORD PTR setwinattr[rip+32], 7
	mov	DWORD PTR setwinattr[rip+40], 2
	mov	rax, QWORD PTR screen_id[rip]
	mov	rdi, rax
	call	XWhitePixelOfScreen@PLT
	mov	QWORD PTR setwinattr[rip+8], rax
.L2:
	mov	DWORD PTR -416[rbp], 0
	jmp	.L3
.L4:
	mov	edx, DWORD PTR -416[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 3
	movsx	rdx, eax
	mov	rax, QWORD PTR -440[rbp]
	lea	rcx, [rdx+rax]
	lea	rsi, -384[rbp]
	mov	eax, DWORD PTR -416[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	mov	edx, 23
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	eax, DWORD PTR -416[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 345
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -416[rbp], 1
.L3:
	mov	eax, DWORD PTR -416[rbp]
	cmp	eax, DWORD PTR -428[rbp]
	jl	.L4
	mov	eax, DWORD PTR -424[rbp]
	add	eax, 1
	mov	DWORD PTR -408[rbp], eax
	cmp	DWORD PTR -408[rbp], 11
	jg	.L5
	mov	DWORD PTR -408[rbp], 12
.L5:
	mov	edx, DWORD PTR -408[rbp]
	mov	eax, edx
	sal	eax, 3
	sub	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, menu_width[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -428[rbp]
	sal	eax, 4
	lea	ecx, 4[rax]
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, menu_height[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	rsi, QWORD PTR root_win_id[rip]
	mov	rax, QWORD PTR disp_id[rip]
	sub	rsp, 8
	lea	rdx, jmask[rip]
	push	rdx
	lea	rdx, iyp[rip]
	push	rdx
	lea	rdx, ixp[rip]
	push	rdx
	lea	r9, iy_root[rip]
	lea	r8, ix_root[rip]
	lea	rcx, jchild[rip]
	lea	rdx, jroot[rip]
	mov	rdi, rax
	call	XQueryPointer@PLT
	add	rsp, 32
	mov	DWORD PTR bstat[rip], eax
	cmp	DWORD PTR -432[rbp], -1
	jne	.L6
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, menu_width[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	neg	eax
	mov	edx, eax
	mov	eax, DWORD PTR ix_root[rip]
	add	eax, edx
	mov	DWORD PTR -404[rbp], eax
	jmp	.L7
.L6:
	cmp	DWORD PTR -432[rbp], -2
	jne	.L8
	mov	eax, DWORD PTR ix_root[rip]
	add	eax, 40
	mov	DWORD PTR -404[rbp], eax
	jmp	.L7
.L8:
	cmp	DWORD PTR -432[rbp], -3
	jne	.L9
	mov	eax, DWORD PTR ix_root[rip]
	add	eax, 120
	mov	DWORD PTR -404[rbp], eax
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -432[rbp]
	mov	DWORD PTR -404[rbp], eax
.L7:
	cmp	DWORD PTR 16[rbp], 0
	jns	.L10
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, menu_height[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	neg	eax
	mov	edx, eax
	mov	eax, DWORD PTR iy_root[rip]
	add	edx, eax
	mov	eax, DWORD PTR 16[rbp]
	add	eax, edx
	mov	DWORD PTR -400[rbp], eax
	jmp	.L11
.L10:
	mov	eax, DWORD PTR 16[rbp]
	mov	DWORD PTR -400[rbp], eax
.L11:
	mov	QWORD PTR -392[rbp], 82
	mov	rax, QWORD PTR screen_id[rip]
	mov	rdi, rax
	call	XDefaultVisualOfScreen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR screen_id[rip]
	mov	rdi, rax
	call	XDefaultDepthOfScreen@PLT
	mov	edi, eax
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, menu_height[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	r9d, eax
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, menu_width[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	r10d, eax
	mov	rsi, QWORD PTR root_win_id[rip]
	mov	rax, QWORD PTR disp_id[rip]
	mov	ecx, DWORD PTR -400[rbp]
	mov	edx, DWORD PTR -404[rbp]
	lea	r8, setwinattr[rip]
	push	r8
	push	QWORD PTR -392[rbp]
	push	rbx
	push	1
	push	rdi
	push	10
	mov	r8d, r10d
	mov	rdi, rax
	call	XCreateWindow@PLT
	add	rsp, 48
	mov	edx, DWORD PTR -420[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, menu_win_id[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	eax, DWORD PTR -404[rbp]
	mov	DWORD PTR win_position.0[rip+8], eax
	mov	eax, DWORD PTR -400[rbp]
	mov	DWORD PTR win_position.0[rip+12], eax
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, menu_width[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR win_position.0[rip+16], eax
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, menu_width[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR win_position.0[rip+24], eax
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, menu_width[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR win_position.0[rip+32], eax
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, menu_height[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR win_position.0[rip+20], eax
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, menu_height[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR win_position.0[rip+28], eax
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, menu_height[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR win_position.0[rip+36], eax
	mov	QWORD PTR win_position.0[rip], 51
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, menu_win_id[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR disp_id[rip]
	lea	rdx, win_position.0[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	XSetWMNormalHints@PLT
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, menu_win_id[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR disp_id[rip]
	mov	rdx, QWORD PTR -448[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XStoreName@PLT
	mov	rax, QWORD PTR screen_id[rip]
	mov	rdi, rax
	call	XWhitePixelOfScreen@PLT
	mov	QWORD PTR xgcvl[rip+24], rax
	mov	rax, QWORD PTR screen_id[rip]
	mov	rdi, rax
	call	XBlackPixelOfScreen@PLT
	mov	QWORD PTR xgcvl[rip+16], rax
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, menu_win_id[rip]
	mov	rsi, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR disp_id[rip]
	lea	rcx, xgcvl[rip]
	mov	edx, 12
	mov	rdi, rax
	call	XCreateGC@PLT
	mov	edx, DWORD PTR -420[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, mgc_id[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	DWORD PTR xgcvl[rip], 10
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, menu_win_id[rip]
	mov	rsi, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR disp_id[rip]
	lea	rcx, xgcvl[rip]
	mov	edx, 1
	mov	rdi, rax
	call	XCreateGC@PLT
	mov	edx, DWORD PTR -420[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, mgc_comp_id[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	rax, QWORD PTR disp_id[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	XLoadFont@PLT
	mov	DWORD PTR -396[rbp], eax
	mov	eax, DWORD PTR -396[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, mgc_id[rip]
	mov	rcx, QWORD PTR [rcx+rax]
	mov	rax, QWORD PTR disp_id[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	XSetFont@PLT
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, menu_win_id[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR disp_id[rip]
	mov	edx, 98304
	mov	rsi, rcx
	mov	rdi, rax
	call	XSelectInput@PLT
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, menu_win_id[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR disp_id[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	XMapRaised@PLT
	mov	rax, QWORD PTR disp_id[rip]
	lea	rdx, event[rip]
	mov	esi, 98304
	mov	rdi, rax
	call	XMaskEvent@PLT
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, menu_win_id[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR disp_id[rip]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	XSelectInput@PLT
	mov	rax, QWORD PTR disp_id[rip]
	mov	esi, 1
	mov	rdi, rax
	call	XSync@PLT
	mov	DWORD PTR ix[rip], 5
	mov	DWORD PTR iy[rip], -2
	mov	DWORD PTR -412[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR iy[rip]
	add	eax, 16
	mov	DWORD PTR iy[rip], eax
	lea	rcx, -384[rbp]
	mov	eax, DWORD PTR -412[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdi, rax
	call	strlen@PLT
	mov	r9d, eax
	lea	rcx, -384[rbp]
	mov	eax, DWORD PTR -412[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	r8, [rcx+rax]
	mov	edi, DWORD PTR iy[rip]
	mov	ecx, DWORD PTR ix[rip]
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, mgc_id[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	lea	rsi, 0[0+rax*8]
	lea	rax, menu_win_id[rip]
	mov	rsi, QWORD PTR [rsi+rax]
	mov	rax, QWORD PTR disp_id[rip]
	sub	rsp, 8
	push	r9
	mov	r9, r8
	mov	r8d, edi
	mov	rdi, rax
	call	XDrawString@PLT
	add	rsp, 16
	mov	rax, QWORD PTR disp_id[rip]
	mov	rdi, rax
	call	XFlush@PLT
	add	DWORD PTR -412[rbp], 1
.L12:
	mov	eax, DWORD PTR -412[rbp]
	cmp	eax, DWORD PTR -428[rbp]
	jl	.L13
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	init_menu, .-init_menu
	.globl	delete_menu
	.type	delete_menu, @function
delete_menu:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, menu_win_id[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR disp_id[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	XDestroyWindow@PLT
	mov	rax, QWORD PTR disp_id[rip]
	mov	esi, 0
	mov	rdi, rax
	call	XSync@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	delete_menu, .-delete_menu
	.globl	get_selection
	.type	get_selection, @function
get_selection:
.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, 144
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	QWORD PTR -120[rbp], rdx
	mov	QWORD PTR -128[rbp], rcx
	mov	QWORD PTR -136[rbp], r8
	mov	QWORD PTR -144[rbp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -100[rbp], 10
	jg	.L17
	mov	DWORD PTR -76[rbp], 0
	mov	DWORD PTR -84[rbp], 0
	jmp	.L18
.L20:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L19
	mov	eax, DWORD PTR -76[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -76[rbp], edx
	cdqe
	mov	edx, DWORD PTR -84[rbp]
	mov	DWORD PTR -48[rbp+rax*4], edx
.L19:
	add	DWORD PTR -84[rbp], 1
.L18:
	cmp	DWORD PTR -84[rbp], 3
	jle	.L20
	jmp	.L21
.L17:
	mov	DWORD PTR -76[rbp], 0
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	mov	edx, DWORD PTR -100[rbp]
	mov	DWORD PTR -48[rbp+rax*4], edx
.L21:
	mov	DWORD PTR -84[rbp], 0
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, menu_win_id[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR disp_id[rip]
	mov	edx, 68
	mov	rsi, rcx
	mov	rdi, rax
	call	XSelectInput@PLT
	add	DWORD PTR -84[rbp], 1
.L22:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jl	.L23
	mov	DWORD PTR -68[rbp], -1
	mov	DWORD PTR -64[rbp], -1
	mov	DWORD PTR -60[rbp], 0
	jmp	.L24
.L48:
	mov	rax, QWORD PTR disp_id[rip]
	lea	rsi, event[rip]
	mov	rdi, rax
	call	XNextEvent@PLT
	mov	eax, DWORD PTR event[rip]
	cmp	eax, 4
	je	.L25
	cmp	eax, 6
	jne	.L50
	mov	DWORD PTR -72[rbp], -1
	mov	eax, DWORD PTR event[rip+64]
	mov	DWORD PTR ixp[rip], eax
	mov	eax, DWORD PTR event[rip+68]
	mov	DWORD PTR iyp[rip], eax
	mov	DWORD PTR -84[rbp], 0
	jmp	.L27
.L29:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, menu_win_id[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR event[rip+32]
	cmp	rdx, rax
	jne	.L28
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	mov	DWORD PTR -72[rbp], eax
.L28:
	add	DWORD PTR -84[rbp], 1
.L27:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jl	.L29
	cmp	DWORD PTR -72[rbp], -1
	je	.L30
	mov	eax, DWORD PTR ixp[rip]
	test	eax, eax
	jle	.L30
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, menu_width[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR ixp[rip]
	cmp	edx, eax
	jle	.L30
	mov	eax, DWORD PTR iyp[rip]
	test	eax, eax
	jle	.L30
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, menu_height[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR iyp[rip]
	cmp	edx, eax
	jle	.L30
	mov	rax, QWORD PTR -120[rbp]
	mov	edx, DWORD PTR -72[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR iyp[rip]
	sub	eax, 2
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	edx, eax
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jns	.L31
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR [rax], 0
.L31:
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jle	.L33
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L33
.L30:
	mov	rax, QWORD PTR -120[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR [rax], 0
.L33:
	mov	rax, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -64[rbp], eax
	jne	.L34
	mov	rax, QWORD PTR -120[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -68[rbp], eax
	je	.L24
.L34:
	cmp	DWORD PTR -64[rbp], -1
	je	.L36
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, mgc_comp_id[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, menu_win_id[rip]
	mov	rsi, QWORD PTR [rcx+rax]
	mov	rax, QWORD PTR disp_id[rip]
	lea	rcx, -32[rbp]
	mov	r9d, 0
	mov	r8d, 5
	mov	rdi, rax
	call	XDrawLines@PLT
.L36:
	mov	rax, QWORD PTR -120[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -68[rbp], eax
	mov	rax, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -64[rbp], eax
	mov	rax, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	je	.L37
	mov	rax, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, 1
	sal	eax, 4
	sub	eax, 14
	mov	DWORD PTR iyp[rip], eax
	mov	WORD PTR -32[rbp], 3
	mov	eax, DWORD PTR iyp[rip]
	add	eax, 15
	mov	WORD PTR -30[rbp], ax
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, menu_width[rip]
	mov	eax, DWORD PTR [rdx+rax]
	sub	eax, 3
	mov	WORD PTR -28[rbp], ax
	mov	eax, DWORD PTR iyp[rip]
	add	eax, 15
	mov	WORD PTR -26[rbp], ax
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, menu_width[rip]
	mov	eax, DWORD PTR [rdx+rax]
	sub	eax, 3
	mov	WORD PTR -24[rbp], ax
	mov	eax, DWORD PTR iyp[rip]
	mov	WORD PTR -22[rbp], ax
	mov	WORD PTR -20[rbp], 3
	mov	eax, DWORD PTR iyp[rip]
	mov	WORD PTR -18[rbp], ax
	mov	WORD PTR -16[rbp], 3
	mov	eax, DWORD PTR iyp[rip]
	add	eax, 14
	mov	WORD PTR -14[rbp], ax
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, mgc_comp_id[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, menu_win_id[rip]
	mov	rsi, QWORD PTR [rcx+rax]
	mov	rax, QWORD PTR disp_id[rip]
	lea	rcx, -32[rbp]
	mov	r9d, 0
	mov	r8d, 5
	mov	rdi, rax
	call	XDrawLines@PLT
.L37:
	mov	rax, QWORD PTR disp_id[rip]
	mov	rdi, rax
	call	XFlush@PLT
	jmp	.L24
.L25:
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -72[rbp], eax
	mov	DWORD PTR -84[rbp], 0
	jmp	.L38
.L40:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, menu_win_id[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR event[rip+32]
	cmp	rdx, rax
	jne	.L39
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	mov	DWORD PTR -72[rbp], eax
.L39:
	add	DWORD PTR -84[rbp], 1
.L38:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jl	.L40
	mov	rax, QWORD PTR -128[rbp]
	mov	DWORD PTR [rax], 1
	mov	eax, DWORD PTR event[rip+84]
	cmp	eax, 2
	jne	.L41
	mov	rax, QWORD PTR -128[rbp]
	mov	DWORD PTR [rax], 2
.L41:
	mov	eax, DWORD PTR event[rip+84]
	cmp	eax, 3
	jne	.L42
	mov	rax, QWORD PTR -128[rbp]
	mov	DWORD PTR [rax], 3
.L42:
	mov	eax, DWORD PTR event[rip+68]
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	sub	eax, 2
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	edx, eax
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jns	.L43
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR [rax], 0
.L43:
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jle	.L44
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR [rax], edx
.L44:
	mov	rax, QWORD PTR -120[rbp]
	mov	edx, DWORD PTR -72[rbp]
	mov	DWORD PTR [rax], edx
	mov	DWORD PTR -80[rbp], 0
	jmp	.L45
.L46:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, menu_win_id[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR disp_id[rip]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	XSelectInput@PLT
	add	DWORD PTR -80[rbp], 1
.L45:
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jl	.L46
	mov	rax, QWORD PTR disp_id[rip]
	mov	esi, 1
	mov	rdi, rax
	call	XSync@PLT
	cmp	DWORD PTR -64[rbp], -1
	je	.L47
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, mgc_comp_id[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, menu_win_id[rip]
	mov	rsi, QWORD PTR [rcx+rax]
	mov	rax, QWORD PTR disp_id[rip]
	lea	rcx, -32[rbp]
	mov	r9d, 0
	mov	r8d, 5
	mov	rdi, rax
	call	XDrawLines@PLT
.L47:
	mov	rax, QWORD PTR disp_id[rip]
	mov	rdi, rax
	call	XFlush@PLT
	mov	DWORD PTR -60[rbp], 1
	jmp	.L24
.L50:
	nop
.L24:
	cmp	DWORD PTR -60[rbp], 0
	je	.L48
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_selection, .-get_selection
	.data
	.align 4
	.type	first.1, @object
	.size	first.1, 4
first.1:
	.long	1
	.local	win_position.0
	.comm	win_position.0,80,32
	.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	"379410.c"
	.text
	.comm	setwinattr,60,4
	.comm	xgcvl,92,4
	.comm	bstat,4,4
	.comm	menu_win_id,80,4
	.comm	menu_width,80,4
	.comm	menu_height,80,4
	.comm	mgc_id,80,4
	.comm	mgc_comp_id,80,4
	.comm	jroot,4,4
	.comm	jchild,4,4
	.comm	jmask,4,4
	.comm	ix_root,4,4
	.comm	iy_root,4,4
	.comm	ix,4,4
	.comm	iy,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-ADOBE-HELVETICA-MEDIUM-R-NORMAL--*-100-*-*-P-*\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	init_menu
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_menu, %function
init_menu:
	@ args = 12, pretend = 0, frame = 416
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #448
	str	r0, [fp, #-424]
	str	r1, [fp, #-428]
	str	r2, [fp, #-432]
	str	r3, [fp, #-436]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-440]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	ldr	r3, .L15+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L15+4
	mov	r2, #0
	str	r2, [r3]
	mov	r0, #0
	bl	XOpenDisplay
	mov	r3, r0
	ldr	r2, .L15+8
	str	r3, [r2]
	ldr	r3, .L15+8
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L15+8
	ldr	r3, [r3]
	ldr	r3, [r3, #132]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r2, .L15+12
	str	r3, [r2]
	ldr	r3, .L15+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	XRootWindowOfScreen
	mov	r3, r0
	ldr	r2, .L15+16
	str	r3, [r2]
	ldr	r3, .L15+20
	mov	r2, #7
	str	r2, [r3, #16]
	ldr	r3, .L15+20
	mov	r2, #2
	str	r2, [r3, #24]
	ldr	r3, .L15+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	XWhitePixelOfScreen
	mov	r3, r0
	ldr	r2, .L15+20
	str	r3, [r2, #4]
.L2:
	mov	r3, #0
	str	r3, [fp, #-420]
	b	.L3
.L4:
	sub	r1, fp, #392
	ldr	r2, [fp, #-420]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r0, r1, r3
	ldr	r2, [fp, #-420]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-436]
	add	r3, r3, r2
	mov	r2, #23
	mov	r1, r3
	bl	strncpy
	ldr	r2, [fp, #-420]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, fp, #28
	add	r3, r2, r3
	sub	r3, r3, #340
	sub	r3, r3, #1
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-420]
	add	r3, r3, #1
	str	r3, [fp, #-420]
.L3:
	ldr	r2, [fp, #-420]
	ldr	r3, [fp, #-432]
	cmp	r2, r3
	blt	.L4
	ldr	r3, [fp, #-428]
	add	r3, r3, #1
	str	r3, [fp, #-412]
	ldr	r3, [fp, #-412]
	cmp	r3, #11
	bgt	.L5
	mov	r3, #12
	str	r3, [fp, #-412]
.L5:
	ldr	r2, [fp, #-412]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r2, r3, r2
	ldr	r1, .L15+24
	ldr	r3, [fp, #-424]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-432]
	lsl	r3, r3, #4
	add	r2, r3, #4
	ldr	r1, .L15+28
	ldr	r3, [fp, #-424]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L15+8
	ldr	r0, [r3]
	ldr	r3, .L15+16
	ldr	r1, [r3]
	ldr	r3, .L15+32
	str	r3, [sp, #16]
	ldr	r3, .L15+36
	str	r3, [sp, #12]
	ldr	r3, .L15+40
	str	r3, [sp, #8]
	ldr	r3, .L15+44
	str	r3, [sp, #4]
	ldr	r3, .L15+48
	str	r3, [sp]
	ldr	r3, .L15+52
	ldr	r2, .L15+56
	bl	XQueryPointer
	mov	r3, r0
	ldr	r2, .L15+60
	str	r3, [r2]
	ldr	r3, [fp, #8]
	cmn	r3, #1
	bne	.L6
	ldr	r2, .L15+24
	ldr	r3, [fp, #-424]
	ldr	r3, [r2, r3, lsl #2]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	rsb	r3, r3, #0
	mov	r2, r3
	ldr	r3, .L15+48
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-408]
	b	.L7
.L6:
	ldr	r3, [fp, #8]
	cmn	r3, #2
	bne	.L8
	ldr	r3, .L15+48
	ldr	r3, [r3]
	add	r3, r3, #40
	str	r3, [fp, #-408]
	b	.L7
.L8:
	ldr	r3, [fp, #8]
	cmn	r3, #3
	bne	.L9
	ldr	r3, .L15+48
	ldr	r3, [r3]
	add	r3, r3, #120
	str	r3, [fp, #-408]
	b	.L7
.L9:
	ldr	r3, [fp, #8]
	str	r3, [fp, #-408]
.L7:
	ldr	r3, [fp, #12]
	cmp	r3, #0
	bge	.L10
	ldr	r2, .L15+28
	ldr	r3, [fp, #-424]
	ldr	r3, [r2, r3, lsl #2]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	rsb	r3, r3, #0
	mov	r2, r3
	ldr	r3, .L15+44
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, [fp, #12]
	add	r3, r2, r3
	str	r3, [fp, #-404]
	b	.L11
.L10:
	ldr	r3, [fp, #12]
	str	r3, [fp, #-404]
.L11:
	mov	r3, #82
	str	r3, [fp, #-400]
	ldr	r3, .L15+8
	ldr	r4, [r3]
	ldr	r3, .L15+16
	ldr	r5, [r3]
	ldr	r2, .L15+24
	ldr	r3, [fp, #-424]
	ldr	r3, [r2, r3, lsl #2]
	mov	r7, r3
	ldr	r2, .L15+28
	ldr	r3, [fp, #-424]
	ldr	r3, [r2, r3, lsl #2]
	mov	r8, r3
	ldr	r3, .L15+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	XDefaultDepthOfScreen
	mov	r6, r0
	ldr	r3, .L15+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	XDefaultVisualOfScreen
	mov	r2, r0
	ldr	r3, .L15+20
	str	r3, [sp, #28]
	ldr	r3, [fp, #-400]
	str	r3, [sp, #24]
	str	r2, [sp, #20]
	mov	r3, #1
	str	r3, [sp, #16]
	str	r6, [sp, #12]
	mov	r3, #10
	str	r3, [sp, #8]
	str	r8, [sp, #4]
	str	r7, [sp]
	ldr	r3, [fp, #-404]
	ldr	r2, [fp, #-408]
	mov	r1, r5
	mov	r0, r4
	bl	XCreateWindow
	mov	r2, r0
	ldr	r1, .L15+64
	ldr	r3, [fp, #-424]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, .L15+68
	ldr	r3, [fp, #-408]
	str	r3, [r2, #4]
	ldr	r2, .L15+68
	ldr	r3, [fp, #-404]
	str	r3, [r2, #8]
	ldr	r2, .L15+24
	ldr	r3, [fp, #-424]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L15+68
	str	r3, [r2, #12]
	ldr	r2, .L15+24
	ldr	r3, [fp, #-424]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L15+68
	str	r3, [r2, #20]
	ldr	r2, .L15+24
	ldr	r3, [fp, #-424]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L15+68
	str	r3, [r2, #28]
	ldr	r2, .L15+28
	ldr	r3, [fp, #-424]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L15+68
	str	r3, [r2, #16]
	ldr	r2, .L15+28
	ldr	r3, [fp, #-424]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L15+68
	str	r3, [r2, #24]
	ldr	r2, .L15+28
	ldr	r3, [fp, #-424]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L15+68
	str	r3, [r2, #32]
	ldr	r3, .L15+68
	mov	r2, #51
	str	r2, [r3]
	ldr	r3, .L15+8
	ldr	r0, [r3]
	ldr	r2, .L15+64
	ldr	r3, [fp, #-424]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L15+68
	mov	r1, r3
	bl	XSetWMNormalHints
	ldr	r3, .L15+8
	ldr	r0, [r3]
	ldr	r2, .L15+64
	ldr	r3, [fp, #-424]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-440]
	mov	r1, r3
	bl	XStoreName
	ldr	r3, .L15+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	XWhitePixelOfScreen
	mov	r3, r0
	ldr	r2, .L15+72
	str	r3, [r2, #12]
	ldr	r3, .L15+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	XBlackPixelOfScreen
	mov	r3, r0
	ldr	r2, .L15+72
	str	r3, [r2, #8]
	ldr	r3, .L15+8
	ldr	r0, [r3]
	ldr	r2, .L15+64
	ldr	r3, [fp, #-424]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, .L15+72
	mov	r2, #12
	bl	XCreateGC
	mov	r2, r0
	ldr	r1, .L15+76
	ldr	r3, [fp, #-424]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L15+72
	mov	r2, #10
	str	r2, [r3]
	ldr	r3, .L15+8
	ldr	r0, [r3]
	ldr	r2, .L15+64
	ldr	r3, [fp, #-424]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, .L15+72
	mov	r2, #1
	bl	XCreateGC
	mov	r2, r0
	ldr	r1, .L15+80
	ldr	r3, [fp, #-424]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L15+8
	ldr	r3, [r3]
	ldr	r1, .L15+84
	mov	r0, r3
	bl	XLoadFont
	mov	r3, r0
	str	r3, [fp, #-396]
	ldr	r3, .L15+8
	ldr	r0, [r3]
	ldr	r2, .L15+76
	ldr	r3, [fp, #-424]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-396]
	mov	r1, r3
	bl	XSetFont
	ldr	r3, .L15+8
	ldr	r0, [r3]
	ldr	r2, .L15+64
	ldr	r3, [fp, #-424]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, #98304
	mov	r1, r3
	bl	XSelectInput
	ldr	r3, .L15+8
	ldr	r2, [r3]
	ldr	r1, .L15+64
	ldr	r3, [fp, #-424]
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	XMapRaised
	ldr	r3, .L15+8
	ldr	r3, [r3]
	ldr	r2, .L15+88
	mov	r1, #98304
	mov	r0, r3
	bl	XMaskEvent
	ldr	r3, .L15+8
	ldr	r0, [r3]
	ldr	r2, .L15+64
	ldr	r3, [fp, #-424]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, #0
	mov	r1, r3
	bl	XSelectInput
	ldr	r3, .L15+8
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	XSync
	ldr	r3, .L15+92
	mov	r2, #5
	str	r2, [r3]
	ldr	r3, .L15+96
	mvn	r2, #1
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-416]
	b	.L12
.L13:
	ldr	r3, .L15+96
	ldr	r3, [r3]
	add	r3, r3, #16
	ldr	r2, .L15+96
	str	r3, [r2]
	ldr	r3, .L15+8
	ldr	r6, [r3]
	ldr	r2, .L15+64
	ldr	r3, [fp, #-424]
	ldr	r7, [r2, r3, lsl #2]
	ldr	r2, .L15+76
	ldr	r3, [fp, #-424]
	ldr	r8, [r2, r3, lsl #2]
	ldr	r3, .L15+92
	ldr	r9, [r3]
	ldr	r3, .L15+96
	ldr	r4, [r3]
	sub	r1, fp, #392
	ldr	r2, [fp, #-416]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r5, r1, r3
	sub	r1, fp, #392
	ldr	r2, [fp, #-416]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [sp, #8]
	str	r5, [sp, #4]
	str	r4, [sp]
	mov	r3, r9
	mov	r2, r8
	mov	r1, r7
	mov	r0, r6
	bl	XDrawString
	ldr	r3, .L15+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	XFlush
	ldr	r3, [fp, #-416]
	add	r3, r3, #1
	str	r3, [fp, #-416]
.L12:
	ldr	r2, [fp, #-416]
	ldr	r3, [fp, #-432]
	cmp	r2, r3
	blt	.L13
	nop
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC1
	.word	first.8531
	.word	disp_id
	.word	screen_id
	.word	root_win_id
	.word	setwinattr
	.word	menu_width
	.word	menu_height
	.word	jmask
	.word	iyp
	.word	ixp
	.word	iy_root
	.word	ix_root
	.word	jchild
	.word	jroot
	.word	bstat
	.word	menu_win_id
	.word	win_position.8530
	.word	xgcvl
	.word	mgc_id
	.word	mgc_comp_id
	.word	.LC0
	.word	event
	.word	ix
	.word	iy
	.size	init_menu, .-init_menu
	.align	2
	.global	delete_menu
	.syntax unified
	.arm
	.fpu softvfp
	.type	delete_menu, %function
delete_menu:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r1, .L18+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	XDestroyWindow
	ldr	r3, .L18
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	XSync
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	disp_id
	.word	menu_win_id
	.size	delete_menu, .-delete_menu
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_selection
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_selection, %function
get_selection:
	@ args = 8, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	str	r2, [fp, #-96]
	str	r3, [fp, #-100]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-104]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-108]
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-88]
	cmp	r3, #10
	bgt	.L21
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L22
.L24:
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-108]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-72]
	add	r2, r3, #1
	str	r2, [fp, #-72]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-80]
	str	r2, [r3, #-40]
.L23:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L22:
	ldr	r3, [fp, #-80]
	cmp	r3, #3
	ble	.L24
	b	.L25
.L21:
	mov	r3, #0
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-88]
	str	r2, [r3, #-40]
.L25:
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L26
.L27:
	ldr	r3, .L55+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-40]
	ldr	r2, .L55+8
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, #68
	mov	r1, r3
	bl	XSelectInput
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L26:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L27
	mvn	r3, #0
	str	r3, [fp, #-64]
	mvn	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L28
.L52:
	ldr	r3, .L55+4
	ldr	r3, [r3]
	ldr	r1, .L55+12
	mov	r0, r3
	bl	XNextEvent
	ldr	r3, .L55+12
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L29
	cmp	r3, #6
	bne	.L54
	mvn	r3, #0
	str	r3, [fp, #-68]
	ldr	r3, .L55+12
	ldr	r3, [r3, #32]
	ldr	r2, .L55+16
	str	r3, [r2]
	ldr	r3, .L55+12
	ldr	r3, [r3, #36]
	ldr	r2, .L55+20
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L31
.L33:
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-40]
	str	r3, [fp, #-76]
	ldr	r2, .L55+8
	ldr	r3, [fp, #-76]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L55+12
	ldr	r3, [r3, #16]
	cmp	r2, r3
	bne	.L32
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-40]
	str	r3, [fp, #-68]
.L32:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L31:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L33
	ldr	r3, [fp, #-68]
	cmn	r3, #1
	beq	.L34
	ldr	r3, .L55+16
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L34
	ldr	r2, .L55+24
	ldr	r3, [fp, #-68]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L55+16
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L34
	ldr	r3, .L55+20
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L34
	ldr	r2, .L55+28
	ldr	r3, [fp, #-68]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L55+20
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L34
	ldr	r3, [fp, #-96]
	ldr	r2, [fp, #-68]
	str	r2, [r3]
	ldr	r3, .L55+20
	ldr	r3, [r3]
	sub	r3, r3, #2
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-92]
	str	r2, [r3]
	ldr	r3, [fp, #-92]
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L35
	ldr	r3, [fp, #-92]
	mov	r2, #0
	str	r2, [r3]
.L35:
	ldr	r3, [fp, #-92]
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-104]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L37
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-104]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-92]
	str	r2, [r3]
	b	.L37
.L34:
	ldr	r3, [fp, #-96]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-92]
	mov	r2, #0
	str	r2, [r3]
.L37:
	ldr	r3, [fp, #-92]
	ldr	r3, [r3]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	bne	.L38
	ldr	r3, [fp, #-96]
	ldr	r3, [r3]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	beq	.L28
.L38:
	ldr	r3, [fp, #-60]
	cmn	r3, #1
	beq	.L40
	ldr	r3, .L55+4
	ldr	r0, [r3]
	ldr	r2, .L55+8
	ldr	r3, [fp, #-64]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, .L55+32
	ldr	r3, [fp, #-64]
	ldr	r2, [r2, r3, lsl #2]
	sub	r3, fp, #28
	mov	ip, #0
	str	ip, [sp, #4]
	mov	ip, #5
	str	ip, [sp]
	bl	XDrawLines
.L40:
	ldr	r3, [fp, #-96]
	ldr	r3, [r3]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-92]
	ldr	r3, [r3]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-92]
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L41
	ldr	r3, [fp, #-92]
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #4
	sub	r3, r3, #14
	ldr	r2, .L55+20
	str	r3, [r2]
	mov	r3, #3
	strh	r3, [fp, #-28]	@ movhi
	ldr	r3, .L55+20
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #15
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-26]	@ movhi
	ldr	r2, .L55+24
	ldr	r3, [fp, #-64]
	ldr	r3, [r2, r3, lsl #2]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r3, #3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-24]	@ movhi
	ldr	r3, .L55+20
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #15
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-22]	@ movhi
	ldr	r2, .L55+24
	ldr	r3, [fp, #-64]
	ldr	r3, [r2, r3, lsl #2]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r3, #3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-20]	@ movhi
	ldr	r3, .L55+20
	ldr	r3, [r3]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-18]	@ movhi
	mov	r3, #3
	strh	r3, [fp, #-16]	@ movhi
	ldr	r3, .L55+20
	ldr	r3, [r3]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, #3
	strh	r3, [fp, #-12]	@ movhi
	ldr	r3, .L55+20
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #14
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-10]	@ movhi
	ldr	r3, .L55+4
	ldr	r0, [r3]
	ldr	r2, .L55+8
	ldr	r3, [fp, #-64]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, .L55+32
	ldr	r3, [fp, #-64]
	ldr	r2, [r2, r3, lsl #2]
	sub	r3, fp, #28
	mov	ip, #0
	str	ip, [sp, #4]
	mov	ip, #5
	str	ip, [sp]
	bl	XDrawLines
.L41:
	ldr	r3, .L55+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	XFlush
	b	.L28
.L29:
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L42
.L44:
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-40]
	ldr	r2, .L55+8
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L55+12
	ldr	r3, [r3, #16]
	cmp	r2, r3
	bne	.L43
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-40]
	str	r3, [fp, #-68]
.L43:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L42:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L44
	ldr	r3, [fp, #-100]
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L55+12
	ldr	r3, [r3, #52]
	cmp	r3, #2
	bne	.L45
	ldr	r3, [fp, #-100]
	mov	r2, #2
	str	r2, [r3]
.L45:
	ldr	r3, .L55+12
	ldr	r3, [r3, #52]
	cmp	r3, #3
	bne	.L46
	ldr	r3, [fp, #-100]
	mov	r2, #3
	str	r2, [r3]
.L46:
	ldr	r3, .L55+12
	ldr	r3, [r3, #36]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	sub	r3, r3, #2
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-92]
	str	r2, [r3]
	ldr	r3, [fp, #-92]
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L47
	ldr	r3, [fp, #-92]
	mov	r2, #0
	str	r2, [r3]
.L47:
	ldr	r3, [fp, #-92]
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-104]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L48
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-104]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-92]
	str	r2, [r3]
.L48:
	ldr	r3, [fp, #-96]
	ldr	r2, [fp, #-68]
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L49
.L50:
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-40]
	str	r3, [fp, #-48]
	ldr	r3, .L55+4
	ldr	r0, [r3]
	ldr	r2, .L55+8
	ldr	r3, [fp, #-48]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, #0
	mov	r1, r3
	bl	XSelectInput
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L49:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L50
	ldr	r3, .L55+4
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	XSync
	ldr	r3, [fp, #-60]
	cmn	r3, #1
	beq	.L51
	ldr	r3, .L55+4
	ldr	r0, [r3]
	ldr	r2, .L55+8
	ldr	r3, [fp, #-64]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, .L55+32
	ldr	r3, [fp, #-64]
	ldr	r2, [r2, r3, lsl #2]
	sub	r3, fp, #28
	mov	ip, #0
	str	ip, [sp, #4]
	mov	ip, #5
	str	ip, [sp]
	bl	XDrawLines
.L51:
	ldr	r3, .L55+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	XFlush
	mov	r3, #1
	str	r3, [fp, #-56]
	b	.L28
.L54:
	nop
.L28:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L52
	nop
	ldr	r3, .L55
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L53
	bl	__stack_chk_fail
.L53:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC2
	.word	disp_id
	.word	menu_win_id
	.word	event
	.word	ixp
	.word	iyp
	.word	menu_width
	.word	menu_height
	.word	mgc_comp_id
	.size	get_selection, .-get_selection
	.data
	.align	2
	.type	first.8531, %object
	.size	first.8531, 4
first.8531:
	.word	1
	.local	win_position.8530
	.comm	win_position.8530,72,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
