	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generic_redo                   ## -- Begin function generic_redo
	.p2align	4, 0x90
_generic_redo:                          ## @generic_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	4(%rdi), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_MAX_GENERIC_XLOG_PAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	xorl	%edi, %edi
	cmpl	%ebx, (%r12)
	setl	%dil
	callq	_Assert
	xorl	%r14d, %r14d
	movq	_BLK_NEEDS_REDO@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15,%rbx,4)
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	ja	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_XLogRecHasBlockRef
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	(%r15,%r14), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_XLogReadBufferForRedo
	cmpq	(%r13), %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15,%rbx,4), %edi
	callq	_BufferGetPage
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%rbx, %rsi
	leaq	-56(%rbp), %rdx
	callq	_XLogRecGetBlockData
	movl	-56(%rbp), %edx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_applyPageRedo
	movq	(%r13), %rdi
	movq	8(%r13), %rdx
	subq	%rdi, %rdx
	addq	%r13, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%r13, %rdi
	movq	_BLK_NEEDS_REDO@GOTPCREL(%rip), %r13
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_PageSetLSN
	movl	(%r15,%rbx,4), %edi
	callq	_MarkBufferDirty
	jmp	LBB0_5
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	ja	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbx,4), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r15,%rbx,4), %edi
	callq	_UnlockReleaseBuffer
	jmp	LBB0_9
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_GENERIC_XLOG_PAGES,4,2     ## @MAX_GENERIC_XLOG_PAGES
	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
	.comm	_BLK_NEEDS_REDO,8,3             ## @BLK_NEEDS_REDO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generic_redo                   ; -- Begin function generic_redo
	.p2align	2
_generic_redo:                          ; @generic_redo
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	w20, [x0, #4]
Lloh3:
	adrp	x8, _MAX_GENERIC_XLOG_PAGES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_GENERIC_XLOG_PAGES@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	ldr	w8, [x0]
	cmp	w8, w12
	cset	w0, lt
	bl	_Assert
	mov	x24, #0
	mov	x21, #0
Lloh8:
	adrp	x25, _InvalidBuffer@GOTPAGE
Lloh9:
	ldr	x25, [x25, _InvalidBuffer@GOTPAGEOFF]
Lloh10:
	adrp	x26, _BLK_NEEDS_REDO@GOTPAGE
Lloh11:
	ldr	x26, [x26, _BLK_NEEDS_REDO@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25]
	str	w8, [x23, x21, lsl #2]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x24, x24, #4
	cmp	x21, x8
	b.hi	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_XLogRecHasBlockRef
	cbz	w0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x2, x23, x24
	mov	x0, x19
	mov	x1, x21
	bl	_XLogReadBufferForRedo
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	x27, x21, #2
	ldr	w0, [x23, x27]
	bl	_BufferGetPage
	mov	x22, x0
	sub	x2, x29, #92
	mov	x0, x19
	mov	x1, x21
	bl	_XLogRecGetBlockData
	mov	x1, x0
	ldur	w2, [x29, #-92]
	mov	x0, x22
	bl	_applyPageRedo
	ldp	x8, x9, [x22]
	add	x0, x8, x22
	sub	x2, x9, x8
	mov	w1, #0
	bl	_memset
	mov	x0, x22
	mov	x1, x20
	bl	_PageSetLSN
	ldr	w0, [x23, x27]
	bl	_MarkBufferDirty
	b	LBB0_2
LBB0_6:
	mov	x20, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.hi	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23, x20, lsl #2]
	bl	_BufferIsValid
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x23, x20, lsl #2]
	bl	_UnlockReleaseBuffer
	b	LBB0_7
LBB0_10:
	ldur	x8, [x29, #-88]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_GENERIC_XLOG_PAGES,4,2     ; @MAX_GENERIC_XLOG_PAGES
	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
	.comm	_BLK_NEEDS_REDO,8,3             ; @BLK_NEEDS_REDO
.subsections_via_symbols
