	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_pctl_heartbeat             ## -- Begin function fpm_pctl_heartbeat
	.p2align	4, 0x90
_fpm_pctl_heartbeat:                    ## @fpm_pctl_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	_fpm_globals@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	xorl	%eax, %eax
	callq	_getpid
	cmpq	%rax, %rbx
	jne	LBB0_3
## %bb.1:
	movq	_FPM_EV_TIMEOUT@GOTPCREL(%rip), %rax
	cmpw	%r15w, (%rax)
	jne	LBB0_4
## %bb.2:
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_fpm_clock_get
	movq	%rbx, %rdi
	callq	_fpm_pctl_check_request_timeout
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	8(%r14), %edi
	movq	_FPM_PCTL_MIN_HEARTBEAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MAX
	movl	%eax, 8(%r14)
	movq	_ZLOG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_zlog
	movq	_FPM_EV_PERSIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	_fpm_pctl_heartbeat.heartbeat(%rip), %rbx
	leaq	_fpm_pctl_heartbeat(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_fpm_event_set_timer
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fpm_event_add                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_fpm_pctl_heartbeat.heartbeat,4,2 ## @fpm_pctl_heartbeat.heartbeat
	.comm	_fpm_globals,16,3               ## @fpm_globals
	.comm	_FPM_EV_TIMEOUT,2,1             ## @FPM_EV_TIMEOUT
	.comm	_FPM_PCTL_MIN_HEARTBEAT,4,2     ## @FPM_PCTL_MIN_HEARTBEAT
	.comm	_ZLOG_DEBUG,4,2                 ## @ZLOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"heartbeat have been set up with a timeout of %dms"

	.comm	_FPM_EV_PERSIST,4,2             ## @FPM_EV_PERSIST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_pctl_heartbeat             ; -- Begin function fpm_pctl_heartbeat
	.p2align	2
_fpm_pctl_heartbeat:                    ; @fpm_pctl_heartbeat
	.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
	mov	x19, x1
Lloh0:
	adrp	x20, _fpm_globals@GOTPAGE
Lloh1:
	ldr	x20, [x20, _fpm_globals@GOTPAGEOFF]
	ldr	x21, [x20]
	bl	_getpid
	cmp	x21, x0
	b.ne	LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _FPM_EV_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FPM_EV_TIMEOUT@GOTPAGEOFF]
	ldrh	w8, [x8]
	cmp	w8, w19, uxth
	b.ne	LBB0_4
; %bb.2:
	add	x0, sp, #8
	bl	_fpm_clock_get
	add	x0, sp, #8
	bl	_fpm_pctl_check_request_timeout
LBB0_3:
	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
LBB0_4:
	ldr	w0, [x20, #8]
Lloh4:
	adrp	x8, _FPM_PCTL_MIN_HEARTBEAT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FPM_PCTL_MIN_HEARTBEAT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_MAX
	mov	x2, x0
	str	w0, [x20, #8]
Lloh7:
	adrp	x8, _ZLOG_DEBUG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ZLOG_DEBUG@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_zlog
Lloh12:
	adrp	x8, _FPM_EV_PERSIST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FPM_EV_PERSIST@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x19, _fpm_pctl_heartbeat.heartbeat@PAGE
Lloh16:
	add	x19, x19, _fpm_pctl_heartbeat.heartbeat@PAGEOFF
Lloh17:
	adrp	x2, _fpm_pctl_heartbeat@PAGE
Lloh18:
	add	x2, x2, _fpm_pctl_heartbeat@PAGEOFF
	mov	x0, x19
	mov	x3, #0
	bl	_fpm_event_set_timer
	ldr	w1, [x20, #8]
	mov	x0, x19
	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
	b	_fpm_event_add
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_fpm_pctl_heartbeat.heartbeat,4,2 ; @fpm_pctl_heartbeat.heartbeat
	.comm	_fpm_globals,16,3               ; @fpm_globals
	.comm	_FPM_EV_TIMEOUT,2,1             ; @FPM_EV_TIMEOUT
	.comm	_FPM_PCTL_MIN_HEARTBEAT,4,2     ; @FPM_PCTL_MIN_HEARTBEAT
	.comm	_ZLOG_DEBUG,4,2                 ; @ZLOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"heartbeat have been set up with a timeout of %dms"

	.comm	_FPM_EV_PERSIST,4,2             ; @FPM_EV_PERSIST
.subsections_via_symbols
