	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function fpm_systemd_conf
LCPI0_0:
	.quad	0x408f400000000000              ## double 1000
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_fpm_systemd_conf
	.p2align	4, 0x90
_fpm_systemd_conf:                      ## @fpm_systemd_conf
	.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
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_atol
	movabsq	$2361183241434822607, %rcx      ## imm = 0x20C49BA5E353F7CF
	imulq	%rcx
	movq	%rdx, %rbx
	movq	%rdx, %rax
	shrq	$63, %rax
	shrq	$8, %rbx
	addl	%eax, %ebx
	movq	_ZLOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_zlog
	cmpl	$1001, %ebx                     ## imm = 0x3E9
	jl	LBB0_5
## %bb.2:
	movq	_fpm_global_config@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_4
## %bb.3:
	movq	_ZLOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_zlog
LBB0_4:
	movq	_ZLOG_NOTICE@GOTPCREL(%rip), %rax
	cvtsi2ss	%ebx, %xmm0
	movl	(%rax), %edi
	cvtss2sd	%xmm0, %xmm0
	divsd	LCPI0_0(%rip), %xmm0
	leaq	L_.str.3(%rip), %rsi
	movb	$1, %al
	callq	_zlog
	movl	$1, 4(%r14)
	jmp	LBB0_8
LBB0_5:
	movq	_fpm_global_config@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	imull	$1000, %eax, %ebx               ## imm = 0x3E8
	jmp	LBB0_8
LBB0_6:
	movq	_FPM_SYSTEMD_DEFAULT_HEARTBEAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:
	movq	_fpm_global_config@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WATCHDOG_USEC"

	.comm	_ZLOG_DEBUG,4,2                 ## @ZLOG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"WATCHDOG_USEC=%s, interval=%d"

	.comm	_fpm_global_config,8,2          ## @fpm_global_config
	.comm	_ZLOG_WARNING,4,2               ## @ZLOG_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"systemd_interval option ignored"

	.comm	_ZLOG_NOTICE,4,2                ## @ZLOG_NOTICE
L_.str.3:                               ## @.str.3
	.asciz	"systemd watchdog configured to %.3gsec"

	.comm	_FPM_SYSTEMD_DEFAULT_HEARTBEAT,4,2 ## @FPM_SYSTEMD_DEFAULT_HEARTBEAT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_systemd_conf               ; -- Begin function fpm_systemd_conf
	.p2align	2
_fpm_systemd_conf:                      ; @fpm_systemd_conf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
Lloh2:
	adrp	x20, _fpm_global_config@GOTPAGE
Lloh3:
	ldr	x20, [x20, _fpm_global_config@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_atol
	mov	x8, #63439
	movk	x8, #58195, lsl #16
	movk	x8, #39845, lsl #32
	movk	x8, #8388, lsl #48
	smulh	x8, x0, x8
	asr	x9, x8, #8
	add	x21, x9, x8, lsr #63
Lloh4:
	adrp	x8, _ZLOG_DEBUG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ZLOG_DEBUG@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	stp	x19, x21, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_zlog
	cmp	w21, #1001
	b.lt	LBB0_5
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _ZLOG_WARNING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ZLOG_WARNING@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_zlog
LBB0_4:
Lloh14:
	adrp	x8, _ZLOG_NOTICE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ZLOG_NOTICE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	scvtf	s0, w21
	fcvt	d0, s0
	mov	x8, #70368744177664
	movk	x8, #16527, lsl #48
	fmov	d1, x8
	fdiv	d0, d0, d1
	str	d0, [sp]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_zlog
	mov	w8, #1
	str	w8, [x20, #4]
	b	LBB0_8
LBB0_5:
	ldr	w8, [x20]
	tbnz	w8, #31, LBB0_7
; %bb.6:
	mov	w9, #1000
	mul	w21, w8, w9
	b	LBB0_8
LBB0_7:
Lloh19:
	adrp	x8, _FPM_SYSTEMD_DEFAULT_HEARTBEAT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FPM_SYSTEMD_DEFAULT_HEARTBEAT@GOTPAGEOFF]
Lloh21:
	ldr	w21, [x8]
LBB0_8:
	str	w21, [x20]
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WATCHDOG_USEC"

	.comm	_ZLOG_DEBUG,4,2                 ; @ZLOG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"WATCHDOG_USEC=%s, interval=%d"

	.comm	_fpm_global_config,8,2          ; @fpm_global_config
	.comm	_ZLOG_WARNING,4,2               ; @ZLOG_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"systemd_interval option ignored"

	.comm	_ZLOG_NOTICE,4,2                ; @ZLOG_NOTICE
l_.str.3:                               ; @.str.3
	.asciz	"systemd watchdog configured to %.3gsec"

	.comm	_FPM_SYSTEMD_DEFAULT_HEARTBEAT,4,2 ; @FPM_SYSTEMD_DEFAULT_HEARTBEAT
.subsections_via_symbols
