	.file	"1151680.c"
	.intel_syntax noprefix
	.text
	.type	binaryEqual, @function
binaryEqual:
.LFB6:
	.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	DWORD PTR -20[rbp], edx
	jmp	.L2
.L4:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	movzx	ecx, BYTE PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	cmp	cl, al
	je	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -20[rbp], edx
	test	eax, eax
	jne	.L4
	mov	eax, 1
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	binaryEqual, .-binaryEqual
	.section	.rodata
.LC0:
	.string	"rb"
	.text
	.globl	XauGetAuthByAddr
	.type	XauGetAuthByAddr, @function
XauGetAuthByAddr:
.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, 64
	mov	QWORD PTR -48[rbp], rdx
	mov	eax, ecx
	mov	QWORD PTR -64[rbp], r8
	mov	edx, r9d
	mov	ecx, edi
	mov	WORD PTR -36[rbp], cx
	mov	ecx, esi
	mov	WORD PTR -40[rbp], cx
	mov	WORD PTR -52[rbp], ax
	mov	eax, edx
	mov	WORD PTR -56[rbp], ax
	call	XauFileName@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L6
	mov	eax, 0
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	je	.L8
	mov	eax, 0
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L9
	mov	eax, 0
	jmp	.L7
.L9:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	XauReadAuth@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L15
	cmp	WORD PTR -36[rbp], -1
	je	.L12
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR [rax]
	cmp	ax, -1
	je	.L12
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR [rax]
	cmp	WORD PTR -36[rbp], ax
	jne	.L13
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 2[rax]
	cmp	WORD PTR -40[rbp], ax
	jne	.L13
	movzx	edx, WORD PTR -40[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	binaryEqual
	test	eax, eax
	je	.L13
.L12:
	cmp	WORD PTR -52[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 16[rax]
	test	ax, ax
	je	.L14
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 16[rax]
	cmp	WORD PTR -52[rbp], ax
	jne	.L13
	movzx	edx, WORD PTR -52[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	binaryEqual
	test	eax, eax
	je	.L13
.L14:
	cmp	WORD PTR -56[rbp], 0
	je	.L11
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 32[rax]
	test	ax, ax
	je	.L11
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 32[rax]
	cmp	WORD PTR -56[rbp], ax
	jne	.L13
	movzx	edx, WORD PTR -56[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rsi, QWORD PTR 16[rbp]
	mov	rdi, rax
	call	binaryEqual
	test	eax, eax
	jne	.L11
.L13:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	XauDisposeAuth@PLT
	jmp	.L9
.L15:
	nop
.L11:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -8[rbp]
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	XauGetAuthByAddr, .-XauGetAuthByAddr
	.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	"1151680.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	binaryEqual, %function
binaryEqual:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	b	.L2
.L4:
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	str	r2, [fp, #-8]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	str	r1, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L2
	mov	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	str	r2, [fp, #-16]
	cmp	r3, #0
	bne	.L4
	mov	r3, #1
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	binaryEqual, .-binaryEqual
	.section	.rodata
	.align	2
.LC0:
	.ascii	"rb\000"
	.text
	.align	2
	.global	XauGetAuthByAddr
	.syntax unified
	.arm
	.fpu softvfp
	.type	XauGetAuthByAddr, %function
XauGetAuthByAddr:
	@ args = 12, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r2, [fp, #-28]
	mov	r2, r3
	mov	r3, r0	@ movhi
	strh	r3, [fp, #-22]	@ movhi
	mov	r3, r1	@ movhi
	strh	r3, [fp, #-24]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-30]	@ movhi
	bl	XauFileName
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L6
	mov	r3, #0
	b	.L7
.L6:
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	access
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	mov	r3, #0
	b	.L7
.L8:
	ldr	r1, .L16
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L9
	mov	r3, #0
	b	.L7
.L9:
	ldr	r0, [fp, #-12]
	bl	XauReadAuth
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L15
	ldrh	r3, [fp, #-22]
	ldr	r2, .L16+4
	cmp	r3, r2
	beq	.L12
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3]
	ldr	r2, .L16+4
	cmp	r3, r2
	beq	.L12
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3]
	ldrh	r2, [fp, #-22]
	cmp	r2, r3
	bne	.L13
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3, #2]
	ldrh	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L13
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldrh	r2, [fp, #-24]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	binaryEqual
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
.L12:
	ldrh	r3, [fp, #-30]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3, #8]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3, #8]
	ldrh	r2, [fp, #-30]
	cmp	r2, r3
	bne	.L13
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	ldrh	r2, [fp, #-30]
	ldr	r1, [fp, #4]
	mov	r0, r3
	bl	binaryEqual
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
.L14:
	ldrh	r3, [fp, #8]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3, #16]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3, #16]
	ldrh	r2, [fp, #8]
	cmp	r2, r3
	bne	.L13
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	ldrh	r2, [fp, #8]
	ldr	r1, [fp, #12]
	mov	r0, r3
	bl	binaryEqual
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
.L13:
	ldr	r0, [fp, #-8]
	bl	XauDisposeAuth
	b	.L9
.L15:
	nop
.L11:
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r3, [fp, #-8]
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	65535
	.size	XauGetAuthByAddr, .-XauGetAuthByAddr
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
