	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XLogInsert                     ## -- Begin function XLogInsert
	.p2align	4, 0x90
_XLogInsert:                            ## @XLogInsert
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_begininsert_called@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_2:
	movq	_XLR_RMGR_INFO_MASK@GOTPCREL(%rip), %rax
	movq	_XLR_SPECIAL_REL_UPDATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_XLR_CHECK_CONSISTENCY@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	testl	%r15d, %ecx
	je	LBB0_4
## %bb.3:
	movq	_PANIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_elog
LBB0_4:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_TRACE_POSTGRESQL_WAL_INSERT
	xorl	%eax, %eax
	callq	_IsBootstrapProcessingMode
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_RM_XLOG_ID@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_XLogResetInsertion
	movq	_SizeOfXLogLongPHD@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-48(%rbp), %rdi
	leaq	-28(%rbp), %rsi
	callq	_GetFullPageWriteInfo
	movq	-48(%rbp), %rdx
	movl	-28(%rbp), %ecx
	leaq	-40(%rbp), %r8
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_XLogRecordAssemble
	movq	-40(%rbp), %rsi
	movq	_curinsert_flags@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	callq	_XLogInsertRecord
	movq	%rax, %rbx
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_7
## %bb.8:
	xorl	%eax, %eax
	callq	_XLogResetInsertion
LBB0_9:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_begininsert_called,4,2         ## @begininsert_called
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"XLogBeginInsert was not called"

	.comm	_XLR_RMGR_INFO_MASK,4,2         ## @XLR_RMGR_INFO_MASK
	.comm	_XLR_SPECIAL_REL_UPDATE,4,2     ## @XLR_SPECIAL_REL_UPDATE
	.comm	_XLR_CHECK_CONSISTENCY,4,2      ## @XLR_CHECK_CONSISTENCY
	.comm	_PANIC,4,2                      ## @PANIC
L_.str.1:                               ## @.str.1
	.asciz	"invalid xlog info mask %02X"

	.comm	_RM_XLOG_ID,8,3                 ## @RM_XLOG_ID
	.comm	_SizeOfXLogLongPHD,8,3          ## @SizeOfXLogLongPHD
	.comm	_curinsert_flags,4,2            ## @curinsert_flags
	.comm	_InvalidXLogRecPtr,8,3          ## @InvalidXLogRecPtr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XLogInsert                     ; -- Begin function XLogInsert
	.p2align	2
_XLogInsert:                            ; @XLogInsert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _begininsert_called@GOTPAGE
Lloh1:
	ldr	x8, [x8, _begininsert_called@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
Lloh8:
	adrp	x8, _XLR_RMGR_INFO_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XLR_RMGR_INFO_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _XLR_SPECIAL_REL_UPDATE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _XLR_SPECIAL_REL_UPDATE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _XLR_CHECK_CONSISTENCY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _XLR_CHECK_CONSISTENCY@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bics	wzr, w19, w8
	b.eq	LBB0_4
; %bb.3:
Lloh17:
	adrp	x8, _PANIC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PANIC@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_TRACE_POSTGRESQL_WAL_INSERT
	bl	_IsBootstrapProcessingMode
	cbz	x0, LBB0_7
; %bb.5:
Lloh22:
	adrp	x8, _RM_XLOG_ID@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RM_XLOG_ID@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x8, x20
	b.eq	LBB0_7
; %bb.6:
	bl	_XLogResetInsertion
Lloh25:
	adrp	x8, _SizeOfXLogLongPHD@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SizeOfXLogLongPHD@GOTPAGEOFF]
Lloh27:
	ldr	x21, [x8]
	b	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #24
	add	x1, sp, #20
	bl	_GetFullPageWriteInfo
	ldr	x2, [sp, #24]
	ldr	w3, [sp, #20]
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_XLogRecordAssemble
	ldr	x1, [sp, #8]
Lloh28:
	adrp	x8, _curinsert_flags@GOTPAGE
Lloh29:
	ldr	x8, [x8, _curinsert_flags@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	bl	_XLogInsertRecord
Lloh31:
	adrp	x8, _InvalidXLogRecPtr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.8:
	mov	x21, x0
	bl	_XLogResetInsertion
LBB0_9:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_begininsert_called,4,2         ; @begininsert_called
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"XLogBeginInsert was not called"

	.comm	_XLR_RMGR_INFO_MASK,4,2         ; @XLR_RMGR_INFO_MASK
	.comm	_XLR_SPECIAL_REL_UPDATE,4,2     ; @XLR_SPECIAL_REL_UPDATE
	.comm	_XLR_CHECK_CONSISTENCY,4,2      ; @XLR_CHECK_CONSISTENCY
	.comm	_PANIC,4,2                      ; @PANIC
l_.str.1:                               ; @.str.1
	.asciz	"invalid xlog info mask %02X"

	.comm	_RM_XLOG_ID,8,3                 ; @RM_XLOG_ID
	.comm	_SizeOfXLogLongPHD,8,3          ; @SizeOfXLogLongPHD
	.comm	_curinsert_flags,4,2            ; @curinsert_flags
	.comm	_InvalidXLogRecPtr,8,3          ; @InvalidXLogRecPtr
.subsections_via_symbols
