	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_killitems                  ## -- Begin function _bt_killitems
	.p2align	4, 0x90
__bt_killitems:                         ## @_bt_killitems
	.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
	movq	%rdi, %r14
	movslq	4(%rdi), %rbx
	movl	(%rbx), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	48(%rbx), %rax
	movq	%rax, 32(%rsp)
	movups	16(%rbx), %xmm0
	movups	32(%rbx), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_BTScanPosIsValid
	movl	%eax, %edi
	callq	_Assert
	movl	$0, (%rbx)
	movq	48(%rbx), %rax
	movq	%rax, 32(%rsp)
	movups	16(%rbx), %xmm0
	movups	32(%rbx), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_BTScanPosIsPinned
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	32(%rbx), %edi
	movq	_BT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	movl	32(%rbx), %edi
	callq	_BufferGetPage
	movl	%eax, %r13d
LBB0_5:
	movl	%r13d, %edi
	callq	_PageGetSpecialPointer
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_P_FIRSTDATAKEY
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	callq	_PageGetMaxOffsetNumber
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_19
## %bb.6:
	movq	%rax, %r12
	xorl	%ecx, %ecx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%r15d, %edi
	callq	_ItemIdMarkDead
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	cmpq	-72(%rbp), %rcx                 ## 8-byte Folded Reload
	je	LBB0_17
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	8(%rbx), %rax
	movslq	(%rax,%rcx,4), %rax
	movq	%rax, %r14
	shlq	$4, %r14
	cmpl	24(%rbx), %eax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	cmpl	28(%rbx), %eax
	setle	%al
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	40(%rbx), %r15
	movq	(%r15,%r14), %rbx
	movzbl	%al, %edi
	callq	_Assert
	cmpq	-88(%rbp), %rbx                 ## 8-byte Folded Reload
	jl	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%r12, %rbx
	jg	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	addq	%r15, %r14
	addq	$8, %r14
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_PageGetItemId
	movl	%eax, %r15d
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movslq	%eax, %rdi
	movq	%r14, %rsi
	callq	_ItemPointerEquals
	testq	%rax, %rax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	%rbx, %rdi
	callq	_OffsetNumberNext
	movq	%rax, %rbx
	cmpq	%r12, %rax
	jle	LBB0_13
	jmp	LBB0_16
LBB0_17:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_19
## %bb.18:
	movq	_BTP_HAS_GARBAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
	movl	32(%rbx), %edi
	movl	$1, %esi
	callq	_MarkBufferDirtyHint
LBB0_19:
	movl	32(%rbx), %edi
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LockBuffer                     ## TAILCALL
LBB0_2:
	movl	(%r14), %edi
	movl	48(%rbx), %esi
	movq	_BT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	__bt_getbuf
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_BufferIsValid
	testl	%eax, %eax
	je	LBB0_20
## %bb.3:
	leaq	16(%rbx), %r15
	movl	%r12d, %edi
	callq	_BufferGetPage
	movl	%eax, %r13d
	movl	%r12d, %edi
	callq	_BufferGetLSNAtomic
	cmpq	(%r15), %rax
	jne	LBB0_21
## %bb.4:
	movl	%r12d, 32(%rbx)
	jmp	LBB0_5
LBB0_20:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movl	(%r14), %edi
	movl	%r12d, %esi
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__bt_relbuf                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BT_READ,4,2                    ## @BT_READ
	.comm	_BTP_HAS_GARBAGE,4,2            ## @BTP_HAS_GARBAGE
	.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	__bt_killitems                  ; -- Begin function _bt_killitems
	.p2align	2
__bt_killitems:                         ; @_bt_killitems
	.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
	mov	x20, x0
	ldrsw	x26, [x0, #4]
	ldr	w27, [x26]
	ldp	q0, q1, [x26, #16]
	stp	q0, q1, [sp, #16]
	ldr	x8, [x26, #48]
	str	x8, [sp, #48]
	add	x0, sp, #16
	bl	_BTScanPosIsValid
	bl	_Assert
	str	wzr, [x26]
	ldp	q0, q1, [x26, #16]
	stp	q0, q1, [sp, #16]
	ldr	x8, [x26, #48]
	str	x8, [sp, #48]
	add	x0, sp, #16
	bl	_BTScanPosIsPinned
	cbz	x0, LBB0_17
; %bb.1:
	ldr	w0, [x26, #32]
Lloh0:
	adrp	x8, _BT_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BT_READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_LockBuffer
	ldr	w0, [x26, #32]
	bl	_BufferGetPage
	mov	x19, x0
LBB0_2:
	mov	x0, x19
	bl	_PageGetSpecialPointer
	mov	x20, x0
	bl	_P_FIRSTDATAKEY
	mov	x21, x0
	mov	x0, x19
	bl	_PageGetMaxOffsetNumber
	cmp	w27, #1
	b.lt	LBB0_15
; %bb.3:
	mov	x22, x0
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	mov	x28, #0
	mov	w20, #0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	bl	_ItemIdMarkDead
	mov	w20, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x28, x28, #1
	cmp	x28, x27
	b.eq	LBB0_13
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x8, [x26, #8]
	ldrsw	x24, [x8, x28, lsl #2]
	ldr	w8, [x26, #24]
	cmp	w24, w8
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x26, #28]
	cmp	w24, w8
	cset	w0, le
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x25, [x26, #40]
	lsl	x8, x24, #4
	ldr	x23, [x25, x8]
	bl	_Assert
	cmp	x23, x21
	ccmp	x23, x22, #0, ge
	b.gt	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x25, x24, lsl #4
	add	x24, x8, #8
LBB0_11:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x23
	bl	_PageGetItemId
	mov	x25, x0
	mov	x0, x19
	mov	x1, x25
	bl	_PageGetItem
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	mov	x1, x24
	bl	_ItemPointerEquals
	cbnz	x0, LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x23
	bl	_OffsetNumberNext
	mov	x23, x0
	cmp	x0, x22
	b.le	LBB0_11
	b	LBB0_5
LBB0_13:
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	cbz	w20, LBB0_15
; %bb.14:
Lloh3:
	adrp	x8, _BTP_HAS_GARBAGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BTP_HAS_GARBAGE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x10]
	orr	w8, w9, w8
	str	w8, [x10]
	ldr	w0, [x26, #32]
	mov	w1, #1
	bl	_MarkBufferDirtyHint
LBB0_15:
	ldr	w0, [x26, #32]
Lloh6:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_LockBuffer
LBB0_16:
	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
LBB0_17:
	ldr	w0, [x20]
	ldr	w1, [x26, #48]
Lloh9:
	adrp	x8, _BT_READ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BT_READ@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	__bt_getbuf
	mov	x21, x0
	bl	_BufferIsValid
	cbz	w0, LBB0_16
; %bb.18:
	add	x22, x26, #16
	mov	x0, x21
	bl	_BufferGetPage
	mov	x19, x0
	mov	x0, x21
	bl	_BufferGetLSNAtomic
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.19:
	str	w21, [x26, #32]
	b	LBB0_2
LBB0_20:
	ldr	w0, [x20]
	mov	x1, x21
	bl	__bt_relbuf
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BT_READ,4,2                    ; @BT_READ
	.comm	_BTP_HAS_GARBAGE,4,2            ; @BTP_HAS_GARBAGE
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ; @BUFFER_LOCK_UNLOCK
.subsections_via_symbols
