	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function _bt_afternewitemoff
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.space	8
	.quad	0x4059000000000000              ## double 100
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
__bt_afternewitemoff:                   ## @_bt_afternewitemoff
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %rbx
	xorl	%r15d, %r15d
	cmpq	$0, 40(%rdi)
	movl	$0, %edi
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpl	$0, 32(%rbx)
	sete	%dil
LBB0_2:
	callq	_Assert
	movl	24(%rbx), %edi
	callq	_IndexRelationGetNumberOfKeyAttributes
	cmpl	$1, %eax
	je	LBB0_15
## %bb.3:
	movl	%eax, %r14d
	movl	(%rbx), %eax
	movq	_P_FIRSTKEY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_15
## %bb.4:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movslq	4(%rbx), %r12
	cmpl	8(%rbx), %r12d
	jne	LBB0_15
## %bb.5:
	leal	-1(%r13), %eax
	imull	%r12d, %eax
	cmpl	12(%rbx), %eax
	jne	LBB0_15
## %bb.6:
	movl	$12, %edi
	callq	_MAXALIGN
	cltq
	addq	$4, %rax
	cmpq	%r12, %rax
	jb	LBB0_15
## %bb.7:
	movl	(%rbx), %edi
	movl	28(%rbx), %r12d
	cmpl	%r13d, %edi
	jle	LBB0_10
## %bb.8:
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	_PageGetItemId
	movl	28(%rbx), %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movl	24(%rbx), %edi
	movq	16(%rbx), %rdx
	movq	%rax, %rsi
	callq	__bt_keep_natts_fast
	cmpl	$2, %eax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jl	LBB0_15
## %bb.9:
	movl	$1, %ecx
	cmpl	%r14d, %eax
	jle	LBB0_14
	jmp	LBB0_15
LBB0_10:
	callq	_OffsetNumberPrev
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_PageGetItemId
	movl	28(%rbx), %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	16(%rbx), %rsi
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	__bt_adjacenthtid
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:
	movl	24(%rbx), %edi
	movq	16(%rbx), %rdx
	movq	%r12, %rsi
	callq	__bt_keep_natts_fast
	cmpl	$2, %eax
	jl	LBB0_15
## %bb.12:
	cmpl	%r14d, %eax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jg	LBB0_15
## %bb.13:
	cvtsi2sd	%r13d, %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	movd	(%rbx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	pinsrd	$1, -44(%rbp), %xmm1            ## 4-byte Folded Reload
	cvtdq2pd	%xmm1, %xmm1
	blendpd	$2, LCPI0_1(%rip), %xmm0        ## xmm0 = xmm0[0],mem[1]
	divpd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
	unpckhpd	%xmm1, %xmm0                    ## xmm0 = xmm0[1],xmm1[1]
	xorl	%ecx, %ecx
	ucomisd	%xmm0, %xmm1
	seta	%cl
LBB0_14:
	movl	%ecx, (%rdx)
	movl	$1, %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P_FIRSTKEY,4,2                 ## @P_FIRSTKEY
	.no_dead_strip	__bt_afternewitemoff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bt_afternewitemoff
__bt_afternewitemoff:                   ; @_bt_afternewitemoff
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x20, #32]
	cmp	w8, #0
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_Assert
	ldr	w0, [x20, #24]
	bl	_IndexRelationGetNumberOfKeyAttributes
	cmp	w0, #1
	b.eq	LBB0_8
; %bb.4:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _P_FIRSTKEY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _P_FIRSTKEY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_8
; %bb.5:
	ldp	w24, w8, [x20, #4]
                                        ; kill: def $w24 killed $w24 def $x24
	sxtw	x24, w24
	cmp	w24, w8
	b.ne	LBB0_8
; %bb.6:
	sub	w8, w22, #1
	mul	w8, w24, w8
	ldr	w9, [x20, #12]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.7:
	mov	x23, x0
	mov	w0, #12
	bl	_MAXALIGN
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x8, x8, #4
	cmp	x8, x24
	b.hs	LBB0_10
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w0, [x20]
	ldr	w24, [x20, #28]
	cmp	w0, w22
	b.le	LBB0_14
; %bb.11:
	mov	x0, x24
	mov	x1, x22
	bl	_PageGetItemId
	mov	x1, x0
	ldr	w0, [x20, #28]
	bl	_PageGetItem
	mov	x1, x0
	ldr	w0, [x20, #24]
	ldr	x2, [x20, #16]
	bl	__bt_keep_natts_fast
	mov	x8, x0
	mov	w0, #0
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.12:
	cmp	w8, w23
	b.gt	LBB0_9
; %bb.13:
	mov	w8, #1
	b	LBB0_18
LBB0_14:
	bl	_OffsetNumberPrev
	mov	x1, x0
	mov	x0, x24
	bl	_PageGetItemId
	mov	x1, x0
	ldr	w0, [x20, #28]
	bl	_PageGetItem
	mov	x24, x0
	ldr	x1, [x20, #16]
	bl	__bt_adjacenthtid
	cbz	w0, LBB0_9
; %bb.15:
	ldr	w0, [x20, #24]
	ldr	x2, [x20, #16]
	mov	x1, x24
	bl	__bt_keep_natts_fast
	mov	x8, x0
	mov	w0, #0
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.16:
	cmp	w8, w23
	b.gt	LBB0_9
; %bb.17:
	ldr	s0, [x20]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	scvtf	d1, w22
	fmov	d2, #1.00000000
	fadd	d1, d1, d2
	scvtf	d2, w21
	fdiv	d0, d0, d1
	mov	x8, #4636737291354636288
	fmov	d1, x8
	fdiv	d1, d2, d1
	fcmp	d0, d1
	cset	w8, gt
LBB0_18:
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_P_FIRSTKEY,4,2                 ; @P_FIRSTKEY
	.no_dead_strip	__bt_afternewitemoff
.subsections_via_symbols
