	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tbm_add_tuples                 ## -- Begin function tbm_add_tuples
	.p2align	4, 0x90
_tbm_add_tuples:                        ## @tbm_add_tuples
	.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
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	_TBM_NOT_ITERATING@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	testl	%r14d, %r14d
	jle	LBB0_18
## %bb.1:
	movl	%r14d, %r15d
	xorl	%esi, %esi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%esi, %esi
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %r12
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movq	%r12, %r13
	decq	%r15
	je	LBB0_18
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ItemPointerGetBlockNumber
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_ItemPointerGetOffsetNumber
	movl	%eax, %r14d
	testl	%eax, %eax
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_MAX_TUPLES_PER_PAGE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jle	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_elog
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r13, %r12
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_tbm_page_is_lossy
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_4
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_tbm_get_pageentry
	movq	%rax, %rsi
	movq	%r12, %r13
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r12d, %r12d
	cmpq	$0, 16(%rsi)
	movl	$0, %ecx
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	decl	%r14d
	movl	%r14d, %edi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_WORDNUM
	movl	%eax, %r12d
	movl	%r14d, %edi
	callq	_BITNUM
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %ecx
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movq	(%rsi), %rcx
	movslq	%r12d, %rdx
	orl	%eax, (%rcx,%rdx,4)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	orl	%eax, 8(%rsi)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jle	LBB0_3
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rsi, %r14
	callq	_tbm_lossify
	movq	%r14, %rsi
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_4
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.comm	_TBM_NOT_ITERATING,8,3          ## @TBM_NOT_ITERATING
	.comm	_MAX_TUPLES_PER_PAGE,4,2        ## @MAX_TUPLES_PER_PAGE
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tuple offset out of range: %u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tbm_add_tuples                 ; -- Begin function tbm_add_tuples
	.p2align	2
_tbm_add_tuples:                        ; @tbm_add_tuples
	.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	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _TBM_NOT_ITERATING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TBM_NOT_ITERATING@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	cmp	w22, #1
	b.lt	LBB0_17
; %bb.1:
	mov	x23, #0
Lloh6:
	adrp	x27, _MAX_TUPLES_PER_PAGE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _MAX_TUPLES_PER_PAGE@GOTPAGEOFF]
	mov	w28, w22
Lloh8:
	adrp	x22, l_.str@PAGE
Lloh9:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x26
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	mov	x26, x24
	subs	x28, x28, #1
	b.eq	LBB0_17
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_ItemPointerGetBlockNumber
	mov	x24, x0
	mov	x0, x20
	bl	_ItemPointerGetOffsetNumber
	mov	x2, x0
	subs	w25, w0, #1
	b.lt	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x27]
	cmp	w2, w8
	b.gt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x24, x26
	b.ne	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbnz	x23, LBB0_12
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh10:
	adrp	x8, _ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_elog
	cmp	x24, x26
	b.eq	LBB0_7
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x24
	bl	_tbm_page_is_lossy
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, #0
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x24
	bl	_tbm_get_pageentry
	mov	x23, x0
	mov	x26, x24
	cbz	x23, LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w24, #0
	mov	w0, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_WORDNUM
	mov	x24, x0
	mov	x0, x25
	bl	_BITNUM
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1
	lsl	w8, w8, w0
	ldr	x9, [x23]
	sbfiz	x10, x24, #2, #32
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
	ldr	w8, [x23, #8]
	orr	w8, w8, w19
	str	w8, [x23, #8]
	ldp	x8, x9, [x21, #8]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_tbm_lossify
Lloh13:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh14:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh15:
	ldr	x24, [x8]
	b	LBB0_3
LBB0_17:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.comm	_TBM_NOT_ITERATING,8,3          ; @TBM_NOT_ITERATING
	.comm	_MAX_TUPLES_PER_PAGE,4,2        ; @MAX_TUPLES_PER_PAGE
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tuple offset out of range: %u"

.subsections_via_symbols
