	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function logical_begin_heap_rewrite
_logical_begin_heap_rewrite:            ## @logical_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	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	40(%rdi), %edi
	callq	_RelationIsAccessibleInLogicalDecoding
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	leaq	-24(%rbp), %rsi
	xorl	%edi, %edi
	callq	_ProcArrayGetReplicationSlotXmin
	movq	-24(%rbp), %rax
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	$0, (%rbx)
	jmp	LBB0_4
LBB0_3:
	movq	%rax, 32(%rbx)
	xorl	%eax, %eax
	callq	_GetXLogInsertRecPtr
	movl	%eax, 24(%rbx)
	movq	$0, 16(%rbx)
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movabsq	$17179869192, %rax              ## imm = 0x400000008
	movq	%rax, -40(%rbp)
	movq	_HASH_ELEM@GOTPCREL(%rip), %rax
	movq	_HASH_BLOBS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	8(%rbx), %eax
	movl	%eax, -32(%rbp)
	movq	_HASH_CONTEXT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	movl	$128, %esi
	movq	%r14, %rdx
	callq	_hash_create
	movl	%eax, 4(%rbx)
LBB0_4:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidTransactionId,8,3       ## @InvalidTransactionId
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Logical rewrite mapping"

	.comm	_HASH_ELEM,4,2                  ## @HASH_ELEM
	.comm	_HASH_BLOBS,4,2                 ## @HASH_BLOBS
	.comm	_HASH_CONTEXT,4,2               ## @HASH_CONTEXT
	.no_dead_strip	_logical_begin_heap_rewrite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function logical_begin_heap_rewrite
lCPI0_0:
	.long	8                               ; 0x8
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_logical_begin_heap_rewrite:            ; @logical_begin_heap_rewrite
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #40]
	bl	_RelationIsAccessibleInLogicalDecoding
	str	w0, [x19]
	cbz	w0, LBB0_4
; %bb.1:
	add	x1, sp, #8
	mov	x0, #0
	bl	_ProcArrayGetReplicationSlotXmin
	ldr	x8, [sp, #8]
Lloh0:
	adrp	x9, _InvalidTransactionId@GOTPAGE
Lloh1:
	ldr	x9, [x9, _InvalidTransactionId@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	str	wzr, [x19]
	b	LBB0_4
LBB0_3:
	str	x8, [x19, #32]
	bl	_GetXLogInsertRecPtr
	str	w0, [x19, #24]
	str	xzr, [x19, #16]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #16]
	ldr	w8, [x19, #8]
	str	w8, [sp, #24]
Lloh5:
	adrp	x8, _HASH_ELEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HASH_ELEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _HASH_BLOBS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HASH_BLOBS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _HASH_CONTEXT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HASH_CONTEXT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w3, w8, w9
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	add	x2, sp, #16
	mov	w1, #128
	bl	_hash_create
	str	w0, [x19, #4]
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidTransactionId,8,3       ; @InvalidTransactionId
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Logical rewrite mapping"

	.comm	_HASH_ELEM,4,2                  ; @HASH_ELEM
	.comm	_HASH_BLOBS,4,2                 ; @HASH_BLOBS
	.comm	_HASH_CONTEXT,4,2               ; @HASH_CONTEXT
	.no_dead_strip	_logical_begin_heap_rewrite
.subsections_via_symbols
