	.file	"extr_rdesktop.c_generate_random.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/dev/urandom"
.LC1:
	.string	"/dev/random"
.LC2:
	.string	"/tmp"
	.text
	.p2align 4
	.globl	generate_random
	.type	generate_random, @function
generate_random:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	lea	rdi, .LC0[rip]
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR O_RDONLY[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	open@PLT
	mov	ebp, eax
	cmp	eax, -1
	je	.L12
.L2:
	mov	edi, ebp
	mov	edx, 32
	mov	rsi, rbx
	call	read@PLT
	mov	edi, ebp
	mov	r12d, eax
	call	close@PLT
	cmp	r12d, 32
	je	.L1
.L3:
	xor	eax, eax
	lea	r12, 8[rsp]
	call	getpid@PLT
	mov	ebp, eax
	xor	eax, eax
	call	getppid@PLT
	sal	eax, 16
	or	eax, ebp
	mov	DWORD PTR [rbx], eax
	xor	eax, eax
	call	getuid@PLT
	mov	ebp, eax
	xor	eax, eax
	call	getgid@PLT
	lea	rdi, 4[rsp]
	sal	eax, 16
	or	eax, ebp
	lea	rbp, 64[rbx]
	mov	DWORD PTR 4[rbx], eax
	call	times@PLT
	lea	rdi, 12[rbx]
	xor	esi, esi
	mov	DWORD PTR 8[rbx], eax
	call	gettimeofday@PLT
	lea	rsi, 12[rsp]
	lea	rdi, .LC2[rip]
	call	stat@PLT
	mov	rax, QWORD PTR 12[rsp]
	mov	rdi, r12
	mov	QWORD PTR 20[rbx], rax
	mov	eax, DWORD PTR 20[rsp]
	mov	DWORD PTR 28[rbx], eax
	call	MD5_Init@PLT
	mov	edx, 16
	mov	rsi, rbx
	mov	rdi, r12
	call	MD5_Update@PLT
	mov	rsi, r12
	mov	rdi, rbx
	call	MD5_Final@PLT
	mov	rsi, rbp
	mov	rdi, r12
	mov	edx, 16
	call	MD5_Update@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	MD5_Final@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	esi, DWORD PTR O_RDONLY[rip]
	lea	rdi, .LC1[rip]
	call	open@PLT
	mov	ebp, eax
	cmp	eax, -1
	jne	.L2
	jmp	.L3
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	generate_random, .-generate_random
	.comm	O_RDONLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_rdesktop.c_generate_random.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/dev/urandom\000"
	.align	2
.LC1:
	.ascii	"/dev/random\000"
	.align	2
.LC2:
	.ascii	"/tmp\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	generate_random
	.syntax unified
	.arm
	.fpu softvfp
	.type	generate_random, %function
generate_random:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L14
	ldr	r3, .L14+4
	sub	sp, sp, #24
	mov	r4, r0
	ldr	r1, [r6]
	ldr	r0, .L14+8
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	open
	cmn	r0, #1
	movne	r5, r0
	beq	.L12
.L2:
	mov	r2, #32
	mov	r1, r4
	mov	r0, r5
	bl	read
	mov	r6, r0
	mov	r0, r5
	bl	close
	cmp	r6, #32
	beq	.L1
.L3:
	bl	getpid
	mov	r5, r0
	bl	getppid
	orr	r5, r5, r0, lsl #16
	str	r5, [r4]
	bl	getuid
	mov	r5, r0
	bl	getgid
	orr	r5, r5, r0, lsl #16
	str	r5, [r4, #4]
	mov	r0, sp
	bl	times
	mov	r1, #0
	str	r0, [r4, #8]
	add	r0, r4, #12
	bl	gettimeofday
	add	r1, sp, #8
	ldr	r0, .L14+12
	bl	stat
	add	r1, sp, #8
	ldm	r1, {r1, r2, r3}
	add	r0, sp, #4
	str	r3, [r4, #28]
	str	r1, [r4, #20]
	str	r2, [r4, #24]
	bl	MD5_Init
	mov	r2, #16
	mov	r1, r4
	add	r0, sp, #4
	bl	MD5_Update
	mov	r0, r4
	add	r1, sp, #4
	add	r4, r4, #64
	bl	MD5_Final
	mov	r1, r4
	mov	r2, #16
	add	r0, sp, #4
	bl	MD5_Update
	mov	r0, r4
	add	r1, sp, #4
	bl	MD5_Final
.L1:
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r1, [r6]
	ldr	r0, .L14+16
	bl	open
	cmn	r0, #1
	mov	r5, r0
	bne	.L2
	b	.L3
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	O_RDONLY
	.word	.LC3
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.size	generate_random, .-generate_random
	.comm	O_RDONLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
