	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_doinsert                   ## -- Begin function _bt_doinsert
	.p2align	4, 0x90
__bt_doinsert:                          ## @_bt_doinsert
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movl	%edi, %r14d
	movl	$0, -48(%rbp)
	movq	_UNIQUE_CHECK_NO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	callq	__bt_mkscankey
	movq	%rax, %r15
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	cmpl	%ebx, %r12d
	je	LBB0_4
## %bb.1:
	cmpl	$0, 16(%r15)
	je	LBB0_2
## %bb.3:
	movq	_UNIQUE_CHECK_EXISTING@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	setne	%dil
	callq	_Assert
	movl	$1, -48(%rbp)
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	movzbl	%al, %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, -80(%rbp)
	callq	_IndexTupleSize
	movl	%eax, %edi
	callq	_MAXALIGN
	movq	%rax, -112(%rbp)
	movq	%r15, -88(%rbp)
	movl	$0, -104(%rbp)
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)
	xorl	%r12d, %r12d
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_RelationGetTargetBlock
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r14d, %edi
	callq	_RelationGetTargetBlock
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_ReadBuffer
	movq	%rax, -56(%rbp)
	movq	%rax, %rdi
	callq	_ConditionalLockBuffer
	movq	-56(%rbp), %rsi
	testq	%rax, %rax
	je	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rbx
	movl	%r14d, %edi
	callq	__bt_checkpage
	movq	-56(%rbp), %rdi
	callq	_BufferGetPage
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_PageGetSpecialPointer
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_P_ISLEAF
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_P_RIGHTMOST
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_P_IGNORE
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r13d, %edi
	callq	_PageGetFreeSpace
	cmpq	-112(%rbp), %rax
	jle	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r13d, %edi
	callq	_PageGetMaxOffsetNumber
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	callq	_P_FIRSTDATAKEY
	cmpq	%rax, -120(%rbp)                ## 8-byte Folded Reload
	jl	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_P_FIRSTDATAKEY
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movq	%rax, %rcx
	callq	__bt_compare
	testq	%rax, %rax
	jle	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_P_INCOMPLETE_SPLIT
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	%rbx, %r15
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rsi
	movl	%r14d, %edi
	callq	__bt_relbuf
	movq	%rbx, %r15
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rsi, %rdi
	callq	_ReleaseBuffer
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r14d, %edi
	callq	_RelationSetTargetBlock
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_BT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	movq	%r15, %rsi
	leaq	-56(%rbp), %rdx
	xorl	%r8d, %r8d
	callq	__bt_search
	movq	%rax, %r12
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax
	movq	%rax, -96(%rbp)
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_28
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r14d, %edi
	leaq	-112(%rbp), %rsi
	movl	%r13d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	leaq	-48(%rbp), %r8
	leaq	-128(%rbp), %r9
	callq	__bt_check_unique
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_TransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_26
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-96(%rbp), %rsi
	movl	%r14d, %edi
	callq	__bt_relbuf
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)
	movq	-128(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	callq	_SpeculativeInsertionWait
	testq	%r12, %r12
	jne	LBB0_25
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_XLTW_InsertIndex@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	movl	%r14d, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_XactLockTableWait
	testq	%r12, %r12
	je	LBB0_6
LBB0_25:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	__bt_freestack
	jmp	LBB0_6
LBB0_26:
	cmpq	$0, 8(%r15)
	je	LBB0_28
## %bb.27:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r15)
LBB0_28:
	movq	_UNIQUE_CHECK_EXISTING@GOTPCREL(%rip), %rax
	movq	-96(%rbp), %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_29
## %bb.30:
	movl	%r14d, %edi
	movq	%rdx, %rsi
	callq	__bt_relbuf
	testq	%r12, %r12
	jne	LBB0_32
	jmp	LBB0_33
LBB0_29:
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_CheckForSerializableConflictIn
	leaq	-112(%rbp), %rsi
	movl	%r14d, %edi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rcx
	movl	%r13d, %r8d
	callq	__bt_findinsertloc
                                        ## kill: def $eax killed $eax def $rax
	movq	-96(%rbp), %rdx
	movq	_InvalidBuffer@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r14d, %edi
	movq	%r15, %rsi
	movq	%r12, %r8
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	pushq	$0
	pushq	%rax
	callq	__bt_insertonpg
	addq	$16, %rsp
	testq	%r12, %r12
	je	LBB0_33
LBB0_32:
	movq	%r12, %rdi
	callq	__bt_freestack
LBB0_33:
	movq	%r15, %rdi
	callq	_pfree
	movl	-48(%rbp), %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	$0, (%r15)
	movb	$1, %al
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_UNIQUE_CHECK_NO,4,2            ## @UNIQUE_CHECK_NO
	.comm	_UNIQUE_CHECK_EXISTING,4,2      ## @UNIQUE_CHECK_EXISTING
	.comm	_InvalidBuffer,8,3              ## @InvalidBuffer
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.comm	_BT_WRITE,4,2                   ## @BT_WRITE
	.comm	_XLTW_InsertIndex,4,2           ## @XLTW_InsertIndex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_doinsert                   ; -- Begin function _bt_doinsert
	.p2align	2
__bt_doinsert:                          ; @_bt_doinsert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x22, x3
	mov	x23, x2
	mov	x27, x1
	mov	x21, x0
	str	wzr, [sp, #76]
Lloh0:
	adrp	x8, _UNIQUE_CHECK_NO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UNIQUE_CHECK_NO@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	__bt_mkscankey
	mov	x19, x0
	mov	w24, #0
Lloh3:
	adrp	x9, _UNIQUE_CHECK_EXISTING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _UNIQUE_CHECK_EXISTING@GOTPAGEOFF]
	cmp	w20, w23
	b.eq	LBB0_4
; %bb.1:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	w8, [x9]
	cmp	w8, w23
	cset	w0, ne
	bl	_Assert
	mov	w24, #0
	mov	w8, #1
	str	w8, [sp, #76]
	b	LBB0_4
LBB0_3:
	str	xzr, [x19]
	mov	w24, #1
LBB0_4:
	str	x27, [sp, #64]
	mov	x0, x27
	bl	_IndexTupleSize
	bl	_MAXALIGN
	mov	x25, #0
	str	x0, [sp, #32]
	str	wzr, [sp, #40]
Lloh5:
	adrp	x28, _InvalidBuffer@GOTPAGE
Lloh6:
	ldr	x28, [x28, _InvalidBuffer@GOTPAGEOFF]
	ldr	x8, [x28]
	stp	x8, x19, [sp, #48]
Lloh7:
	adrp	x20, _InvalidBlockNumber@GOTPAGE
Lloh8:
	ldr	x20, [x20, _InvalidBlockNumber@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_RelationGetTargetBlock
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_RelationGetTargetBlock
	mov	x1, x0
	mov	x0, x21
	bl	_ReadBuffer
	str	x0, [sp, #24]
	bl	_ConditionalLockBuffer
	ldr	x1, [sp, #24]
	cbz	x0, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x28, x23
	mov	x23, x24
	mov	x24, x22
	mov	x22, x20
	mov	x20, x27
	mov	x0, x21
	bl	__bt_checkpage
	ldr	x0, [sp, #24]
	bl	_BufferGetPage
	mov	x27, x0
	bl	_PageGetSpecialPointer
	mov	x26, x0
	bl	_P_ISLEAF
	cbz	x0, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x26
	bl	_P_RIGHTMOST
	cbz	x0, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x26
	bl	_P_IGNORE
	cbnz	w0, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x27
	bl	_PageGetFreeSpace
	ldr	x8, [sp, #32]
	cmp	x0, x8
	b.le	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x27
	bl	_PageGetMaxOffsetNumber
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	x0, x26
	bl	_P_FIRSTDATAKEY
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x8, x0
	b.lt	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x26
	bl	_P_FIRSTDATAKEY
	mov	x3, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x27
	bl	__bt_compare
	cmp	x0, #0
	b.le	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x26
	bl	_P_INCOMPLETE_SPLIT
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	mov	x27, x20
	mov	x20, x22
	mov	x22, x24
	mov	x24, x23
	mov	x23, x28
Lloh9:
	adrp	x28, _InvalidBuffer@GOTPAGE
Lloh10:
	ldr	x28, [x28, _InvalidBuffer@GOTPAGEOFF]
	b	LBB0_18
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [sp, #24]
	mov	x0, x21
	bl	__bt_relbuf
	mov	x27, x20
	mov	x20, x22
	mov	x22, x24
	mov	x24, x23
	mov	x23, x28
Lloh11:
	adrp	x28, _InvalidBuffer@GOTPAGE
Lloh12:
	ldr	x28, [x28, _InvalidBuffer@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x1
	bl	_ReleaseBuffer
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x20]
	mov	x0, x21
	bl	_RelationSetTargetBlock
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh13:
	adrp	x8, _BT_WRITE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BT_WRITE@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	add	x2, sp, #24
	mov	x0, x21
	mov	x1, x19
	mov	x4, #0
	bl	__bt_search
	mov	x25, x0
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #24]
	str	x8, [sp, #48]
	ldr	x8, [x28]
	str	x8, [sp, #24]
	cbz	w24, LBB0_26
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #32
	add	x4, sp, #76
	add	x5, sp, #16
	mov	x0, x21
	mov	x2, x22
	mov	x3, x23
	bl	__bt_check_unique
	mov	x26, x0
	bl	_TransactionIdIsValid
	cbz	x0, LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [sp, #48]
	mov	x0, x21
	bl	__bt_relbuf
	ldr	x8, [x28]
	str	x8, [sp, #48]
	ldr	x1, [sp, #16]
	cbz	x1, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x26
	bl	_SpeculativeInsertionWait
	cbnz	x25, LBB0_23
	b	LBB0_5
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh16:
	adrp	x8, _XLTW_InsertIndex@GOTPAGE
Lloh17:
	ldr	x8, [x8, _XLTW_InsertIndex@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x0, x26
	mov	x1, x21
	mov	x2, x27
	bl	_XactLockTableWait
	cbz	x25, LBB0_5
LBB0_23:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	bl	__bt_freestack
	b	LBB0_5
LBB0_24:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_26
; %bb.25:
	str	x27, [x19]
LBB0_26:
Lloh19:
	adrp	x8, _UNIQUE_CHECK_EXISTING@GOTPAGE
Lloh20:
	ldr	x8, [x8, _UNIQUE_CHECK_EXISTING@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	x2, [sp, #48]
	cmp	w8, w23
	b.ne	LBB0_28
; %bb.27:
	mov	x0, x21
	mov	x1, x2
	bl	__bt_relbuf
	cbnz	x25, LBB0_29
	b	LBB0_30
LBB0_28:
	mov	x0, x21
	mov	x1, #0
	bl	_CheckForSerializableConflictIn
	add	x1, sp, #32
	mov	x0, x21
	mov	x2, x24
	mov	x3, x25
	mov	x4, x22
	bl	__bt_findinsertloc
	mov	x6, x0
	ldr	x2, [sp, #48]
	ldr	x3, [x28]
	mov	x0, x21
	mov	x1, x19
	mov	x4, x25
	mov	x5, x27
	mov	w7, #0
	bl	__bt_insertonpg
	cbz	x25, LBB0_30
LBB0_29:
	mov	x0, x25
	bl	__bt_freestack
LBB0_30:
	mov	x0, x19
	bl	_pfree
	ldr	w0, [sp, #76]
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_UNIQUE_CHECK_NO,4,2            ; @UNIQUE_CHECK_NO
	.comm	_UNIQUE_CHECK_EXISTING,4,2      ; @UNIQUE_CHECK_EXISTING
	.comm	_InvalidBuffer,8,3              ; @InvalidBuffer
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.comm	_BT_WRITE,4,2                   ; @BT_WRITE
	.comm	_XLTW_InsertIndex,4,2           ; @XLTW_InsertIndex
.subsections_via_symbols
