	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IniCacheSaveByHandle           ## -- Begin function IniCacheSaveByHandle
	.p2align	4, 0x90
_IniCacheSaveByHandle:                  ## @IniCacheSaveByHandle
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rdi), %r15
	testq	%r15, %r15
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %r15
	leal	2(%r12), %ebx
	testq	%r15, %r15
	je	LBB0_12
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	16(%r15), %rdi
	movl	$0, %eax
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_wcslen
                                        ## kill: def $eax killed $eax def $rax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	(%rbx,%rax), %r12d
	addl	$4, %r12d
	movq	8(%r15), %rbx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	xorl	%eax, %eax
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	addl	%r14d, %r12d
	addl	%eax, %r12d
	addl	$3, %r12d
	movq	(%rbx), %rbx
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	16(%rbx), %rdi
	callq	_wcslen
	movl	%eax, %r14d
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	callq	_wcslen
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_10
LBB0_1:
	xorl	%r12d, %r12d
LBB0_12:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_DPRINT
	movq	_ProcessHeap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	1(%r12), %edx
	callq	_RtlAllocateHeap
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%r13), %r14
	testq	%r14, %r14
	je	LBB0_21
## %bb.15:
	leaq	L_.str.3(%rip), %r13
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movq	16(%r14), %rdx
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_sprintf
	cltq
	leaq	(%r15,%rax,4), %r15
	movq	8(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_sprintf
	cltq
	leaq	(%r15,%rax,4), %r15
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_17
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	(%r14), %r14
	testq	%r14, %r14
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	movb	$0, 2(%r15)
	movw	$2573, (%r15)                   ## imm = 0xA0D
	addq	$8, %r15
	jmp	LBB0_16
LBB0_21:
	movq	$0, -64(%rbp)
	subq	$8, %rsp
	leaq	-64(%rbp), %rax
	leaq	-68(%rbp), %r8
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r9
	pushq	$0
	pushq	%rax
	pushq	%r12
	callq	_NtWriteFile
	addq	$32, %rsp
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	je	LBB0_22
## %bb.23:
	movq	_ProcessHeap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_RtlFreeHeap
	movq	_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
	callq	_DPRINT1
	movq	_STATUS_INSUFFICIENT_RESOURCES@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %ebx
	jmp	LBB0_25
LBB0_22:
	leaq	L_.str.5(%rip), %rdi
	movl	%ebx, %esi
	callq	_DPRINT
	movq	_ProcessHeap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_RtlFreeHeap
LBB0_25:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BufferSize: %lu\n"

	.comm	_ProcessHeap,4,2                ## @ProcessHeap
	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
L_.str.1:                               ## @.str.1
	.asciz	"RtlAllocateHeap() failed\n"

	.comm	_STATUS_INSUFFICIENT_RESOURCES,4,2 ## @STATUS_INSUFFICIENT_RESOURCES
L_.str.2:                               ## @.str.2
	.asciz	"[%S]\r\n"

L_.str.3:                               ## @.str.3
	.asciz	"%S=%S\r\n"

L_.str.4:                               ## @.str.4
	.asciz	"\r\n"

L_.str.5:                               ## @.str.5
	.asciz	"NtWriteFile() failed (Status %lx)\n"

	.comm	_STATUS_SUCCESS,4,2             ## @STATUS_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IniCacheSaveByHandle           ; -- Begin function IniCacheSaveByHandle
	.p2align	2
_IniCacheSaveByHandle:                  ; @IniCacheSaveByHandle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x1
	mov	x22, x0
	ldr	x23, [x0]
	cbz	x23, LBB0_9
; %bb.1:
	mov	w21, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x23, [x23]
	add	w21, w20, #2
	cbz	x23, LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x0, [x23, #16]
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_wcslen
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w21, w0
	add	w20, w8, #4
	ldr	x24, [x23, #8]
	cbnz	x24, LBB0_7
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w8, w20, w21
	add	w8, w8, w0
	add	w20, w8, #3
	ldr	x24, [x24]
	cbz	x24, LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x24, #16]
	bl	_wcslen
	mov	x21, x0
	ldr	x0, [x24, #8]
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	bl	_wcslen
	b	LBB0_6
LBB0_9:
	mov	w20, #0
LBB0_10:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DPRINT
Lloh2:
	adrp	x25, _ProcessHeap@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ProcessHeap@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh4:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	w2, w20, #1
	bl	_RtlAllocateHeap
	cbz	x0, LBB0_19
; %bb.11:
	mov	x21, x0
	ldr	x26, [x22]
	cbz	x26, LBB0_17
; %bb.12:
Lloh7:
	adrp	x22, l_.str.2@PAGE
Lloh8:
	add	x22, x22, l_.str.2@PAGEOFF
	mov	w27, #2573
	mov	x24, x21
Lloh9:
	adrp	x23, l_.str.3@PAGE
Lloh10:
	add	x23, x23, l_.str.3@PAGEOFF
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldr	x8, [x26, #16]
	str	x8, [sp]
	mov	x0, x24
	mov	x1, x22
	bl	_sprintf
	add	x24, x24, w0, sxtw #2
	ldr	x28, [x26, #8]
	cbz	x28, LBB0_15
LBB0_14:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x9, x8, [x28, #8]
	stp	x8, x9, [sp]
	mov	x0, x24
	mov	x1, x23
	bl	_sprintf
	add	x24, x24, w0, sxtw #2
	ldr	x28, [x28]
	cbnz	x28, LBB0_14
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x26, [x26]
	cbz	x26, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	strb	wzr, [x24, #2]
	strh	w27, [x24], #8
	b	LBB0_13
LBB0_17:
	str	xzr, [sp, #16]
	str	xzr, [sp]
	add	x4, sp, #28
	add	x7, sp, #16
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x5, x21
	mov	x6, x20
	bl	_NtWriteFile
	mov	x19, x0
	bl	_NT_SUCCESS
	cbz	w0, LBB0_21
; %bb.18:
	ldr	w0, [x25]
	mov	w1, #0
	mov	x2, x21
	bl	_RtlFreeHeap
Lloh11:
	adrp	x8, _STATUS_SUCCESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _STATUS_SUCCESS@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINT1
Lloh15:
	adrp	x8, _STATUS_INSUFFICIENT_RESOURCES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _STATUS_INSUFFICIENT_RESOURCES@GOTPAGEOFF]
LBB0_20:
	ldr	w19, [x8]
	b	LBB0_22
LBB0_21:
Lloh17:
	adrp	x0, l_.str.5@PAGE
Lloh18:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x19
	bl	_DPRINT
	ldr	w0, [x25]
	mov	w1, #0
	mov	x2, x21
	bl	_RtlFreeHeap
LBB0_22:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BufferSize: %lu\n"

	.comm	_ProcessHeap,4,2                ; @ProcessHeap
	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
l_.str.1:                               ; @.str.1
	.asciz	"RtlAllocateHeap() failed\n"

	.comm	_STATUS_INSUFFICIENT_RESOURCES,4,2 ; @STATUS_INSUFFICIENT_RESOURCES
l_.str.2:                               ; @.str.2
	.asciz	"[%S]\r\n"

l_.str.3:                               ; @.str.3
	.asciz	"%S=%S\r\n"

l_.str.4:                               ; @.str.4
	.asciz	"\r\n"

l_.str.5:                               ; @.str.5
	.asciz	"NtWriteFile() failed (Status %lx)\n"

	.comm	_STATUS_SUCCESS,4,2             ; @STATUS_SUCCESS
.subsections_via_symbols
