	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_req_vmdaemon
_vm_req_vmdaemon:                       ## @vm_req_vmdaemon
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	_vm_daemon_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_vm_pageout_req_swapout@GOTPCREL(%rip), %rax
	orl	%ebx, (%rax)
	movq	_ticks@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	_vm_req_vmdaemon.lastrun(%rip), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_2
## %bb.1:
	movq	_hz@GOTPCREL(%rip), %rdx
	addl	(%rdx), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_3
LBB0_2:
	movq	_vm_daemon_needed@GOTPCREL(%rip), %rdi
	callq	_wakeup
	movl	(%rbx), %eax
	movl	%eax, _vm_req_vmdaemon.lastrun(%rip)
LBB0_3:
	movq	_vm_daemon_mtx@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_vm_req_vmdaemon.lastrun,4,2 ## @vm_req_vmdaemon.lastrun
	.comm	_vm_daemon_mtx,4,2              ## @vm_daemon_mtx
	.comm	_vm_pageout_req_swapout,4,2     ## @vm_pageout_req_swapout
	.comm	_ticks,4,2                      ## @ticks
	.comm	_hz,4,2                         ## @hz
	.comm	_vm_daemon_needed,4,2           ## @vm_daemon_needed
	.no_dead_strip	_vm_req_vmdaemon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_req_vmdaemon
_vm_req_vmdaemon:                       ; @vm_req_vmdaemon
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, _vm_daemon_mtx@GOTPAGE
Lloh1:
	ldr	x0, [x0, _vm_daemon_mtx@GOTPAGEOFF]
	bl	_mtx_lock
Lloh2:
	adrp	x8, _vm_pageout_req_swapout@GOTPAGE
Lloh3:
	ldr	x8, [x8, _vm_pageout_req_swapout@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, w19
	str	w9, [x8]
Lloh4:
	adrp	x19, _ticks@GOTPAGE
Lloh5:
	ldr	x19, [x19, _ticks@GOTPAGEOFF]
	ldr	w8, [x19]
	adrp	x20, _vm_req_vmdaemon.lastrun@PAGE
	ldr	w9, [x20, _vm_req_vmdaemon.lastrun@PAGEOFF]
Lloh6:
	adrp	x10, _hz@GOTPAGE
Lloh7:
	ldr	x10, [x10, _hz@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	add	w10, w10, w9
	cmp	w8, w9
	ccmp	w8, w10, #0, ge
	b.le	LBB0_2
; %bb.1:
Lloh9:
	adrp	x0, _vm_daemon_needed@GOTPAGE
Lloh10:
	ldr	x0, [x0, _vm_daemon_needed@GOTPAGEOFF]
	bl	_wakeup
	ldr	w8, [x19]
	str	w8, [x20, _vm_req_vmdaemon.lastrun@PAGEOFF]
LBB0_2:
Lloh11:
	adrp	x0, _vm_daemon_mtx@GOTPAGE
Lloh12:
	ldr	x0, [x0, _vm_daemon_mtx@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mtx_unlock
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_vm_req_vmdaemon.lastrun,4,2 ; @vm_req_vmdaemon.lastrun
	.comm	_vm_daemon_mtx,4,2              ; @vm_daemon_mtx
	.comm	_vm_pageout_req_swapout,4,2     ; @vm_pageout_req_swapout
	.comm	_ticks,4,2                      ; @ticks
	.comm	_hz,4,2                         ; @hz
	.comm	_vm_daemon_needed,4,2           ; @vm_daemon_needed
	.no_dead_strip	_vm_req_vmdaemon
.subsections_via_symbols
