	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_index_getnext_tid              ## -- Begin function index_getnext_tid
	.p2align	4, 0x90
_index_getnext_tid:                     ## @index_getnext_tid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_amgettuple@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CHECK_SCAN_PROCEDURE
	movq	_RecentGlobalXmin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TransactionIdIsValid
	movl	%eax, %edi
	callq	_Assert
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*(%rax)
	movq	$0, (%rbx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_ItemPointerIsValid
	movl	%eax, %edi
	callq	_Assert
	movq	16(%rbx), %rdi
	movl	$1, %esi
	callq	_pgstat_count_index_tuples
	jmp	LBB0_5
LBB0_2:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_table_index_fetch_reset
LBB0_4:
	xorl	%r14d, %r14d
LBB0_5:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCAN_CHECKS,4,2                ## @SCAN_CHECKS
	.comm	_amgettuple,4,2                 ## @amgettuple
	.comm	_RecentGlobalXmin,4,2           ## @RecentGlobalXmin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_index_getnext_tid              ; -- Begin function index_getnext_tid
	.p2align	2
_index_getnext_tid:                     ; @index_getnext_tid
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _amgettuple@GOTPAGE
Lloh1:
	ldr	x8, [x8, _amgettuple@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_CHECK_SCAN_PROCEDURE
Lloh3:
	adrp	x8, _RecentGlobalXmin@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RecentGlobalXmin@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_TransactionIdIsValid
	bl	_Assert
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	str	xzr, [x19]
	cbz	w0, LBB0_2
; %bb.1:
	add	x20, x19, #8
	mov	x0, x20
	bl	_ItemPointerIsValid
	bl	_Assert
	ldr	x0, [x19, #16]
	mov	w1, #1
	bl	_pgstat_count_index_tuples
	b	LBB0_5
LBB0_2:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_table_index_fetch_reset
LBB0_4:
	mov	x20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SCAN_CHECKS,4,2                ; @SCAN_CHECKS
	.comm	_amgettuple,4,2                 ; @amgettuple
	.comm	_RecentGlobalXmin,4,2           ; @RecentGlobalXmin
.subsections_via_symbols
