	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hash_finish_split             ## -- Begin function _hash_finish_split
	.p2align	4, 0x90
__hash_finish_split:                    ## @_hash_finish_split
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	%edi, %ebx
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	-144(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movabsq	$17179869188, %rax              ## imm = 0x400000004
	movq	%rax, -144(%rbp)
	movq	_HASH_ELEM@GOTPCREL(%rip), %rax
	movq	_HASH_BLOBS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -136(%rbp)
	movq	_HASH_CONTEXT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%r14, %rdx
	callq	_hash_create
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	%r13d, %esi
	callq	__hash_get_newblock_from_oldbucket
	movq	%rax, %rbx
	leaq	-52(%rbp), %r13
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rcx, %rsi
	callq	__hash_relbuf
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_BlockNumberIsValid
	testl	%eax, %eax
	je	LBB0_7
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	_HASH_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LH_OVERFLOW_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_LH_BUCKET_PAGE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	callq	__hash_getbuf
	cmpq	-104(%rbp), %rbx                ## 8-byte Folded Reload
	cmoveq	%rax, %r12
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%rax, %rdi
	callq	_BufferGetPage
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_PageGetSpecialPointer
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	%r14d, %edi
	callq	_PageGetMaxOffsetNumber
	movq	%rax, %rbx
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	cmpq	%rbx, %r12
	jg	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_PageGetItemId
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	_HASH_ENTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%r13, %rcx
	callq	_hash_search
	xorl	%edi, %edi
	cmpl	$0, -52(%rbp)
	sete	%dil
	callq	_Assert
	movq	%r12, %rdi
	callq	_OffsetNumberNext
	movq	%rax, %r12
	cmpq	%rbx, %rax
	jle	LBB0_2
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rbx
	movq	-128(%rbp), %r12                ## 8-byte Reload
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	cmpq	%r12, %rcx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rcx, %rdi
	callq	_LockBuffer
	jmp	LBB0_6
LBB0_7:
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_ConditionalLockBufferForCleanup
	testl	%eax, %eax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_11
## %bb.8:
	movq	%r12, %rdi
	callq	_ConditionalLockBufferForCleanup
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	%r12, %rdi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_PageGetSpecialPointer
	movl	8(%rax), %ecx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %r8
	movq	%r12, %r9
	movl	16(%rbp), %eax
	pushq	%rax
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	%r15
	callq	__hash_splitbucket
	addq	$32, %rsp
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	__hash_dropbuf
	jmp	LBB0_11
LBB0_9:
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LockBuffer
LBB0_11:
	movq	%r15, %rdi
	callq	_hash_destroy
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBuffer,8,3              ## @InvalidBuffer
	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bucket ctids"

	.comm	_HASH_ELEM,4,2                  ## @HASH_ELEM
	.comm	_HASH_BLOBS,4,2                 ## @HASH_BLOBS
	.comm	_HASH_CONTEXT,4,2               ## @HASH_CONTEXT
	.comm	_HASH_READ,4,2                  ## @HASH_READ
	.comm	_LH_BUCKET_PAGE,4,2             ## @LH_BUCKET_PAGE
	.comm	_LH_OVERFLOW_PAGE,4,2           ## @LH_OVERFLOW_PAGE
	.comm	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.comm	_HASH_ENTER,4,2                 ## @HASH_ENTER
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ## @BUFFER_LOCK_UNLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hash_finish_split             ; -- Begin function _hash_finish_split
	.p2align	2
__hash_finish_split:                    ; @_hash_finish_split
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	stp	w6, w5, [sp, #16]               ; 8-byte Folded Spill
	str	w4, [sp, #28]                   ; 4-byte Folded Spill
	mov	x20, x3
	str	x2, [sp, #32]                   ; 8-byte Folded Spill
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x19, x0
Lloh0:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	add	x0, sp, #48
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	movi.2s	v0, #4
	str	d0, [sp, #48]
Lloh3:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #56]
Lloh6:
	adrp	x8, _HASH_ELEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HASH_ELEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _HASH_BLOBS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HASH_BLOBS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _HASH_CONTEXT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HASH_CONTEXT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w3, w8, w9
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	add	x2, sp, #48
	mov	w1, #256
	bl	_hash_create
	mov	x27, x0
	mov	x0, x19
	str	w20, [sp, #24]                  ; 4-byte Folded Spill
	mov	x1, x20
	bl	__hash_get_newblock_from_oldbucket
	mov	x28, x0
	mov	x24, x0
Lloh17:
	adrp	x22, _HASH_ENTER@GOTPAGE
Lloh18:
	ldr	x22, [x22, _HASH_ENTER@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	__hash_relbuf
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	bl	_BlockNumberIsValid
	cbz	w0, LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
Lloh19:
	adrp	x8, _HASH_READ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HASH_READ@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x8, _LH_BUCKET_PAGE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LH_BUCKET_PAGE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _LH_OVERFLOW_PAGE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _LH_OVERFLOW_PAGE@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x19
	mov	x1, x24
	bl	__hash_getbuf
	mov	x20, x0
	cmp	x24, x28
	csel	x21, x0, x21, eq
	bl	_BufferGetPage
	mov	x24, x0
	bl	_PageGetSpecialPointer
	mov	x25, x0
	mov	x0, x24
	bl	_PageGetMaxOffsetNumber
Lloh28:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh30:
	ldr	x23, [x8]
	cmp	x23, x0
	b.gt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	mov	x1, x23
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x24
	bl	_PageGetItem
	mov	x1, x0
	ldr	w2, [x22]
	add	x3, sp, #44
	mov	x0, x27
	bl	_hash_search
	ldr	w8, [sp, #44]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x23
	bl	_OffsetNumberNext
	mov	x23, x0
	cmp	x0, x26
	b.le	LBB0_5
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x24, [x25]
	cmp	x20, x21
	b.ne	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh31:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_LockBuffer
	b	LBB0_2
LBB0_8:
	ldr	x20, [sp, #32]                  ; 8-byte Folded Reload
	mov	x0, x20
	bl	_ConditionalLockBufferForCleanup
	cbz	w0, LBB0_12
; %bb.9:
	mov	x0, x21
	bl	_ConditionalLockBufferForCleanup
	cbz	w0, LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_BufferGetPage
	bl	_PageGetSpecialPointer
	ldr	w3, [x0, #8]
	ldr	w9, [sp, #16]                   ; 4-byte Folded Reload
	ldp	w8, w2, [sp, #20]               ; 8-byte Folded Reload
	stp	w8, w9, [sp]
	mov	x0, x19
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x4, x20
	mov	x5, x21
	mov	x6, x27
	ldr	w7, [sp, #28]                   ; 4-byte Folded Reload
	bl	__hash_splitbucket
	mov	x0, x19
	mov	x1, x21
	bl	__hash_dropbuf
	b	LBB0_12
LBB0_11:
Lloh34:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_LockBuffer
LBB0_12:
	mov	x0, x27
	bl	_hash_destroy
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBuffer,8,3              ; @InvalidBuffer
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bucket ctids"

	.comm	_HASH_ELEM,4,2                  ; @HASH_ELEM
	.comm	_HASH_BLOBS,4,2                 ; @HASH_BLOBS
	.comm	_HASH_CONTEXT,4,2               ; @HASH_CONTEXT
	.comm	_HASH_READ,4,2                  ; @HASH_READ
	.comm	_LH_BUCKET_PAGE,4,2             ; @LH_BUCKET_PAGE
	.comm	_LH_OVERFLOW_PAGE,4,2           ; @LH_OVERFLOW_PAGE
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
	.comm	_HASH_ENTER,4,2                 ; @HASH_ENTER
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ; @BUFFER_LOCK_UNLOCK
.subsections_via_symbols
