	.file	"extr_settings.c_WriteRdpFile.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str4.8,"aMS",@progbits,4
	.align 8
.LC0:
	.string	"%"
	.string	""
	.string	""
	.string	"s"
	.string	""
	.string	""
	.string	":"
	.string	""
	.string	""
	.string	"i"
	.string	""
	.string	""
	.string	":"
	.string	""
	.string	""
	.string	"%"
	.string	""
	.string	""
	.string	"d"
	.string	""
	.string	""
	.string	"\r"
	.string	""
	.string	""
	.string	"\n"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.align 8
.LC1:
	.string	"%"
	.string	""
	.string	""
	.string	"s"
	.string	""
	.string	""
	.string	":"
	.string	""
	.string	""
	.string	"s"
	.string	""
	.string	""
	.string	":"
	.string	""
	.string	""
	.string	"%"
	.string	""
	.string	""
	.string	"s"
	.string	""
	.string	""
	.string	"\r"
	.string	""
	.string	""
	.string	"\n"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.text
	.p2align 4
	.type	WriteRdpFile, @function
WriteRdpFile:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15d, edi
	push	r14
	push	r13
	push	r12
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rsi
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR MAXVALUE[rip]
	add	eax, DWORD PTR MAXKEY[rip]
	mov	rcx, rsp
	add	eax, 4
	cdqe
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L28:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L28
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L29
.L4:
	lea	rax, -64[rbp]
	cmp	QWORD PTR [r12], 0
	mov	QWORD PTR -80[rbp], 0
	mov	r14, rsp
	mov	QWORD PTR -72[rbp], rax
	je	.L6
.L5:
	mov	r13, QWORD PTR -80[rbp]
	xor	ebx, ebx
	sal	r13, 4
	cmp	QWORD PTR NUM_SETTINGS[rip], 0
	jne	.L12
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r8d, DWORD PTR 4[rax]
	lea	rdx, .LC1[rip]
	mov	rdi, r14
	call	_snwprintf@PLT
.L9:
	mov	rdi, r14
	call	wcslen@PLT
	mov	rcx, QWORD PTR -72[rbp]
	xor	r8d, r8d
	mov	rsi, r14
	lea	edx, 0[0+rax*4]
	mov	edi, r15d
	call	WriteFile@PLT
	test	eax, eax
	je	.L10
	cmp	QWORD PTR -64[rbp], 0
	je	.L10
.L7:
	add	rbx, 1
	cmp	QWORD PTR NUM_SETTINGS[rip], rbx
	jbe	.L14
.L12:
	mov	rax, QWORD PTR 8[r12]
	mov	esi, DWORD PTR 12[rax+r13]
	mov	rax, QWORD PTR lpSettings[rip]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	wcscmp@PLT
	test	rax, rax
	jne	.L7
	mov	rax, QWORD PTR 8[r12]
	mov	esi, DWORD PTR MAXVALUE[rip]
	add	esi, DWORD PTR MAXKEY[rip]
	add	rax, r13
	add	esi, 4
	cmp	DWORD PTR [rax], 105
	mov	ecx, DWORD PTR 12[rax]
	jne	.L8
	mov	r8d, DWORD PTR 8[rax]
	lea	rdx, .LC0[rip]
	mov	rdi, r14
	call	_snwprintf@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L14:
	add	QWORD PTR -80[rbp], 1
	mov	rax, QWORD PTR -80[rbp]
	cmp	QWORD PTR [r12], rax
	ja	.L5
.L6:
	mov	eax, DWORD PTR TRUE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR FALSE[rip]
.L1:
	mov	rcx, QWORD PTR -56[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L30
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L29:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	WriteRdpFile, .-WriteRdpFile
	.comm	lpSettings,8,8
	.comm	TRUE,4,4
	.comm	NUM_SETTINGS,8,8
	.comm	MAXVALUE,4,4
	.comm	MAXKEY,4,4
	.comm	FALSE,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_settings.c_WriteRdpFile.c"
	.text
	.section	.rodata.str4.4,"aMS",%progbits,4
	.align	2
.LC0:
	.ascii	"%\000\000\000s\000\000\000:\000\000\000i\000\000\000"
	.ascii	":\000\000\000%\000\000\000d\000\000\000\015\000\000"
	.ascii	"\000\012\000\000\000\000\000\000\000"
	.align	2
.LC1:
	.ascii	"%\000\000\000s\000\000\000:\000\000\000s\000\000\000"
	.ascii	":\000\000\000%\000\000\000s\000\000\000\015\000\000"
	.ascii	"\000\012\000\000\000\000\000\000\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	WriteRdpFile, %function
WriteRdpFile:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #28
	ldr	r10, .L21
	ldr	r3, .L21+4
	ldr	r2, [r10]
	ldr	r3, [r3]
	str	r0, [fp, #-48]
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, #23
	bic	r3, r3, #7
	ldr	r2, [r1]
	sub	sp, sp, r3
	ldr	r3, .L21+8
	cmp	r2, #0
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	beq	.L3
	mov	r3, #0
	mov	r6, r1
	ldr	r8, .L21+12
	ldr	r9, .L21+16
	add	r7, sp, #8
	str	r3, [fp, #-52]
.L2:
	ldr	r3, [r8]
	cmp	r3, #0
	beq	.L11
	mov	r4, #0
	ldr	r3, [fp, #-52]
	lsl	r5, r3, #4
.L9:
	ldr	r3, [r6, #4]
	ldr	r2, [r9]
	add	r3, r3, r5
	ldr	r1, [r3, #12]
	ldr	r0, [r2, r4, lsl #2]
	bl	wcscmp
	cmp	r0, #0
	bne	.L4
	ldr	r3, [r6, #4]
	ldr	r2, .L21+4
	ldr	r0, [r10]
	ldr	r1, [r2]
	ldr	r2, [r3, r5]
	add	r1, r1, r0
	cmp	r2, #105
	add	r2, r3, r5
	ldr	r3, [r2, #12]
	ldreq	r2, [r2, #8]
	ldrne	r2, [r2, #4]
	streq	r2, [sp]
	strne	r2, [sp]
	ldreq	r2, .L21+20
	ldrne	r2, .L21+24
	add	r1, r1, #4
	mov	r0, r7
	bl	_snwprintf
	mov	r0, r7
	bl	wcslen
	mov	r3, #0
	lsl	r2, r0, #2
	str	r3, [sp]
	mov	r1, r7
	ldr	r0, [fp, #-48]
	sub	r3, fp, #44
	bl	WriteFile
	cmp	r0, #0
	beq	.L7
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L7
.L4:
	ldr	r3, [r8]
	add	r4, r4, #1
	cmp	r3, r4
	bhi	.L9
	ldr	r2, [r6]
.L11:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	cmp	r2, r3
	str	r3, [fp, #-52]
	bhi	.L2
.L3:
	ldr	r3, .L21+28
	ldr	r0, [r3]
	b	.L1
.L7:
	ldr	r3, .L21+32
	ldr	r0, [r3]
.L1:
	ldr	r3, .L21+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	MAXVALUE
	.word	MAXKEY
	.word	.LC2
	.word	NUM_SETTINGS
	.word	lpSettings
	.word	.LC0
	.word	.LC1
	.word	TRUE
	.word	FALSE
	.size	WriteRdpFile, .-WriteRdpFile
	.comm	lpSettings,4,4
	.comm	TRUE,4,4
	.comm	NUM_SETTINGS,4,4
	.comm	MAXVALUE,4,4
	.comm	MAXKEY,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
