	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ProcessKeepaliveMsg
_ProcessKeepaliveMsg:                   ## @ProcessKeepaliveMsg
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$17, %ecx
	jg	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ecx, %esi
	callq	_pg_log_error
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_2:
	cmpb	$0, 17(%rdx)
	movl	$1, %ebx
	je	LBB0_11
## %bb.3:
	movq	_still_sending@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.4:
	movq	%r9, %r14
	movq	%r8, %r13
	movq	%rdi, %r15
	movq	_reportFlushPosition@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.5:
	movq	_lastFlushPosition@GOTPCREL(%rip), %rbx
	cmpq	%r13, (%rbx)
	jge	LBB0_9
## %bb.6:
	movq	_walfile@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.7:
	movq	%rsi, %r12
	movq	(%rsi), %rax
	callq	*(%rax)
	testq	%rax, %rax
	jne	LBB0_12
## %bb.8:
	movq	%r13, (%rbx)
LBB0_9:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_feGetCurrentTimestamp
	movl	%eax, %r12d
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_sendFeedback
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%r12d, (%r14)
	movl	$1, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_current_walfile_name@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r12), %rcx
	xorl	%eax, %eax
	callq	*8(%rcx)
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_pg_log_fatal
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"streaming header too small: %d"

	.comm	_still_sending,8,3              ## @still_sending
	.comm	_reportFlushPosition,8,3        ## @reportFlushPosition
	.comm	_lastFlushPosition,8,3          ## @lastFlushPosition
	.comm	_walfile,8,3                    ## @walfile
L_.str.1:                               ## @.str.1
	.asciz	"could not fsync file \"%s\": %s"

	.comm	_current_walfile_name,4,2       ## @current_walfile_name
	.no_dead_strip	_ProcessKeepaliveMsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ProcessKeepaliveMsg
_ProcessKeepaliveMsg:                   ; @ProcessKeepaliveMsg
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cmp	w3, #17
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x3
	bl	_pg_log_error
	mov	w0, #0
	b	LBB0_10
LBB0_2:
	ldrb	w8, [x2, #17]
Lloh2:
	adrp	x9, _still_sending@GOTPAGE
Lloh3:
	ldr	x9, [x9, _still_sending@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x9, #0, #4, ne
	b.eq	LBB0_9
; %bb.3:
	mov	x19, x5
	mov	x20, x4
	mov	x21, x0
Lloh5:
	adrp	x8, _reportFlushPosition@GOTPAGE
Lloh6:
	ldr	x8, [x8, _reportFlushPosition@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.4:
Lloh8:
	adrp	x23, _lastFlushPosition@GOTPAGE
Lloh9:
	ldr	x23, [x23, _lastFlushPosition@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh10:
	adrp	x9, _walfile@GOTPAGE
Lloh11:
	ldr	x9, [x9, _walfile@GOTPAGEOFF]
Lloh12:
	ldr	x0, [x9]
	cmp	x8, x20
	ccmp	x0, #0, #4, lt
	b.eq	LBB0_7
; %bb.5:
	mov	x22, x1
	ldr	x8, [x1]
	ldr	x8, [x8]
	blr	x8
	cbnz	x0, LBB0_11
; %bb.6:
	str	x20, [x23]
LBB0_7:
	bl	_feGetCurrentTimestamp
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	w3, #0
	bl	_sendFeedback
	cbz	w0, LBB0_10
; %bb.8:
	str	w22, [x19]
LBB0_9:
	mov	w0, #1
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh13:
	adrp	x8, _current_walfile_name@GOTPAGE
Lloh14:
	ldr	x8, [x8, _current_walfile_name@GOTPAGEOFF]
Lloh15:
	ldr	w19, [x8]
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	blr	x8
	mov	x2, x0
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_pg_log_fatal
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"streaming header too small: %d"

	.comm	_still_sending,8,3              ; @still_sending
	.comm	_reportFlushPosition,8,3        ; @reportFlushPosition
	.comm	_lastFlushPosition,8,3          ; @lastFlushPosition
	.comm	_walfile,8,3                    ; @walfile
l_.str.1:                               ; @.str.1
	.asciz	"could not fsync file \"%s\": %s"

	.comm	_current_walfile_name,4,2       ; @current_walfile_name
	.no_dead_strip	_ProcessKeepaliveMsg
.subsections_via_symbols
