	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_relmap_redo                    ## -- Begin function relmap_redo
	.p2align	4, 0x90
_relmap_redo:                           ## @relmap_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_XLogRecGetInfo
	movq	_XLR_INFO_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	%r14, %rdi
	callq	_XLogRecHasAnyBlockRefs
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	_XLOG_RELMAP_UPDATE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_XLogRecGetData
	movq	%rax, %rbx
	movl	(%rax), %edx
	cmpl	$4, %edx
	je	LBB0_3
## %bb.2:
	movq	_PANIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_3:
	movl	20(%rbx), %esi
	leaq	-28(%rbp), %r14
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%rbx), %rdi
	movl	16(%rbx), %esi
	callq	_GetDatabasePath
	movq	%rax, %r15
	movq	8(%rbx), %r9
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %r9
	sete	%dil
	movl	16(%rbx), %eax
	movq	%r14, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	pushq	%r15
	pushq	%rax
	callq	_write_relmap_file
	addq	$16, %rsp
	movq	%r15, %rdi
	callq	_pfree
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_PANIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elog                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XLR_INFO_MASK,4,2              ## @XLR_INFO_MASK
	.comm	_XLOG_RELMAP_UPDATE,4,2         ## @XLOG_RELMAP_UPDATE
	.comm	_PANIC,4,2                      ## @PANIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"relmap_redo: wrong size %u in relmap update record"

	.comm	_InvalidOid,8,3                 ## @InvalidOid
L_.str.1:                               ## @.str.1
	.asciz	"relmap_redo: unknown op code %u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_relmap_redo                    ; -- Begin function relmap_redo
	.p2align	2
_relmap_redo:                           ; @relmap_redo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_XLogRecGetInfo
Lloh0:
	adrp	x8, _XLR_INFO_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XLR_INFO_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w20, w0, w8
	mov	x0, x19
	bl	_XLogRecHasAnyBlockRefs
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
Lloh3:
	adrp	x8, _XLOG_RELMAP_UPDATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XLOG_RELMAP_UPDATE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_XLogRecGetData
	mov	x19, x0
	ldr	w2, [x0]
	cmp	w2, #4
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _PANIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PANIC@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_3:
	ldr	w1, [x19, #20]
	add	x0, sp, #12
	mov	w2, #4
	bl	_memcpy
	ldr	x0, [x19, #8]
	ldr	w1, [x19, #16]
	bl	_GetDatabasePath
	mov	x20, x0
	ldr	x5, [x19, #8]
Lloh11:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh12:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x5, x8
	cset	w0, eq
	ldr	w6, [x19, #16]
	add	x1, sp, #12
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	mov	x7, x20
	bl	_write_relmap_file
	mov	x0, x20
	bl	_pfree
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
Lloh14:
	adrp	x8, _PANIC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PANIC@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_elog
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_XLR_INFO_MASK,4,2              ; @XLR_INFO_MASK
	.comm	_XLOG_RELMAP_UPDATE,4,2         ; @XLOG_RELMAP_UPDATE
	.comm	_PANIC,4,2                      ; @PANIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"relmap_redo: wrong size %u in relmap update record"

	.comm	_InvalidOid,8,3                 ; @InvalidOid
l_.str.1:                               ; @.str.1
	.asciz	"relmap_redo: unknown op code %u"

.subsections_via_symbols
