	.file	"699974.c"
	.intel_syntax noprefix
	.text
	.local	_xrecord_info_data
	.comm	_xrecord_info_data,24,16
	.section	.data.rel.local,"aw"
	.align 8
	.type	xrecord_info, @object
	.size	xrecord_info, 8
xrecord_info:
	.quad	_xrecord_info_data
	.section	.rodata
.LC0:
	.string	"RECORD"
	.section	.data.rel.local
	.align 8
	.type	xrecord_extension_name, @object
	.size	xrecord_extension_name, 8
xrecord_extension_name:
	.quad	.LC0
	.text
	.type	close_display, @function
close_display:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	find_display
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	rdx
.L2:
	cmp	QWORD PTR -32[rbp], 0
	je	.L3
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -48[rbp], rax
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	XFree@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 16[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -48[rbp], rax
.L4:
	cmp	QWORD PTR -48[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	mov	QWORD PTR -40[rbp], rax
	jmp	.L6
.L8:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 20[rax]
	test	eax, eax
	jne	.L7
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	XFree@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	XFree@PLT
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -40[rbp], rax
.L6:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L8
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L9
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	jne	.L9
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	XFree@PLT
	jmp	.L3
.L9:
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 20[rax], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], 0
.L3:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L10
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	rdx
.L10:
	mov	rax, QWORD PTR xrecord_info[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XextRemoveDisplay@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	close_display, .-close_display
	.type	alloc_mem_cache, @function
alloc_mem_cache:
.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	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 20[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
.L13:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	alloc_mem_cache, .-alloc_mem_cache
	.section	.rodata
	.align 8
.LC1:
	.string	"XRecordBadContext (Not a defined RECORD context)"
	.section	.data.rel.local
	.align 8
	.type	xrecord_error_list, @object
	.size	xrecord_error_list, 8
xrecord_error_list:
	.quad	.LC1
	.section	.rodata
.LC2:
	.string	"%s.%d"
.LC3:
	.string	"XProtoError"
	.text
	.type	error_string, @function
error_string:
.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, 304
	mov	QWORD PTR -280[rbp], rdi
	mov	DWORD PTR -284[rbp], esi
	mov	QWORD PTR -296[rbp], rdx
	mov	QWORD PTR -304[rbp], rcx
	mov	DWORD PTR -288[rbp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -296[rbp]
	mov	eax, DWORD PTR 12[rax]
	sub	DWORD PTR -284[rbp], eax
	cmp	DWORD PTR -284[rbp], 0
	js	.L16
	cmp	DWORD PTR -284[rbp], 0
	jg	.L16
	mov	rdx, QWORD PTR xrecord_extension_name[rip]
	mov	ecx, DWORD PTR -284[rbp]
	lea	rax, -272[rbp]
	mov	r8d, ecx
	mov	rcx, rdx
	lea	rdx, .LC2[rip]
	mov	esi, 256
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	eax, DWORD PTR -284[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, xrecord_error_list[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	edi, DWORD PTR -288[rbp]
	mov	rsi, QWORD PTR -304[rbp]
	lea	rdx, -272[rbp]
	mov	rax, QWORD PTR -280[rbp]
	mov	r9d, edi
	mov	r8, rsi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	XGetErrorDatabaseText@PLT
	mov	rax, QWORD PTR -304[rbp]
	jmp	.L17
.L16:
	mov	eax, 0
.L17:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	error_string, .-error_string
	.section	.data.rel.local
	.align 32
	.type	xrecord_extension_hooks, @object
	.size	xrecord_extension_hooks, 88
xrecord_extension_hooks:
	.quad	0
	.quad	0
	.quad	0
	.quad	0
	.quad	0
	.quad	0
	.quad	close_display
	.quad	0
	.quad	0
	.quad	0
	.quad	error_string
	.text
	.type	find_display, @function
find_display:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR xrecord_info[rip]
	test	rax, rax
	jne	.L20
	call	XextCreateExtension@PLT
	mov	QWORD PTR xrecord_info[rip], rax
	mov	rax, QWORD PTR xrecord_info[rip]
	test	rax, rax
	jne	.L20
	mov	eax, 0
	jmp	.L21
.L20:
	mov	rax, QWORD PTR xrecord_info[rip]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XextFindDisplay@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L22
	call	alloc_mem_cache
	mov	rcx, rax
	mov	rdx, QWORD PTR xrecord_extension_name[rip]
	mov	rax, QWORD PTR xrecord_info[rip]
	mov	rsi, QWORD PTR -24[rbp]
	mov	r9, rcx
	mov	r8d, 0
	lea	rcx, xrecord_extension_hooks[rip]
	mov	rdi, rax
	call	XextAddDisplay@PLT
	mov	QWORD PTR -8[rbp], rax
.L22:
	mov	rax, QWORD PTR -8[rbp]
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	find_display, .-find_display
	.type	SendRange, @function
SendRange:
.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, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -68[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -36[rbp], 24
	jmp	.L24
.L27:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -32[rbp], al
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 1[rax]
	mov	BYTE PTR -31[rbp], al
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 2[rax]
	mov	BYTE PTR -30[rbp], al
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 3[rax]
	mov	BYTE PTR -29[rbp], al
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 4[rax]
	mov	BYTE PTR -28[rbp], al
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 5[rax]
	mov	BYTE PTR -27[rbp], al
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, WORD PTR 6[rax]
	mov	WORD PTR -26[rbp], ax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, WORD PTR 8[rax]
	mov	WORD PTR -24[rbp], ax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 10[rax]
	mov	BYTE PTR -22[rbp], al
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 11[rax]
	mov	BYTE PTR -21[rbp], al
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, WORD PTR 12[rax]
	mov	WORD PTR -20[rbp], ax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, WORD PTR 14[rax]
	mov	WORD PTR -18[rbp], ax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 16[rax]
	mov	BYTE PTR -16[rbp], al
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 17[rax]
	mov	BYTE PTR -15[rbp], al
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 18[rax]
	mov	BYTE PTR -14[rbp], al
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 19[rax]
	mov	BYTE PTR -13[rbp], al
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 20[rax]
	mov	BYTE PTR -12[rbp], al
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 21[rax]
	mov	BYTE PTR -11[rbp], al
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 24[rax]
	mov	BYTE PTR -10[rbp], al
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 28[rax]
	mov	BYTE PTR -9[rbp], al
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 176[rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 184[rax]
	cmp	rdx, rax
	ja	.L25
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 176[rax]
	lea	rcx, -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 176[rax]
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 3
	and	eax, -4
	cdqe
	add	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 176[rax], rdx
	jmp	.L26
.L25:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	lea	rcx, -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	_XSend@PLT
.L26:
	add	QWORD PTR -64[rbp], 8
.L24:
	mov	eax, DWORD PTR -68[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -68[rbp], edx
	test	eax, eax
	jne	.L27
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	SendRange, .-SendRange
	.globl	XRecordIdBaseMask
	.type	XRecordIdBaseMask, @function
XRecordIdBaseMask:
.LFB11:
	.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 -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 48[rax]
	not	rax
	and	eax, 536870911
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	XRecordIdBaseMask, .-XRecordIdBaseMask
	.globl	XRecordQueryVersion
	.type	XRecordQueryVersion, @function
XRecordQueryVersion:
.LFB12:
	.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, 104
	.cfi_offset 3, -24
	mov	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	mov	QWORD PTR -104[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	find_display
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	je	.L32
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L33
.L32:
	mov	rdx, QWORD PTR xrecord_extension_name[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XMissingExtension@PLT
	mov	eax, 0
	jmp	.L43
.L33:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L35
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	rdx
.L35:
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	_XGetRequest@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	eax, DWORD PTR 4[rax]
	mov	BYTE PTR [rbx], al
	mov	BYTE PTR 1[rbx], 0
	mov	WORD PTR 4[rbx], 1
	mov	WORD PTR 6[rbx], 13
	lea	rsi, -64[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	ecx, 1
	mov	edx, 0
	mov	rdi, rax
	call	_XReply@PLT
	test	eax, eax
	jne	.L36
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L37
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	rdx
.L37:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 208[rax]
	test	rax, rax
	je	.L38
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR 208[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	rdx
.L38:
	mov	eax, 0
	jmp	.L43
.L36:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L39
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	rdx
.L39:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 208[rax]
	test	rax, rax
	je	.L40
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR 208[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	rdx
.L40:
	movzx	eax, WORD PTR -56[rbp]
	movzx	edx, ax
	mov	rax, QWORD PTR -96[rbp]
	mov	DWORD PTR [rax], edx
	movzx	eax, WORD PTR -54[rbp]
	movzx	edx, ax
	mov	rax, QWORD PTR -104[rbp]
	mov	DWORD PTR [rax], edx
	movzx	eax, WORD PTR -56[rbp]
	cmp	ax, 1
	jne	.L41
	movzx	eax, WORD PTR -54[rbp]
	cmp	ax, 11
	jbe	.L41
	mov	eax, 1
	jmp	.L43
.L41:
	mov	eax, 0
.L43:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	XRecordQueryVersion, .-XRecordQueryVersion
	.globl	XRecordCreateContext
	.type	XRecordCreateContext, @function
XRecordCreateContext:
.LFB13:
	.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, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	QWORD PTR -56[rbp], rdx
	mov	DWORD PTR -48[rbp], ecx
	mov	QWORD PTR -64[rbp], r8
	mov	DWORD PTR -68[rbp], r9d
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	find_display
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -48[rbp]
	sal	eax, 2
	mov	DWORD PTR -28[rbp], eax
	cmp	QWORD PTR -24[rbp], 0
	je	.L46
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L47
.L46:
	mov	rdx, QWORD PTR xrecord_extension_name[rip]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XMissingExtension@PLT
	mov	eax, 0
	jmp	.L48
.L47:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L49
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	rdx
.L49:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 20
	mov	esi, 1
	mov	rdi, rax
	call	_XGetRequest@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	eax, DWORD PTR 4[rax]
	mov	BYTE PTR [rbx], al
	mov	BYTE PTR 1[rbx], 1
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 72[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	rdx
	mov	DWORD PTR 4[rbx], eax
	movzx	ecx, WORD PTR 2[rbx]
	mov	edx, DWORD PTR -68[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	sal	eax, 2
	sar	eax, 2
	add	eax, ecx
	mov	WORD PTR 2[rbx], ax
	mov	eax, DWORD PTR -44[rbp]
	mov	BYTE PTR 8[rbx], al
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR 16[rbx], eax
	mov	edx, DWORD PTR -28[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	_XData32@PLT
	mov	edx, DWORD PTR -68[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	SendRange
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L50
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	rdx
.L50:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 208[rax]
	test	rax, rax
	je	.L51
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 208[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	rdx
.L51:
	mov	eax, DWORD PTR 4[rbx]
	mov	eax, eax
.L48:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	XRecordCreateContext, .-XRecordCreateContext
	.globl	XRecordAllocRange
	.type	XRecordAllocRange, @function
XRecordAllocRange:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	esi, 32
	mov	edi, 1
	call	calloc@PLT
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	XRecordAllocRange, .-XRecordAllocRange
	.globl	XRecordRegisterClients
	.type	XRecordRegisterClients, @function
XRecordRegisterClients:
.LFB15:
	.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, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	QWORD PTR -64[rbp], rcx
	mov	DWORD PTR -56[rbp], r8d
	mov	QWORD PTR -72[rbp], r9
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	find_display
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -56[rbp]
	sal	eax, 2
	mov	DWORD PTR -28[rbp], eax
	cmp	QWORD PTR -24[rbp], 0
	je	.L55
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L56
.L55:
	mov	rdx, QWORD PTR xrecord_extension_name[rip]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XMissingExtension@PLT
	mov	eax, 0
	jmp	.L57
.L56:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L58
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	rdx
.L58:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 20
	mov	esi, 2
	mov	rdi, rax
	call	_XGetRequest@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	eax, DWORD PTR 4[rax]
	mov	BYTE PTR [rbx], al
	mov	BYTE PTR 1[rbx], 2
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 4[rbx], eax
	movzx	ecx, WORD PTR 2[rbx]
	mov	edx, DWORD PTR 16[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	eax, DWORD PTR -56[rbp]
	add	eax, edx
	sal	eax, 2
	sar	eax, 2
	add	eax, ecx
	mov	WORD PTR 2[rbx], ax
	mov	eax, DWORD PTR -52[rbp]
	mov	BYTE PTR 8[rbx], al
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR 16[rbp]
	mov	DWORD PTR 16[rbx], eax
	mov	edx, DWORD PTR -28[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	_XData32@PLT
	mov	rcx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	SendRange
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L59
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	rdx
.L59:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 208[rax]
	test	rax, rax
	je	.L60
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 208[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	rdx
.L60:
	mov	eax, 1
.L57:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	XRecordRegisterClients, .-XRecordRegisterClients
	.globl	XRecordUnregisterClients
	.type	XRecordUnregisterClients, @function
XRecordUnregisterClients:
.LFB16:
	.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, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	DWORD PTR -60[rbp], ecx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	find_display
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -60[rbp]
	sal	eax, 2
	mov	DWORD PTR -28[rbp], eax
	cmp	QWORD PTR -24[rbp], 0
	je	.L62
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L63
.L62:
	mov	rdx, QWORD PTR xrecord_extension_name[rip]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XMissingExtension@PLT
	mov	eax, 0
	jmp	.L64
.L63:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L65
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	rdx
.L65:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 12
	mov	esi, 3
	mov	rdi, rax
	call	_XGetRequest@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	eax, DWORD PTR 4[rax]
	mov	BYTE PTR [rbx], al
	mov	BYTE PTR 1[rbx], 3
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 4[rbx], eax
	movzx	edx, WORD PTR 2[rbx]
	mov	eax, DWORD PTR -60[rbp]
	add	eax, edx
	mov	WORD PTR 2[rbx], ax
	mov	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR 8[rbx], eax
	mov	edx, DWORD PTR -28[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	_XData32@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L66
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	rdx
.L66:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 208[rax]
	test	rax, rax
	je	.L67
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 208[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	rdx
.L67:
	mov	eax, 1
.L64:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	XRecordUnregisterClients, .-XRecordUnregisterClients
	.type	WireToLibRange, @function
WireToLibRange:
.LFB17:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 1[rax], dl
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR 2[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 2[rax], dl
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR 3[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 3[rax], dl
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR 4[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 4[rax], dl
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR 5[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 5[rax], dl
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, WORD PTR 6[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	WORD PTR 6[rax], dx
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, WORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	WORD PTR 8[rax], dx
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR 10[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 10[rax], dl
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR 11[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 11[rax], dl
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, WORD PTR 12[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	WORD PTR 12[rax], dx
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, WORD PTR 14[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	WORD PTR 14[rax], dx
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR 16[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 16[rax], dl
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR 17[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 17[rax], dl
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR 18[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 18[rax], dl
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR 19[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 19[rax], dl
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR 20[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 20[rax], dl
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR 21[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 21[rax], dl
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 22[rax]
	movzx	edx, al
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 23[rax]
	movzx	edx, al
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 28[rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	WireToLibRange, .-WireToLibRange
	.globl	XRecordGetContext
	.type	XRecordGetContext, @function
XRecordGetContext:
.LFB18:
	.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, 184
	.cfi_offset 3, -24
	mov	QWORD PTR -168[rbp], rdi
	mov	QWORD PTR -176[rbp], rsi
	mov	QWORD PTR -184[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	find_display
	mov	QWORD PTR -120[rbp], rax
	cmp	QWORD PTR -120[rbp], 0
	je	.L70
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L71
.L70:
	mov	rdx, QWORD PTR xrecord_extension_name[rip]
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XMissingExtension@PLT
	mov	eax, 0
	jmp	.L101
.L71:
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L73
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	rdx
.L73:
	mov	rax, QWORD PTR -168[rbp]
	mov	edx, 8
	mov	esi, 4
	mov	rdi, rax
	call	_XGetRequest@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	eax, DWORD PTR 4[rax]
	mov	BYTE PTR [rbx], al
	mov	BYTE PTR 1[rbx], 4
	mov	rax, QWORD PTR -176[rbp]
	mov	DWORD PTR 4[rbx], eax
	lea	rsi, -64[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	_XReply@PLT
	test	eax, eax
	jne	.L74
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L75
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	rdx
.L75:
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 208[rax]
	test	rax, rax
	je	.L76
	mov	rax, QWORD PTR -168[rbp]
	mov	rdx, QWORD PTR 208[rax]
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	rdx
.L76:
	mov	eax, 0
	jmp	.L101
.L74:
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -148[rbp], eax
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -112[rbp], rax
	cmp	QWORD PTR -112[rbp], 0
	jne	.L77
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	_XEatDataWords@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L78
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	rdx
.L78:
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 208[rax]
	test	rax, rax
	je	.L79
	mov	rax, QWORD PTR -168[rbp]
	mov	rdx, QWORD PTR 208[rax]
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	rdx
.L79:
	mov	eax, 0
	jmp	.L101
.L77:
	movzx	eax, BYTE PTR -63[rbp]
	movzx	edx, al
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR [rax], edx
	movzx	eax, BYTE PTR -56[rbp]
	movzx	edx, al
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	edx, DWORD PTR -148[rbp]
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR 8[rax], rdx
	cmp	DWORD PTR -148[rbp], 0
	je	.L80
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	cmp	DWORD PTR -148[rbp], 89478484
	ja	.L81
	mov	eax, DWORD PTR -148[rbp]
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -144[rbp], rax
	cmp	QWORD PTR -144[rbp], 0
	je	.L81
	mov	edx, DWORD PTR -148[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -136[rbp], rax
.L81:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR -144[rbp]
	mov	QWORD PTR 16[rax], rdx
	cmp	QWORD PTR -144[rbp], 0
	je	.L82
	cmp	QWORD PTR -136[rbp], 0
	jne	.L83
.L82:
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	_XEatDataWords@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L84
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	rdx
.L84:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	XRecordFreeState
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 208[rax]
	test	rax, rax
	je	.L85
	mov	rax, QWORD PTR -168[rbp]
	mov	rdx, QWORD PTR 208[rax]
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	rdx
.L85:
	mov	eax, 0
	jmp	.L101
.L83:
	mov	DWORD PTR -156[rbp], 0
	jmp	.L86
.L97:
	mov	edx, DWORD PTR -156[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rcx, rax
	mov	eax, DWORD PTR -156[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -136[rbp]
	add	rdx, rcx
	mov	QWORD PTR [rax], rdx
	lea	rcx, -104[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	_XRead@PLT
	mov	ecx, DWORD PTR -104[rbp]
	mov	edx, DWORD PTR -156[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	QWORD PTR [rax], rdx
	mov	ecx, DWORD PTR -100[rbp]
	mov	edx, DWORD PTR -156[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	QWORD PTR 8[rax], rdx
	mov	eax, DWORD PTR -100[rbp]
	test	eax, eax
	je	.L87
	mov	QWORD PTR -128[rbp], 0
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, 67108862
	ja	.L88
	mov	eax, DWORD PTR -100[rbp]
	mov	ecx, eax
	mov	edx, DWORD PTR -156[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -136[rbp]
	lea	rbx, [rdx+rax]
	mov	esi, 8
	mov	rdi, rcx
	call	calloc@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	edx, DWORD PTR -156[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L89
	mov	eax, DWORD PTR -100[rbp]
	mov	eax, eax
	sal	rax, 5
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -128[rbp], rax
	jmp	.L89
.L88:
	mov	edx, DWORD PTR -156[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	mov	QWORD PTR 16[rax], 0
.L89:
	mov	edx, DWORD PTR -156[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L90
	cmp	QWORD PTR -128[rbp], 0
	jne	.L91
.L90:
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L92
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	rdx
.L92:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	XRecordFreeState
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 208[rax]
	test	rax, rax
	je	.L93
	mov	rax, QWORD PTR -168[rbp]
	mov	rdx, QWORD PTR 208[rax]
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	rdx
.L93:
	mov	eax, 0
	jmp	.L101
.L91:
	mov	DWORD PTR -152[rbp], 0
	jmp	.L94
.L95:
	mov	eax, DWORD PTR -152[rbp]
	sal	rax, 5
	mov	rcx, rax
	mov	edx, DWORD PTR -156[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -152[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR -128[rbp]
	add	rdx, rcx
	mov	QWORD PTR [rax], rdx
	lea	rcx, -96[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	edx, 24
	mov	rsi, rcx
	mov	rdi, rax
	call	_XRead@PLT
	mov	eax, DWORD PTR -152[rbp]
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -128[rbp]
	add	rdx, rax
	lea	rax, -96[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	WireToLibRange
	add	DWORD PTR -152[rbp], 1
.L94:
	mov	eax, DWORD PTR -100[rbp]
	cmp	DWORD PTR -152[rbp], eax
	jb	.L95
	jmp	.L96
.L87:
	mov	edx, DWORD PTR -156[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	mov	QWORD PTR 16[rax], 0
.L96:
	add	DWORD PTR -156[rbp], 1
.L86:
	mov	eax, DWORD PTR -156[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jb	.L97
	jmp	.L98
.L80:
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR 16[rax], 0
.L98:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR -112[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L99
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	rdx
.L99:
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 208[rax]
	test	rax, rax
	je	.L100
	mov	rax, QWORD PTR -168[rbp]
	mov	rdx, QWORD PTR 208[rax]
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	rdx
.L100:
	mov	eax, 1
.L101:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L102
	call	__stack_chk_fail@PLT
.L102:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	XRecordGetContext, .-XRecordGetContext
	.globl	XRecordFreeState
	.type	XRecordFreeState, @function
XRecordFreeState:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L104
.L107:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L105
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L106
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
.L106:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	free@PLT
.L105:
	add	DWORD PTR -4[rbp], 1
.L104:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rdx, rax
	jb	.L107
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L108
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L109
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
.L109:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	free@PLT
.L108:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	XRecordFreeState, .-XRecordFreeState
	.type	alloc_reply_buffer, @function
alloc_reply_buffer:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L111
.L115:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 20[rax]
	test	eax, eax
	jne	.L112
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	DWORD PTR -44[rbp], eax
	jg	.L113
	mov	rax, QWORD PTR -24[rbp]
	jmp	.L114
.L113:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
.L112:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
.L111:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L115
	cmp	QWORD PTR -16[rbp], 0
	je	.L116
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L117
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 16[rax], 0
	mov	eax, 0
	jmp	.L114
.L117:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L114
.L116:
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L118
	mov	eax, 0
	jmp	.L114
.L118:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L119
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L114
.L119:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 20[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
.L114:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	alloc_reply_buffer, .-alloc_reply_buffer
	.type	alloc_inter_data, @function
alloc_inter_data:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L121
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L122
.L121:
	mov	edi, 64
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L123
	mov	eax, 0
	jmp	.L122
.L123:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 56[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 16[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -8[rbp]
.L122:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	alloc_inter_data, .-alloc_inter_data
	.section	.rodata
.LC4:
	.string	"the_stack_data/699974.c"
.LC5:
	.string	"rbp->ref_count > 0"
.LC6:
	.string	"rbp"
	.text
	.globl	XRecordFreeData
	.type	XRecordFreeData, @function
XRecordFreeData:
.LFB22:
	.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	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -40[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	je	.L125
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L126
.L130:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rdx, rax
	jb	.L127
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 16[rax]
	cdqe
	add	rax, rcx
	cmp	rdx, rax
	jnb	.L127
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 20[rax]
	test	eax, eax
	jg	.L128
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 616
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L128:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 20[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 20[rax], edx
	jmp	.L129
.L127:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -40[rbp], rax
.L126:
	cmp	QWORD PTR -40[rbp], 0
	jne	.L130
.L129:
	cmp	QWORD PTR -40[rbp], 0
	jne	.L125
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 622
	lea	rsi, .LC4[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L125:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 20[rax]
	test	eax, eax
	jne	.L131
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 48[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L138
.L131:
	cmp	QWORD PTR -40[rbp], 0
	je	.L133
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 20[rax]
	test	eax, eax
	jne	.L133
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	QWORD PTR -32[rbp], rax
	jmp	.L134
.L137:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jne	.L135
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L136
.L135:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -32[rbp], rax
.L134:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L137
.L136:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	XFree@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	XFree@PLT
.L133:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	XFree@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 16[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L138
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	jne	.L138
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	XFree@PLT
.L138:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	XRecordFreeData, .-XRecordFreeData
	.section	.rodata
	.align 8
.LC7:
	.string	"XRecord: %lu-byte reply claims %d-byte element (seq %lu)\n"
	.text
	.type	parse_reply_call_callback, @function
parse_reply_call_callback:
.LFB23:
	.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -56[rbp], r8
	mov	QWORD PTR -64[rbp], r9
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -16[rbp], 0
.L166:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	alloc_inter_data
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L140
	mov	eax, 2
	jmp	.L141
.L140:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR 1[rax]
	movzx	edx, al
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR 9[rax]
	movzx	edx, al
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 28[rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR 1[rax]
	movzx	eax, al
	cmp	eax, 5
	ja	.L142
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L144[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L144[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L144:
	.long	.L148-.L144
	.long	.L147-.L144
	.long	.L146-.L144
	.long	.L145-.L144
	.long	.L143-.L144
	.long	.L143-.L144
	.text
.L148:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR 8[rax]
	movzx	eax, al
	and	eax, 1
	test	eax, eax
	je	.L149
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR 9[rax]
	test	al, al
	je	.L150
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	sal	rax, 24
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	sal	rax, 8
	and	eax, 16711680
	or	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	shr	rax, 8
	and	eax, 65280
	or	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	shr	rax, 24
	movzx	eax, al
	or	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
.L150:
	add	DWORD PTR -16[rbp], 4
.L149:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cmp	eax, 1
	jne	.L151
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, 4
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR 9[rax]
	test	al, al
	je	.L152
	mov	eax, DWORD PTR -12[rbp]
	sal	eax, 24
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	sal	eax, 8
	and	eax, 16711680
	or	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	sar	eax, 8
	and	eax, 65280
	or	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	shr	eax, 24
	or	eax, edx
	mov	DWORD PTR -12[rbp], eax
.L152:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 8
	sal	eax, 2
	mov	DWORD PTR -12[rbp], eax
	nop
	jmp	.L142
.L151:
	mov	DWORD PTR -12[rbp], 32
	jmp	.L142
.L147:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR 8[rax]
	movzx	eax, al
	and	eax, 2
	test	eax, eax
	je	.L154
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR 9[rax]
	test	al, al
	je	.L155
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	sal	rax, 24
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	sal	rax, 8
	and	eax, 16711680
	or	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	shr	rax, 8
	and	eax, 65280
	or	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	shr	rax, 24
	movzx	eax, al
	or	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
.L155:
	add	DWORD PTR -16[rbp], 4
.L154:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR 8[rax]
	movzx	eax, al
	and	eax, 4
	test	eax, eax
	je	.L156
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR 9[rax]
	test	al, al
	je	.L157
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	sal	rax, 24
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	sal	rax, 8
	and	eax, 16711680
	or	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	shr	rax, 8
	and	eax, 65280
	or	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	shr	rax, 24
	movzx	eax, al
	or	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
.L157:
	add	DWORD PTR -16[rbp], 4
.L156:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, 2
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L158
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, 3
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L158
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, 4
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR 9[rax]
	test	al, al
	je	.L160
	mov	eax, DWORD PTR -12[rbp]
	sal	eax, 24
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	sal	eax, 8
	and	eax, 16711680
	or	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	sar	eax, 8
	and	eax, 65280
	or	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	shr	eax, 24
	or	eax, edx
	mov	DWORD PTR -12[rbp], eax
	jmp	.L160
.L158:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, 2
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR 9[rax]
	test	al, al
	je	.L160
	mov	eax, DWORD PTR -12[rbp]
	sal	eax, 8
	movzx	edx, ax
	mov	eax, DWORD PTR -12[rbp]
	sar	eax, 8
	movzx	eax, al
	or	eax, edx
	mov	DWORD PTR -12[rbp], eax
.L160:
	sal	DWORD PTR -12[rbp], 2
	jmp	.L142
.L146:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, 6
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR 9[rax]
	test	al, al
	je	.L161
	mov	eax, DWORD PTR -12[rbp]
	sal	eax, 8
	movzx	edx, ax
	mov	eax, DWORD PTR -12[rbp]
	sar	eax, 8
	movzx	eax, al
	or	eax, edx
	mov	DWORD PTR -12[rbp], eax
.L161:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 2
	sal	eax, 2
	mov	DWORD PTR -12[rbp], eax
	jmp	.L142
.L145:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR 8[rax]
	movzx	eax, al
	and	eax, 4
	test	eax, eax
	je	.L143
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR 9[rax]
	test	al, al
	je	.L162
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	sal	rax, 24
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	sal	rax, 8
	and	eax, 16711680
	or	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	shr	rax, 8
	and	eax, 65280
	or	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	shr	rax, 24
	movzx	eax, al
	or	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
.L162:
	add	DWORD PTR -16[rbp], 4
.L143:
	mov	DWORD PTR -12[rbp], 0
.L142:
	cmp	DWORD PTR -12[rbp], 0
	jle	.L163
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	sal	eax, 2
	cmp	edx, eax
	jbe	.L164
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR 144[rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	lea	ecx, [rdx+rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR stderr[rip]
	mov	r8, rsi
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L164:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 20[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 20[rax], edx
	jmp	.L165
.L163:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 32[rax], 0
.L165:
	mov	eax, DWORD PTR -12[rbp]
	sar	eax, 2
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rcx
	mov	eax, DWORD PTR -12[rbp]
	add	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, 0[0+rax*4]
	mov	eax, DWORD PTR -16[rbp]
	cmp	edx, eax
	ja	.L166
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 5
	jne	.L167
	mov	eax, 1
	jmp	.L141
.L167:
	mov	eax, 0
.L141:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	parse_reply_call_callback, .-parse_reply_call_callback
	.globl	XRecordEnableContext
	.type	XRecordEnableContext, @function
XRecordEnableContext:
.LFB24:
	.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, 120
	.cfi_offset 3, -24
	mov	QWORD PTR -104[rbp], rdi
	mov	QWORD PTR -112[rbp], rsi
	mov	QWORD PTR -120[rbp], rdx
	mov	QWORD PTR -128[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	find_display
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	je	.L169
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L170
.L169:
	mov	rdx, QWORD PTR xrecord_extension_name[rip]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XMissingExtension@PLT
	mov	eax, 0
	jmp	.L190
.L170:
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L172
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	rdx
.L172:
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, 8
	mov	esi, 5
	mov	rdi, rax
	call	_XGetRequest@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	eax, DWORD PTR 4[rax]
	mov	BYTE PTR [rbx], al
	mov	BYTE PTR 1[rbx], 5
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR 4[rbx], eax
.L189:
	lea	rsi, -64[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	_XReply@PLT
	test	eax, eax
	jne	.L173
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L174
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	rdx
.L174:
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 208[rax]
	test	rax, rax
	je	.L175
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR 208[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	rdx
.L175:
	mov	eax, 0
	jmp	.L190
.L173:
	mov	eax, DWORD PTR -60[rbp]
	test	eax, eax
	je	.L176
	mov	eax, DWORD PTR -60[rbp]
	sal	eax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	alloc_reply_buffer
	mov	QWORD PTR -80[rbp], rax
	cmp	QWORD PTR -80[rbp], 0
	jne	.L177
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L178
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	rdx
.L178:
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 208[rax]
	test	rax, rax
	je	.L179
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR 208[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	rdx
.L179:
	mov	eax, 0
	jmp	.L190
.L177:
	mov	eax, DWORD PTR -60[rbp]
	sal	eax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -80[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	_XRead@PLT
	jmp	.L180
.L176:
	mov	QWORD PTR -80[rbp], 0
.L180:
	mov	r8, QWORD PTR -128[rbp]
	mov	rdi, QWORD PTR -120[rbp]
	mov	rcx, QWORD PTR -80[rbp]
	lea	rdx, -64[rbp]
	mov	rsi, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	r9, r8
	mov	r8, rdi
	mov	rdi, rax
	call	parse_reply_call_callback
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 2
	je	.L181
	cmp	DWORD PTR -84[rbp], 2
	ja	.L189
	cmp	DWORD PTR -84[rbp], 0
	je	.L192
	cmp	DWORD PTR -84[rbp], 1
	jne	.L182
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L185
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	rdx
.L185:
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 208[rax]
	test	rax, rax
	je	.L186
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR 208[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	rdx
.L186:
	mov	eax, 1
	jmp	.L190
.L181:
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L187
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	rdx
.L187:
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 208[rax]
	test	rax, rax
	je	.L188
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR 208[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	rdx
.L188:
	mov	eax, 0
	jmp	.L190
.L192:
	nop
.L182:
	jmp	.L189
.L190:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L191
	call	__stack_chk_fail@PLT
.L191:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	XRecordEnableContext, .-XRecordEnableContext
	.section	.rodata
	.align 8
.LC8:
	.string	"XRecord: handler for seq %lu never saw XRecordEndOfData.  (seq now %lu)\n"
	.text
	.type	record_async_handler, @function
record_async_handler:
.LFB25:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	r12, rdi
	mov	r13, rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	DWORD PTR -60[rbp], ecx
	mov	QWORD PTR -72[rbp], r8
	mov	rbx, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 144[r12]
	mov	rax, QWORD PTR [rbx]
	cmp	rdx, rax
	je	.L194
	mov	rdx, QWORD PTR 144[r12]
	mov	rax, QWORD PTR [rbx]
	cmp	rdx, rax
	jbe	.L195
	mov	rcx, QWORD PTR 144[r12]
	mov	rdx, QWORD PTR [rbx]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rdx, QWORD PTR 2392[r12]
	mov	rax, QWORD PTR 8[rbx]
	cmp	rdx, rax
	jne	.L196
	mov	rax, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 2392[r12], rax
	jmp	.L197
.L196:
	mov	rax, QWORD PTR 8[rbx]
	mov	rsi, rax
	mov	rdi, r12
	call	_XDeqAsyncHandler@PLT
.L197:
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, rax
	call	free@PLT
.L195:
	mov	eax, 0
	jmp	.L198
.L194:
	movzx	eax, BYTE PTR 0[r13]
	test	al, al
	jne	.L199
	mov	rdx, QWORD PTR 2392[r12]
	mov	rax, QWORD PTR 8[rbx]
	cmp	rdx, rax
	jne	.L200
	mov	rax, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 2392[r12], rax
	jmp	.L201
.L200:
	mov	rax, QWORD PTR 8[rbx]
	mov	rsi, rax
	mov	rdi, r12
	call	_XDeqAsyncHandler@PLT
.L201:
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L198
.L199:
	mov	eax, DWORD PTR 4[r13]
	test	eax, eax
	je	.L202
	mov	eax, DWORD PTR 4[r13]
	sal	eax, 2
	mov	edx, eax
	mov	rax, QWORD PTR 24[rbx]
	mov	esi, edx
	mov	rdi, rax
	call	alloc_reply_buffer
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L203
	mov	rdx, QWORD PTR 2392[r12]
	mov	rax, QWORD PTR 8[rbx]
	cmp	rdx, rax
	jne	.L204
	mov	rax, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 2392[r12], rax
	jmp	.L205
.L204:
	mov	rax, QWORD PTR 8[rbx]
	mov	rsi, rax
	mov	rdi, r12
	call	_XDeqAsyncHandler@PLT
.L205:
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L198
.L203:
	mov	eax, DWORD PTR 4[r13]
	sal	eax, 2
	mov	esi, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	ecx, DWORD PTR -60[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	sub	rsp, 8
	push	0
	mov	r9d, esi
	mov	r8d, 32
	mov	rsi, rax
	mov	rdi, r12
	call	_XGetAsyncData@PLT
	add	rsp, 16
	jmp	.L206
.L202:
	mov	QWORD PTR -40[rbp], 0
.L206:
	mov	rsi, QWORD PTR 40[rbx]
	mov	rcx, QWORD PTR 32[rbx]
	mov	rax, QWORD PTR 24[rbx]
	mov	rdx, QWORD PTR -40[rbp]
	mov	r9, rsi
	mov	r8, rcx
	mov	rcx, rdx
	mov	rdx, r13
	mov	rsi, rax
	mov	rdi, r12
	call	parse_reply_call_callback
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	je	.L207
	mov	rdx, QWORD PTR 2392[r12]
	mov	rax, QWORD PTR 8[rbx]
	cmp	rdx, rax
	jne	.L208
	mov	rax, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 2392[r12], rax
	jmp	.L209
.L208:
	mov	rax, QWORD PTR 8[rbx]
	mov	rsi, rax
	mov	rdi, r12
	call	_XDeqAsyncHandler@PLT
.L209:
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, rax
	call	free@PLT
	cmp	DWORD PTR -44[rbp], 2
	jne	.L207
	mov	eax, 0
	jmp	.L198
.L207:
	mov	eax, 1
.L198:
	lea	rsp, -24[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	record_async_handler, .-record_async_handler
	.section	.rodata
	.align 8
.LC9:
	.string	"XRecord: malformed StartOfData for sequence %lu\n"
	.text
	.globl	XRecordEnableContextAsync
	.type	XRecordEnableContextAsync, @function
XRecordEnableContextAsync:
.LFB26:
	.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, 136
	.cfi_offset 3, -24
	mov	QWORD PTR -120[rbp], rdi
	mov	QWORD PTR -128[rbp], rsi
	mov	QWORD PTR -136[rbp], rdx
	mov	QWORD PTR -144[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	find_display
	mov	QWORD PTR -96[rbp], rax
	cmp	QWORD PTR -96[rbp], 0
	je	.L211
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L212
.L211:
	mov	rdx, QWORD PTR xrecord_extension_name[rip]
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XMissingExtension@PLT
	mov	eax, 0
	jmp	.L223
.L212:
	mov	edi, 72
	call	malloc@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 0
	jne	.L214
	mov	eax, 0
	jmp	.L223
.L214:
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 24
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L215
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	rdx
.L215:
	mov	rax, QWORD PTR -120[rbp]
	mov	edx, 8
	mov	esi, 5
	mov	rdi, rax
	call	_XGetRequest@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	eax, DWORD PTR 4[rax]
	mov	BYTE PTR [rbx], al
	mov	BYTE PTR 1[rbx], 5
	mov	rax, QWORD PTR -128[rbp]
	mov	DWORD PTR 4[rbx], eax
	lea	rsi, -64[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	_XReply@PLT
	test	eax, eax
	jne	.L216
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L217
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	rdx
.L217:
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 208[rax]
	test	rax, rax
	je	.L218
	mov	rax, QWORD PTR -120[rbp]
	mov	rdx, QWORD PTR 208[rax]
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	rdx
.L218:
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L223
.L216:
	mov	eax, DWORD PTR -60[rbp]
	test	eax, eax
	je	.L219
	mov	rax, QWORD PTR -120[rbp]
	mov	rdx, QWORD PTR 144[rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L219:
	mov	QWORD PTR -72[rbp], 0
	mov	r8, QWORD PTR -144[rbp]
	mov	rdi, QWORD PTR -136[rbp]
	mov	rcx, QWORD PTR -72[rbp]
	lea	rdx, -64[rbp]
	mov	rsi, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	r9, r8
	mov	r8, rdi
	mov	rdi, rax
	call	parse_reply_call_callback
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], 0
	je	.L220
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L221
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	rdx
.L221:
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L223
.L220:
	mov	rax, QWORD PTR -120[rbp]
	mov	rdx, QWORD PTR 152[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -136[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -144[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -120[rbp]
	mov	rdx, QWORD PTR 2392[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -88[rbp]
	lea	rdx, record_async_handler[rip]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -120[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	QWORD PTR 2392[rax], rdx
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L222
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	rdx
.L222:
	mov	eax, 1
.L223:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L224
	call	__stack_chk_fail@PLT
.L224:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	XRecordEnableContextAsync, .-XRecordEnableContextAsync
	.globl	XRecordProcessReplies
	.type	XRecordProcessReplies, @function
XRecordProcessReplies:
.LFB27:
	.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 -8[rbp]
	mov	rdi, rax
	call	XPending@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.size	XRecordProcessReplies, .-XRecordProcessReplies
	.globl	XRecordDisableContext
	.type	XRecordDisableContext, @function
XRecordDisableContext:
.LFB28:
	.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, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	find_display
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L227
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L228
.L227:
	mov	rdx, QWORD PTR xrecord_extension_name[rip]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XMissingExtension@PLT
	mov	eax, 0
	jmp	.L229
.L228:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L230
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	rdx
.L230:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 8
	mov	esi, 6
	mov	rdi, rax
	call	_XGetRequest@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	eax, DWORD PTR 4[rax]
	mov	BYTE PTR [rbx], al
	mov	BYTE PTR 1[rbx], 6
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 4[rbx], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L231
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	rdx
.L231:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 208[rax]
	test	rax, rax
	je	.L232
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 208[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	rdx
.L232:
	mov	eax, 1
.L229:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE28:
	.size	XRecordDisableContext, .-XRecordDisableContext
	.globl	XRecordFreeContext
	.type	XRecordFreeContext, @function
XRecordFreeContext:
.LFB29:
	.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, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	find_display
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L234
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L235
.L234:
	mov	rdx, QWORD PTR xrecord_extension_name[rip]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XMissingExtension@PLT
	mov	eax, 0
	jmp	.L236
.L235:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L237
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	rdx
.L237:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 8
	mov	esi, 7
	mov	rdi, rax
	call	_XGetRequest@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	eax, DWORD PTR 4[rax]
	mov	BYTE PTR [rbx], al
	mov	BYTE PTR 1[rbx], 7
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 4[rbx], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 2408[rax]
	test	rax, rax
	je	.L238
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 2408[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	rdx
.L238:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 208[rax]
	test	rax, rax
	je	.L239
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 208[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	rdx
.L239:
	mov	eax, 1
.L236:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE29:
	.size	XRecordFreeContext, .-XRecordFreeContext
	.section	.rodata
	.align 16
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 16
__PRETTY_FUNCTION__.0:
	.string	"XRecordFreeData"
	.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	"699974.c"
	.text
	.local	_xrecord_info_data
	.comm	_xrecord_info_data,12,4
	.data
	.align	2
	.type	xrecord_info, %object
	.size	xrecord_info, 4
xrecord_info:
	.word	_xrecord_info_data
	.section	.rodata
	.align	2
.LC0:
	.ascii	"RECORD\000"
	.data
	.align	2
	.type	xrecord_extension_name, %object
	.size	xrecord_extension_name, 4
xrecord_extension_name:
	.word	.LC0
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	close_display, %function
close_display:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	find_display
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3]
	ldr	r0, [fp, #-32]
	blx	r3
.L2:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	b	.L4
.L5:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-28]
	bl	XFree
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-28]
.L4:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	str	r3, [fp, #-24]
	b	.L6
.L8:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	XFree
	ldr	r0, [fp, #-12]
	bl	XFree
	b	.L6
.L7:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-24]
.L6:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L9
	ldr	r0, [fp, #-16]
	bl	XFree
	b	.L3
.L9:
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3]
.L3:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3, #4]
	ldr	r0, [fp, #-32]
	blx	r3
.L10:
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	XextRemoveDisplay
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	xrecord_info
	.size	close_display, .-close_display
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_mem_cache, %function
alloc_mem_cache:
	@ 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, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
.L15:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	alloc_mem_cache, .-alloc_mem_cache
	.section	.rodata
	.align	2
.LC1:
	.ascii	"XRecordBadContext (Not a defined RECORD context)\000"
	.data
	.align	2
	.type	xrecord_error_list, %object
	.size	xrecord_error_list, 4
xrecord_error_list:
	.word	.LC1
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%s.%d\000"
	.align	2
.LC3:
	.ascii	"XProtoError\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	error_string, %function
error_string:
	@ args = 4, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	str	r0, [fp, #-272]
	str	r1, [fp, #-276]
	str	r2, [fp, #-280]
	str	r3, [fp, #-284]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-280]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-276]
	sub	r3, r2, r3
	str	r3, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	blt	.L18
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	bgt	.L18
	ldr	r3, .L21+4
	ldr	r2, [r3]
	sub	r0, fp, #264
	ldr	r3, [fp, #-276]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L21+8
	mov	r1, #256
	bl	snprintf
	ldr	r2, .L21+12
	ldr	r3, [fp, #-276]
	ldr	r1, [r2, r3, lsl #2]
	sub	r2, fp, #264
	ldr	r3, [fp, #4]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-284]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L21+16
	ldr	r0, [fp, #-272]
	bl	XGetErrorDatabaseText
	ldr	r3, [fp, #-284]
	b	.L19
.L18:
	mov	r3, #0
.L19:
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC4
	.word	xrecord_extension_name
	.word	.LC2
	.word	xrecord_error_list
	.word	.LC3
	.size	error_string, .-error_string
	.data
	.align	2
	.type	xrecord_extension_hooks, %object
	.size	xrecord_extension_hooks, 44
xrecord_extension_hooks:
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	close_display
	.word	0
	.word	0
	.word	0
	.word	error_string
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_display, %function
find_display:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L27
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L24
	bl	XextCreateExtension
	mov	r3, r0
	ldr	r2, .L27
	str	r3, [r2]
	ldr	r3, .L27
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L24
	mov	r3, #0
	b	.L25
.L24:
	ldr	r3, .L27
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	XextFindDisplay
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L26
	ldr	r3, .L27
	ldr	r4, [r3]
	ldr	r3, .L27+4
	ldr	r5, [r3]
	bl	alloc_mem_cache
	mov	r3, r0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, .L27+8
	mov	r2, r5
	ldr	r1, [fp, #-24]
	mov	r0, r4
	bl	XextAddDisplay
	str	r0, [fp, #-16]
.L26:
	ldr	r3, [fp, #-16]
.L25:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L28:
	.align	2
.L27:
	.word	xrecord_info
	.word	xrecord_extension_name
	.word	xrecord_extension_hooks
	.size	find_display, .-find_display
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	SendRange, %function
SendRange:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #24
	str	r3, [fp, #-36]
	b	.L30
.L33:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	strb	r3, [fp, #-32]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	strb	r3, [fp, #-31]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	strb	r3, [fp, #-30]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	strb	r3, [fp, #-29]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	strb	r3, [fp, #-28]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	strb	r3, [fp, #-27]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldrh	r3, [r3, #6]
	strh	r3, [fp, #-26]	@ movhi
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldrh	r3, [r3, #8]
	strh	r3, [fp, #-24]	@ movhi
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	strb	r3, [fp, #-22]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldrb	r3, [r3, #11]	@ zero_extendqisi2
	strb	r3, [fp, #-21]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldrh	r3, [r3, #12]
	strh	r3, [fp, #-20]	@ movhi
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldrh	r3, [r3, #14]
	strh	r3, [fp, #-18]	@ movhi
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldrb	r3, [r3, #16]	@ zero_extendqisi2
	strb	r3, [fp, #-16]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldrb	r3, [r3, #17]	@ zero_extendqisi2
	strb	r3, [fp, #-15]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldrb	r3, [r3, #18]	@ zero_extendqisi2
	strb	r3, [fp, #-14]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldrb	r3, [r3, #19]	@ zero_extendqisi2
	strb	r3, [fp, #-13]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldrb	r3, [r3, #20]	@ zero_extendqisi2
	strb	r3, [fp, #-12]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldrb	r3, [r3, #21]	@ zero_extendqisi2
	strb	r3, [fp, #-11]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldr	r3, [r3, #24]
	and	r3, r3, #255
	strb	r3, [fp, #-10]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldr	r3, [r3, #28]
	and	r3, r3, #255
	strb	r3, [fp, #-9]
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #108]
	ldr	r3, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #112]
	cmp	r2, r3
	bhi	.L31
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #108]
	ldr	r2, [fp, #-36]
	sub	r1, fp, #32
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #108]
	ldr	r3, [fp, #-36]
	add	r3, r3, #3
	bic	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-40]
	str	r2, [r3, #108]
	b	.L32
.L31:
	sub	r3, fp, #32
	ldr	r2, [fp, #-36]
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	_XSend
.L32:
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	str	r3, [fp, #-44]
.L30:
	ldr	r3, [fp, #-48]
	sub	r2, r3, #1
	str	r2, [fp, #-48]
	cmp	r3, #0
	bne	.L33
	nop
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC5
	.size	SendRange, .-SendRange
	.align	2
	.global	XRecordIdBaseMask
	.syntax unified
	.arm
	.fpu softvfp
	.type	XRecordIdBaseMask, %function
XRecordIdBaseMask:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #32]
	mvn	r3, r3
	bic	r3, r3, #-536870912
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	XRecordIdBaseMask, .-XRecordIdBaseMask
	.section	.rodata
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	XRecordQueryVersion
	.syntax unified
	.arm
	.fpu softvfp
	.type	XRecordQueryVersion, %function
XRecordQueryVersion:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, [fp, #-56]
	bl	find_display
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L40
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L41
.L40:
	ldr	r3, .L53+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	XMissingExtension
	mov	r3, #0
	b	.L51
.L41:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L43
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3]
	ldr	r0, [fp, #-56]
	blx	r3
.L43:
	mov	r2, #8
	mov	r1, #0
	ldr	r0, [fp, #-56]
	bl	_XGetRequest
	mov	r4, r0
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #4]
	and	r3, r3, #255
	strb	r3, [r4]
	mov	r3, #0
	strb	r3, [r4, #1]
	mov	r3, #1
	strh	r3, [r4, #4]	@ movhi
	mov	r3, #13
	strh	r3, [r4, #6]	@ movhi
	sub	r1, fp, #48
	mov	r3, #1
	mov	r2, #0
	ldr	r0, [fp, #-56]
	bl	_XReply
	mov	r3, r0
	cmp	r3, #0
	bne	.L44
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L45
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3, #4]
	ldr	r0, [fp, #-56]
	blx	r3
.L45:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #124]
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #124]
	ldr	r0, [fp, #-56]
	blx	r3
.L46:
	mov	r3, #0
	b	.L51
.L44:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L47
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3, #4]
	ldr	r0, [fp, #-56]
	blx	r3
.L47:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #124]
	cmp	r3, #0
	beq	.L48
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #124]
	ldr	r0, [fp, #-56]
	blx	r3
.L48:
	ldrh	r3, [fp, #-40]
	mov	r2, r3
	ldr	r3, [fp, #-60]
	str	r2, [r3]
	ldrh	r3, [fp, #-38]
	mov	r2, r3
	ldr	r3, [fp, #-64]
	str	r2, [r3]
	ldrh	r3, [fp, #-40]
	cmp	r3, #1
	bne	.L49
	ldrh	r3, [fp, #-38]
	cmp	r3, #11
	bls	.L49
	mov	r3, #1
	b	.L51
.L49:
	mov	r3, #0
.L51:
	ldr	r2, .L53
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L52
	bl	__stack_chk_fail
.L52:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC6
	.word	xrecord_extension_name
	.size	XRecordQueryVersion, .-XRecordQueryVersion
	.align	2
	.global	XRecordCreateContext
	.syntax unified
	.arm
	.fpu softvfp
	.type	XRecordCreateContext, %function
XRecordCreateContext:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-24]
	bl	find_display
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L56
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L57
.L56:
	ldr	r3, .L64
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	XMissingExtension
	mov	r3, #0
	b	.L58
.L57:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L59
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3]
	ldr	r0, [fp, #-24]
	blx	r3
.L59:
	mov	r2, #20
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	_XGetRequest
	mov	r4, r0
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #4]
	and	r3, r3, #255
	strb	r3, [r4]
	mov	r3, #1
	strb	r3, [r4, #1]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #44]
	ldr	r0, [fp, #-24]
	blx	r3
	mov	r3, r0
	str	r3, [r4, #4]
	ldrh	r1, [r4, #2]
	ldr	r2, [fp, #8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	lsl	r3, r3, #2
	asr	r3, r3, #2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r1, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [r4, #2]	@ movhi
	ldr	r3, [fp, #-28]
	and	r3, r3, #255
	strb	r3, [r4, #8]
	ldr	r3, [fp, #-36]
	str	r3, [r4, #12]
	ldr	r3, [fp, #8]
	str	r3, [r4, #16]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #108]
	ldr	r3, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #112]
	cmp	r2, r3
	bhi	.L60
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #108]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #108]
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	bic	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3, #108]
	b	.L61
.L60:
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-24]
	bl	_XSend
.L61:
	ldr	r2, [fp, #8]
	ldr	r1, [fp, #4]
	ldr	r0, [fp, #-24]
	bl	SendRange
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L62
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3, #4]
	ldr	r0, [fp, #-24]
	blx	r3
.L62:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #124]
	cmp	r3, #0
	beq	.L63
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #124]
	ldr	r0, [fp, #-24]
	blx	r3
.L63:
	ldr	r3, [r4, #4]
.L58:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L65:
	.align	2
.L64:
	.word	xrecord_extension_name
	.size	XRecordCreateContext, .-XRecordCreateContext
	.align	2
	.global	XRecordAllocRange
	.syntax unified
	.arm
	.fpu softvfp
	.type	XRecordAllocRange, %function
XRecordAllocRange:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r1, #32
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	mov	r0, r3
	pop	{fp, pc}
	.size	XRecordAllocRange, .-XRecordAllocRange
	.align	2
	.global	XRecordRegisterClients
	.syntax unified
	.arm
	.fpu softvfp
	.type	XRecordRegisterClients, %function
XRecordRegisterClients:
	@ args = 12, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-24]
	bl	find_display
	str	r0, [fp, #-20]
	ldr	r3, [fp, #4]
	lsl	r3, r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L69
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L70
.L69:
	ldr	r3, .L77
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	XMissingExtension
	mov	r3, #0
	b	.L71
.L70:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L72
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3]
	ldr	r0, [fp, #-24]
	blx	r3
.L72:
	mov	r2, #20
	mov	r1, #2
	ldr	r0, [fp, #-24]
	bl	_XGetRequest
	mov	r4, r0
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #4]
	and	r3, r3, #255
	strb	r3, [r4]
	mov	r3, #2
	strb	r3, [r4, #1]
	ldr	r3, [fp, #-28]
	str	r3, [r4, #4]
	ldrh	r1, [r4, #2]
	ldr	r2, [fp, #12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #4]
	add	r3, r2, r3
	lsl	r3, r3, #2
	asr	r3, r3, #2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r1, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [r4, #2]	@ movhi
	ldr	r3, [fp, #-32]
	and	r3, r3, #255
	strb	r3, [r4, #8]
	ldr	r3, [fp, #4]
	str	r3, [r4, #12]
	ldr	r3, [fp, #12]
	str	r3, [r4, #16]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #108]
	ldr	r3, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #112]
	cmp	r2, r3
	bhi	.L73
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #108]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #108]
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	bic	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3, #108]
	b	.L74
.L73:
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-24]
	bl	_XSend
.L74:
	ldr	r2, [fp, #12]
	ldr	r1, [fp, #8]
	ldr	r0, [fp, #-24]
	bl	SendRange
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L75
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3, #4]
	ldr	r0, [fp, #-24]
	blx	r3
.L75:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #124]
	cmp	r3, #0
	beq	.L76
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #124]
	ldr	r0, [fp, #-24]
	blx	r3
.L76:
	mov	r3, #1
.L71:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L78:
	.align	2
.L77:
	.word	xrecord_extension_name
	.size	XRecordRegisterClients, .-XRecordRegisterClients
	.align	2
	.global	XRecordUnregisterClients
	.syntax unified
	.arm
	.fpu softvfp
	.type	XRecordUnregisterClients, %function
XRecordUnregisterClients:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-24]
	bl	find_display
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L80
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L81
.L80:
	ldr	r3, .L88
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	XMissingExtension
	mov	r3, #0
	b	.L82
.L81:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L83
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3]
	ldr	r0, [fp, #-24]
	blx	r3
.L83:
	mov	r2, #12
	mov	r1, #3
	ldr	r0, [fp, #-24]
	bl	_XGetRequest
	mov	r4, r0
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #4]
	and	r3, r3, #255
	strb	r3, [r4]
	mov	r3, #3
	strb	r3, [r4, #1]
	ldr	r3, [fp, #-28]
	str	r3, [r4, #4]
	ldrh	r2, [r4, #2]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [r4, #2]	@ movhi
	ldr	r3, [fp, #-36]
	str	r3, [r4, #8]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #108]
	ldr	r3, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #112]
	cmp	r2, r3
	bhi	.L84
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #108]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #108]
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	bic	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3, #108]
	b	.L85
.L84:
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-24]
	bl	_XSend
.L85:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L86
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3, #4]
	ldr	r0, [fp, #-24]
	blx	r3
.L86:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #124]
	cmp	r3, #0
	beq	.L87
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #124]
	ldr	r0, [fp, #-24]
	blx	r3
.L87:
	mov	r3, #1
.L82:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L89:
	.align	2
.L88:
	.word	xrecord_extension_name
	.size	XRecordUnregisterClients, .-XRecordUnregisterClients
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	WireToLibRange, %function
WireToLibRange:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	strb	r2, [r3, #1]
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3, #2]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	strb	r2, [r3, #2]
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3, #3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	strb	r2, [r3, #3]
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3, #4]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3, #5]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	strb	r2, [r3, #5]
	ldr	r3, [fp, #-8]
	ldrh	r2, [r3, #6]
	ldr	r3, [fp, #-12]
	strh	r2, [r3, #6]	@ movhi
	ldr	r3, [fp, #-8]
	ldrh	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	strh	r2, [r3, #8]	@ movhi
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3, #10]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	strb	r2, [r3, #10]
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3, #11]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	strb	r2, [r3, #11]
	ldr	r3, [fp, #-8]
	ldrh	r2, [r3, #12]
	ldr	r3, [fp, #-12]
	strh	r2, [r3, #12]	@ movhi
	ldr	r3, [fp, #-8]
	ldrh	r2, [r3, #14]
	ldr	r3, [fp, #-12]
	strh	r2, [r3, #14]	@ movhi
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3, #16]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	strb	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3, #17]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	strb	r2, [r3, #17]
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3, #18]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	strb	r2, [r3, #18]
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3, #19]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	strb	r2, [r3, #19]
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3, #20]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	strb	r2, [r3, #20]
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3, #21]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	strb	r2, [r3, #21]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #22]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-12]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #23]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-12]
	str	r2, [r3, #28]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	WireToLibRange, .-WireToLibRange
	.section	.rodata
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	XRecordGetContext
	.syntax unified
	.arm
	.fpu softvfp
	.type	XRecordGetContext, %function
XRecordGetContext:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #124
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	str	r2, [fp, #-128]
	ldr	r3, .L125
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, [fp, #-120]
	bl	find_display
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	beq	.L92
	ldr	r3, [fp, #-92]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L93
.L92:
	ldr	r3, .L125+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-120]
	bl	XMissingExtension
	mov	r3, #0
	b	.L123
.L93:
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L95
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3]
	ldr	r0, [fp, #-120]
	blx	r3
.L95:
	mov	r2, #8
	mov	r1, #4
	ldr	r0, [fp, #-120]
	bl	_XGetRequest
	mov	r4, r0
	ldr	r3, [fp, #-92]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #4]
	and	r3, r3, #255
	strb	r3, [r4]
	mov	r3, #4
	strb	r3, [r4, #1]
	ldr	r3, [fp, #-124]
	str	r3, [r4, #4]
	sub	r1, fp, #48
	mov	r3, #0
	mov	r2, #0
	ldr	r0, [fp, #-120]
	bl	_XReply
	mov	r3, r0
	cmp	r3, #0
	bne	.L96
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L97
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3, #4]
	ldr	r0, [fp, #-120]
	blx	r3
.L97:
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #124]
	cmp	r3, #0
	beq	.L98
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #124]
	ldr	r0, [fp, #-120]
	blx	r3
.L98:
	mov	r3, #0
	b	.L123
.L96:
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-88]
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bne	.L99
	ldr	r3, [fp, #-44]
	mov	r1, r3
	ldr	r0, [fp, #-120]
	bl	_XEatDataWords
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L100
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3, #4]
	ldr	r0, [fp, #-120]
	blx	r3
.L100:
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #124]
	cmp	r3, #0
	beq	.L101
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #124]
	ldr	r0, [fp, #-120]
	blx	r3
.L101:
	mov	r3, #0
	b	.L123
.L99:
	ldrb	r3, [fp, #-47]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-84]
	str	r2, [r3]
	ldrb	r3, [fp, #-40]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-84]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-88]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	beq	.L102
	mov	r3, #0
	str	r3, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-88]
	ldr	r2, .L125+8
	cmp	r3, r2
	bcs	.L103
	mov	r1, #4
	ldr	r0, [fp, #-88]
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L103
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-100]
.L103:
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-104]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L104
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bne	.L105
.L104:
	ldr	r0, [fp, #-104]
	bl	free
	ldr	r3, [fp, #-44]
	mov	r1, r3
	ldr	r0, [fp, #-120]
	bl	_XEatDataWords
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L106
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3, #4]
	ldr	r0, [fp, #-120]
	blx	r3
.L106:
	ldr	r0, [fp, #-84]
	bl	XRecordFreeState
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #124]
	cmp	r3, #0
	beq	.L107
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #124]
	ldr	r0, [fp, #-120]
	blx	r3
.L107:
	mov	r3, #0
	b	.L123
.L105:
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L108
.L119:
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-104]
	add	r3, r2, r3
	ldr	r2, [fp, #-100]
	add	r2, r2, r1
	str	r2, [r3]
	sub	r3, fp, #80
	mov	r2, #8
	mov	r1, r3
	ldr	r0, [fp, #-120]
	bl	_XRead
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-100]
	add	r3, r3, r2
	ldr	r2, [fp, #-80]
	str	r2, [r3]
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-100]
	add	r3, r3, r2
	ldr	r2, [fp, #-76]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L109
	mov	r3, #0
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-76]
	cmn	r3, #-67108862
	bhi	.L110
	ldr	r0, [fp, #-76]
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-100]
	add	r4, r3, r2
	mov	r1, #4
	bl	calloc
	mov	r3, r0
	str	r3, [r4, #8]
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-100]
	add	r3, r3, r2
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L111
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #5
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-96]
	b	.L111
.L110:
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-100]
	add	r3, r3, r2
	mov	r2, #0
	str	r2, [r3, #8]
.L111:
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-100]
	add	r3, r3, r2
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L112
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bne	.L113
.L112:
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L114
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3, #4]
	ldr	r0, [fp, #-120]
	blx	r3
.L114:
	ldr	r0, [fp, #-84]
	bl	XRecordFreeState
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #124]
	cmp	r3, #0
	beq	.L115
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #124]
	ldr	r0, [fp, #-120]
	blx	r3
.L115:
	mov	r3, #0
	b	.L123
.L113:
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L116
.L117:
	ldr	r3, [fp, #-108]
	lsl	r1, r3, #5
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-100]
	add	r3, r3, r2
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-96]
	add	r2, r2, r1
	str	r2, [r3]
	sub	r3, fp, #72
	mov	r2, #24
	mov	r1, r3
	ldr	r0, [fp, #-120]
	bl	_XRead
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #5
	ldr	r2, [fp, #-96]
	add	r2, r2, r3
	sub	r3, fp, #72
	mov	r1, r2
	mov	r0, r3
	bl	WireToLibRange
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L116:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-108]
	cmp	r2, r3
	bcc	.L117
	b	.L118
.L109:
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-100]
	add	r3, r3, r2
	mov	r2, #0
	str	r2, [r3, #8]
.L118:
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L108:
	ldr	r2, [fp, #-112]
	ldr	r3, [fp, #-88]
	cmp	r2, r3
	bcc	.L119
	b	.L120
.L102:
	ldr	r3, [fp, #-84]
	mov	r2, #0
	str	r2, [r3, #12]
.L120:
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-84]
	str	r2, [r3]
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L121
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3, #4]
	ldr	r0, [fp, #-120]
	blx	r3
.L121:
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #124]
	cmp	r3, #0
	beq	.L122
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #124]
	ldr	r0, [fp, #-120]
	blx	r3
.L122:
	mov	r3, #1
.L123:
	ldr	r2, .L125
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L124
	bl	__stack_chk_fail
.L124:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L126:
	.align	2
.L125:
	.word	.LC7
	.word	xrecord_extension_name
	.word	178956970
	.size	XRecordGetContext, .-XRecordGetContext
	.align	2
	.global	XRecordFreeState
	.syntax unified
	.arm
	.fpu softvfp
	.type	XRecordFreeState, %function
XRecordFreeState:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L128
.L131:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L129
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L130
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
.L130:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	free
.L129:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L128:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bhi	.L131
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L132
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L133
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
.L133:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	free
.L132:
	ldr	r0, [fp, #-16]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	XRecordFreeState, .-XRecordFreeState
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_reply_buffer, %function
alloc_reply_buffer:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	b	.L135
.L139:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L136
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bgt	.L137
	ldr	r3, [fp, #-16]
	b	.L138
.L137:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
.L136:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
.L135:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L139
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L140
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-28]
	mov	r1, r2
	mov	r0, r3
	bl	realloc
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L141
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #8]
	mov	r3, #0
	b	.L138
.L141:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-28]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	b	.L138
.L140:
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L142
	mov	r3, #0
	b	.L138
.L142:
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L143
	ldr	r0, [fp, #-16]
	bl	free
	mov	r3, #0
	b	.L138
.L143:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
.L138:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	alloc_reply_buffer, .-alloc_reply_buffer
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_inter_data, %function
alloc_inter_data:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L145
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	b	.L146
.L145:
	mov	r0, #36
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L147
	mov	r3, #0
	b	.L146
.L147:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #32]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	add	r2, r3, #1
	ldr	r3, [fp, #-12]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
.L146:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	alloc_inter_data, .-alloc_inter_data
	.section	.rodata
	.align	2
.LC8:
	.ascii	"the_stack_data/699974.c\000"
	.align	2
.LC9:
	.ascii	"rbp->ref_count > 0\000"
	.align	2
.LC10:
	.ascii	"rbp\000"
	.text
	.align	2
	.global	XRecordFreeData
	.syntax unified
	.arm
	.fpu softvfp
	.type	XRecordFreeData, %function
XRecordFreeData:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #32]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	beq	.L149
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-24]
	b	.L150
.L154:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bcc	.L151
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-24]
	ldr	r1, [r1, #8]
	add	r3, r3, r1
	cmp	r2, r3
	bcs	.L151
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bgt	.L152
	ldr	r3, .L163
	mov	r2, #616
	ldr	r1, .L163+4
	ldr	r0, .L163+8
	bl	__assert_fail
.L152:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	sub	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3, #12]
	b	.L153
.L151:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-24]
.L150:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L154
.L153:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L149
	ldr	r3, .L163
	ldr	r2, .L163+12
	ldr	r1, .L163+4
	ldr	r0, .L163+16
	bl	__assert_fail
.L149:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L155
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #28]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	b	.L162
.L155:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L157
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L157
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	str	r3, [fp, #-20]
	b	.L158
.L161:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L159
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	b	.L160
.L159:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-20]
.L158:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L161
.L160:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	XFree
	ldr	r0, [fp, #-24]
	bl	XFree
.L157:
	ldr	r0, [fp, #-16]
	bl	XFree
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	sub	r2, r3, #1
	ldr	r3, [fp, #-12]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L162
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L162
	ldr	r0, [fp, #-12]
	bl	XFree
.L162:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L164:
	.align	2
.L163:
	.word	__PRETTY_FUNCTION__.10948
	.word	.LC8
	.word	.LC9
	.word	622
	.word	.LC10
	.size	XRecordFreeData, .-XRecordFreeData
	.section	.rodata
	.align	2
.LC11:
	.ascii	"XRecord: %lu-byte reply claims %d-byte element (seq"
	.ascii	" %lu)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_reply_call_callback, %function
parse_reply_call_callback:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
.L192:
	ldr	r0, [fp, #-28]
	bl	alloc_inter_data
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L166
	mov	r3, #2
	b	.L167
.L166:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L168
.L170:
	.word	.L174
	.word	.L173
	.word	.L172
	.word	.L171
	.word	.L169
	.word	.L169
.L174:
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L175
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L176
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	lsl	r2, r3, #24
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	lsl	r3, r3, #8
	and	r3, r3, #16711680
	orr	r2, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	lsr	r3, r3, #8
	and	r3, r3, #65280
	orr	r2, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	lsr	r3, r3, #24
	orr	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
.L176:
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	str	r3, [fp, #-16]
.L175:
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L177
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L178
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #24
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #8
	and	r3, r3, #16711680
	orr	r2, r2, r3
	ldr	r3, [fp, #-12]
	asr	r3, r3, #8
	and	r3, r3, #65280
	orr	r3, r2, r3
	ldr	r2, [fp, #-12]
	lsr	r2, r2, #24
	orr	r3, r3, r2
	str	r3, [fp, #-12]
.L178:
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	lsl	r3, r3, #2
	str	r3, [fp, #-12]
	nop
	b	.L168
.L177:
	mov	r3, #32
	str	r3, [fp, #-12]
	b	.L168
.L173:
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L180
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L181
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	lsl	r2, r3, #24
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	lsl	r3, r3, #8
	and	r3, r3, #16711680
	orr	r2, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	lsr	r3, r3, #8
	and	r3, r3, #65280
	orr	r2, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	lsr	r3, r3, #24
	orr	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
.L181:
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	str	r3, [fp, #-16]
.L180:
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L182
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L183
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	lsl	r2, r3, #24
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	lsl	r3, r3, #8
	and	r3, r3, #16711680
	orr	r2, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	lsr	r3, r3, #8
	and	r3, r3, #65280
	orr	r2, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	lsr	r3, r3, #24
	orr	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
.L183:
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	str	r3, [fp, #-16]
.L182:
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L184
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L184
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L186
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #24
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #8
	and	r3, r3, #16711680
	orr	r2, r2, r3
	ldr	r3, [fp, #-12]
	asr	r3, r3, #8
	and	r3, r3, #65280
	orr	r3, r2, r3
	ldr	r2, [fp, #-12]
	lsr	r2, r2, #24
	orr	r3, r3, r2
	str	r3, [fp, #-12]
	b	.L186
.L184:
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	add	r3, r2, r3
	ldrh	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L186
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, [fp, #-12]
	asr	r2, r2, #8
	and	r2, r2, #255
	orr	r3, r3, r2
	str	r3, [fp, #-12]
.L186:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	str	r3, [fp, #-12]
	b	.L168
.L172:
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #6
	add	r3, r2, r3
	ldrh	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L187
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, [fp, #-12]
	asr	r2, r2, #8
	and	r2, r2, #255
	orr	r3, r3, r2
	str	r3, [fp, #-12]
.L187:
	ldr	r3, [fp, #-12]
	add	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-12]
	b	.L168
.L171:
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L169
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L188
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	lsl	r2, r3, #24
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	lsl	r3, r3, #8
	and	r3, r3, #16711680
	orr	r2, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	lsr	r3, r3, #8
	and	r3, r3, #65280
	orr	r2, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	lsr	r3, r3, #24
	orr	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
.L188:
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	str	r3, [fp, #-16]
.L169:
	mov	r3, #0
	str	r3, [fp, #-12]
.L168:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L189
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	lsl	r3, r3, #2
	cmp	r2, r3
	bls	.L190
	ldr	r3, .L194
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	lsl	r1, r3, #2
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #92]
	str	r3, [sp]
	mov	r3, r2
	mov	r2, r1
	ldr	r1, .L194+4
	bl	fprintf
.L190:
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #12]
	add	r2, r3, #1
	ldr	r3, [fp, #-36]
	str	r2, [r3, #12]
	b	.L191
.L189:
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #20]
.L191:
	ldr	r3, [fp, #-12]
	asr	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #24]
	ldr	r3, [fp, #4]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #8]
	blx	r3
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bhi	.L192
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #5
	bne	.L193
	mov	r3, #1
	b	.L167
.L193:
	mov	r3, #0
.L167:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L195:
	.align	2
.L194:
	.word	stderr
	.word	.LC11
	.size	parse_reply_call_callback, .-parse_reply_call_callback
	.section	.rodata
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	XRecordEnableContext
	.syntax unified
	.arm
	.fpu softvfp
	.type	XRecordEnableContext, %function
XRecordEnableContext:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #76
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	str	r2, [fp, #-72]
	str	r3, [fp, #-76]
	ldr	r3, .L221
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, [fp, #-64]
	bl	find_display
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L197
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L198
.L197:
	ldr	r3, .L221+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	XMissingExtension
	mov	r3, #0
	b	.L218
.L198:
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L200
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3]
	ldr	r0, [fp, #-64]
	blx	r3
.L200:
	mov	r2, #8
	mov	r1, #5
	ldr	r0, [fp, #-64]
	bl	_XGetRequest
	mov	r4, r0
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #4]
	and	r3, r3, #255
	strb	r3, [r4]
	mov	r3, #5
	strb	r3, [r4, #1]
	ldr	r3, [fp, #-68]
	str	r3, [r4, #4]
.L217:
	sub	r1, fp, #48
	mov	r3, #0
	mov	r2, #0
	ldr	r0, [fp, #-64]
	bl	_XReply
	mov	r3, r0
	cmp	r3, #0
	bne	.L201
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L202
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3, #4]
	ldr	r0, [fp, #-64]
	blx	r3
.L202:
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #124]
	cmp	r3, #0
	beq	.L203
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #124]
	ldr	r0, [fp, #-64]
	blx	r3
.L203:
	mov	r3, #0
	b	.L218
.L201:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L204
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	alloc_reply_buffer
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L205
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L206
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3, #4]
	ldr	r0, [fp, #-64]
	blx	r3
.L206:
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #124]
	cmp	r3, #0
	beq	.L207
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #124]
	ldr	r0, [fp, #-64]
	blx	r3
.L207:
	mov	r3, #0
	b	.L218
.L205:
	ldr	r3, [fp, #-60]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r0, [fp, #-64]
	bl	_XRead
	b	.L208
.L204:
	mov	r3, #0
	str	r3, [fp, #-60]
.L208:
	sub	r2, fp, #48
	ldr	r3, [fp, #-76]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-72]
	str	r3, [sp]
	ldr	r3, [fp, #-60]
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-64]
	bl	parse_reply_call_callback
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #2
	beq	.L209
	ldr	r3, [fp, #-52]
	cmp	r3, #2
	bhi	.L217
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L220
	ldr	r3, [fp, #-52]
	cmp	r3, #1
	bne	.L210
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L213
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3, #4]
	ldr	r0, [fp, #-64]
	blx	r3
.L213:
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #124]
	cmp	r3, #0
	beq	.L214
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #124]
	ldr	r0, [fp, #-64]
	blx	r3
.L214:
	mov	r3, #1
	b	.L218
.L209:
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L215
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3, #4]
	ldr	r0, [fp, #-64]
	blx	r3
.L215:
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #124]
	cmp	r3, #0
	beq	.L216
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #124]
	ldr	r0, [fp, #-64]
	blx	r3
.L216:
	mov	r3, #0
	b	.L218
.L220:
	nop
.L210:
	b	.L217
.L218:
	ldr	r2, .L221
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L219
	bl	__stack_chk_fail
.L219:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L222:
	.align	2
.L221:
	.word	.LC12
	.word	xrecord_extension_name
	.size	XRecordEnableContext, .-XRecordEnableContext
	.section	.rodata
	.align	2
.LC13:
	.ascii	"XRecord: handler for seq %lu never saw XRecordEndOf"
	.ascii	"Data.  (seq now %lu)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	record_async_handler, %function
record_async_handler:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #36
	mov	r5, r0
	mov	r6, r1
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r4, [fp, #4]
	ldr	r2, [r5, #92]
	ldr	r3, [r4]
	cmp	r2, r3
	beq	.L224
	ldr	r2, [r5, #92]
	ldr	r3, [r4]
	cmp	r2, r3
	bls	.L225
	ldr	r3, .L240
	ldr	r0, [r3]
	ldr	r2, [r4]
	ldr	r3, [r5, #92]
	ldr	r1, .L240+4
	bl	fprintf
	ldr	r2, [r5, #1224]
	ldr	r3, [r4, #4]
	cmp	r2, r3
	bne	.L226
	ldr	r3, [r4, #4]
	ldr	r3, [r3]
	str	r3, [r5, #1224]
	b	.L227
.L226:
	ldr	r3, [r4, #4]
	mov	r1, r3
	mov	r0, r5
	bl	_XDeqAsyncHandler
.L227:
	ldr	r3, [r4, #4]
	mov	r0, r3
	bl	free
.L225:
	mov	r3, #0
	b	.L228
.L224:
	ldrb	r3, [r6]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L229
	ldr	r2, [r5, #1224]
	ldr	r3, [r4, #4]
	cmp	r2, r3
	bne	.L230
	ldr	r3, [r4, #4]
	ldr	r3, [r3]
	str	r3, [r5, #1224]
	b	.L231
.L230:
	ldr	r3, [r4, #4]
	mov	r1, r3
	mov	r0, r5
	bl	_XDeqAsyncHandler
.L231:
	ldr	r3, [r4, #4]
	mov	r0, r3
	bl	free
	mov	r3, #0
	b	.L228
.L229:
	ldr	r3, [r6, #4]
	cmp	r3, #0
	beq	.L232
	ldr	r2, [r4, #12]
	ldr	r3, [r6, #4]
	lsl	r3, r3, #2
	mov	r1, r3
	mov	r0, r2
	bl	alloc_reply_buffer
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L233
	ldr	r2, [r5, #1224]
	ldr	r3, [r4, #4]
	cmp	r2, r3
	bne	.L234
	ldr	r3, [r4, #4]
	ldr	r3, [r3]
	str	r3, [r5, #1224]
	b	.L235
.L234:
	ldr	r3, [r4, #4]
	mov	r1, r3
	mov	r0, r5
	bl	_XDeqAsyncHandler
.L235:
	ldr	r3, [r4, #4]
	mov	r0, r3
	bl	free
	mov	r3, #0
	b	.L228
.L233:
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #4]
	ldr	r3, [r6, #4]
	lsl	r3, r3, #2
	mov	r2, r3
	mov	r3, #0
	str	r3, [sp, #8]
	str	r2, [sp, #4]
	mov	r3, #32
	str	r3, [sp]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	mov	r0, r5
	bl	_XGetAsyncData
	b	.L236
.L232:
	mov	r3, #0
	str	r3, [fp, #-28]
.L236:
	ldr	r1, [r4, #12]
	ldr	r3, [r4, #16]
	ldr	r2, [r4, #20]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	mov	r2, r6
	mov	r0, r5
	bl	parse_reply_call_callback
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L237
	ldr	r2, [r5, #1224]
	ldr	r3, [r4, #4]
	cmp	r2, r3
	bne	.L238
	ldr	r3, [r4, #4]
	ldr	r3, [r3]
	str	r3, [r5, #1224]
	b	.L239
.L238:
	ldr	r3, [r4, #4]
	mov	r1, r3
	mov	r0, r5
	bl	_XDeqAsyncHandler
.L239:
	ldr	r3, [r4, #4]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	bne	.L237
	mov	r3, #0
	b	.L228
.L237:
	mov	r3, #1
.L228:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L241:
	.align	2
.L240:
	.word	stderr
	.word	.LC13
	.size	record_async_handler, .-record_async_handler
	.section	.rodata
	.align	2
.LC14:
	.ascii	"XRecord: malformed StartOfData for sequence %lu\012"
	.ascii	"\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	XRecordEnableContextAsync
	.syntax unified
	.arm
	.fpu softvfp
	.type	XRecordEnableContextAsync, %function
XRecordEnableContextAsync:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #84
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	str	r3, [fp, #-84]
	ldr	r3, .L257
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, [fp, #-72]
	bl	find_display
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L243
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L244
.L243:
	ldr	r3, .L257+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	XMissingExtension
	mov	r3, #0
	b	.L255
.L244:
	mov	r0, #36
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L246
	mov	r3, #0
	b	.L255
.L246:
	ldr	r3, [fp, #-64]
	add	r3, r3, #12
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L247
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3]
	ldr	r0, [fp, #-72]
	blx	r3
.L247:
	mov	r2, #8
	mov	r1, #5
	ldr	r0, [fp, #-72]
	bl	_XGetRequest
	mov	r4, r0
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #4]
	and	r3, r3, #255
	strb	r3, [r4]
	mov	r3, #5
	strb	r3, [r4, #1]
	ldr	r3, [fp, #-76]
	str	r3, [r4, #4]
	sub	r1, fp, #48
	mov	r3, #0
	mov	r2, #0
	ldr	r0, [fp, #-72]
	bl	_XReply
	mov	r3, r0
	cmp	r3, #0
	bne	.L248
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L249
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3, #4]
	ldr	r0, [fp, #-72]
	blx	r3
.L249:
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #124]
	cmp	r3, #0
	beq	.L250
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #124]
	ldr	r0, [fp, #-72]
	blx	r3
.L250:
	ldr	r0, [fp, #-64]
	bl	free
	mov	r3, #0
	b	.L255
.L248:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L251
	ldr	r3, .L257+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #92]
	mov	r2, r3
	ldr	r1, .L257+12
	bl	fprintf
.L251:
	mov	r3, #0
	str	r3, [fp, #-56]
	sub	r2, fp, #48
	ldr	r3, [fp, #-84]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-80]
	str	r3, [sp]
	ldr	r3, [fp, #-56]
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-72]
	bl	parse_reply_call_callback
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L252
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L253
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3, #4]
	ldr	r0, [fp, #-72]
	blx	r3
.L253:
	ldr	r0, [fp, #-64]
	bl	free
	mov	r3, #0
	b	.L255
.L252:
	ldr	r3, [fp, #-72]
	ldr	r2, [r3, #96]
	ldr	r3, [fp, #-60]
	str	r2, [r3]
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-64]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-68]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-80]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-84]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-72]
	ldr	r2, [r3, #1224]
	ldr	r3, [fp, #-64]
	str	r2, [r3]
	ldr	r3, [fp, #-64]
	ldr	r2, .L257+16
	str	r2, [r3, #4]
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-60]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-64]
	str	r2, [r3, #1224]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L254
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3, #4]
	ldr	r0, [fp, #-72]
	blx	r3
.L254:
	mov	r3, #1
.L255:
	ldr	r2, .L257
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L256
	bl	__stack_chk_fail
.L256:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L258:
	.align	2
.L257:
	.word	.LC15
	.word	xrecord_extension_name
	.word	stderr
	.word	.LC14
	.word	record_async_handler
	.size	XRecordEnableContextAsync, .-XRecordEnableContextAsync
	.align	2
	.global	XRecordProcessReplies
	.syntax unified
	.arm
	.fpu softvfp
	.type	XRecordProcessReplies, %function
XRecordProcessReplies:
	@ 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	r0, [fp, #-8]
	bl	XPending
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	XRecordProcessReplies, .-XRecordProcessReplies
	.align	2
	.global	XRecordDisableContext
	.syntax unified
	.arm
	.fpu softvfp
	.type	XRecordDisableContext, %function
XRecordDisableContext:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	find_display
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L261
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L262
.L261:
	ldr	r3, .L267
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	XMissingExtension
	mov	r3, #0
	b	.L263
.L262:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L264
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3]
	ldr	r0, [fp, #-24]
	blx	r3
.L264:
	mov	r2, #8
	mov	r1, #6
	ldr	r0, [fp, #-24]
	bl	_XGetRequest
	mov	r4, r0
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #4]
	and	r3, r3, #255
	strb	r3, [r4]
	mov	r3, #6
	strb	r3, [r4, #1]
	ldr	r3, [fp, #-28]
	str	r3, [r4, #4]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L265
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3, #4]
	ldr	r0, [fp, #-24]
	blx	r3
.L265:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #124]
	cmp	r3, #0
	beq	.L266
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #124]
	ldr	r0, [fp, #-24]
	blx	r3
.L266:
	mov	r3, #1
.L263:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L268:
	.align	2
.L267:
	.word	xrecord_extension_name
	.size	XRecordDisableContext, .-XRecordDisableContext
	.align	2
	.global	XRecordFreeContext
	.syntax unified
	.arm
	.fpu softvfp
	.type	XRecordFreeContext, %function
XRecordFreeContext:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	find_display
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L270
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L271
.L270:
	ldr	r3, .L276
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	XMissingExtension
	mov	r3, #0
	b	.L272
.L271:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L273
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3]
	ldr	r0, [fp, #-24]
	blx	r3
.L273:
	mov	r2, #8
	mov	r1, #7
	ldr	r0, [fp, #-24]
	bl	_XGetRequest
	mov	r4, r0
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #4]
	and	r3, r3, #255
	strb	r3, [r4]
	mov	r3, #7
	strb	r3, [r4, #1]
	ldr	r3, [fp, #-28]
	str	r3, [r4, #4]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #1232]
	cmp	r3, #0
	beq	.L274
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #1232]
	ldr	r3, [r3, #4]
	ldr	r0, [fp, #-24]
	blx	r3
.L274:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #124]
	cmp	r3, #0
	beq	.L275
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #124]
	ldr	r0, [fp, #-24]
	blx	r3
.L275:
	mov	r3, #1
.L272:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L277:
	.align	2
.L276:
	.word	xrecord_extension_name
	.size	XRecordFreeContext, .-XRecordFreeContext
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.10948, %object
	.size	__PRETTY_FUNCTION__.10948, 16
__PRETTY_FUNCTION__.10948:
	.ascii	"XRecordFreeData\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
