	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_systemd_heartbeat          ## -- Begin function fpm_systemd_heartbeat
	.p2align	4, 0x90
_fpm_systemd_heartbeat:                 ## @fpm_systemd_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
	.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_2
## %bb.5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fpm_systemd                    ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	callq	_getpid
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	movq	%rax, %rdx
	callq	_sd_notifyf
	testq	%rax, %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmovsq	%rax, %rsi
	movq	_ZLOG_DEBUG@GOTPCREL(%rip), %rax
	cmovsq	_ZLOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%eax, %eax
	callq	_zlog
	movq	_fpm_global_config@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jle	LBB0_3
## %bb.6:
	movq	_FPM_EV_PERSIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	_fpm_systemd_heartbeat.heartbeat(%rip), %r14
	leaq	_fpm_systemd_heartbeat(%rip), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_fpm_event_set_timer
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_fpm_event_add
	movq	_ZLOG_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_zlog                           ## TAILCALL
LBB0_3:
	movq	_ZLOG_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_zlog                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_fpm_systemd_heartbeat.heartbeat,4,2 ## @fpm_systemd_heartbeat.heartbeat
	.comm	_fpm_globals,8,3                ## @fpm_globals
	.comm	_FPM_EV_TIMEOUT,2,1             ## @FPM_EV_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"READY=1\nSTATUS=Ready to handle connections\nMAINPID=%lu"

	.comm	_ZLOG_WARNING,4,2               ## @ZLOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"failed to notify start to systemd"

	.comm	_ZLOG_DEBUG,4,2                 ## @ZLOG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"have notify start to systemd"

	.comm	_fpm_global_config,8,3          ## @fpm_global_config
	.comm	_FPM_EV_PERSIST,4,2             ## @FPM_EV_PERSIST
	.comm	_ZLOG_NOTICE,4,2                ## @ZLOG_NOTICE
L_.str.3:                               ## @.str.3
	.asciz	"systemd monitor interval set to %dms"

L_.str.4:                               ## @.str.4
	.asciz	"systemd monitor disabled"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_systemd_heartbeat          ; -- Begin function fpm_systemd_heartbeat
	.p2align	2
_fpm_systemd_heartbeat:                 ; @fpm_systemd_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_5
; %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_3
; %bb.2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_fpm_systemd
LBB0_3:
	bl	_getpid
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	bl	_sd_notifyf
Lloh7:
	adrp	x8, l_.str.2@PAGE
Lloh8:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh9:
	adrp	x9, l_.str.1@PAGE
Lloh10:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x1, x9, x8, lt
Lloh11:
	adrp	x8, _ZLOG_WARNING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ZLOG_WARNING@GOTPAGEOFF]
Lloh13:
	adrp	x9, _ZLOG_DEBUG@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ZLOG_DEBUG@GOTPAGEOFF]
	csel	x8, x8, x9, lt
	ldr	w0, [x8]
	bl	_zlog
Lloh15:
	adrp	x20, _fpm_global_config@GOTPAGE
Lloh16:
	ldr	x20, [x20, _fpm_global_config@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.4:
Lloh17:
	adrp	x8, _FPM_EV_PERSIST@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FPM_EV_PERSIST@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x19, _fpm_systemd_heartbeat.heartbeat@PAGE
Lloh21:
	add	x19, x19, _fpm_systemd_heartbeat.heartbeat@PAGEOFF
Lloh22:
	adrp	x2, _fpm_systemd_heartbeat@PAGE
Lloh23:
	add	x2, x2, _fpm_systemd_heartbeat@PAGEOFF
	mov	x0, x19
	mov	x3, #0
	bl	_fpm_event_set_timer
	ldr	x1, [x20]
	mov	x0, x19
	bl	_fpm_event_add
Lloh24:
	adrp	x8, _ZLOG_NOTICE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ZLOG_NOTICE@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	x8, [x20]
	str	x8, [sp]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_zlog
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
Lloh29:
	adrp	x8, _ZLOG_NOTICE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ZLOG_NOTICE@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_zlog
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_fpm_systemd_heartbeat.heartbeat,4,2 ; @fpm_systemd_heartbeat.heartbeat
	.comm	_fpm_globals,8,3                ; @fpm_globals
	.comm	_FPM_EV_TIMEOUT,2,1             ; @FPM_EV_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"READY=1\nSTATUS=Ready to handle connections\nMAINPID=%lu"

	.comm	_ZLOG_WARNING,4,2               ; @ZLOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"failed to notify start to systemd"

	.comm	_ZLOG_DEBUG,4,2                 ; @ZLOG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"have notify start to systemd"

	.comm	_fpm_global_config,8,3          ; @fpm_global_config
	.comm	_FPM_EV_PERSIST,4,2             ; @FPM_EV_PERSIST
	.comm	_ZLOG_NOTICE,4,2                ; @ZLOG_NOTICE
l_.str.3:                               ; @.str.3
	.asciz	"systemd monitor interval set to %dms"

l_.str.4:                               ; @.str.4
	.asciz	"systemd monitor disabled"

.subsections_via_symbols
