	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RelationCopyStorage            ## -- Begin function RelationCopyStorage
	.p2align	4, 0x90
_RelationCopyStorage:                   ## @RelationCopyStorage
	.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
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_RELPERSISTENCE_UNLOGGED@GOTPCREL(%rip), %rax
	cmpb	%r15b, (%rax)
	sete	%al
	movq	_INIT_FORKNUM@GOTPCREL(%rip), %rcx
	cmpq	%rdx, (%rcx)
	sete	%r13b
	andb	%al, %r13b
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_XLogIsNeeded
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_RELPERSISTENCE_PERMANENT@GOTPCREL(%rip), %rax
	cmpb	%r15b, (%rax)
	sete	%r12b
	orb	%r13b, %r12b
LBB0_2:
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_smgrnblocks
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jle	LBB0_9
## %bb.3:
	xorl	%r15d, %r15d
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rsi
	callq	_PageSetChecksumInplace
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	$1, %r8d
	callq	_smgrextend
	incq	%r15
	cmpq	%r15, -64(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_smgrread
	movq	%r15, %rsi
	callq	_PageIsVerified
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	testb	%r12b, %r12b
	je	LBB0_8
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %r12
	movl	%r13d, %r14d
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ERRCODE_DATA_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	4(%rax), %esi
	movq	%rbx, %rdx
	callq	_relpathbackend
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_errmsg
	movl	%r13d, %edi
	movl	%r14d, %r13d
	movq	%r12, %r14
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
	testb	%r12b, %r12b
	je	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	xorl	%r8d, %r8d
	callq	_log_newpage
	jmp	LBB0_8
LBB0_9:
	movq	_RELPERSISTENCE_PERMANENT@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpb	%cl, (%rax)
	sete	%al
	orb	%r13b, %al
	cmpb	$1, %al
	jne	LBB0_10
## %bb.11:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_smgrimmedsync                  ## TAILCALL
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RELPERSISTENCE_UNLOGGED,1,0    ## @RELPERSISTENCE_UNLOGGED
	.comm	_INIT_FORKNUM,8,3               ## @INIT_FORKNUM
	.comm	_RELPERSISTENCE_PERMANENT,1,0   ## @RELPERSISTENCE_PERMANENT
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_DATA_CORRUPTED,4,2     ## @ERRCODE_DATA_CORRUPTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid page in block %u of relation %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RelationCopyStorage            ; -- Begin function RelationCopyStorage
	.p2align	2
_RelationCopyStorage:                   ; @RelationCopyStorage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	and	w22, w3, #0xff
Lloh0:
	adrp	x8, _RELPERSISTENCE_UNLOGGED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RELPERSISTENCE_UNLOGGED@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w22
Lloh2:
	adrp	x8, _INIT_FORKNUM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INIT_FORKNUM@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ccmp	x8, x2, #0, eq
	cset	w23, eq
	bl	_XLogIsNeeded
Lloh5:
	adrp	x8, _RELPERSISTENCE_PERMANENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RELPERSISTENCE_PERMANENT@GOTPAGEOFF]
	stp	w23, w22, [sp, #8]              ; 8-byte Folded Spill
	cbz	x0, LBB0_2
; %bb.1:
	ldrb	w8, [x8]
	cmp	w8, w22
	cset	w8, eq
	orr	w28, w8, w23
	b	LBB0_3
LBB0_2:
	mov	w28, #0
LBB0_3:
	mov	x0, x21
	mov	x1, x19
	bl	_smgrnblocks
	cmp	x0, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x22, x0
	mov	x23, #0
Lloh7:
	adrp	x27, _ERROR@GOTPAGE
Lloh8:
	ldr	x27, [x27, _ERROR@GOTPAGEOFF]
Lloh9:
	adrp	x26, _ERRCODE_DATA_CORRUPTED@GOTPAGE
Lloh10:
	ldr	x26, [x26, _ERRCODE_DATA_CORRUPTED@GOTPAGEOFF]
Lloh11:
	adrp	x24, l_.str@PAGE
Lloh12:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x23
	bl	_PageSetChecksumInplace
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	w4, #1
	bl	_smgrextend
	add	x23, x23, #1
	cmp	x22, x23
	b.eq	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	bl	_CHECK_FOR_INTERRUPTS
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	bl	_smgrread
	mov	x1, x23
	bl	_PageIsVerified
	cbz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w28, LBB0_5
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w25, [x27]
	ldr	w0, [x26]
	bl	_errcode
	ldp	w0, w1, [x21]
	mov	x2, x19
	bl	_relpathbackend
	mov	x2, x0
	mov	x0, x24
	mov	x1, x23
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
	cbz	w28, LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	w4, #0
	bl	_log_newpage
	b	LBB0_5
LBB0_10:
Lloh13:
	adrp	x8, _RELPERSISTENCE_PERMANENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RELPERSISTENCE_PERMANENT@GOTPAGEOFF]
	ldrb	w8, [x8]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, w9
	cset	w8, eq
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	orr	w8, w8, w9
	cmp	w8, #1
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_smgrimmedsync
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RELPERSISTENCE_UNLOGGED,1,0    ; @RELPERSISTENCE_UNLOGGED
	.comm	_INIT_FORKNUM,8,3               ; @INIT_FORKNUM
	.comm	_RELPERSISTENCE_PERMANENT,1,0   ; @RELPERSISTENCE_PERMANENT
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_DATA_CORRUPTED,4,2     ; @ERRCODE_DATA_CORRUPTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid page in block %u of relation %s"

.subsections_via_symbols
