	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_begin_heap_rewrite             ## -- Begin function begin_heap_rewrite
	.p2align	4, 0x90
_begin_heap_rewrite:                    ## @begin_heap_rewrite
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ALLOCSET_DEFAULT_SIZES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_AllocSetContextCreate
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	$4, %edi
	callq	_palloc0
	movq	%rax, %rbx
	movq	%r13, 72(%rax)
	movq	%r15, 64(%rax)
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_palloc
	movq	%rax, 56(%rbx)
	movq	%r15, %rdi
	callq	_RelationGetNumberOfBlocks
	movl	%eax, 48(%rbx)
	movl	$0, (%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	movq	%r14, 40(%rbx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%rbx)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 28(%rbx)
	movl	%r12d, 24(%rbx)
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movabsq	$17179869188, %rax              ## imm = 0x400000004
	movq	%rax, -64(%rbp)
	movl	24(%rbx), %eax
	movq	_HASH_ELEM@GOTPCREL(%rip), %r15
	movq	_HASH_BLOBS@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	orl	(%r15), %ecx
	movl	%eax, -56(%rbp)
	movq	_HASH_CONTEXT@GOTPCREL(%rip), %r13
	orl	(%r13), %ecx
	leaq	L_.str.1(%rip), %rdi
	movl	$128, %esi
	movq	%r14, %rdx
	callq	_hash_create
	movq	%rax, 16(%rbx)
	movl	$4, -60(%rbp)
	movl	(%r12), %ecx
	orl	(%r15), %ecx
	orl	(%r13), %ecx
	leaq	L_.str.2(%rip), %rdi
	movl	$128, %esi
	movq	%r14, %rdx
	callq	_hash_create
	movq	%rax, 8(%rbx)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_MemoryContextSwitchTo
	movq	%rbx, %rdi
	callq	_logical_begin_heap_rewrite
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Table rewrite"

	.comm	_ALLOCSET_DEFAULT_SIZES,4,2     ## @ALLOCSET_DEFAULT_SIZES
	.comm	_BLCKSZ,4,2                     ## @BLCKSZ
L_.str.1:                               ## @.str.1
	.asciz	"Rewrite / Unresolved ctids"

	.comm	_HASH_ELEM,4,2                  ## @HASH_ELEM
	.comm	_HASH_BLOBS,4,2                 ## @HASH_BLOBS
	.comm	_HASH_CONTEXT,4,2               ## @HASH_CONTEXT
L_.str.2:                               ## @.str.2
	.asciz	"Rewrite / Old to new tid map"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_begin_heap_rewrite             ; -- Begin function begin_heap_rewrite
	.p2align	2
_begin_heap_rewrite:                    ; @begin_heap_rewrite
	.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	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x26, x0
Lloh0:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ALLOCSET_DEFAULT_SIZES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ALLOCSET_DEFAULT_SIZES@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_AllocSetContextCreate
	mov	x27, x0
	bl	_MemoryContextSwitchTo
	mov	x20, x0
	mov	w28, #4
	mov	w0, #4
	bl	_palloc0
	mov	x19, x0
	stp	x25, x26, [x0, #64]
Lloh8:
	adrp	x8, _BLCKSZ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BLCKSZ@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_palloc
	str	x0, [x19, #56]
	mov	x0, x25
	bl	_RelationGetNumberOfBlocks
	str	w0, [x19, #48]
	stp	wzr, w21, [x19]
	stp	x23, x24, [x19, #32]
	stp	w27, w22, [x19, #24]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	mov	x8, #17179869188
	str	x8, [sp]
	ldr	w8, [x19, #24]
	str	w8, [sp, #8]
Lloh11:
	adrp	x21, _HASH_ELEM@GOTPAGE
Lloh12:
	ldr	x21, [x21, _HASH_ELEM@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh13:
	adrp	x22, _HASH_BLOBS@GOTPAGE
Lloh14:
	ldr	x22, [x22, _HASH_BLOBS@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
Lloh15:
	adrp	x23, _HASH_CONTEXT@GOTPAGE
Lloh16:
	ldr	x23, [x23, _HASH_CONTEXT@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w3, w8, w9
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, sp
	mov	w1, #128
	bl	_hash_create
	str	x0, [x19, #16]
	str	w28, [sp, #4]
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w3, w8, w9
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, sp
	mov	w1, #128
	bl	_hash_create
	str	x0, [x19, #8]
	mov	x0, x20
	bl	_MemoryContextSwitchTo
	mov	x0, x19
	bl	_logical_begin_heap_rewrite
	mov	x0, 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
	ret
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Table rewrite"

	.comm	_ALLOCSET_DEFAULT_SIZES,4,2     ; @ALLOCSET_DEFAULT_SIZES
	.comm	_BLCKSZ,4,2                     ; @BLCKSZ
l_.str.1:                               ; @.str.1
	.asciz	"Rewrite / Unresolved ctids"

	.comm	_HASH_ELEM,4,2                  ; @HASH_ELEM
	.comm	_HASH_BLOBS,4,2                 ; @HASH_BLOBS
	.comm	_HASH_CONTEXT,4,2               ; @HASH_CONTEXT
l_.str.2:                               ; @.str.2
	.asciz	"Rewrite / Old to new tid map"

.subsections_via_symbols
