	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_logicalrep_relmap_update       ## -- Begin function logicalrep_relmap_update
	.p2align	4, 0x90
_logicalrep_relmap_update:              ## @logicalrep_relmap_update
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_LogicalRepRelMap@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_logicalrep_relmap_init
	movq	(%rbx), %rdi
LBB0_2:
	leaq	40(%r12), %rsi
	movq	_HASH_ENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	callq	_hash_search
	movq	%rax, %r14
	cmpl	$0, -36(%rbp)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_logicalrep_relmap_free_entry
LBB0_4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	_LogicalRepRelMapContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r15d
	movq	40(%r12), %rax
	movq	%rax, 48(%r14)
	movl	36(%r12), %edi
	callq	_pstrdup
	movq	%rax, 40(%r14)
	movl	32(%r12), %edi
	callq	_pstrdup
	movq	%rax, 32(%r14)
	movl	(%r12), %edi
	movl	%edi, (%r14)
	shll	$3, %edi
	callq	_palloc
	movq	%rax, 24(%r14)
	movl	(%r12), %edi
	shll	$2, %edi
	callq	_palloc
	movq	%rax, 16(%r14)
	cmpl	$0, (%r12)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_pstrdup
	movq	24(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %eax
	movq	16(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movl	8(%r12), %eax
	movl	%eax, 8(%r14)
	movl	4(%r12), %edi
	callq	_bms_copy
	movl	%eax, 4(%r14)
	movl	%r15d, %edi
	callq	_MemoryContextSwitchTo
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LogicalRepRelMap,8,3           ## @LogicalRepRelMap
	.comm	_HASH_ENTER,4,2                 ## @HASH_ENTER
	.comm	_LogicalRepRelMapContext,4,2    ## @LogicalRepRelMapContext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_logicalrep_relmap_update       ; -- Begin function logicalrep_relmap_update
	.p2align	2
_logicalrep_relmap_update:              ; @logicalrep_relmap_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _LogicalRepRelMap@GOTPAGE
Lloh1:
	ldr	x20, [x20, _LogicalRepRelMap@GOTPAGEOFF]
	ldr	x0, [x20]
	cbnz	x0, LBB0_2
; %bb.1:
	bl	_logicalrep_relmap_init
	ldr	x0, [x20]
LBB0_2:
	add	x1, x19, #40
Lloh2:
	adrp	x8, _HASH_ENTER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HASH_ENTER@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_hash_search
	mov	x20, x0
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_logicalrep_relmap_free_entry
LBB0_4:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #56
	bl	_memset
Lloh5:
	adrp	x8, _LogicalRepRelMapContext@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LogicalRepRelMapContext@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_MemoryContextSwitchTo
	mov	x21, x0
	ldr	x8, [x19, #40]
	str	x8, [x20, #48]
	ldr	w0, [x19, #36]
	bl	_pstrdup
	str	x0, [x20, #40]
	ldr	w0, [x19, #32]
	bl	_pstrdup
	str	x0, [x20, #32]
	ldr	w8, [x19]
	str	w8, [x20]
	lsl	w0, w8, #3
	bl	_palloc
	str	x0, [x20, #24]
	ldr	w8, [x19]
	lsl	w0, w8, #2
	bl	_palloc
	str	x0, [x20, #16]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x22, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	lsl	x23, x22, #2
	ldr	w0, [x8, x23]
	bl	_pstrdup
	ldr	x8, [x20, #24]
	str	x0, [x8, x22, lsl #3]
	ldr	x8, [x19, #16]
	ldr	w8, [x8, x23]
	ldr	x9, [x20, #16]
	str	w8, [x9, x23]
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.lt	LBB0_6
LBB0_7:
	ldp	w0, w8, [x19, #4]
	str	w8, [x20, #8]
	bl	_bms_copy
	str	w0, [x20, #4]
	mov	x0, x21
	bl	_MemoryContextSwitchTo
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LogicalRepRelMap,8,3           ; @LogicalRepRelMap
	.comm	_HASH_ENTER,4,2                 ; @HASH_ENTER
	.comm	_LogicalRepRelMapContext,4,2    ; @LogicalRepRelMapContext
.subsections_via_symbols
