	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IniCacheLoad                   ## -- Begin function IniCacheLoad
	.p2align	4, 0x90
_IniCacheLoad:                          ## @IniCacheLoad
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	$0, (%rdi)
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_RtlInitUnicodeString
	movq	_OBJ_CASE_INSENSITIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_InitializeObjectAttributes
	movq	_FILE_GENERIC_READ@GOTPCREL(%rip), %rax
	movq	_SYNCHRONIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_FILE_SHARE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_FILE_SYNCHRONOUS_IO_NONALERT@GOTPCREL(%rip), %rax
	movq	_FILE_NON_DIRECTORY_FILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	orl	(%rax), %r9d
	leaq	-36(%rbp), %rdi
	leaq	-40(%rbp), %rcx
	movq	%r12, %rdx
	callq	_NtOpenFile
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
	movl	-36(%rbp), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_IniCacheLoadByHandle
	movl	%eax, %ebx
	movl	-36(%rbp), %edi
	callq	_NtClose
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DPRINT
LBB0_3:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJ_CASE_INSENSITIVE,4,2       ## @OBJ_CASE_INSENSITIVE
	.comm	_FILE_GENERIC_READ,4,2          ## @FILE_GENERIC_READ
	.comm	_SYNCHRONIZE,4,2                ## @SYNCHRONIZE
	.comm	_FILE_SHARE_READ,4,2            ## @FILE_SHARE_READ
	.comm	_FILE_SYNCHRONOUS_IO_NONALERT,4,2 ## @FILE_SYNCHRONOUS_IO_NONALERT
	.comm	_FILE_NON_DIRECTORY_FILE,4,2    ## @FILE_NON_DIRECTORY_FILE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NtOpenFile() failed (Status %lx)\n"

L_.str.1:                               ## @.str.1
	.asciz	"NtOpenFile() successful\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IniCacheLoad                   ; -- Begin function IniCacheLoad
	.p2align	2
_IniCacheLoad:                          ; @IniCacheLoad
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x0
	str	xzr, [x0]
	add	x0, sp, #28
	bl	_RtlInitUnicodeString
Lloh0:
	adrp	x8, _OBJ_CASE_INSENSITIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OBJ_CASE_INSENSITIVE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #24
	add	x1, sp, #28
	mov	x3, #0
	mov	x4, #0
	bl	_InitializeObjectAttributes
Lloh3:
	adrp	x8, _FILE_GENERIC_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FILE_GENERIC_READ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _SYNCHRONIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SYNCHRONIZE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh9:
	adrp	x8, _FILE_SHARE_READ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FILE_SHARE_READ@GOTPAGEOFF]
Lloh11:
	adrp	x9, _FILE_SYNCHRONOUS_IO_NONALERT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FILE_SYNCHRONOUS_IO_NONALERT@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
Lloh14:
	ldr	w8, [x9]
Lloh15:
	adrp	x9, _FILE_NON_DIRECTORY_FILE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FILE_NON_DIRECTORY_FILE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w5, w9, w8
	add	x0, sp, #16
	add	x2, sp, #24
	add	x3, sp, #20
	bl	_NtOpenFile
	mov	x21, x0
	bl	_NT_SUCCESS
	cbz	w0, LBB0_2
; %bb.1:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINT
	ldr	w1, [sp, #16]
	mov	x0, x20
	mov	x2, x19
	bl	_IniCacheLoadByHandle
	mov	x21, x0
	ldr	w0, [sp, #16]
	bl	_NtClose
	b	LBB0_3
LBB0_2:
	str	x21, [sp]
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINT
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJ_CASE_INSENSITIVE,4,2       ; @OBJ_CASE_INSENSITIVE
	.comm	_FILE_GENERIC_READ,4,2          ; @FILE_GENERIC_READ
	.comm	_SYNCHRONIZE,4,2                ; @SYNCHRONIZE
	.comm	_FILE_SHARE_READ,4,2            ; @FILE_SHARE_READ
	.comm	_FILE_SYNCHRONOUS_IO_NONALERT,4,2 ; @FILE_SYNCHRONOUS_IO_NONALERT
	.comm	_FILE_NON_DIRECTORY_FILE,4,2    ; @FILE_NON_DIRECTORY_FILE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NtOpenFile() failed (Status %lx)\n"

l_.str.1:                               ; @.str.1
	.asciz	"NtOpenFile() successful\n"

.subsections_via_symbols
