	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReorderBufferRestoreCleanup
_ReorderBufferRestoreCleanup:           ## @ReorderBufferRestoreCleanup
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rsi), %rax
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	setne	%dil
	callq	_Assert
	movq	8(%r15), %rax
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	setne	%dil
	callq	_Assert
	movq	(%r15), %rdi
	movq	_wal_segment_size@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_XLByteToSeg
	movq	8(%r15), %rdi
	movl	(%rbx), %edx
	callq	_XLByteToSeg
	movq	_MAXPGPATH@GOTPCREL(%rip), %r13
                                        ## implicit-def: $r12
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rsp
	incq	%r12
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsp, %r14
	movl	(%r13), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_MyReplicationSlot@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r15), %edx
	movq	%rbx, %rdi
	movq	%r12, %rcx
	callq	_ReorderBufferSerializedPath
	movq	%rbx, %rdi
	callq	_unlink
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %r15
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_errmsg
	movl	%r13d, %edi
	movq	%r15, %r13
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidXLogRecPtr,8,3          ## @InvalidXLogRecPtr
	.comm	_wal_segment_size,4,2           ## @wal_segment_size
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.comm	_MyReplicationSlot,4,2          ## @MyReplicationSlot
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not remove file \"%s\": %m"

	.no_dead_strip	_ReorderBufferRestoreCleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReorderBufferRestoreCleanup
_ReorderBufferRestoreCleanup:           ; @ReorderBufferRestoreCleanup
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x20, _InvalidXLogRecPtr@GOTPAGE
Lloh1:
	ldr	x20, [x20, _InvalidXLogRecPtr@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, ne
	bl	_Assert
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, ne
	bl	_Assert
	ldr	x0, [x19]
Lloh2:
	adrp	x20, _wal_segment_size@GOTPAGE
Lloh3:
	ldr	x20, [x20, _wal_segment_size@GOTPAGEOFF]
	ldr	w2, [x20]
	bl	_XLByteToSeg
	ldr	x0, [x19, #8]
	ldr	w2, [x20]
	bl	_XLByteToSeg
Lloh4:
	adrp	x24, _MAXPGPATH@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MAXPGPATH@GOTPAGEOFF]
Lloh6:
	adrp	x25, _MyReplicationSlot@GOTPAGE
Lloh7:
	ldr	x25, [x25, _MyReplicationSlot@GOTPAGEOFF]
Lloh8:
	adrp	x26, _errno@GOTPAGE
Lloh9:
	ldr	x26, [x26, _errno@GOTPAGEOFF]
Lloh10:
	adrp	x27, _ENOENT@GOTPAGE
Lloh11:
	ldr	x27, [x27, _ENOENT@GOTPAGEOFF]
                                        ; implicit-def: $x21
Lloh12:
	adrp	x28, _ERROR@GOTPAGE
Lloh13:
	ldr	x28, [x28, _ERROR@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	sp, x20
	add	x21, x21, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, sp
	ldr	w8, [x24]
	mov	x9, x8
Lloh14:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh15:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w1, [x25]
	ldr	w2, [x19, #16]
	mov	x0, x22
	mov	x3, x21
	bl	_ReorderBufferSerializedPath
	mov	x0, x22
	bl	_unlink
	cbz	x0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w23, [x28]
	bl	_errcode_for_file_access
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
	b	LBB0_1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidXLogRecPtr,8,3          ; @InvalidXLogRecPtr
	.comm	_wal_segment_size,4,2           ; @wal_segment_size
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.comm	_MyReplicationSlot,4,2          ; @MyReplicationSlot
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not remove file \"%s\": %m"

	.no_dead_strip	_ReorderBufferRestoreCleanup
.subsections_via_symbols
