	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ginFindParents
_ginFindParents:                        ## @ginFindParents
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rbx
	cmpq	$0, 8(%rbx)
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rdi
	callq	_ReleaseBuffer
	movq	8(%rbx), %rbx
	cmpq	$0, 8(%rbx)
	jne	LBB0_1
LBB0_3:
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	sete	%dil
	callq	_Assert
	movq	24(%rbx), %rdi
	callq	_BufferGetBlockNumber
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	sete	%dil
	callq	_Assert
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, 16(%rbx)
	movq	(%rbx), %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	24(%rbx), %rbx
	movl	$32, %edi
	callq	_palloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	_GIN_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LockBuffer
	movq	%rbx, %rdi
	callq	_BufferGetPage
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_GinPageIsLeaf
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	callq	_GinPageIsIncompleteSplit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edi, %edi
	cmpq	(%r15), %r14
	setne	%dil
	callq	_Assert
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, (%rsi)
	movq	%rbx, 24(%rsi)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rsi)
	movq	(%r13), %rax
	movq	%rax, 16(%rsi)
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ginFinishSplit
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	*8(%r15)
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movq	(%r13), %rcx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	*24(%r15)
	movq	%r13, %rcx
	movq	%rax, %r15
	cmpq	(%r13), %rax
	jne	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	callq	_GinPageGetOpaque
	movq	(%rax), %r14
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_14
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	16(%r15), %esi
	movq	_GIN_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ginStepRight
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_BufferGetPage
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_GinPageIsIncompleteSplit
	testq	%rax, %rax
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rbx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	xorl	%edi, %edi
	cmpq	(%r15), %r14
	setne	%dil
	callq	_Assert
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, (%rsi)
	movq	%r13, 24(%rsi)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rsi)
	movq	(%rbx), %rax
	movq	%rax, 16(%rsi)
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ginFinishSplit
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movq	(%rbx), %rcx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	*24(%r15)
	movq	%rax, %r15
	cmpq	(%rbx), %rax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%r12d, %edi
	callq	_GinPageGetOpaque
	movq	(%rax), %r14
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	movq	%r13, %rbx
	jne	LBB0_10
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_UnlockReleaseBuffer
	jmp	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rbx
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	16(%r15), %edi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_ReadBuffer
	movq	%rax, %rbx
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %r13
	jmp	LBB0_4
LBB0_17:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, (%rcx)
	movq	%rbx, 24(%rcx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	movq	%r15, 16(%rcx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidOffsetNumber,8,3        ## @InvalidOffsetNumber
	.comm	_GIN_EXCLUSIVE,4,2              ## @GIN_EXCLUSIVE
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Lost path"

	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.no_dead_strip	_ginFindParents
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ginFindParents
_ginFindParents:                        ; @ginFindParents
	.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
	mov	x20, x0
	ldr	x27, [x1, #8]
	ldr	x8, [x27, #8]
	cbz	x8, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x27, #24]
	bl	_ReleaseBuffer
	ldr	x27, [x27, #8]
	ldr	x8, [x27, #8]
	cbnz	x8, LBB0_1
LBB0_2:
	ldr	x8, [x27]
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	x0, [x27, #24]
	bl	_BufferGetBlockNumber
	ldr	x8, [x20]
	cmp	x0, x8
	cset	w0, eq
	bl	_Assert
Lloh0:
	adrp	x28, _InvalidOffsetNumber@GOTPAGE
Lloh1:
	ldr	x28, [x28, _InvalidOffsetNumber@GOTPAGEOFF]
	ldr	x8, [x28]
	str	x8, [x27, #16]
	ldr	x24, [x27]
	ldr	x22, [x27, #24]
	mov	w0, #32
	bl	_palloc
	mov	x21, x0
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
Lloh2:
	adrp	x8, _GIN_EXCLUSIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GIN_EXCLUSIVE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_LockBuffer
	mov	x0, x22
	bl	_BufferGetPage
	mov	x26, x0
	bl	_GinPageIsLeaf
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x26
	bl	_GinPageIsIncompleteSplit
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	cmp	x24, x8
	cset	w0, ne
	bl	_Assert
	stp	x24, x27, [x21]
	ldr	x8, [x28]
	stp	x8, x22, [x21, #16]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	x3, #0
	bl	_ginFinishSplit
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	mov	x0, x20
	mov	x1, x26
	blr	x8
	mov	x23, x0
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #24]
	ldr	x2, [x19]
	ldr	x3, [x28]
	mov	x0, x20
	mov	x1, x26
	blr	x8
	mov	x25, x0
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x26
	bl	_GinPageGetOpaque
	ldr	x24, [x0]
Lloh10:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh11:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x24, x8
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	w1, [x20, #16]
Lloh13:
	adrp	x8, _GIN_EXCLUSIVE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GIN_EXCLUSIVE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_ginStepRight
	mov	x22, x0
	bl	_BufferGetPage
	mov	x26, x0
	bl	_GinPageIsIncompleteSplit
	cbz	x0, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x20]
	cmp	x24, x8
	cset	w0, ne
	bl	_Assert
	stp	x24, x27, [x21]
	ldr	x8, [x28]
	stp	x8, x22, [x21, #16]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	x3, #0
	bl	_ginFinishSplit
	b	LBB0_8
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_UnlockReleaseBuffer
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh16:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh17:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x24, x8
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20, #16]
	mov	x1, x23
	bl	_ReadBuffer
	mov	x22, x0
	mov	x24, x23
	b	LBB0_3
LBB0_15:
	stp	x24, x27, [x21]
	stp	x25, x22, [x21, #16]
	str	x21, [x19, #8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidOffsetNumber,8,3        ; @InvalidOffsetNumber
	.comm	_GIN_EXCLUSIVE,4,2              ; @GIN_EXCLUSIVE
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Lost path"

	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.no_dead_strip	_ginFindParents
.subsections_via_symbols
