	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_restore_vm_max_wired           ## -- Begin function restore_vm_max_wired
	.p2align	4, 0x90
_restore_vm_max_wired:                  ## @restore_vm_max_wired
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_VM_MAX_WIRED@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rsi
	leaq	-24(%rbp), %rdx
	movq	%rax, %rdi
	callq	_fscanf
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_fclose
	movq	(%r14), %rsi
	movq	-24(%rbp), %rdx
	leaq	L_.str.4(%rip), %rdi
	callq	_printf
	cmpq	$0, -24(%rbp)
	je	LBB0_5
## %bb.4:
	leaq	-24(%rbp), %rsi
	xorl	%edi, %edi
	callq	_vm_max_wired_sysctl
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_perror                         ## TAILCALL
LBB0_2:
	leaq	L_.str.3(%rip), %rdi
	callq	_perror
	movq	%rbx, %rdi
	callq	_fclose
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_MAX_WIRED,8,3               ## @VM_MAX_WIRED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"fopen failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"%lu"

L_.str.3:                               ## @.str.3
	.asciz	"fscanf failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"old value in %s: %lu\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_restore_vm_max_wired           ; -- Begin function restore_vm_max_wired
	.p2align	2
_restore_vm_max_wired:                  ; @restore_vm_max_wired
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _VM_MAX_WIRED@GOTPAGE
Lloh1:
	ldr	x20, [x20, _VM_MAX_WIRED@GOTPAGEOFF]
	ldr	x0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #8
	bl	_fscanf
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_fclose
	ldr	x1, [x20]
	ldr	x2, [sp, #8]
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_4
; %bb.3:
	add	x1, sp, #8
	mov	x0, #0
	bl	_vm_max_wired_sysctl
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_perror
LBB0_6:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_perror
	mov	x0, x19
	bl	_fclose
	b	LBB0_4
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_MAX_WIRED,8,3               ; @VM_MAX_WIRED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"fopen failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"%lu"

l_.str.3:                               ; @.str.3
	.asciz	"fscanf failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"old value in %s: %lu\n"

.subsections_via_symbols
