	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WriteRdpFile
_WriteRdpFile:                          ## @WriteRdpFile
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MAXVALUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %eax
	addl	$4, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	(%rbx), %rax
	movq	_TRUE@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	_NUM_SETTINGS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rax
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	cmpq	%rax, %r14
	jae	LBB0_13
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=2
	incq	%r13
	movq	_NUM_SETTINGS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, %r13
	jae	LBB0_2
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_lpSettings@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %edi
	movq	8(%rbx), %rax
	movq	%r14, %r12
	shlq	$4, %r12
	movl	12(%rax,%r12), %esi
	callq	_wcscmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	8(%rbx), %rax
	movl	12(%rax,%r12), %ecx
	cmpl	$105, (%rax,%r12)
	movq	_MAXKEY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	leaq	4(%rax,%r12), %rsi
	leaq	8(%rax,%r12), %rax
	movq	_MAXVALUE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	cmovneq	%rsi, %rax
	leal	4(%rdx,%rdi), %esi
	leaq	l_.str.1(%rip), %rdx
	leaq	l_.str(%rip), %rdi
	cmoveq	%rdi, %rdx
	movl	(%rax), %r8d
	movq	%r15, %rdi
	callq	__snwprintf
	movq	%r15, %rdi
	callq	_wcslen
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,4), %edx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	leaq	-64(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	_WriteFile
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpq	$0, -64(%rbp)
	jne	LBB0_6
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_3
LBB0_12:
	movq	_FALSE@GOTPCREL(%rip), %rcx
LBB0_14:
	movl	(%rcx), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.15:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_TRUE@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXKEY,4,2                     ## @MAXKEY
	.comm	_MAXVALUE,4,2                   ## @MAXVALUE
	.comm	_NUM_SETTINGS,8,3               ## @NUM_SETTINGS
	.comm	_lpSettings,8,3                 ## @lpSettings
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	37                              ## 0x25
	.long	115                             ## 0x73
	.long	58                              ## 0x3a
	.long	105                             ## 0x69
	.long	58                              ## 0x3a
	.long	37                              ## 0x25
	.long	100                             ## 0x64
	.long	13                              ## 0xd
	.long	10                              ## 0xa
	.long	0                               ## 0x0

	.p2align	2                               ## @.str.1
l_.str.1:
	.long	37                              ## 0x25
	.long	115                             ## 0x73
	.long	58                              ## 0x3a
	.long	115                             ## 0x73
	.long	58                              ## 0x3a
	.long	37                              ## 0x25
	.long	115                             ## 0x73
	.long	13                              ## 0xd
	.long	10                              ## 0xa
	.long	0                               ## 0x0

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_WriteRdpFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WriteRdpFile
_WriteRdpFile:                          ; @WriteRdpFile
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAXKEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXKEY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x23, _MAXVALUE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MAXVALUE@GOTPAGEOFF]
	ldr	w9, [x23]
	add	w8, w8, w9
	add	w8, w8, #4
	lsl	x9, x8, #2
	add	x8, x9, #15
	and	x8, x8, #0x7fffffff0
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x21, x9, x8
	mov	sp, x21
	ldr	x8, [x1]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x24, #0
Lloh10:
	adrp	x25, _NUM_SETTINGS@GOTPAGE
Lloh11:
	ldr	x25, [x25, _NUM_SETTINGS@GOTPAGEOFF]
	ldr	x9, [x25]
Lloh12:
	adrp	x28, _lpSettings@GOTPAGE
Lloh13:
	ldr	x28, [x28, _lpSettings@GOTPAGEOFF]
Lloh14:
	adrp	x27, l_.str.1@PAGE
Lloh15:
	add	x27, x27, l_.str.1@PAGEOFF
Lloh16:
	adrp	x26, l_.str@PAGE
Lloh17:
	add	x26, x26, l_.str@PAGEOFF
Lloh18:
	adrp	x10, _FALSE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _FALSE@GOTPAGEOFF]
	stur	x10, [x29, #-104]               ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	cmp	x24, x8
	b.hs	LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cbz	x9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x22, x22, #1
	ldr	x9, [x25]
	cmp	x22, x9
	b.hs	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x28]
	ldr	w0, [x8, x22, lsl #2]
	ldr	x8, [x19, #8]
	add	x8, x8, x24, lsl #4
	ldr	w1, [x8, #12]
	bl	_wcscmp
	cbnz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x19, #8]
	add	x8, x8, x24, lsl #4
	ldr	w9, [x8]
Lloh20:
	adrp	x10, _MAXKEY@GOTPAGE
Lloh21:
	ldr	x10, [x10, _MAXKEY@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	ldr	w11, [x23]
	add	w10, w10, w11
	add	w1, w10, #4
	ldr	w3, [x8, #12]
	add	x10, x8, #4
	add	x8, x8, #8
	cmp	w9, #105
	csel	x8, x8, x10, eq
	csel	x2, x26, x27, eq
	ldr	w4, [x8]
	mov	x0, x21
	bl	__snwprintf
	mov	x0, x21
	bl	_wcslen
	lsl	w2, w0, #2
	sub	x3, x29, #96
	mov	x0, x20
	mov	x1, x21
	mov	x4, #0
	bl	_WriteFile
	cbz	w0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldur	x8, [x29, #-96]
	cbnz	x8, LBB0_6
	b	LBB0_11
LBB0_10:
Lloh23:
	adrp	x8, _TRUE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
LBB0_11:
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXKEY,4,2                     ; @MAXKEY
	.comm	_MAXVALUE,4,2                   ; @MAXVALUE
	.comm	_NUM_SETTINGS,8,3               ; @NUM_SETTINGS
	.comm	_lpSettings,8,3                 ; @lpSettings
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	37                              ; 0x25
	.long	115                             ; 0x73
	.long	58                              ; 0x3a
	.long	105                             ; 0x69
	.long	58                              ; 0x3a
	.long	37                              ; 0x25
	.long	100                             ; 0x64
	.long	13                              ; 0xd
	.long	10                              ; 0xa
	.long	0                               ; 0x0

	.p2align	2                               ; @.str.1
l_.str.1:
	.long	37                              ; 0x25
	.long	115                             ; 0x73
	.long	58                              ; 0x3a
	.long	115                             ; 0x73
	.long	58                              ; 0x3a
	.long	37                              ; 0x25
	.long	115                             ; 0x73
	.long	13                              ; 0xd
	.long	10                              ; 0xa
	.long	0                               ; 0x0

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_WriteRdpFile
.subsections_via_symbols
