	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_standby_redo                   ## -- Begin function standby_redo
	.p2align	4, 0x90
_standby_redo:                          ## @standby_redo
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_XLogRecGetInfo
	movq	%rax, %r14
	movq	_XLR_INFO_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r15, %rdi
	callq	_XLogRecHasAnyBlockRefs
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	_standbyState@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_STANDBY_DISABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.1:
	notq	%rbx
	andq	%rbx, %r14
	movq	_XLOG_STANDBY_LOCK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_5
## %bb.2:
	movq	%r15, %rdi
	callq	_XLogRecGetData
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.3:
	movq	%rax, %r14
	movl	$8, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	(%rax,%rbx), %edi
	movl	-8(%rax,%rbx), %edx
	movl	-4(%rax,%rbx), %esi
	callq	_StandbyAcquireAccessExclusiveLock
	incq	%r15
	movslq	(%r14), %rax
	addq	$12, %rbx
	cmpq	%rax, %r15
	jl	LBB0_4
	jmp	LBB0_7
LBB0_5:
	movq	_XLOG_RUNNING_XACTS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_8
## %bb.6:
	movq	%r15, %rdi
	callq	_XLogRecGetData
	movl	24(%rax), %ecx
	movl	%ecx, -40(%rbp)
	movl	20(%rax), %ecx
	movl	%ecx, -44(%rbp)
	movl	16(%rax), %ecx
	movl	%ecx, -48(%rbp)
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_ProcArrayApplyRecoveryInfo
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_XLOG_INVALIDATIONS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_9
## %bb.10:
	movq	%r15, %rdi
	callq	_XLogRecGetData
	movl	16(%rax), %edi
	movl	12(%rax), %esi
	movl	8(%rax), %edx
	movl	(%rax), %r8d
	movl	4(%rax), %ecx
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ProcessCommittedInvalidationMessages ## TAILCALL
LBB0_9:
	movq	_PANIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elog                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XLR_INFO_MASK,8,3              ## @XLR_INFO_MASK
	.comm	_standbyState,8,3               ## @standbyState
	.comm	_STANDBY_DISABLED,8,3           ## @STANDBY_DISABLED
	.comm	_XLOG_STANDBY_LOCK,8,3          ## @XLOG_STANDBY_LOCK
	.comm	_XLOG_RUNNING_XACTS,8,3         ## @XLOG_RUNNING_XACTS
	.comm	_XLOG_INVALIDATIONS,8,3         ## @XLOG_INVALIDATIONS
	.comm	_PANIC,4,2                      ## @PANIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"standby_redo: unknown op code %u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_standby_redo                   ; -- Begin function standby_redo
	.p2align	2
_standby_redo:                          ; @standby_redo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	bl	_XLogRecGetInfo
	mov	x20, x0
Lloh0:
	adrp	x8, _XLR_INFO_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XLR_INFO_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	mov	x0, x19
	bl	_XLogRecHasAnyBlockRefs
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
Lloh3:
	adrp	x8, _standbyState@GOTPAGE
Lloh4:
	ldr	x8, [x8, _standbyState@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _STANDBY_DISABLED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _STANDBY_DISABLED@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.1:
	bic	x2, x20, x21
Lloh9:
	adrp	x8, _XLOG_STANDBY_LOCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XLOG_STANDBY_LOCK@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_XLogRecGetData
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x19, x0
	mov	x20, #0
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x20
	ldp	w1, w0, [x8, #4]
	ldr	w2, [x8]
	bl	_StandbyAcquireAccessExclusiveLock
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x20, x20, #12
	cmp	x21, x8
	b.lt	LBB0_4
	b	LBB0_7
LBB0_5:
Lloh12:
	adrp	x8, _XLOG_RUNNING_XACTS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XLOG_RUNNING_XACTS@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_XLogRecGetData
	ldr	w8, [x0, #24]
	str	w8, [sp, #24]
	ldr	d0, [x0, #16]
	str	d0, [sp, #16]
	ldr	q0, [x0]
	str	q0, [sp]
	mov	x0, sp
	bl	_ProcArrayApplyRecoveryInfo
LBB0_7:
	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
	add	sp, sp, #80
	ret
LBB0_8:
Lloh15:
	adrp	x8, _XLOG_INVALIDATIONS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _XLOG_INVALIDATIONS@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_XLogRecGetData
	ldp	w1, w8, [x0, #12]
	ldp	w3, w2, [x0, #4]
	ldr	w4, [x0]
	mov	x0, x8
	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
	add	sp, sp, #80
	b	_ProcessCommittedInvalidationMessages
LBB0_10:
Lloh18:
	adrp	x8, _PANIC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PANIC@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	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
	add	sp, sp, #80
	b	_elog
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_XLR_INFO_MASK,8,3              ; @XLR_INFO_MASK
	.comm	_standbyState,8,3               ; @standbyState
	.comm	_STANDBY_DISABLED,8,3           ; @STANDBY_DISABLED
	.comm	_XLOG_STANDBY_LOCK,8,3          ; @XLOG_STANDBY_LOCK
	.comm	_XLOG_RUNNING_XACTS,8,3         ; @XLOG_RUNNING_XACTS
	.comm	_XLOG_INVALIDATIONS,8,3         ; @XLOG_INVALIDATIONS
	.comm	_PANIC,4,2                      ; @PANIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"standby_redo: unknown op code %u"

.subsections_via_symbols
