	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ProcessXLogDataMsg
_ProcessXLogDataMsg:                    ## @ProcessXLogDataMsg
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_still_sending@GOTPCREL(%rip), %rax
	movl	$1, %r13d
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movl	%ecx, %ebx
	cmpl	$24, %ecx
	jg	LBB0_5
## %bb.2:
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	movl	%ebx, %esi
LBB0_3:
	xorl	%eax, %eax
	callq	_pg_log_error
LBB0_4:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rdx, %r12
	movq	%rdi, %r15
	leaq	1(%rdx), %rdi
	callq	_fe_recvint64
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_WalSegSz@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_XLogSegmentOffset
	movl	%eax, %r14d
	movq	_walfile@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	callq	*(%rax)
	cmpl	%r14d, %eax
	je	LBB0_10
## %bb.7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	_walfile@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	callq	*(%rax)
	leaq	L_.str.2(%rip), %rdi
	xorl	%r13d, %r13d
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pg_log_error
	jmp	LBB0_4
LBB0_8:
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r13d, %r13d
	movl	%r14d, %esi
	jmp	LBB0_3
LBB0_10:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	addl	$-25, %ebx
	je	LBB0_4
## %bb.11:
	addq	$25, -56(%rbp)                  ## 8-byte Folded Spill
	xorl	%r12d, %r12d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_14 Depth=1
	addl	%r15d, %r14d
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	addl	%r15d, %r12d
	movl	$1, %r13d
	subl	%r15d, %ebx
	je	LBB0_4
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rbx,%r14), %eax
	movq	_WalSegSz@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %r15d
	subl	%r14d, %r15d
	cmpl	%ecx, %eax
	cmovlel	%ebx, %r15d
	movq	_walfile@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r13), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_open_walfile
	testl	%eax, %eax
	je	LBB0_27
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_walfile@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movslq	%r12d, %rsi
	addq	-56(%rbp), %rsi                 ## 8-byte Folded Reload
	movl	%r15d, %edx
	callq	*8(%rax)
	cmpl	%r15d, %eax
	jne	LBB0_25
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r13), %edi
	addl	%r15d, %edi
	movl	%edi, (%r13)
	movq	_WalSegSz@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XLogSegmentOffset
	testl	%eax, %eax
	jne	LBB0_12
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r13), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_close_walfile
	testl	%eax, %eax
	je	LBB0_27
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=1
	xorl	%r14d, %r14d
	movq	_still_sending@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_13
## %bb.21:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r13), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	$1, %edx
	callq	*8(%rax)
	testq	%rax, %rax
	je	LBB0_13
## %bb.22:
	xorl	%r13d, %r13d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_PQputCopyEnd
	testq	%rax, %rax
	jle	LBB0_24
## %bb.23:
	movq	%rbx, %rdi
	callq	_PQflush
	testq	%rax, %rax
	je	LBB0_28
LBB0_24:
	movq	%rbx, %rdi
	callq	_PQerrorMessage
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	jmp	LBB0_3
LBB0_25:
	movq	_current_walfile_name@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rcx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	*16(%rcx)
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_pg_log_error
	jmp	LBB0_4
LBB0_27:
	xorl	%r13d, %r13d
	jmp	LBB0_4
LBB0_28:
	movq	_still_sending@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movl	$1, %r13d
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_still_sending,4,2              ## @still_sending
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"streaming header too small: %d"

	.comm	_WalSegSz,4,2                   ## @WalSegSz
	.comm	_walfile,8,3                    ## @walfile
L_.str.1:                               ## @.str.1
	.asciz	"received write-ahead log record for offset %u with no file open"

L_.str.2:                               ## @.str.2
	.asciz	"got WAL data offset %08x, expected %08x"

L_.str.3:                               ## @.str.3
	.asciz	"could not write %u bytes to WAL file \"%s\": %s"

	.comm	_current_walfile_name,4,2       ## @current_walfile_name
L_.str.4:                               ## @.str.4
	.asciz	"could not send copy-end packet: %s"

	.no_dead_strip	_ProcessXLogDataMsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ProcessXLogDataMsg
_ProcessXLogDataMsg:                    ; @ProcessXLogDataMsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x25, _still_sending@GOTPAGE
Lloh1:
	ldr	x25, [x25, _still_sending@GOTPAGEOFF]
	ldr	w8, [x25]
	cbz	w8, LBB0_29
