	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_pctl_perform_idle_server_maintenance_heartbeat ## -- Begin function fpm_pctl_perform_idle_server_maintenance_heartbeat
	.p2align	4, 0x90
_fpm_pctl_perform_idle_server_maintenance_heartbeat: ## @fpm_pctl_perform_idle_server_maintenance_heartbeat
	.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
	movl	%esi, %r14d
	movq	_fpm_globals@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%eax, %eax
	callq	_getpid
	cmpq	%rax, %rbx
	jne	LBB0_4
## %bb.1:
	movq	_FPM_EV_TIMEOUT@GOTPCREL(%rip), %rax
	cmpw	%r14w, (%rax)
	jne	LBB0_5
## %bb.2:
	leaq	-24(%rbp), %rdi
	callq	_fpm_clock_get
	xorl	%eax, %eax
	callq	_fpm_pctl_can_spawn_children
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	-24(%rbp), %rdi
	callq	_fpm_pctl_perform_idle_server_maintenance
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_FPM_EV_PERSIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	_fpm_pctl_perform_idle_server_maintenance_heartbeat.heartbeat(%rip), %rbx
	leaq	_fpm_pctl_perform_idle_server_maintenance_heartbeat(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_fpm_event_set_timer
	movq	_FPM_IDLE_SERVER_MAINTENANCE_HEARTBEAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fpm_event_add                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_fpm_pctl_perform_idle_server_maintenance_heartbeat.heartbeat,4,2 ## @fpm_pctl_perform_idle_server_maintenance_heartbeat.heartbeat
	.comm	_fpm_globals,16,3               ## @fpm_globals
	.comm	_FPM_EV_TIMEOUT,2,1             ## @FPM_EV_TIMEOUT
	.comm	_FPM_EV_PERSIST,4,2             ## @FPM_EV_PERSIST
	.comm	_FPM_IDLE_SERVER_MAINTENANCE_HEARTBEAT,4,2 ## @FPM_IDLE_SERVER_MAINTENANCE_HEARTBEAT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_pctl_perform_idle_server_maintenance_heartbeat ; -- Begin function fpm_pctl_perform_idle_server_maintenance_heartbeat
	.p2align	2
_fpm_pctl_perform_idle_server_maintenance_heartbeat: ; @fpm_pctl_perform_idle_server_maintenance_heartbeat
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _fpm_globals@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fpm_globals@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	bl	_getpid
	cmp	x20, x0
	b.ne	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _FPM_EV_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FPM_EV_TIMEOUT@GOTPAGEOFF]
	ldrh	w8, [x8]
	cmp	w8, w19, uxth
	b.ne	LBB0_5
; %bb.2:
	add	x0, sp, #8
	bl	_fpm_clock_get
	bl	_fpm_pctl_can_spawn_children
	cbz	x0, LBB0_4
; %bb.3:
	add	x0, sp, #8
	bl	_fpm_pctl_perform_idle_server_maintenance
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:
Lloh5:
	adrp	x8, _FPM_EV_PERSIST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FPM_EV_PERSIST@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x19, _fpm_pctl_perform_idle_server_maintenance_heartbeat.heartbeat@PAGE
Lloh9:
	add	x19, x19, _fpm_pctl_perform_idle_server_maintenance_heartbeat.heartbeat@PAGEOFF
Lloh10:
	adrp	x2, _fpm_pctl_perform_idle_server_maintenance_heartbeat@PAGE
Lloh11:
	add	x2, x2, _fpm_pctl_perform_idle_server_maintenance_heartbeat@PAGEOFF
	mov	x0, x19
	mov	x3, #0
	bl	_fpm_event_set_timer
Lloh12:
	adrp	x8, _FPM_IDLE_SERVER_MAINTENANCE_HEARTBEAT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FPM_IDLE_SERVER_MAINTENANCE_HEARTBEAT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_fpm_event_add
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_fpm_pctl_perform_idle_server_maintenance_heartbeat.heartbeat,4,2 ; @fpm_pctl_perform_idle_server_maintenance_heartbeat.heartbeat
	.comm	_fpm_globals,16,3               ; @fpm_globals
	.comm	_FPM_EV_TIMEOUT,2,1             ; @FPM_EV_TIMEOUT
	.comm	_FPM_EV_PERSIST,4,2             ; @FPM_EV_PERSIST
	.comm	_FPM_IDLE_SERVER_MAINTENANCE_HEARTBEAT,4,2 ; @FPM_IDLE_SERVER_MAINTENANCE_HEARTBEAT
.subsections_via_symbols
