	.file	"229995.c"
	.intel_syntax noprefix
	.text
	.local	g_debug
	.comm	g_debug,4,4
	.data
	.align 4
	.type	g_print_in_hex, @object
	.size	g_print_in_hex, 4
g_print_in_hex:
	.long	1
	.local	g_print_in_rgb
	.comm	g_print_in_rgb,4,4
	.local	g_print_all_16_bits
	.comm	g_print_all_16_bits,4,4
	.local	g_window_id
	.comm	g_window_id,8,8
	.local	g_loc_specified
	.comm	g_loc_specified,4,4
	.align 4
	.type	g_x, @object
	.size	g_x, 4
g_x:
	.long	1
	.align 4
	.type	g_y, @object
	.size	g_y, 4
g_y:
	.long	1
	.local	g_width
	.comm	g_width,4,4
	.local	g_height
	.comm	g_height,4,4
	.local	g_cross_cursor
	.comm	g_cross_cursor,8,8
	.section	.rodata
.LC0:
	.string	"1.0.2"
.LC1:
	.string	"grabc v%s\n"
	.align 8
.LC2:
	.string	"A program to identify a pixel color of an X Window"
	.align 8
.LC3:
	.string	"by muquit@muquit.com https://www.muquit.com/\n"
.LC4:
	.string	"Usage: grabc [options]"
.LC5:
	.string	"Where the options are:"
.LC6:
	.string	"%s\n"
	.text
	.type	show_usage, @function
