	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TidNext
_TidNext:                               ## @TidNext
	.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	%rdi, %rbx
	movq	48(%rdi), %rax
	movl	(%rax), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %r13d
	movl	40(%rdi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	16(%rdi), %rax
	movq	32(%rdi), %r14
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_TidListEval
	movq	16(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_2:
	movl	(%rbx), %r12d
	movl	24(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	callq	_ScanDirectionIsBackward
	movl	4(%rbx), %ecx
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	testl	%ecx, %ecx
	js	LBB0_4
## %bb.5:
	decl	%ecx
	jmp	LBB0_7
LBB0_6:
	leal	1(%rcx), %edx
	xorl	%esi, %esi
	testl	%ecx, %ecx
	cmovnsl	%edx, %esi
	movl	%esi, %ecx
	jmp	LBB0_7
LBB0_4:
	leal	-1(%r12), %ecx
LBB0_7:
	movl	%ecx, 4(%rbx)
	testl	%ecx, %ecx
	js	LBB0_15
## %bb.8:
	cmpl	%r12d, %ecx
	jge	LBB0_15
## %bb.9:
	negl	%eax
	movl	$0, %r15d
	sbbl	%r15d, %r15d
	orl	$1, %r15d
	leaq	-56(%rbp), %r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %eax
	movl	%eax, -56(%rbp)
	cmpq	$0, 8(%rbx)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	callq	_table_tuple_get_latest_tid
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%r14, %rcx
	callq	_table_tuple_fetch_row_version
	testq	%rax, %rax
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	addl	%r15d, 4(%rbx)
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movl	4(%rbx), %ecx
	testl	%ecx, %ecx
	js	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	%r12d, %ecx
	jl	LBB0_10
LBB0_15:
	movq	%r14, %rdi
	callq	_ExecClearTuple
	movq	%rax, %r14
LBB0_16:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_TidNext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TidNext
_TidNext:                               ; @TidNext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x0
	ldr	x8, [x0, #48]
	ldp	w21, w24, [x8]
	ldr	w22, [x0, #40]
	ldr	x19, [x0, #32]
	ldr	x25, [x0, #16]
	cbnz	x25, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_TidListEval
	ldr	x25, [x20, #16]
LBB0_2:
	ldr	w23, [x20, #24]
	ldr	w26, [x20]
	mov	x0, x24
	bl	_ScanDirectionIsBackward
	ldr	w8, [x20, #4]
	cmp	w8, #0
	csinc	w9, wzr, w8, lt
	sub	w10, w8, #1
	sub	w11, w26, #1
	tst	w8, #0x80000000
	csel	w8, w10, w11, eq
	cmp	w0, #0
	csel	w8, w9, w8, eq
	str	w8, [x20, #4]
	tbnz	w8, #31, LBB0_10
; %bb.3:
	cmp	w8, w26
	b.ge	LBB0_10
; %bb.4:
	cmp	w0, #0
	mov	w9, #1
	cneg	w24, w9, ne
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25, w8, uxtw #2]
	str	w8, [sp, #12]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #12
	mov	x0, x23
	bl	_table_tuple_get_latest_tid
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #12
	mov	x0, x22
	mov	x2, x21
	mov	x3, x19
	bl	_table_tuple_fetch_row_version
	cbnz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20, #4]
	add	w8, w8, w24
	str	w8, [x20, #4]
	bl	_CHECK_FOR_INTERRUPTS
	ldr	w8, [x20, #4]
	tbnz	w8, #31, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, w26
	b.lt	LBB0_5
LBB0_10:
	mov	x0, x19
	bl	_ExecClearTuple
	mov	x19, x0
LBB0_11:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_TidNext
.subsections_via_symbols