; %bb.1:
	mov	x23, x3
	cmp	w3, #24
	b.gt	LBB0_4
; %bb.2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_3:
	mov	x1, x23
	b	LBB0_10
LBB0_4:
	mov	x21, x4
	mov	x24, x2
	mov	x20, x1
	mov	x19, x0
	add	x0, x2, #1
	bl	_fe_recvint64
	str	w0, [x21]
Lloh4:
	adrp	x26, _WalSegSz@GOTPAGE
Lloh5:
	ldr	x26, [x26, _WalSegSz@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_XLogSegmentOffset
	mov	x22, x0
Lloh6:
	adrp	x27, _walfile@GOTPAGE
Lloh7:
	ldr	x27, [x27, _walfile@GOTPAGEOFF]
	ldr	x0, [x27]
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	blr	x8
	cmp	w0, w22
	b.eq	LBB0_11
; %bb.6:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	x0, [x27]
	blr	x8
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:
	cbz	w22, LBB0_11
; %bb.8:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	mov	x1, x22
LBB0_10:
	bl	_pg_log_error
	mov	w0, #0
	b	LBB0_30
LBB0_11:
	subs	w28, w23, #25
	b.eq	LBB0_29
; %bb.12:
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	mov	w19, #0
	add	x24, x24, #25
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	add	w22, w23, w22
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	w19, w23, w19
	mov	w0, #1
	sub	w28, w28, w23
	cbz	w28, LBB0_30
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	sub	w9, w8, w22
	add	w10, w28, w22
	cmp	w10, w8
	csel	w23, w9, w28, gt
	ldr	x0, [x27]
	cbnz	x0, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w1, [x21]
	mov	x0, x20
	bl	_open_walfile
	cbz	w0, LBB0_30
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x0, [x27]
LBB0_18:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
	add	x1, x24, w19, sxtw
	mov	x2, x23
	blr	x8
	cmp	w0, w23
	b.ne	LBB0_24
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x21]
	add	w0, w8, w23
	str	w0, [x21]
	ldr	w1, [x26]
	bl	_XLogSegmentOffset
	cbnz	w0, LBB0_13
; %bb.20:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w1, [x21]
	mov	x0, x20
	bl	_close_walfile
	cbz	w0, LBB0_30
; %bb.21:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x25]
	cbz	w8, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x21]
	ldr	w1, [x20]
	mov	w2, #1
	blr	x8
	cbnz	x0, LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	w22, #0
	b	LBB0_14
LBB0_24:
Lloh12:
	adrp	x8, _current_walfile_name@GOTPAGE
Lloh13:
	ldr	x8, [x8, _current_walfile_name@GOTPAGEOFF]
	ldr	x9, [x20, #16]
	ldr	x9, [x9, #16]
Lloh14:
	ldr	w19, [x8]
	blr	x9
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp]
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_25:
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	mov	x0, x19
	mov	x1, #0
	bl	_PQputCopyEnd
	cmp	x0, #1
	b.lt	LBB0_27
; %bb.26:
	mov	x0, x19
	bl	_PQflush
	cbz	x0, LBB0_28
LBB0_27:
	mov	x0, x19
	bl	_PQerrorMessage
	mov	x1, x0
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_28:
	str	wzr, [x25]
LBB0_29:
	mov	w0, #1
LBB0_30:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_still_sending,4,2              ; @still_sending
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"streaming header too small: %d"

	.comm	_WalSegSz,4,2                   ; @WalSegSz
	.comm	_walfile,8,3                    ; @walfile
l_.str.1:                               ; @.str.1
	.asciz	"received write-ahead log record for offset %u with no file open"

l_.str.2:                               ; @.str.2
	.asciz	"got WAL data offset %08x, expected %08x"

l_.str.3:                               ; @.str.3
	.asciz	"could not write %u bytes to WAL file \"%s\": %s"

	.comm	_current_walfile_name,4,2       ; @current_walfile_name
l_.str.4:                               ; @.str.4
	.asciz	"could not send copy-end packet: %s"

	.no_dead_strip	_ProcessXLogDataMsg
.subsections_via_symbols
