	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InitXLogInsert                 ## -- Begin function InitXLogInsert
	.p2align	4, 0x90
_InitXLogInsert:                        ## @InitXLogInsert
	.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	_xloginsert_cxt@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_TopMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ALLOCSET_DEFAULT_SIZES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_AllocSetContextCreate
	movq	%rax, (%r14)
LBB0_2:
	movq	_registered_buffers@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_4
## %bb.3:
	movq	_XLR_NORMAL_MAX_BLOCK_ID@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	leal	4(,%rcx,4), %esi
	movq	%rax, %rdi
	callq	_MemoryContextAllocZero
	movq	%rax, (%rbx)
	movl	(%r15), %eax
	incl	%eax
	movq	_max_registered_buffers@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_4:
	movq	_rdatas@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_6
## %bb.5:
	movq	(%r14), %rdi
	movq	_XLR_NORMAL_RDATAS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	shll	$2, %esi
	callq	_MemoryContextAlloc
	movq	%rax, (%rbx)
	movl	(%r15), %eax
	movq	_max_rdatas@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_6:
	movq	_hdr_scratch@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_8
## %bb.7:
	movq	(%r14), %rdi
	movq	_HEADER_SCRATCH_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MemoryContextAllocZero
	movq	%rax, (%rbx)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xloginsert_cxt,8,3             ## @xloginsert_cxt
	.comm	_TopMemoryContext,4,2           ## @TopMemoryContext
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WAL record construction"

	.comm	_ALLOCSET_DEFAULT_SIZES,4,2     ## @ALLOCSET_DEFAULT_SIZES
	.comm	_registered_buffers,8,3         ## @registered_buffers
	.comm	_XLR_NORMAL_MAX_BLOCK_ID,4,2    ## @XLR_NORMAL_MAX_BLOCK_ID
	.comm	_max_registered_buffers,4,2     ## @max_registered_buffers
	.comm	_rdatas,8,3                     ## @rdatas
	.comm	_XLR_NORMAL_RDATAS,4,2          ## @XLR_NORMAL_RDATAS
	.comm	_max_rdatas,4,2                 ## @max_rdatas
	.comm	_hdr_scratch,8,3                ## @hdr_scratch
	.comm	_HEADER_SCRATCH_SIZE,4,2        ## @HEADER_SCRATCH_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InitXLogInsert                 ; -- Begin function InitXLogInsert
	.p2align	2
_InitXLogInsert:                        ; @InitXLogInsert
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x19, _xloginsert_cxt@GOTPAGE
Lloh1:
	ldr	x19, [x19, _xloginsert_cxt@GOTPAGEOFF]
	ldr	x0, [x19]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _TopMemoryContext@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TopMemoryContext@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _ALLOCSET_DEFAULT_SIZES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ALLOCSET_DEFAULT_SIZES@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_AllocSetContextCreate
	str	x0, [x19]
LBB0_2:
Lloh10:
	adrp	x20, _registered_buffers@GOTPAGE
Lloh11:
	ldr	x20, [x20, _registered_buffers@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_4
; %bb.3:
Lloh12:
	adrp	x21, _XLR_NORMAL_MAX_BLOCK_ID@GOTPAGE
Lloh13:
	ldr	x21, [x21, _XLR_NORMAL_MAX_BLOCK_ID@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	w8, w8, #2
	add	w1, w8, #4
	bl	_MemoryContextAllocZero
	str	x0, [x20]
	ldr	w8, [x21]
	add	w8, w8, #1
Lloh14:
	adrp	x9, _max_registered_buffers@GOTPAGE
Lloh15:
	ldr	x9, [x9, _max_registered_buffers@GOTPAGEOFF]
Lloh16:
	str	w8, [x9]
LBB0_4:
Lloh17:
	adrp	x20, _rdatas@GOTPAGE
Lloh18:
	ldr	x20, [x20, _rdatas@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_6
; %bb.5:
	ldr	x0, [x19]
Lloh19:
	adrp	x21, _XLR_NORMAL_RDATAS@GOTPAGE
Lloh20:
	ldr	x21, [x21, _XLR_NORMAL_RDATAS@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	w1, w8, #2
	bl	_MemoryContextAlloc
	str	x0, [x20]
	ldr	w8, [x21]
Lloh21:
	adrp	x9, _max_rdatas@GOTPAGE
Lloh22:
	ldr	x9, [x9, _max_rdatas@GOTPAGEOFF]
Lloh23:
	str	w8, [x9]
LBB0_6:
Lloh24:
	adrp	x20, _hdr_scratch@GOTPAGE
Lloh25:
	ldr	x20, [x20, _hdr_scratch@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_8
; %bb.7:
	ldr	x0, [x19]
Lloh26:
	adrp	x8, _HEADER_SCRATCH_SIZE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HEADER_SCRATCH_SIZE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_MemoryContextAllocZero
	str	x0, [x20]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_xloginsert_cxt,8,3             ; @xloginsert_cxt
	.comm	_TopMemoryContext,4,2           ; @TopMemoryContext
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WAL record construction"

	.comm	_ALLOCSET_DEFAULT_SIZES,4,2     ; @ALLOCSET_DEFAULT_SIZES
	.comm	_registered_buffers,8,3         ; @registered_buffers
	.comm	_XLR_NORMAL_MAX_BLOCK_ID,4,2    ; @XLR_NORMAL_MAX_BLOCK_ID
	.comm	_max_registered_buffers,4,2     ; @max_registered_buffers
	.comm	_rdatas,8,3                     ; @rdatas
	.comm	_XLR_NORMAL_RDATAS,4,2          ; @XLR_NORMAL_RDATAS
	.comm	_max_rdatas,4,2                 ; @max_rdatas
	.comm	_hdr_scratch,8,3                ; @hdr_scratch
	.comm	_HEADER_SCRATCH_SIZE,4,2        ; @HEADER_SCRATCH_SIZE
.subsections_via_symbols
