	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IniCacheLoadByHandle           ## -- Begin function IniCacheLoadByHandle
	.p2align	4, 0x90
_IniCacheLoadByHandle:                  ## @IniCacheLoadByHandle
	.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
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	$0, (%rdi)
	movq	_FileStandardInformation@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movl	%r14d, %edi
	movl	$4, %ecx
	callq	_NtQueryInformationFile
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movl	-48(%rbp), %r13d
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	callq	_DPRINT
	movq	_ProcessHeap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leal	1(%r13), %edx
	xorl	%esi, %esi
	callq	_RtlAllocateHeap
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movslq	%r13d, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	$0, -72(%rbp)
	subq	$8, %rsp
	leaq	-72(%rbp), %rax
	leaq	-56(%rbp), %r8
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r9
	pushq	$0
	pushq	%rax
	pushq	%r13
	callq	_NtReadFile
	addq	$32, %rsp
	movl	%eax, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%r12,%rax,8)
	movl	%ebx, %edi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_IniCacheLoadFromMemory
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.4(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DPRINT1
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_DPRINT
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT1
	movq	_STATUS_INSUFFICIENT_RESOURCES@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	callq	_DPRINT
LBB0_8:
	movq	_ProcessHeap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_RtlFreeHeap
LBB0_9:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FileStandardInformation,4,2    ## @FileStandardInformation
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NtQueryInformationFile() failed (Status %lx)\n"

L_.str.1:                               ## @.str.1
	.asciz	"File size: %lu\n"

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

	.comm	_STATUS_INSUFFICIENT_RESOURCES,4,2 ## @STATUS_INSUFFICIENT_RESOURCES
L_.str.3:                               ## @.str.3
	.asciz	"NtReadFile() failed (Status %lx)\n"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IniCacheLoadByHandle           ; -- Begin function IniCacheLoadByHandle
	.p2align	2
_IniCacheLoadByHandle:                  ; @IniCacheLoadByHandle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x2
	mov	x23, x1
	mov	x21, x0
	str	xzr, [x0]
Lloh0:
	adrp	x8, _FileStandardInformation@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FileStandardInformation@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	add	x1, sp, #28
	add	x2, sp, #24
	mov	x0, x23
	mov	w3, #4
	bl	_NtQueryInformationFile
	mov	x22, x0
	bl	_NT_SUCCESS
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w22, [sp, #24]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_DPRINT
Lloh5:
	adrp	x25, _ProcessHeap@GOTPAGE
Lloh6:
	ldr	x25, [x25, _ProcessHeap@GOTPAGEOFF]
	ldr	w0, [x25]
	add	w2, w22, #1
	mov	w1, #0
	bl	_RtlAllocateHeap
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	sxtw	x24, w22
	str	xzr, [sp, #16]
	str	xzr, [sp]
	add	x4, sp, #28
	add	x7, sp, #16
	mov	x0, x23
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x5, x20
	mov	x6, x24
	bl	_NtReadFile
	mov	x22, x0
	str	xzr, [x20, x24, lsl #3]
	bl	_NT_SUCCESS
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	mov	x3, x19
	bl	_IniCacheLoadFromMemory
	mov	x22, x0
	bl	_NT_SUCCESS
	cbnz	w0, LBB0_8
; %bb.4:
	str	x22, [sp]
Lloh7:
	adrp	x0, l_.str.4@PAGE
Lloh8:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DPRINT1
	b	LBB0_8
LBB0_5:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_DPRINT
	b	LBB0_9
LBB0_6:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPRINT1
Lloh13:
	adrp	x8, _STATUS_INSUFFICIENT_RESOURCES@GOTPAGE
Lloh14:
	ldr	x8, [x8, _STATUS_INSUFFICIENT_RESOURCES@GOTPAGEOFF]
Lloh15:
	ldr	w22, [x8]
	b	LBB0_9
LBB0_7:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	bl	_DPRINT
LBB0_8:
	ldr	w0, [x25]
	mov	w1, #0
	mov	x2, x20
	bl	_RtlFreeHeap
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_FileStandardInformation,4,2    ; @FileStandardInformation
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NtQueryInformationFile() failed (Status %lx)\n"

l_.str.1:                               ; @.str.1
	.asciz	"File size: %lu\n"

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

	.comm	_STATUS_INSUFFICIENT_RESOURCES,4,2 ; @STATUS_INSUFFICIENT_RESOURCES
l_.str.3:                               ; @.str.3
	.asciz	"NtReadFile() failed (Status %lx)\n"

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

.subsections_via_symbols
