	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function XLogWalRcvProcessMsg
_XLogWalRcvProcessMsg:                  ## @XLogWalRcvProcessMsg
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	_incoming_message@GOTPCREL(%rip), %rdi
	callq	_resetStringInfo
	cmpb	$107, %bl
	je	LBB0_5
## %bb.1:
	cmpb	$119, %bl
	jne	LBB0_9
## %bb.2:
	cmpl	$11, %r15d
	jg	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_PROTOCOL_VIOLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg_internal
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_4:
	movq	_incoming_message@GOTPCREL(%rip), %r13
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$12, %edx
	callq	_appendBinaryStringInfo
	movq	%r13, %rdi
	callq	_pq_getmsgint64
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_pq_getmsgint64
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_pq_getmsgint64
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ProcessWalSndrMessage
	addq	$12, %r14
	addl	$-12, %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_XLogWalRcvWrite                ## TAILCALL
LBB0_5:
	cmpl	$9, %r15d
	je	LBB0_7
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_PROTOCOL_VIOLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg_internal
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_7:
	movq	_incoming_message@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$9, %edx
	callq	_appendBinaryStringInfo
	movq	%r15, %rdi
	callq	_pq_getmsgint64
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_pq_getmsgint64
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_pq_getmsgbyte
	movl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ProcessWalSndrMessage
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.8:
	movl	$1, %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_XLogWalRcvSendReply            ## TAILCALL
LBB0_9:
	movzbl	%bl, %ebx
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_PROTOCOL_VIOLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_errmsg_internal
	movl	%r14d, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_incoming_message,4,2           ## @incoming_message
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_PROTOCOL_VIOLATION,4,2 ## @ERRCODE_PROTOCOL_VIOLATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid WAL message received from primary"

L_.str.1:                               ## @.str.1
	.asciz	"invalid keepalive message received from primary"

L_.str.2:                               ## @.str.2
	.asciz	"invalid replication message type %d"

	.no_dead_strip	_XLogWalRcvProcessMsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function XLogWalRcvProcessMsg
_XLogWalRcvProcessMsg:                  ; @XLogWalRcvProcessMsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x0, _incoming_message@GOTPAGE
Lloh1:
	ldr	x0, [x0, _incoming_message@GOTPAGEOFF]
	bl	_resetStringInfo
	cmp	w21, #107
	b.eq	LBB0_5
; %bb.1:
	cmp	w21, #119
	b.ne	LBB0_9
; %bb.2:
	cmp	w20, #11
	b.gt	LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
Lloh5:
	adrp	x8, _ERRCODE_PROTOCOL_VIOLATION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERRCODE_PROTOCOL_VIOLATION@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_errcode
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_4:
Lloh10:
	adrp	x21, _incoming_message@GOTPAGE
Lloh11:
	ldr	x21, [x21, _incoming_message@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x19
	mov	w2, #12
	bl	_appendBinaryStringInfo
	mov	x0, x21
	bl	_pq_getmsgint64
	mov	x22, x0
	mov	x0, x21
	bl	_pq_getmsgint64
	mov	x23, x0
	mov	x0, x21
	bl	_pq_getmsgint64
	mov	x1, x0
	mov	x0, x23
	bl	_ProcessWalSndrMessage
	add	x0, x19, #12
	sub	w1, w20, #12
	mov	x2, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_XLogWalRcvWrite
LBB0_5:
	cmp	w20, #9
	b.eq	LBB0_7
; %bb.6:
Lloh12:
	adrp	x8, _ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
Lloh15:
	adrp	x8, _ERRCODE_PROTOCOL_VIOLATION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERRCODE_PROTOCOL_VIOLATION@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_errcode
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_7:
Lloh20:
	adrp	x20, _incoming_message@GOTPAGE
Lloh21:
	ldr	x20, [x20, _incoming_message@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #9
	bl	_appendBinaryStringInfo
	mov	x0, x20
	bl	_pq_getmsgint64
	mov	x19, x0
	mov	x0, x20
	bl	_pq_getmsgint64
	mov	x21, x0
	mov	x0, x20
	bl	_pq_getmsgbyte
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	bl	_ProcessWalSndrMessage
	cbz	w20, LBB0_10
; %bb.8:
	mov	w0, #1
	mov	w1, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_XLogWalRcvSendReply
LBB0_9:
Lloh22:
	adrp	x8, _ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w19, [x8]
Lloh25:
	adrp	x8, _ERRCODE_PROTOCOL_VIOLATION@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ERRCODE_PROTOCOL_VIOLATION@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_errcode
	mov	w8, w21
	str	x8, [sp]
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_ereport
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_incoming_message,4,2           ; @incoming_message
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_PROTOCOL_VIOLATION,4,2 ; @ERRCODE_PROTOCOL_VIOLATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid WAL message received from primary"

l_.str.1:                               ; @.str.1
	.asciz	"invalid keepalive message received from primary"

l_.str.2:                               ; @.str.2
	.asciz	"invalid replication message type %d"

	.no_dead_strip	_XLogWalRcvProcessMsg
.subsections_via_symbols
