	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XLogResetInsertion             ## -- Begin function XLogResetInsertion
	.p2align	4, 0x90
_XLogResetInsertion:                    ## @XLogResetInsertion
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_max_registered_block_id@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	movq	_registered_buffers@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%rax), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_2
LBB0_3:
	movq	_num_rdatas@GOTPCREL(%rip), %rcx
	movq	$0, (%rcx)
	movl	$0, (%rax)
	movq	_mainrdata_len@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_mainrdata_head@GOTPCREL(%rip), %rax
	movq	_mainrdata_last@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_curinsert_flags@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_begininsert_called@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_max_registered_block_id,4,2    ## @max_registered_block_id
	.comm	_registered_buffers,8,3         ## @registered_buffers
	.comm	_num_rdatas,8,3                 ## @num_rdatas
	.comm	_mainrdata_len,8,3              ## @mainrdata_len
	.comm	_mainrdata_head,4,2             ## @mainrdata_head
	.comm	_mainrdata_last,8,3             ## @mainrdata_last
	.comm	_curinsert_flags,8,3            ## @curinsert_flags
	.comm	_begininsert_called,4,2         ## @begininsert_called
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XLogResetInsertion             ; -- Begin function XLogResetInsertion
	.p2align	2
_XLogResetInsertion:                    ; @XLogResetInsertion
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _max_registered_block_id@GOTPAGE
Lloh1:
	ldr	x8, [x8, _max_registered_block_id@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
Lloh2:
	adrp	x10, _registered_buffers@GOTPAGE
Lloh3:
	ldr	x10, [x10, _registered_buffers@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldrsw	x11, [x8]
	cmp	x9, x11
	b.lt	LBB0_2
LBB0_3:
Lloh5:
	adrp	x9, _num_rdatas@GOTPAGE
Lloh6:
	ldr	x9, [x9, _num_rdatas@GOTPAGEOFF]
Lloh7:
	str	xzr, [x9]
	str	wzr, [x8]
Lloh8:
	adrp	x8, _mainrdata_len@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mainrdata_len@GOTPAGEOFF]
Lloh10:
	str	xzr, [x8]
Lloh11:
	adrp	x8, _mainrdata_last@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mainrdata_last@GOTPAGEOFF]
Lloh13:
	adrp	x9, _mainrdata_head@GOTPAGE
Lloh14:
	ldr	x9, [x9, _mainrdata_head@GOTPAGEOFF]
Lloh15:
	str	x9, [x8]
Lloh16:
	adrp	x8, _curinsert_flags@GOTPAGE
Lloh17:
	ldr	x8, [x8, _curinsert_flags@GOTPAGEOFF]
Lloh18:
	str	xzr, [x8]
Lloh19:
	adrp	x8, _begininsert_called@GOTPAGE
Lloh20:
	ldr	x8, [x8, _begininsert_called@GOTPAGEOFF]
Lloh21:
	str	wzr, [x8]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_max_registered_block_id,4,2    ; @max_registered_block_id
	.comm	_registered_buffers,8,3         ; @registered_buffers
	.comm	_num_rdatas,8,3                 ; @num_rdatas
	.comm	_mainrdata_len,8,3              ; @mainrdata_len
	.comm	_mainrdata_head,4,2             ; @mainrdata_head
	.comm	_mainrdata_last,8,3             ; @mainrdata_last
	.comm	_curinsert_flags,8,3            ; @curinsert_flags
	.comm	_begininsert_called,4,2         ; @begininsert_called
.subsections_via_symbols
