	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gistRedoPageSplitRecord
_gistRedoPageSplitRecord:               ## @gistRedoPageSplitRecord
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	callq	_XLogRecGetData
	movq	%rax, %rbx
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	$0, (%rbx)
	jle	LBB0_22
## %bb.1:
	xorl	%r14d, %r14d
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edi
	callq	_UnlockReleaseBuffer
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	%r12d, %r14d
	cmpl	(%rbx), %r12d
	jge	LBB0_22
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	1(%r14), %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	leaq	-80(%rbp), %r8
	callq	_XLogRecGetBlockTag
	movq	-80(%rbp), %rax
	movq	_GIST_ROOT_BLKNO@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	testl	%r14d, %r14d
	sete	%dil
	callq	_Assert
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_XLogInitBufferForRedo
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_BufferGetPage
	movq	%r15, %rdi
	movq	%rax, %r15
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %esi
	leaq	-92(%rbp), %rdx
	callq	_XLogRecGetBlockData
	movl	-92(%rbp), %esi
	movq	%rax, %rdi
	leaq	-88(%rbp), %rdx
	callq	_decodePageSplitRecord
	movq	%rax, %r12
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 32(%rax)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rax
	xorl	%esi, %esi
	cmpq	(%rbx), %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_F_LEAF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edi
	callq	_GISTInitBuffer
	movl	-88(%rbp), %edx
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_gistfillbuffer
	movq	-80(%rbp), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r15, %rdi
	callq	_GistPageGetOpaque
	movq	%rbx, (%rax)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	16(%rbx), %esi
	movq	%r15, %rdi
	callq	_GistPageSetNSN
	movq	%r15, %rdi
	callq	_GistClearFollowRight
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %eax
	decl	%eax
	cmpl	%eax, %r14d
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	leal	2(%r14), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	leaq	-104(%rbp), %r8
	callq	_XLogRecGetBlockTag
	movq	-104(%rbp), %r12
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rbx), %r12
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_GistPageGetOpaque
	movq	%r12, (%rax)
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	16(%rbx), %esi
	movq	%r15, %rdi
	callq	_GistPageSetNSN
	movl	(%rbx), %eax
	decl	%eax
	cmpl	%eax, %r14d
	jge	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%rbx)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_GistMarkFollowRight
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_GistClearFollowRight
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	callq	_PageSetLSN
	movl	%r13d, %edi
	callq	_MarkBufferDirty
	testl	%r14d, %r14d
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	jmp	LBB0_21
LBB0_22:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_XLogRecHasBlockRef
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_gistRedoClearFollowRight
LBB0_24:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_UnlockReleaseBuffer
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
	.comm	_GIST_ROOT_BLKNO,8,3            ## @GIST_ROOT_BLKNO
	.comm	_F_LEAF,4,2                     ## @F_LEAF
	.comm	_FirstOffsetNumber,4,2          ## @FirstOffsetNumber
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.no_dead_strip	_gistRedoPageSplitRecord
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gistRedoPageSplitRecord
_gistRedoPageSplitRecord:               ; @gistRedoPageSplitRecord
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x0
	ldr	w21, [x0]
	bl	_XLogRecGetData
Lloh0:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.1:
	mov	x22, x0
	mov	w23, #0
	mov	w28, #0
Lloh3:
	adrp	x27, _GIST_ROOT_BLKNO@GOTPAGE
Lloh4:
	ldr	x27, [x27, _GIST_ROOT_BLKNO@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_UnlockReleaseBuffer
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	mov	x23, x20
	cmp	w20, w8
	b.ge	LBB0_21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w20, w23, #1
	add	x4, sp, #16
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	mov	x3, #0
	bl	_XLogRecGetBlockTag
	ldr	x8, [sp, #16]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w23, #0
	cset	w0, eq
	bl	_Assert
	mov	w28, #1
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_XLogInitBufferForRedo
	mov	x24, x0
	bl	_BufferGetPage
	mov	x25, x0
	add	x2, sp, #28
	mov	x0, x19
	mov	x1, x20
	bl	_XLogRecGetBlockData
	ldr	w1, [sp, #28]
	add	x2, sp, #24
	bl	_decodePageSplitRecord
	mov	x26, x0
	ldr	x8, [x22, #32]
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]
	ldr	x9, [x27]
Lloh5:
	adrp	x10, _F_LEAF@GOTPAGE
Lloh6:
	ldr	x10, [x10, _F_LEAF@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w1, wzr, w10, eq
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w1, #0
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_GISTInitBuffer
	ldr	w2, [sp, #24]
Lloh8:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x25
	mov	x1, x26
	bl	_gistfillbuffer
	ldr	x8, [sp, #16]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh11:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh12:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh13:
	ldr	x26, [x8]
	mov	x0, x25
	bl	_GistPageGetOpaque
	str	x26, [x0]
	ldr	w1, [x22, #16]
	mov	x0, x25
	bl	_GistPageSetNSN
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_GistClearFollowRight
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	mov	x1, x21
	bl	_PageSetLSN
	mov	x0, x24
	bl	_MarkBufferDirty
	cbnz	w23, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	str	w24, [sp, #4]                   ; 4-byte Folded Spill
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	sub	w8, w8, #1
	cmp	w23, w8
	b.ge	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w1, w23, #2
	add	x4, sp, #8
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	bl	_XLogRecGetBlockTag
	ldr	x26, [sp, #8]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x26, [x22, #24]
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_GistPageGetOpaque
	str	x26, [x0]
	ldr	w1, [x22, #16]
	mov	x0, x25
	bl	_GistPageSetNSN
	ldr	w8, [x22]
	sub	w8, w8, #1
	cmp	w23, w8
	b.ge	LBB0_11
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w28, LBB0_11
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_11
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_GistMarkFollowRight
	b	LBB0_12
LBB0_21:
	mov	x0, x19
	mov	w1, #0
	bl	_XLogRecHasBlockRef
	cbz	x0, LBB0_23
; %bb.22:
	mov	x0, x19
	mov	w1, #0
	bl	_gistRedoClearFollowRight
LBB0_23:
	ldr	w0, [sp, #4]                    ; 4-byte Folded Reload
	bl	_UnlockReleaseBuffer
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
	.comm	_GIST_ROOT_BLKNO,8,3            ; @GIST_ROOT_BLKNO
	.comm	_F_LEAF,4,2                     ; @F_LEAF
	.comm	_FirstOffsetNumber,4,2          ; @FirstOffsetNumber
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.no_dead_strip	_gistRedoPageSplitRecord
.subsections_via_symbols
