	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReadPageFileSettings
_ReadPageFileSettings:                  ## @ReadPageFileSettings
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_HKEY_LOCAL_MACHINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_lpKey@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_OPTION_NON_VOLATILE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_KEY_QUERY_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	leaq	-48(%rbp), %rax
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	$0
	pushq	%rax
	pushq	$0
	callq	_RegCreateKeyEx
	addq	$32, %rsp
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.1:
	movq	-48(%rbp), %rbx
	leaq	L_.str(%rip), %rdi
	callq	__T
	leaq	-52(%rbp), %rcx
	leaq	-36(%rbp), %r9
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_RegQueryValueEx
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.2:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	-36(%rbp), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	-36(%rbp), %esi
	movq	%rax, %rdi
	callq	_ZeroMemory
	movq	-48(%rbp), %rbx
	leaq	L_.str(%rip), %rdi
	callq	__T
	movq	8(%r14), %r8
	leaq	-52(%rbp), %rcx
	leaq	-36(%rbp), %r9
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_RegQueryValueEx
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.4:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_5:
	testl	%r15d, %r15d
	jne	LBB0_7
## %bb.6:
	movl	(%r14), %edi
	callq	_ShowLastWin32Error
LBB0_7:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_RegCloseKey
LBB0_9:
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_HKEY_LOCAL_MACHINE,4,2         ## @HKEY_LOCAL_MACHINE
	.comm	_lpKey,4,2                      ## @lpKey
	.comm	_REG_OPTION_NON_VOLATILE,4,2    ## @REG_OPTION_NON_VOLATILE
	.comm	_KEY_QUERY_VALUE,4,2            ## @KEY_QUERY_VALUE
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PagingFiles"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_ReadPageFileSettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReadPageFileSettings
_ReadPageFileSettings:                  ; @ReadPageFileSettings
	.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	x20, x0
	str	xzr, [sp, #24]
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x8, _HKEY_LOCAL_MACHINE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HKEY_LOCAL_MACHINE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _lpKey@GOTPAGE
Lloh7:
	ldr	x8, [x8, _lpKey@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _REG_OPTION_NON_VOLATILE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_OPTION_NON_VOLATILE@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
Lloh12:
	adrp	x8, _KEY_QUERY_VALUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KEY_QUERY_VALUE@GOTPAGEOFF]
Lloh14:
	ldr	w5, [x8]
	str	xzr, [sp]
	add	x7, sp, #24
	mov	w2, #0
	mov	x3, #0
	mov	x6, #0
	bl	_RegCreateKeyEx
Lloh15:
	adrp	x22, _ERROR_SUCCESS@GOTPAGE
Lloh16:
	ldr	x22, [x22, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	ldr	x21, [sp, #24]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	__T
	mov	x1, x0
	add	x3, sp, #20
	add	x5, sp, #16
	mov	x0, x21
	mov	x2, #0
	mov	x4, #0
	bl	_RegQueryValueEx
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	bl	_GetProcessHeap
	ldr	w2, [sp, #16]
	mov	w1, #0
	bl	_HeapAlloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [sp, #16]
	bl	_ZeroMemory
	ldr	x21, [sp, #24]
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	__T
	mov	x1, x0
	ldr	x4, [x20, #8]
	add	x3, sp, #20
	add	x5, sp, #16
	mov	x0, x21
	mov	x2, #0
	bl	_RegQueryValueEx
	ldr	x8, [x22]
Lloh21:
	adrp	x9, _TRUE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	x0, x8
	csel	w19, w9, w19, eq
LBB0_4:
	cbnz	w19, LBB0_6
; %bb.5:
	ldr	w0, [x20]
	bl	_ShowLastWin32Error
LBB0_6:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_RegCloseKey
LBB0_8:
	mov	x0, x19
	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 AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_HKEY_LOCAL_MACHINE,4,2         ; @HKEY_LOCAL_MACHINE
	.comm	_lpKey,4,2                      ; @lpKey
	.comm	_REG_OPTION_NON_VOLATILE,4,2    ; @REG_OPTION_NON_VOLATILE
	.comm	_KEY_QUERY_VALUE,4,2            ; @KEY_QUERY_VALUE
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PagingFiles"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_ReadPageFileSettings
.subsections_via_symbols
