	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ginFindLeafPage                ## -- Begin function ginFindLeafPage
	.p2align	4, 0x90
_ginFindLeafPage:                       ## @ginFindLeafPage
	.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
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movl	$40, %edi
	callq	_palloc
	movq	%rax, %r12
	movq	(%r13), %rsi
	movq	%rsi, (%rax)
	movl	24(%r13), %edi
	callq	_ReadBuffer
	movq	%rax, 16(%r12)
	movq	$0, 24(%r12)
	movl	$1, 8(%r12)
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movl	24(%r13), %edi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_CheckForSerializableConflictIn
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, (%r12)
	movq	16(%r12), %rdi
	movl	24(%r13), %esi
	movq	%rbx, %rdx
	callq	_ReleaseAndReadBuffer
	movq	%rax, 16(%r12)
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	16(%r12), %rdi
	callq	_BufferGetPage
	movl	%eax, %ebx
	movl	24(%r13), %esi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_TestForOldSnapshot
	movq	16(%r12), %rdi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	callq	_ginTraverseLock
	movl	%eax, %r14d
	testl	%r15d, %r15d
	jne	LBB0_5
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_GinPageIsIncompleteSplit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ginFinishSplit
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, 8(%r13)
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	(%r12), %rax
	cmpq	(%r13), %rax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	*32(%r13)
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	%ebx, %edi
	callq	_GinPageGetOpaque
	movq	(%rax), %r15
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	16(%r12), %rdi
	movl	24(%r13), %esi
	movl	%r14d, %edx
	callq	_ginStepRight
	movq	%rax, 16(%r12)
	movq	%r15, (%r12)
	movq	%rax, %rdi
	callq	_BufferGetPage
	movl	%eax, %ebx
	movl	24(%r13), %esi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_TestForOldSnapshot
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_5
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_GinPageIsLeaf
	testq	%rax, %rax
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	*16(%r13)
	movq	%rax, %rbx
	movq	16(%r12), %rdi
	movq	_GIN_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	xorl	%edi, %edi
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	setne	%dil
	callq	_Assert
	xorl	%edi, %edi
	cmpq	%rbx, (%r12)
	setne	%dil
	callq	_Assert
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$40, %edi
	callq	_palloc
	movq	%rax, %r14
	movq	%r12, 24(%rax)
	movq	%rbx, (%rax)
	movl	24(%r13), %edi
	movq	%rbx, %rsi
	callq	_ReadBuffer
	movq	%rax, 16(%r14)
	movl	$1, 8(%r14)
	movq	%r14, %r12
	jmp	LBB0_2
LBB0_14:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidOffsetNumber,4,2        ## @InvalidOffsetNumber
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.comm	_GIN_UNLOCK,4,2                 ## @GIN_UNLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ginFindLeafPage                ; -- Begin function ginFindLeafPage
	.p2align	2
_ginFindLeafPage:                       ; @ginFindLeafPage
	.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, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	mov	w0, #40
	bl	_palloc
	mov	x22, x0
	ldr	x1, [x21]
	str	x1, [x0]
	ldr	w0, [x21, #24]
	bl	_ReadBuffer
	stp	x0, xzr, [x22, #16]
	mov	w8, #1
	str	w8, [x22, #8]
	cbz	w23, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	w0, [x21, #24]
	mov	x1, #0
	bl	_CheckForSerializableConflictIn
LBB0_2:
Lloh0:
	adrp	x26, _InvalidOffsetNumber@GOTPAGE
Lloh1:
	ldr	x26, [x26, _InvalidOffsetNumber@GOTPAGEOFF]
Lloh2:
	adrp	x27, _InvalidBlockNumber@GOTPAGE
Lloh3:
	ldr	x27, [x27, _InvalidBlockNumber@GOTPAGEOFF]
Lloh4:
	adrp	x28, _GIN_UNLOCK@GOTPAGE
Lloh5:
	ldr	x28, [x28, _GIN_UNLOCK@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x23, [x22]
	ldr	x0, [x22, #16]
	ldr	w1, [x21, #24]
	mov	x2, x23
	bl	_ReleaseAndReadBuffer
	str	x0, [x22, #16]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w8, [x26]
	str	w8, [x22, #32]
	ldr	x0, [x22, #16]
	bl	_BufferGetPage
	mov	x23, x0
	ldr	w1, [x21, #24]
	mov	x0, x19
	mov	x2, x23
	bl	_TestForOldSnapshot
	ldr	x0, [x22, #16]
	mov	x1, x20
	bl	_ginTraverseLock
	mov	x24, x0
	cbnz	w20, LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_GinPageIsIncompleteSplit
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	mov	x3, #0
	bl	_ginFinishSplit
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x21, #8]
	cbnz	w8, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x22]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x21, #32]
	mov	x0, x21
	mov	x1, x23
	blr	x8
	cbz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x23
	bl	_GinPageGetOpaque
	ldr	x25, [x0]
	ldr	x8, [x27]
	cmp	x25, x8
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x0, [x22, #16]
	ldr	w1, [x21, #24]
	mov	x2, x24
	bl	_ginStepRight
	str	x0, [x22, #16]
	str	x25, [x22]
	bl	_BufferGetPage
	mov	x23, x0
	ldr	w1, [x21, #24]
	mov	x0, x19
	mov	x2, x23
	bl	_TestForOldSnapshot
	cbnz	w20, LBB0_7
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_GinPageIsLeaf
	cbnz	x0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #16]
	mov	x0, x21
	mov	x1, x22
	blr	x8
	mov	x23, x0
	ldr	x0, [x22, #16]
	ldr	w1, [x28]
	bl	_LockBuffer
	ldr	x8, [x27]
	cmp	x23, x8
	cset	w0, ne
	bl	_Assert
	ldr	x8, [x22]
	cmp	x8, x23
	cset	w0, ne
	bl	_Assert
	cbnz	w20, LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #40
	bl	_palloc
	mov	x24, x0
	str	x22, [x0, #24]
	str	x23, [x0]
	ldr	w0, [x21, #24]
	mov	x1, x23
	bl	_ReadBuffer
	str	x0, [x24, #16]
	mov	w8, #1
	str	w8, [x24, #8]
	mov	x22, x24
	b	LBB0_4
LBB0_15:
	mov	x0, x22
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidOffsetNumber,4,2        ; @InvalidOffsetNumber
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.comm	_GIN_UNLOCK,4,2                 ; @GIN_UNLOCK
.subsections_via_symbols