show_usage:
.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, 16
	mov	edi, 10
	call	putchar@PLT
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rax, options.0[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	add	QWORD PTR -8[rbp], 8
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L3
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	show_usage, .-show_usage
	.section	.rodata
.LC7:
	.string	"[Debug]: "
	.text
	.type	log_debug, @function
log_debug:
.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, 224
	mov	QWORD PTR -216[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L5
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L5:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR g_debug[rip]
	test	eax, eax
	je	.L9
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 9
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -208[rbp]
	mov	rcx, QWORD PTR -216[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	vfprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	jmp	.L4
.L9:
	nop
.L4:
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	log_debug, .-log_debug
	.section	.rodata
	.align 8
.LC8:
	.string	"ERROR: Failed to create Cross Cursor!\n"
	.text
	.type	get_cross_cursor, @function
get_cross_cursor:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR g_cross_cursor[rip]
	test	rax, rax
	jne	.L11
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 130
	mov	rdi, rax
	call	XCreateFontCursor@PLT
	mov	QWORD PTR g_cross_cursor[rip], rax
	mov	rax, QWORD PTR g_cross_cursor[rip]
	test	rax, rax
	jne	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 38
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	rax, QWORD PTR g_cross_cursor[rip]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_cross_cursor, .-get_cross_cursor
	.type	grab_mouse, @function
grab_mouse:
.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, 256
	mov	QWORD PTR -248[rbp], rdi
	mov	QWORD PTR -256[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR g_window_id[rip]
	test	rax, rax
	je	.L14
	mov	rax, QWORD PTR g_window_id[rip]
	jmp	.L18
.L14:
	mov	rax, QWORD PTR -248[rbp]
	mov	rdi, rax
	call	get_cross_cursor
	mov	QWORD PTR -224[rbp], rax
	mov	rsi, QWORD PTR -256[rbp]
	mov	rax, QWORD PTR -248[rbp]
	sub	rsp, 8
	push	0
	push	QWORD PTR -224[rbp]
	push	QWORD PTR -256[rbp]
	mov	r9d, 1
	mov	r8d, 0
	mov	ecx, 4
	mov	edx, 0
	mov	rdi, rax
	call	XGrabPointer@PLT
	add	rsp, 32
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], 0
	jne	.L16
	mov	rax, QWORD PTR -248[rbp]
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	call	XAllowEvents@PLT
	lea	rdx, -208[rbp]
	mov	rsi, QWORD PTR -256[rbp]
	mov	rax, QWORD PTR -248[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	rdi, rax
	call	XWindowEvent@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	QWORD PTR -216[rbp], rax
	mov	rax, QWORD PTR -216[rbp]
	jmp	.L18
.L16:
	mov	rax, QWORD PTR -256[rbp]
.L18:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	grab_mouse, .-grab_mouse
	.type	upgrab_mouse, @function
upgrab_mouse:
.LFB10:
	.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR g_window_id[rip]
	test	rax, rax
	je	.L22
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	XUngrabPointer@PLT
.L22:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	upgrab_mouse, .-upgrab_mouse
	.section	.rodata
.LC9:
	.string	"Returning passing window: %lx"
	.align 8
.LC10:
	.string	"ERROR: Failed to get target window, getting root window!\n"
	.align 8
.LC11:
	.string	"ERROR: Failed to grab mouse pointer!\n"
	.text
	.type	select_window, @function
select_window:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 288
	mov	QWORD PTR -264[rbp], rdi
	mov	QWORD PTR -272[rbp], rsi
	mov	QWORD PTR -280[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR g_window_id[rip]
	test	rax, rax
	je	.L24
	mov	eax, DWORD PTR g_loc_specified[rip]
	test	eax, eax
	je	.L24
	mov	rax, QWORD PTR g_window_id[rip]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	log_debug
	mov	edx, DWORD PTR g_x[rip]
	mov	rax, QWORD PTR -272[rbp]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR g_y[rip]
	mov	rax, QWORD PTR -280[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR g_window_id[rip]
	jmp	.L29
.L24:
	mov	QWORD PTR -240[rbp], 0
	mov	rax, QWORD PTR -264[rbp]
	mov	rdi, rax
	call	get_cross_cursor
	mov	QWORD PTR -232[rbp], rax
	mov	rax, QWORD PTR -264[rbp]
	mov	rdi, rax
	call	XDefaultScreen@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -264[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	XRootWindow@PLT
	mov	QWORD PTR -224[rbp], rax
	mov	rsi, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR -264[rbp]
	sub	rsp, 8
	push	0
	push	QWORD PTR -232[rbp]
	push	QWORD PTR -224[rbp]
	mov	r9d, 1
	mov	r8d, 0
	mov	ecx, 4
	mov	edx, 0
	mov	rdi, rax
	call	XGrabPointer@PLT
	add	rsp, 32
	mov	DWORD PTR -244[rbp], eax
	cmp	DWORD PTR -244[rbp], 0
	jne	.L26
	mov	rax, QWORD PTR -264[rbp]
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	call	XAllowEvents@PLT
	lea	rdx, -208[rbp]
	mov	rsi, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR -264[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	rdi, rax
	call	XWindowEvent@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	QWORD PTR -216[rbp], rax
	mov	eax, DWORD PTR -208[rbp]
	cmp	eax, 4
	jne	.L27
	lea	rax, -208[rbp]
	lea	rdi, 68[rax]
	lea	rax, -208[rbp]
	lea	rcx, 64[rax]
	mov	rdx, QWORD PTR -216[rbp]
	mov	rsi, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR -264[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	findSubWindow
	mov	QWORD PTR -240[rbp], rax
	cmp	QWORD PTR -240[rbp], 0
	jne	.L28
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 57
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -224[rbp]
	mov	QWORD PTR -240[rbp], rax
.L28:
	mov	eax, DWORD PTR g_loc_specified[rip]
	test	eax, eax
	jne	.L27
	mov	rax, QWORD PTR -264[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	XUngrabPointer@PLT
	jmp	.L27
.L26:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 37
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L27:
	mov	edx, DWORD PTR -144[rbp]
	mov	rax, QWORD PTR -272[rbp]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR -140[rbp]
	mov	rax, QWORD PTR -280[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -240[rbp]
.L29:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	select_window, .-select_window
	.type	findSubWindow, @function
findSubWindow:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -72[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L32
	mov	eax, 0
	jmp	.L39
.L32:
	cmp	QWORD PTR -56[rbp], 0
	jne	.L34
	mov	eax, 0
	jmp	.L39
.L34:
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L35
.L37:
	mov	rax, QWORD PTR -16[rbp]
	test	rax, rax
	je	.L35
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], edx
.L35:
	mov	rax, QWORD PTR -72[rbp]
	mov	r8d, DWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	ecx, DWORD PTR [rax]
	lea	r9, -24[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rsi, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rdi, -16[rbp]
	push	rdi
	lea	rdi, -20[rbp]
	push	rdi
	mov	rdi, rax
	call	XTranslateCoordinates@PLT
	add	rsp, 16
	test	eax, eax
	je	.L36
	mov	rax, QWORD PTR -16[rbp]
	test	rax, rax
	jne	.L37
.L36:
	mov	rax, QWORD PTR -16[rbp]
	test	rax, rax
	jne	.L38
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -16[rbp], rax
.L38:
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -16[rbp]
.L39:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	findSubWindow, .-findSubWindow
	.section	.rodata
.LC12:
	.string	"  Root Window Id: 0x%08lx"
	.align 8
.LC13:
	.string	"Target Window Id: 0x%08lx  X,Y: +%d+%d"
	.align 8
.LC14:
	.string	"Could not get XImage from Window: 0x%08lx"
	.align 8
.LC15:
	.string	"Trying to get XImage from root window: 0x%08lx"
	.align 8
.LC16:
	.string	"Could not get XImage from target or root window"
	.align 8
.LC17:
	.string	"OK successfully got XImage from root window"
	.text
	.type	get_window_color, @function
get_window_color:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	XDefaultScreen@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	XRootWindow@PLT
	mov	QWORD PTR -16[rbp], rax
	lea	rdx, -36[rbp]
	lea	rcx, -40[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	select_window
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	log_debug
	mov	ecx, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	log_debug
	cmp	QWORD PTR -32[rbp], 0
	jne	.L42
	mov	eax, 0
	jmp	.L46
.L42:
	mov	ecx, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	push	2
	push	-1
	mov	r9d, 1
	mov	r8d, 1
	mov	rdi, rax
	call	XGetImage@PLT
	add	rsp, 16
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L44
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	log_debug
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	log_debug
	mov	ecx, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -56[rbp]
	push	2
	push	-1
	mov	r9d, 1
	mov	r8d, 1
	mov	rdi, rax
	call	XGetImage@PLT
	add	rsp, 16
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L45
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	log_debug
	mov	eax, 0
	jmp	.L46
.L45:
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	log_debug
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -32[rbp], rax
.L44:
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 104[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	rcx
	mov	rdx, QWORD PTR -64[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 96[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rdx
	mov	rax, QWORD PTR -32[rbp]
.L46:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	get_window_color, .-get_window_color
	.type	MXError, @function
MXError:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR 32[rax]
	movzx	eax, al
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 11
	je	.L49
	cmp	DWORD PTR -4[rbp], 10
	jne	.L50
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR 33[rax]
	cmp	al, 88
	jne	.L50
.L49:
	mov	eax, 0
	jmp	.L51
.L50:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR 33[rax]
	movzx	eax, al
	cmp	eax, 91
	je	.L52
	cmp	eax, 91
	jg	.L53
	cmp	eax, 15
	je	.L54
	cmp	eax, 15
	jg	.L53
	cmp	eax, 3
	je	.L54
	cmp	eax, 14
	jne	.L53
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR 32[rax]
	cmp	al, 9
	jne	.L58
	mov	eax, 0
	jmp	.L51
.L54:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR 32[rax]
	cmp	al, 3
	jne	.L59
	mov	eax, 0
	jmp	.L51
.L52:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR 32[rax]
	cmp	al, 2
	jne	.L60
	mov	eax, 0
	jmp	.L51
.L58:
	nop
	jmp	.L53
.L59:
	nop
	jmp	.L53
.L60:
	nop
.L53:
	mov	eax, 1
.L51:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	MXError, .-MXError
	.section	.rodata
.LC18:
	.string	"hex"
.LC19:
	.string	"rgb"
.LC20:
	.string	"ERROR: Missing Window id\n"
	.align 8
.LC21:
	.string	"ERROR: Could not open Display\n"
.LC22:
	.string	"Window ID: 0x%08lx"
.LC23:
	.string	"0x%lx\n"
.LC24:
	.string	"ERROR: Missing location +x+y\n"
	.align 8
.LC25:
	.string	"ERROR: Could not parse location: %s\n"
.LC26:
	.string	"Example: -l +10+20\n"
	.align 8
.LC27:
	.string	"ERROR: Please specify window id with -w in hex to use this option\n"
	.align 8
.LC28:
	.string	"Use -W option to find the Window Id\n"
	.align 8
.LC29:
	.string	"ERROR: Failed to open DISPLAY!\n"
	.align 8
.LC30:
	.string	"ERROR: Could not get Window Attributes\n"
.LC31:
	.string	"#%04x%04x%04x\n"
.LC32:
	.string	"%d,%d,%d\n"
.LC33:
	.string	"Color: #%02x%02x%02x"
.LC34:
	.string	"#%02x%02x%02x\n"
.LC35:
	.string	"ERROR: Failed to grab color!\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 240
	mov	DWORD PTR -228[rbp], edi
	mov	QWORD PTR -240[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -216[rbp], 1
	jmp	.L62
.L83:
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -240[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -176[rbp], rax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 87
	cmp	eax, 32
	ja	.L93
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L65[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L65[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L65:
	.long	.L72-.L65
	.long	.L93-.L65
	.long	.L93-.L65
	.long	.L93-.L65
	.long	.L93-.L65
	.long	.L93-.L65
	.long	.L93-.L65
	.long	.L93-.L65
	.long	.L93-.L65
	.long	.L93-.L65
	.long	.L71-.L65
	.long	.L93-.L65
	.long	.L93-.L65
	.long	.L70-.L65
	.long	.L93-.L65
	.long	.L93-.L65
	.long	.L93-.L65
	.long	.L69-.L65
	.long	.L93-.L65
	.long	.L93-.L65
	.long	.L93-.L65
	.long	.L68-.L65
	.long	.L93-.L65
	.long	.L93-.L65
	.long	.L93-.L65
	.long	.L93-.L65
	.long	.L93-.L65
	.long	.L67-.L65
	.long	.L93-.L65
	.long	.L93-.L65
	.long	.L93-.L65
	.long	.L66-.L65
	.long	.L64-.L65
	.text
.L71:
	mov	DWORD PTR g_print_all_16_bits[rip], 1
	jmp	.L73
.L70:
	mov	DWORD PTR g_debug[rip], 1
	jmp	.L73
.L69:
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 1
	mov	edx, 3
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L74
	mov	DWORD PTR g_print_in_hex[rip], 1
	jmp	.L73
.L74:
	call	show_usage
	mov	eax, 1
	jmp	.L91
.L67:
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 1
	mov	edx, 3
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L94
	mov	DWORD PTR g_print_in_rgb[rip], 1
	jmp	.L94
.L64:
	mov	rax, QWORD PTR -176[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L78
	add	DWORD PTR -216[rbp], 1
	mov	eax, DWORD PTR -216[rbp]
	cmp	eax, DWORD PTR -228[rbp]
	jne	.L78
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L91
.L78:
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -240[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR g_window_id[rip], rax
	jmp	.L73
.L72:
	mov	edi, 0
	call	XOpenDisplay@PLT
	mov	QWORD PTR -192[rbp], rax
	cmp	QWORD PTR -192[rbp], 0
	jne	.L79
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC21[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L91
.L79:
	lea	rdx, -144[rbp]
	lea	rcx, -160[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	select_window
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	je	.L80
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	log_debug
	mov	rax, QWORD PTR stdout[rip]
	mov	rdx, QWORD PTR -168[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L80:
	mov	eax, 1
	jmp	.L91
.L68:
	mov	rax, QWORD PTR -176[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L81
	add	DWORD PTR -216[rbp], 1
	mov	eax, DWORD PTR -216[rbp]
	cmp	eax, DWORD PTR -228[rbp]
	jne	.L81
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC24[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L91
.L81:
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -240[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	r8, g_height[rip]
	lea	rcx, g_width[rip]
	lea	rdx, g_y[rip]
	lea	rsi, g_x[rip]
	mov	rdi, rax
	call	XParseGeometry@PLT
	mov	DWORD PTR -196[rbp], eax
	cmp	DWORD PTR -196[rbp], 0
	jne	.L82
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -240[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC26[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L91
.L82:
	mov	DWORD PTR g_loc_specified[rip], 1
	jmp	.L73
.L66:
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC0[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L91
.L93:
	nop
	jmp	.L73
.L94:
	nop
.L73:
	add	DWORD PTR -216[rbp], 1
.L62:
	mov	eax, DWORD PTR -216[rbp]
	cmp	eax, DWORD PTR -228[rbp]
	jl	.L83
	mov	eax, DWORD PTR g_loc_specified[rip]
	test	eax, eax
	je	.L84
	mov	rax, QWORD PTR g_window_id[rip]
	test	rax, rax
	jne	.L84
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 66
	mov	esi, 1
	lea	rdi, .LC27[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 36
	mov	esi, 1
	lea	rdi, .LC28[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L91
.L84:
	mov	edi, 0
	call	XOpenDisplay@PLT
	mov	QWORD PTR -192[rbp], rax
	lea	rdi, MXError[rip]
	call	XSetErrorHandler@PLT
	cmp	QWORD PTR -192[rbp], 0
	jne	.L85
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC29[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L85:
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	get_window_color
	mov	QWORD PTR -184[rbp], rax
	cmp	QWORD PTR -184[rbp], 0
	je	.L86
	lea	rdx, -144[rbp]
	mov	rcx, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XGetWindowAttributes@PLT
	mov	DWORD PTR -212[rbp], eax
	cmp	DWORD PTR -212[rbp], 0
	je	.L87
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, 2
	je	.L88
.L87:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 39
	mov	esi, 1
	lea	rdi, .LC30[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L91
.L88:
	mov	rcx, QWORD PTR -64[rbp]
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XQueryColor@PLT
	mov	eax, DWORD PTR g_print_all_16_bits[rip]
	test	eax, eax
	je	.L89
	movzx	eax, WORD PTR -148[rbp]
	movzx	esi, ax
	movzx	eax, WORD PTR -150[rbp]
	movzx	ecx, ax
	movzx	eax, WORD PTR -152[rbp]
	movzx	edx, ax
	mov	rax, QWORD PTR stdout[rip]
	mov	r8d, esi
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, DWORD PTR g_print_in_rgb[rip]
	test	eax, eax
	je	.L90
	movzx	eax, WORD PTR -148[rbp]
	movzx	esi, ax
	movzx	eax, WORD PTR -150[rbp]
	movzx	ecx, ax
	movzx	eax, WORD PTR -152[rbp]
	movzx	edx, ax
	mov	rax, QWORD PTR stderr[rip]
	mov	r8d, esi
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L90
.L89:
	movzx	eax, WORD PTR -152[rbp]
	shr	ax, 8
	movzx	eax, ax
	mov	DWORD PTR -208[rbp], eax
	movzx	eax, WORD PTR -150[rbp]
	shr	ax, 8
	movzx	eax, ax
	mov	DWORD PTR -204[rbp], eax
	movzx	eax, WORD PTR -148[rbp]
	shr	ax, 8
	movzx	eax, ax
	mov	DWORD PTR -200[rbp], eax
	mov	ecx, DWORD PTR -200[rbp]
	mov	edx, DWORD PTR -204[rbp]
	mov	eax, DWORD PTR -208[rbp]
	mov	esi, eax
	lea	rdi, .LC33[rip]
	mov	eax, 0
	call	log_debug
	mov	rax, QWORD PTR stdout[rip]
	mov	esi, DWORD PTR -200[rbp]
	mov	ecx, DWORD PTR -204[rbp]
	mov	edx, DWORD PTR -208[rbp]
	mov	r8d, esi
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, DWORD PTR g_print_in_rgb[rip]
	test	eax, eax
	je	.L90
	mov	rax, QWORD PTR stderr[rip]
	mov	esi, DWORD PTR -200[rbp]
	mov	ecx, DWORD PTR -204[rbp]
	mov	edx, DWORD PTR -208[rbp]
	mov	r8d, esi
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L90
.L86:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC35[rip]
	call	fwrite@PLT
.L90:
	mov	eax, 0
.L91:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L92
	call	__stack_chk_fail@PLT
.L92:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	main, .-main
	.section	.rodata
.LC36:
	.string	" -v      - show version info"
.LC37:
	.string	" -h      - show this usage"
	.align 8
.LC38:
	.string	" -hex    - print pixel value as Hex on stdout"
	.align 8
.LC39:
	.string	" -rgb    - print pixel value as RGB on stderr"
	.align 8
.LC40:
	.string	" -W      - print the Window id at mouse click"
	.align 8
.LC41:
	.string	" -w id   - window id in hex, use -l +x+y"
	.align 8
.LC42:
	.string	" -l +x+y - pixel co-ordinate. requires window id"
	.align 8
.LC43:
	.string	" -d      - show debug messages"
	.align 8
.LC44:
	.string	" -a      - Print all 16 bits RGB components of color"
	.align 8
.LC45:
	.string	"           Default is high order 8 bits of components"
.LC46:
	.string	"Example:"
	.align 8
.LC47:
	.string	"* Print pixel color in hex on stdout:"
.LC48:
	.string	"   $ grabc"
.LC49:
	.string	"* Show usage:"
.LC50:
	.string	"   $ grabc -h"
	.align 8
.LC51:
	.string	"* Print Window Id (Note the upper case W):"
.LC52:
	.string	"   $ grabc -W"
	.align 8
.LC53:
	.string	"* Print pixel color of Window iwith id 0x13234 at location 10,20"
	.align 8
.LC54:
	.string	"   $ grabc -w 0x13234 -l +10+20"
	.section	.data.rel.local,"aw"
	.align 32
	.type	options.0, @object
	.size	options.0, 160
options.0:
	.quad	.LC36
	.quad	.LC37
	.quad	.LC38
	.quad	.LC39
	.quad	.LC40
	.quad	.LC41
	.quad	.LC42
	.quad	.LC43
	.quad	.LC44
	.quad	.LC45
	.quad	.LC46
	.quad	.LC47
	.quad	.LC48
	.quad	.LC49
	.quad	.LC50
	.quad	.LC51
	.quad	.LC52
	.quad	.LC53
	.quad	.LC54
	.quad	0
	.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	"229995.c"
	.text
	.local	g_debug
	.comm	g_debug,4,4
	.data
	.align	2
	.type	g_print_in_hex, %object
	.size	g_print_in_hex, 4
g_print_in_hex:
	.word	1
	.local	g_print_in_rgb
	.comm	g_print_in_rgb,4,4
	.local	g_print_all_16_bits
	.comm	g_print_all_16_bits,4,4
	.local	g_window_id
	.comm	g_window_id,4,4
	.local	g_loc_specified
	.comm	g_loc_specified,4,4
	.align	2
	.type	g_x, %object
	.size	g_x, 4
g_x:
	.word	1
	.align	2
	.type	g_y, %object
	.size	g_y, 4
g_y:
	.word	1
	.local	g_width
	.comm	g_width,4,4
	.local	g_height
	.comm	g_height,4,4
	.local	g_cross_cursor
	.comm	g_cross_cursor,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"1.0.2\000"
	.align	2
.LC1:
	.ascii	"grabc v%s\012\000"
	.align	2
.LC2:
	.ascii	"A program to identify a pixel color of an X Window\000"
	.align	2
.LC3:
	.ascii	"by muquit@muquit.com https://www.muquit.com/\012\000"
	.align	2
.LC4:
	.ascii	"Usage: grabc [options]\000"
	.align	2
.LC5:
	.ascii	"Where the options are:\000"
	.align	2
.LC6:
	.ascii	"%s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	show_usage, %function
show_usage:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r0, #10
	bl	putchar
	ldr	r1, .L4
	ldr	r0, .L4+4
	bl	printf
	ldr	r0, .L4+8
	bl	puts
	ldr	r0, .L4+12
	bl	puts
	ldr	r0, .L4+16
	bl	puts
	ldr	r0, .L4+20
	bl	puts
	ldr	r3, .L4+24
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, .L4+28
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L4+32
	bl	fprintf
	ldr	r3, .L4+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	options.12659
	.word	stdout
	.word	.LC6
	.size	show_usage, .-show_usage
	.section	.rodata
	.align	2
.LC7:
	.ascii	"[Debug]: \000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	log_debug, %function
log_debug:
	@ args = 4, pretend = 16, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, [fp, #4]
	str	r3, [fp, #-16]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L11+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L10
	add	r3, fp, #8
	str	r3, [fp, #-12]
	ldr	r3, .L11+8
	ldr	r3, [r3]
	mov	r2, #9
	mov	r1, #1
	ldr	r0, .L11+12
	bl	fwrite
	ldr	r3, .L11+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	vfprintf
	ldr	r3, .L11+8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	b	.L6
.L10:
	nop
.L6:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L12:
	.align	2
.L11:
	.word	.LC8
	.word	g_debug
	.word	stderr
	.word	.LC7
	.size	log_debug, .-log_debug
	.section	.rodata
	.align	2
.LC9:
	.ascii	"ERROR: Failed to create Cross Cursor!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_cross_cursor, %function
get_cross_cursor:
	@ 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, .L16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L14
	mov	r1, #130
	ldr	r0, [fp, #-8]
	bl	XCreateFontCursor
	mov	r3, r0
	ldr	r2, .L16
	str	r3, [r2]
	ldr	r3, .L16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L16+4
	ldr	r3, [r3]
	mov	r2, #38
	mov	r1, #1
	ldr	r0, .L16+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L14:
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	g_cross_cursor
	.word	stderr
	.word	.LC9
	.size	get_cross_cursor, .-get_cross_cursor
	.section	.rodata
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	grab_mouse, %function
grab_mouse:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L25+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L19
	ldr	r3, .L25+4
	ldr	r3, [r3]
	b	.L23
.L19:
	ldr	r0, [fp, #-120]
	bl	get_cross_cursor
	str	r0, [fp, #-116]
	mov	r3, #0
	str	r3, [sp, #16]
	ldr	r3, [fp, #-116]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-124]
	str	r3, [sp, #8]
	mov	r3, #1
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #4
	mov	r2, #0
	ldr	r1, [fp, #-124]
	ldr	r0, [fp, #-120]
	bl	XGrabPointer
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L21
	mov	r2, #0
	mov	r1, #1
	ldr	r0, [fp, #-120]
	bl	XAllowEvents
	sub	r3, fp, #104
	mov	r2, #4
	ldr	r1, [fp, #-124]
	ldr	r0, [fp, #-120]
	bl	XWindowEvent
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-108]
	b	.L23
.L21:
	ldr	r3, [fp, #-124]
.L23:
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC10
	.word	g_window_id
	.size	grab_mouse, .-grab_mouse
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	upgrab_mouse, %function
upgrab_mouse:
	@ 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, .L30
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L29
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	XUngrabPointer
.L29:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	g_window_id
	.size	upgrab_mouse, .-upgrab_mouse
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Returning passing window: %lx\000"
	.align	2
.LC12:
	.ascii	"ERROR: Failed to get target window, getting root wi"
	.ascii	"ndow!\012\000"
	.align	2
.LC13:
	.ascii	"ERROR: Failed to grab mouse pointer!\012\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	select_window, %function
select_window:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #160
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	str	r2, [fp, #-136]
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L40+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L33
	ldr	r3, .L40+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L33
	ldr	r3, .L40+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L40+12
	bl	log_debug
	ldr	r3, .L40+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-132]
	str	r2, [r3]
	ldr	r3, .L40+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-136]
	str	r2, [r3]
	ldr	r3, .L40+4
	ldr	r3, [r3]
	b	.L38
.L33:
	mov	r3, #0
	str	r3, [fp, #-124]
	ldr	r0, [fp, #-128]
	bl	get_cross_cursor
	str	r0, [fp, #-120]
	ldr	r0, [fp, #-128]
	bl	XDefaultScreen
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-128]
	bl	XRootWindow
	str	r0, [fp, #-116]
	mov	r3, #0
	str	r3, [sp, #16]
	ldr	r3, [fp, #-120]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-116]
	str	r3, [sp, #8]
	mov	r3, #1
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #4
	mov	r2, #0
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-128]
	bl	XGrabPointer
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L35
	mov	r2, #0
	mov	r1, #1
	ldr	r0, [fp, #-128]
	bl	XAllowEvents
	sub	r3, fp, #104
	mov	r2, #4
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-128]
	bl	XWindowEvent
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-104]
	cmp	r3, #4
	bne	.L36
	sub	r3, fp, #104
	add	r2, r3, #32
	sub	r3, fp, #104
	add	r3, r3, #36
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-108]
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-128]
	bl	findSubWindow
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	bne	.L37
	ldr	r3, .L40+24
	ldr	r3, [r3]
	mov	r2, #57
	mov	r1, #1
	ldr	r0, .L40+28
	bl	fwrite
	ldr	r3, [fp, #-116]
	str	r3, [fp, #-124]
.L37:
	ldr	r3, .L40+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L36
	mov	r1, #0
	ldr	r0, [fp, #-128]
	bl	XUngrabPointer
	b	.L36
.L35:
	ldr	r3, .L40+24
	ldr	r3, [r3]
	mov	r2, #37
	mov	r1, #1
	ldr	r0, .L40+32
	bl	fwrite
	mov	r0, #1
	bl	exit
.L36:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-132]
	str	r2, [r3]
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-136]
	str	r2, [r3]
	ldr	r3, [fp, #-124]
.L38:
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC14
	.word	g_window_id
	.word	g_loc_specified
	.word	.LC11
	.word	g_x
	.word	g_y
	.word	stderr
	.word	.LC12
	.word	.LC13
	.size	select_window, .-select_window
	.section	.rodata
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	findSubWindow, %function
findSubWindow:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-40]
	ldr	r3, .L52
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L43
	mov	r3, #0
	b	.L50
.L43:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L45
	mov	r3, #0
	b	.L50
.L45:
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-12]
	b	.L46
.L48:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-40]
	str	r2, [r3]
.L46:
	ldr	r3, [fp, #-36]
	ldr	r1, [r3]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	sub	r2, fp, #12
	str	r2, [sp, #12]
	sub	r2, fp, #16
	str	r2, [sp, #8]
	sub	r2, fp, #20
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r1
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	XTranslateCoordinates
	mov	r3, r0
	cmp	r3, #0
	beq	.L47
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L48
.L47:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L49
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-12]
.L49:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-40]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
.L50:
	ldr	r2, .L52
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L51
	bl	__stack_chk_fail
.L51:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC15
	.size	findSubWindow, .-findSubWindow
	.section	.rodata
	.align	2
.LC16:
	.ascii	"  Root Window Id: 0x%08lx\000"
	.align	2
.LC17:
	.ascii	"Target Window Id: 0x%08lx  X,Y: +%d+%d\000"
	.align	2
.LC18:
	.ascii	"Could not get XImage from Window: 0x%08lx\000"
	.align	2
.LC19:
	.ascii	"Trying to get XImage from root window: 0x%08lx\000"
	.align	2
.LC20:
	.ascii	"Could not get XImage from target or root window\000"
	.align	2
.LC21:
	.ascii	"OK successfully got XImage from root window\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_window_color, %function
get_window_color:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L61
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-32]
	bl	XDefaultScreen
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	XRootWindow
	str	r0, [fp, #-12]
	sub	r2, fp, #24
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	select_window
	str	r0, [fp, #-20]
	ldr	r1, [fp, #-12]
	ldr	r0, .L61+4
	bl	log_debug
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, .L61+8
	bl	log_debug
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L55
	mov	r3, #0
	b	.L59
.L55:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	mov	r1, #2
	str	r1, [sp, #12]
	mvn	r1, #0
	str	r1, [sp, #8]
	mov	r1, #1
	str	r1, [sp, #4]
	mov	r1, #1
	str	r1, [sp]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-32]
	bl	XGetImage
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L57
	ldr	r1, [fp, #-20]
	ldr	r0, .L61+12
	bl	log_debug
	ldr	r1, [fp, #-12]
	ldr	r0, .L61+16
	bl	log_debug
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	mov	r1, #2
	str	r1, [sp, #12]
	mvn	r1, #0
	str	r1, [sp, #8]
	mov	r1, #1
	str	r1, [sp, #4]
	mov	r1, #1
	str	r1, [sp]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-32]
	bl	XGetImage
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L58
	ldr	r0, .L61+20
	bl	log_debug
	mov	r3, #0
	b	.L59
.L58:
	ldr	r0, .L61+24
	bl	log_debug
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-20]
.L57:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #72]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-16]
	blx	r3
	mov	r2, r0
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #68]
	ldr	r0, [fp, #-16]
	blx	r3
	ldr	r3, [fp, #-20]
.L59:
	ldr	r2, .L61
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L60
	bl	__stack_chk_fail
.L60:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L62:
	.align	2
.L61:
	.word	.LC22
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	get_window_color, .-get_window_color
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	MXError, %function
MXError:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3, #16]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #11
	beq	.L64
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L65
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3, #17]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L65
.L64:
	mov	r3, #0
	b	.L66
.L65:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3, #17]	@ zero_extendqisi2
	cmp	r3, #91
	beq	.L67
	cmp	r3, #91
	bgt	.L68
	cmp	r3, #15
	beq	.L69
	cmp	r3, #15
	bgt	.L68
	cmp	r3, #3
	beq	.L69
	cmp	r3, #14
	bne	.L68
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3, #16]	@ zero_extendqisi2
	cmp	r3, #9
	bne	.L73
	mov	r3, #0
	b	.L66
.L69:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3, #16]	@ zero_extendqisi2
	cmp	r3, #3
	bne	.L74
	mov	r3, #0
	b	.L66
.L67:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3, #16]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L75
	mov	r3, #0
	b	.L66
.L73:
	nop
	b	.L68
.L74:
	nop
	b	.L68
.L75:
	nop
.L68:
	mov	r3, #1
.L66:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	MXError, .-MXError
	.section	.rodata
	.align	2
.LC23:
	.ascii	"hex\000"
	.align	2
.LC24:
	.ascii	"rgb\000"
	.align	2
.LC25:
	.ascii	"ERROR: Missing Window id\012\000"
	.align	2
.LC26:
	.ascii	"ERROR: Could not open Display\012\000"
	.align	2
.LC27:
	.ascii	"Window ID: 0x%08lx\000"
	.align	2
.LC28:
	.ascii	"0x%lx\012\000"
	.align	2
.LC29:
	.ascii	"ERROR: Missing location +x+y\012\000"
	.align	2
.LC30:
	.ascii	"ERROR: Could not parse location: %s\012\000"
	.align	2
.LC31:
	.ascii	"Example: -l +10+20\012\000"
	.align	2
.LC32:
	.ascii	"ERROR: Please specify window id with -w in hex to u"
	.ascii	"se this option\012\000"
	.align	2
.LC33:
	.ascii	"Use -W option to find the Window Id\012\000"
	.align	2
.LC34:
	.ascii	"ERROR: Failed to open DISPLAY!\012\000"
	.align	2
.LC35:
	.ascii	"ERROR: Could not get Window Attributes\012\000"
	.align	2
.LC36:
	.ascii	"#%04x%04x%04x\012\000"
	.align	2
.LC37:
	.ascii	"%d,%d,%d\012\000"
	.align	2
.LC38:
	.ascii	"Color: #%02x%02x%02x\000"
	.align	2
.LC39:
	.ascii	"#%02x%02x%02x\012\000"
	.align	2
.LC40:
	.ascii	"ERROR: Failed to grab color!\012\000"
	.align	2
.LC41:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	str	r0, [fp, #-160]
	str	r1, [fp, #-164]
	ldr	r3, .L110
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-152]
	b	.L77
.L98:
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-164]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #87
	cmp	r3, #32
	ldrls	pc, [pc, r3, asl #2]
	b	.L108
.L80:
	.word	.L87
	.word	.L108
	.word	.L108
	.word	.L108
	.word	.L108
	.word	.L108
	.word	.L108
	.word	.L108
	.word	.L108
	.word	.L108
	.word	.L86
	.word	.L108
	.word	.L108
	.word	.L85
	.word	.L108
	.word	.L108
	.word	.L108
	.word	.L84
	.word	.L108
	.word	.L108
	.word	.L108
	.word	.L83
	.word	.L108
	.word	.L108
	.word	.L108
	.word	.L108
	.word	.L108
	.word	.L82
	.word	.L108
	.word	.L108
	.word	.L108
	.word	.L81
	.word	.L79
.L86:
	ldr	r3, .L110+4
	mov	r2, #1
	str	r2, [r3]
	b	.L88
.L85:
	ldr	r3, .L110+8
	mov	r2, #1
	str	r2, [r3]
	b	.L88
.L84:
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	mov	r2, #3
	mov	r1, r3
	ldr	r0, .L110+12
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L89
	ldr	r3, .L110+16
	mov	r2, #1
	str	r2, [r3]
	b	.L88
.L89:
	bl	show_usage
	mov	r3, #1
	b	.L106
.L82:
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	mov	r2, #3
	mov	r1, r3
	ldr	r0, .L110+20
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L109
	ldr	r3, .L110+24
	mov	r2, #1
	str	r2, [r3]
	b	.L109
.L79:
	ldr	r3, [fp, #-124]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L93
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
	ldr	r2, [fp, #-152]
	ldr	r3, [fp, #-160]
	cmp	r2, r3
	bne	.L93
	ldr	r3, .L110+28
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L110+32
	bl	fwrite
	mov	r3, #1
	b	.L106
.L93:
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-164]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L110+36
	str	r2, [r3]
	b	.L88
.L87:
	mov	r0, #0
	bl	XOpenDisplay
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	bne	.L94
	ldr	r3, .L110+28
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L110+40
	bl	fwrite
	mov	r3, #1
	b	.L106
.L94:
	sub	r2, fp, #100
	sub	r3, fp, #112
	mov	r1, r3
	ldr	r0, [fp, #-148]
	bl	select_window
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	beq	.L95
	ldr	r1, [fp, #-116]
	ldr	r0, .L110+44
	bl	log_debug
	ldr	r3, .L110+48
	ldr	r3, [r3]
	ldr	r2, [fp, #-116]
	ldr	r1, .L110+52
	mov	r0, r3
	bl	fprintf
.L95:
	mov	r3, #1
	b	.L106
.L83:
	ldr	r3, [fp, #-124]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L96
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
	ldr	r2, [fp, #-152]
	ldr	r3, [fp, #-160]
	cmp	r2, r3
	bne	.L96
	ldr	r3, .L110+28
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L110+56
	bl	fwrite
	mov	r3, #1
	b	.L106
.L96:
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-164]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, .L110+60
	str	r3, [sp]
	ldr	r3, .L110+64
	ldr	r2, .L110+68
	ldr	r1, .L110+72
	bl	XParseGeometry
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L97
	ldr	r3, .L110+28
	ldr	r0, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-164]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L110+76
	bl	fprintf
	ldr	r3, .L110+28
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L110+80
	bl	fwrite
	mov	r3, #1
	b	.L106
.L97:
	ldr	r3, .L110+84
	mov	r2, #1
	str	r2, [r3]
	b	.L88
.L81:
	ldr	r3, .L110+28
	ldr	r3, [r3]
	ldr	r2, .L110+88
	ldr	r1, .L110+92
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L106
.L108:
	nop
	b	.L88
.L109:
	nop
.L88:
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L77:
	ldr	r2, [fp, #-152]
	ldr	r3, [fp, #-160]
	cmp	r2, r3
	blt	.L98
	ldr	r3, .L110+84
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L99
	ldr	r3, .L110+36
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L99
	ldr	r3, .L110+28
	ldr	r3, [r3]
	mov	r2, #66
	mov	r1, #1
	ldr	r0, .L110+96
	bl	fwrite
	ldr	r3, .L110+28
	ldr	r3, [r3]
	mov	r2, #36
	mov	r1, #1
	ldr	r0, .L110+100
	bl	fwrite
	mov	r3, #1
	b	.L106
.L99:
	mov	r0, #0
	bl	XOpenDisplay
	str	r0, [fp, #-148]
	ldr	r0, .L110+104
	bl	XSetErrorHandler
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	bne	.L100
	ldr	r3, .L110+28
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L110+108
	bl	fwrite
	mov	r0, #1
	bl	exit
.L100:
	sub	r3, fp, #112
	mov	r1, r3
	ldr	r0, [fp, #-148]
	bl	get_window_color
	str	r0, [fp, #-144]
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	beq	.L101
	sub	r3, fp, #100
	mov	r2, r3
	ldr	r1, [fp, #-144]
	ldr	r0, [fp, #-148]
	bl	XGetWindowAttributes
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L102
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	beq	.L103
.L102:
	ldr	r3, .L110+28
	ldr	r3, [r3]
	mov	r2, #39
	mov	r1, #1
	ldr	r0, .L110+112
	bl	fwrite
	mov	r3, #1
	b	.L106
.L103:
	ldr	r3, [fp, #-40]
	sub	r2, fp, #112
	mov	r1, r3
	ldr	r0, [fp, #-148]
	bl	XQueryColor
	ldr	r3, .L110+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L104
	ldr	r3, .L110+48
	ldr	r0, [r3]
	ldrh	r3, [fp, #-108]
	mov	r2, r3
	ldrh	r3, [fp, #-106]
	mov	r1, r3
	ldrh	r3, [fp, #-104]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L110+116
	bl	fprintf
	ldr	r3, .L110+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L110+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L105
	ldr	r3, .L110+28
	ldr	r0, [r3]
	ldrh	r3, [fp, #-108]
	mov	r2, r3
	ldrh	r3, [fp, #-106]
	mov	r1, r3
	ldrh	r3, [fp, #-104]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L110+120
	bl	fprintf
	b	.L105
.L104:
	ldrh	r3, [fp, #-108]
	lsr	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	str	r3, [fp, #-136]
	ldrh	r3, [fp, #-106]
	lsr	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	str	r3, [fp, #-132]
	ldrh	r3, [fp, #-104]
	lsr	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-132]
	ldr	r1, [fp, #-136]
	ldr	r0, .L110+124
	bl	log_debug
	ldr	r3, .L110+48
	ldr	r0, [r3]
	ldr	r3, [fp, #-128]
	str	r3, [sp]
	ldr	r3, [fp, #-132]
	ldr	r2, [fp, #-136]
	ldr	r1, .L110+128
	bl	fprintf
	ldr	r3, .L110+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L110+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L105
	ldr	r3, .L110+28
	ldr	r0, [r3]
	ldr	r3, [fp, #-128]
	str	r3, [sp]
	ldr	r3, [fp, #-132]
	ldr	r2, [fp, #-136]
	ldr	r1, .L110+120
	bl	fprintf
	b	.L105
.L101:
	ldr	r3, .L110+28
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L110+132
	bl	fwrite
.L105:
	mov	r3, #0
.L106:
	ldr	r2, .L110
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L107
	bl	__stack_chk_fail
.L107:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L111:
	.align	2
.L110:
	.word	.LC41
	.word	g_print_all_16_bits
	.word	g_debug
	.word	.LC23
	.word	g_print_in_hex
	.word	.LC24
	.word	g_print_in_rgb
	.word	stderr
	.word	.LC25
	.word	g_window_id
	.word	.LC26
	.word	.LC27
	.word	stdout
	.word	.LC28
	.word	.LC29
	.word	g_height
	.word	g_width
	.word	g_y
	.word	g_x
	.word	.LC30
	.word	.LC31
	.word	g_loc_specified
	.word	.LC0
	.word	.LC1
	.word	.LC32
	.word	.LC33
	.word	MXError
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.size	main, .-main
	.section	.rodata
	.align	2
.LC42:
	.ascii	" -v      - show version info\000"
	.align	2
.LC43:
	.ascii	" -h      - show this usage\000"
	.align	2
.LC44:
	.ascii	" -hex    - print pixel value as Hex on stdout\000"
	.align	2
.LC45:
	.ascii	" -rgb    - print pixel value as RGB on stderr\000"
	.align	2
.LC46:
	.ascii	" -W      - print the Window id at mouse click\000"
	.align	2
.LC47:
	.ascii	" -w id   - window id in hex, use -l +x+y\000"
	.align	2
.LC48:
	.ascii	" -l +x+y - pixel co-ordinate. requires window id\000"
	.align	2
.LC49:
	.ascii	" -d      - show debug messages\000"
	.align	2
.LC50:
	.ascii	" -a      - Print all 16 bits RGB components of colo"
	.ascii	"r\000"
	.align	2
.LC51:
	.ascii	"           Default is high order 8 bits of componen"
	.ascii	"ts\000"
	.align	2
.LC52:
	.ascii	"Example:\000"
	.align	2
.LC53:
	.ascii	"* Print pixel color in hex on stdout:\000"
	.align	2
.LC54:
	.ascii	"   $ grabc\000"
	.align	2
.LC55:
	.ascii	"* Show usage:\000"
	.align	2
.LC56:
	.ascii	"   $ grabc -h\000"
	.align	2
.LC57:
	.ascii	"* Print Window Id (Note the upper case W):\000"
	.align	2
.LC58:
	.ascii	"   $ grabc -W\000"
	.align	2
.LC59:
	.ascii	"* Print pixel color of Window iwith id 0x13234 at l"
	.ascii	"ocation 10,20\000"
	.align	2
.LC60:
	.ascii	"   $ grabc -w 0x13234 -l +10+20\000"
	.data
	.align	2
	.type	options.12659, %object
	.size	options.12659, 80
options.12659:
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.word	.LC53
	.word	.LC54
	.word	.LC55
	.word	.LC56
	.word	.LC57
	.word	.LC58
	.word	.LC59
	.word	.LC60
	.word	0
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
