	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tbm_begin_iterate              ## -- Begin function tbm_begin_iterate
	.p2align	4, 0x90
_tbm_begin_iterate:                     ## @tbm_begin_iterate
	.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, %r15
	movq	(%rdi), %rax
	movq	_TBM_ITERATING_SHARED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_Assert
	movq	_MAX_TUPLES_PER_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	32(,%rax,4), %edi
	callq	_palloc
	movq	%rax, %rbx
	movq	%r15, 24(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	$0, 16(%rax)
	movq	8(%r15), %rax
	movq	_TBM_HASH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.1:
	movq	(%r15), %rax
	movq	_TBM_NOT_ITERATING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.2:
	cmpq	$0, 32(%r15)
	jne	LBB0_5
## %bb.3:
	movl	16(%r15), %esi
	testl	%esi, %esi
	jle	LBB0_5
## %bb.4:
	movl	44(%r15), %edi
	shll	$3, %esi
	callq	_MemoryContextAlloc
	movq	%rax, 32(%r15)
LBB0_5:
	cmpq	$0, 24(%r15)
	jne	LBB0_8
## %bb.6:
	movl	20(%r15), %esi
	testl	%esi, %esi
	jle	LBB0_8
## %bb.7:
	movl	44(%r15), %edi
	shll	$3, %esi
	callq	_MemoryContextAlloc
	movq	%rax, 24(%r15)
LBB0_8:
	leaq	32(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	24(%r15), %r14
	movl	40(%r15), %edi
	leaq	-44(%rbp), %r12
	movq	%r12, %rsi
	callq	_pagetable_start_iterate
	movl	40(%r15), %edi
	movq	%r12, %rsi
	callq	_pagetable_iterate
	testq	%rax, %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.10:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%r12d, %ecx
	leal	1(%r12), %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%esi, %r12d
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	(%rdx), %rdx
	movslq	%ecx, %rcx
	movq	%rax, (%rdx,%rcx,8)
	movl	40(%r15), %edi
	movq	%r13, %rsi
	callq	_pagetable_iterate
	testq	%rax, %rax
	je	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%ebx, %ecx
	leal	1(%rbx), %esi
	movq	%r14, %rdx
	movl	%esi, %ebx
	jmp	LBB0_14
LBB0_9:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
LBB0_15:
	xorl	%edi, %edi
	cmpl	16(%r15), %r12d
	sete	%dil
	callq	_Assert
	xorl	%edi, %edi
	cmpl	20(%r15), %ebx
	sete	%dil
	callq	_Assert
	cmpl	$2, %r12d
	jl	LBB0_17
## %bb.16:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_tbm_comparator@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %esi
	movl	$8, %edx
	callq	_qsort
LBB0_17:
	cmpl	$2, %ebx
	jl	LBB0_19
## %bb.18:
	movq	(%r14), %rdi
	movq	_tbm_comparator@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %esi
	movl	$8, %edx
	callq	_qsort
LBB0_19:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_20:
	movq	_TBM_ITERATING_PRIVATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TBM_ITERATING_SHARED,8,3       ## @TBM_ITERATING_SHARED
	.comm	_MAX_TUPLES_PER_PAGE,4,2        ## @MAX_TUPLES_PER_PAGE
	.comm	_TBM_HASH,8,3                   ## @TBM_HASH
	.comm	_TBM_NOT_ITERATING,8,3          ## @TBM_NOT_ITERATING
	.comm	_tbm_comparator,4,2             ## @tbm_comparator
	.comm	_TBM_ITERATING_PRIVATE,8,3      ## @TBM_ITERATING_PRIVATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tbm_begin_iterate              ; -- Begin function tbm_begin_iterate
	.p2align	2
_tbm_begin_iterate:                     ; @tbm_begin_iterate
	.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	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _TBM_ITERATING_SHARED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TBM_ITERATING_SHARED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_Assert
Lloh3:
	adrp	x8, _MAX_TUPLES_PER_PAGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_TUPLES_PER_PAGE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w8, #2
	add	w0, w8, #32
	bl	_palloc
	mov	x20, x0
	stp	xzr, x19, [x0, #16]
	stp	xzr, xzr, [x0]
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _TBM_HASH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TBM_HASH@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.1:
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _TBM_NOT_ITERATING@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TBM_NOT_ITERATING@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.2:
	mov	x23, x19
	ldr	x8, [x23, #32]!
	cbnz	x8, LBB0_5
; %bb.3:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.4:
	ldr	w0, [x19, #44]
	lsl	w1, w8, #3
	bl	_MemoryContextAlloc
	str	x0, [x19, #32]
LBB0_5:
	mov	x24, x19
	ldr	x8, [x24, #24]!
	cbnz	x8, LBB0_8
; %bb.6:
	ldr	w8, [x19, #20]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.7:
	ldr	w0, [x19, #44]
	lsl	w1, w8, #3
	bl	_MemoryContextAlloc
	str	x0, [x19, #24]
LBB0_8:
	ldr	w0, [x19, #40]
	add	x1, sp, #12
	bl	_pagetable_start_iterate
	ldr	w0, [x19, #40]
	add	x1, sp, #12
	bl	_pagetable_iterate
	cbz	x0, LBB0_11
; %bb.9:
	mov	w21, #0
	mov	w22, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0]
	cmp	x8, #0
	csel	x8, x23, x24, eq
	csel	w9, w22, w21, eq
	cinc	w22, w22, eq
	cinc	w21, w21, ne
	ldr	x8, [x8]
	str	x0, [x8, w9, sxtw #3]
	ldr	w0, [x19, #40]
	add	x1, sp, #12
	bl	_pagetable_iterate
	cbnz	x0, LBB0_10
	b	LBB0_12
LBB0_11:
	mov	w22, #0
	mov	w21, #0
LBB0_12:
	ldr	w8, [x19, #16]
	cmp	w22, w8
	cset	w0, eq
	bl	_Assert
	ldr	w8, [x19, #20]
	cmp	w21, w8
	cset	w0, eq
	bl	_Assert
Lloh12:
	adrp	x25, _tbm_comparator@GOTPAGE
Lloh13:
	ldr	x25, [x25, _tbm_comparator@GOTPAGEOFF]
	cmp	w22, #2
	b.lt	LBB0_14
; %bb.13:
	ldr	x0, [x23]
	ldr	w3, [x25]
	mov	x1, x22
	mov	w2, #8
	bl	_qsort
LBB0_14:
	cmp	w21, #2
	b.lt	LBB0_16
; %bb.15:
	ldr	x0, [x24]
	ldr	w3, [x25]
	mov	x1, x21
	mov	w2, #8
	bl	_qsort
LBB0_16:
Lloh14:
	adrp	x8, _TBM_ITERATING_PRIVATE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TBM_ITERATING_PRIVATE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_TBM_ITERATING_SHARED,8,3       ; @TBM_ITERATING_SHARED
	.comm	_MAX_TUPLES_PER_PAGE,4,2        ; @MAX_TUPLES_PER_PAGE
	.comm	_TBM_HASH,8,3                   ; @TBM_HASH
	.comm	_TBM_NOT_ITERATING,8,3          ; @TBM_NOT_ITERATING
	.comm	_tbm_comparator,4,2             ; @tbm_comparator
	.comm	_TBM_ITERATING_PRIVATE,8,3      ; @TBM_ITERATING_PRIVATE
.subsections_via_symbols
