	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dbase_redo                     ## -- Begin function dbase_redo
	.p2align	4, 0x90
_dbase_redo:                            ## @dbase_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_XLogRecGetInfo
	movq	_XLR_INFO_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	notq	%rbx
	andq	%rax, %rbx
	movq	%r14, %rdi
	callq	_XLogRecHasAnyBlockRefs
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	_XLOG_DBASE_CREATE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_7
## %bb.1:
	movq	%r14, %rdi
	callq	_XLogRecGetData
	movq	%rax, %rbx
	movl	(%rax), %edi
	movl	12(%rax), %esi
	callq	_GetDatabasePath
	movq	%rax, %r14
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	callq	_GetDatabasePath
	movq	%rax, %r15
	leaq	-40(%rbp), %rsi
	movq	%rax, %rdi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_2
LBB0_5:
	movl	(%rbx), %edi
	callq	_FlushDatabaseBuffers
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_copydir
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_XLOG_DBASE_DROP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_14
## %bb.8:
	movq	%r14, %rdi
	callq	_XLogRecGetData
	movq	%rax, %rbx
	movl	(%rax), %edi
	movl	4(%rax), %esi
	callq	_GetDatabasePath
	movq	%rax, %r14
	movq	_InHotStandby@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_10
## %bb.9:
	movq	_DatabaseRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movq	_AccessExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	callq	_LockSharedObjectForSession
	movl	(%rbx), %edi
	callq	_ResolveRecoveryConflictWithDatabase
LBB0_10:
	movl	(%rbx), %edi
	callq	_ReplicationSlotsDropDBSlots
	movl	(%rbx), %edi
	callq	_DropDatabaseBuffers
	movl	(%rbx), %edi
	callq	_ForgetDatabaseSyncRequests
	movl	(%rbx), %edi
	callq	_XLogDropDatabase
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_rmtree
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_12:
	cmpq	$0, (%r12)
	je	LBB0_6
## %bb.13:
	movq	_DatabaseRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movq	_AccessExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UnlockSharedObjectForSession   ## TAILCALL
LBB0_14:
	movq	_PANIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elog                           ## TAILCALL
LBB0_2:
	movl	-40(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_rmtree
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_errmsg
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_XLR_INFO_MASK,8,3              ## @XLR_INFO_MASK
	.comm	_XLOG_DBASE_CREATE,8,3          ## @XLOG_DBASE_CREATE
	.comm	_WARNING,4,2                    ## @WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"some useless files may be left behind in old database directory \"%s\""

	.comm	_XLOG_DBASE_DROP,8,3            ## @XLOG_DBASE_DROP
	.comm	_InHotStandby,8,3               ## @InHotStandby
	.comm	_DatabaseRelationId,4,2         ## @DatabaseRelationId
	.comm	_AccessExclusiveLock,4,2        ## @AccessExclusiveLock
	.comm	_PANIC,4,2                      ## @PANIC
L_.str.1:                               ## @.str.1
	.asciz	"dbase_redo: unknown op code %u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dbase_redo                     ; -- Begin function dbase_redo
	.p2align	2
_dbase_redo:                            ; @dbase_redo
	.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	x19, x0
	bl	_XLogRecGetInfo
Lloh0:
	adrp	x8, _XLR_INFO_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XLR_INFO_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	bic	x20, x0, x8
	mov	x0, x19
	bl	_XLogRecHasAnyBlockRefs
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
Lloh3:
	adrp	x8, _XLOG_DBASE_CREATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XLOG_DBASE_CREATE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_XLogRecGetData
	mov	x19, x0
	ldr	w0, [x0]
	ldr	w1, [x19, #12]
	bl	_GetDatabasePath
	mov	x20, x0
	ldp	w1, w0, [x19, #4]
	bl	_GetDatabasePath
	mov	x21, x0
	add	x1, sp, #8
	bl	_stat
	cbz	x0, LBB0_12
LBB0_2:
	ldr	w0, [x19]
	bl	_FlushDatabaseBuffers
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_copydir
LBB0_3:
	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
LBB0_4:
Lloh6:
	adrp	x8, _XLOG_DBASE_DROP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XLOG_DBASE_DROP@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_11
; %bb.5:
	mov	x0, x19
	bl	_XLogRecGetData
	mov	x19, x0
	ldr	w0, [x0]
	ldr	w1, [x19, #4]
	bl	_GetDatabasePath
	mov	x20, x0
Lloh9:
	adrp	x24, _InHotStandby@GOTPAGE
Lloh10:
	ldr	x24, [x24, _InHotStandby@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh11:
	adrp	x23, _DatabaseRelationId@GOTPAGE
Lloh12:
	ldr	x23, [x23, _DatabaseRelationId@GOTPAGEOFF]
Lloh13:
	adrp	x22, _AccessExclusiveLock@GOTPAGE
Lloh14:
	ldr	x22, [x22, _AccessExclusiveLock@GOTPAGEOFF]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x23]
	ldr	w1, [x19]
	ldr	w3, [x22]
	mov	w2, #0
	bl	_LockSharedObjectForSession
	ldr	w0, [x19]
	bl	_ResolveRecoveryConflictWithDatabase
LBB0_7:
	ldr	w0, [x19]
	bl	_ReplicationSlotsDropDBSlots
	ldr	w0, [x19]
	bl	_DropDatabaseBuffers
	ldr	w0, [x19]
	bl	_ForgetDatabaseSyncRequests
	ldr	w0, [x19]
	bl	_XLogDropDatabase
	mov	x0, x20
	mov	w1, #1
	bl	_rmtree
	cbnz	w0, LBB0_9
; %bb.8:
Lloh15:
	adrp	x8, _WARNING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WARNING@GOTPAGEOFF]
Lloh17:
	ldr	w21, [x8]
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_9:
	ldr	x8, [x24]
	cbz	x8, LBB0_3
; %bb.10:
	ldr	w0, [x23]
	ldr	w1, [x19]
	ldr	w3, [x22]
	mov	w2, #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	_UnlockSharedObjectForSession
LBB0_11:
Lloh20:
	adrp	x8, _PANIC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PANIC@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	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	_elog
LBB0_12:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	x0, LBB0_2
; %bb.13:
	mov	x0, x21
	mov	w1, #1
	bl	_rmtree
	cbnz	w0, LBB0_2
; %bb.14:
Lloh25:
	adrp	x8, _WARNING@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WARNING@GOTPAGEOFF]
Lloh27:
	ldr	w22, [x8]
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_XLR_INFO_MASK,8,3              ; @XLR_INFO_MASK
	.comm	_XLOG_DBASE_CREATE,8,3          ; @XLOG_DBASE_CREATE
	.comm	_WARNING,4,2                    ; @WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"some useless files may be left behind in old database directory \"%s\""

	.comm	_XLOG_DBASE_DROP,8,3            ; @XLOG_DBASE_DROP
	.comm	_InHotStandby,8,3               ; @InHotStandby
	.comm	_DatabaseRelationId,4,2         ; @DatabaseRelationId
	.comm	_AccessExclusiveLock,4,2        ; @AccessExclusiveLock
	.comm	_PANIC,4,2                      ; @PANIC
l_.str.1:                               ; @.str.1
	.asciz	"dbase_redo: unknown op code %u"

.subsections_via_symbols
