	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tbm_iterate                    ## -- Begin function tbm_iterate
	.p2align	4, 0x90
_tbm_iterate:                           ## @tbm_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %r14
	movq	(%r14), %rax
	movq	_TBM_ITERATING_PRIVATE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	(%rbx), %rax
	movq	8(%r14), %rcx
	cmpq	%rcx, %rax
	jae	LBB0_5
## %bb.1:
	movl	8(%rbx), %edx
	leaq	-36(%rbp), %r15
	movq	_PAGES_PER_CHUNK@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r14), %rcx
	movq	(%rcx,%rax,8), %rdi
	movl	%edx, -36(%rbp)
	movq	%r15, %rsi
	callq	_tbm_advance_schunkbit
	movl	-36(%rbp), %eax
	cmpl	(%r12), %eax
	jl	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	incq	%rax
	movq	%rax, (%rbx)
	movl	$0, 8(%rbx)
	movq	8(%r14), %rcx
	xorl	%edx, %edx
	cmpq	%rcx, %rax
	jb	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movl	%eax, 8(%rbx)
	movq	(%rbx), %rax
	movq	8(%r14), %rcx
LBB0_5:
	leaq	24(%rbx), %r15
	cmpq	%rcx, %rax
	jae	LBB0_6
## %bb.9:
	movq	16(%r14), %rcx
	movq	56(%r14), %rdx
	movq	(%rdx,%rax,8), %rax
	movslq	8(%rbx), %rdx
	movq	(%rax), %rsi
	addq	%rdx, %rsi
	movq	16(%rbx), %rax
	cmpq	%rcx, %rax
	jae	LBB0_11
## %bb.10:
	movq	32(%r14), %rdi
	movq	(%rdi,%rax,8), %rdi
	cmpq	(%rdi), %rsi
	jge	LBB0_7
LBB0_11:
	movq	%rsi, 24(%rbx)
	movabsq	$8589934591, %rax               ## imm = 0x1FFFFFFFF
	movq	%rax, 32(%rbx)
	incl	%edx
	movl	%edx, 8(%rbx)
	jmp	LBB0_16
LBB0_6:
	movq	16(%rbx), %rax
	movq	16(%r14), %rcx
LBB0_7:
	cmpq	%rcx, %rax
	jae	LBB0_8
## %bb.12:
	movq	24(%r14), %rcx
	movq	_TBM_ONE_PAGE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_14
## %bb.13:
	addq	$40, %r14
	jmp	LBB0_15
LBB0_8:
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_14:
	movq	32(%r14), %rcx
	movq	(%rcx,%rax,8), %r14
LBB0_15:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_tbm_extract_page_tuple
	movq	(%r14), %rcx
	movq	%rcx, 24(%rbx)
	movl	%eax, 32(%rbx)
	movl	8(%r14), %eax
	movl	%eax, 36(%rbx)
	incq	16(%rbx)
LBB0_16:
	movq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TBM_ITERATING_PRIVATE,8,3      ## @TBM_ITERATING_PRIVATE
	.comm	_PAGES_PER_CHUNK,4,2            ## @PAGES_PER_CHUNK
	.comm	_TBM_ONE_PAGE,8,3               ## @TBM_ONE_PAGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function tbm_iterate
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_tbm_iterate
	.p2align	2
_tbm_iterate:                           ; @tbm_iterate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	ldr	x21, [x0, #40]
	add	x19, x0, #24
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _TBM_ITERATING_PRIVATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TBM_ITERATING_PRIVATE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x20]
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.hs	LBB0_4
; %bb.1:
	ldr	w10, [x20, #8]
Lloh3:
	adrp	x22, _PAGES_PER_CHUNK@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PAGES_PER_CHUNK@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #56]
	ldr	x0, [x9, x8, lsl #3]
	str	w10, [sp, #12]
	add	x1, sp, #12
	bl	_tbm_advance_schunkbit
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
	cmp	w8, w9
	b.lt	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w10, #0
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	str	wzr, [x20, #8]
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.lo	LBB0_2
LBB0_4:
	cmp	x8, x9
	b.hs	LBB0_9
LBB0_5:
	ldr	x9, [x21, #56]
	ldr	x8, [x9, x8, lsl #3]
	ldr	x8, [x8]
	ldrsw	x9, [x20, #8]
	add	x11, x8, x9
	ldr	x8, [x20, #16]
	ldr	x10, [x21, #16]
	cmp	x8, x10
	b.hs	LBB0_7
; %bb.6:
	ldr	x12, [x21, #32]
	ldr	x12, [x12, x8, lsl #3]
	ldr	x12, [x12]
	cmp	x11, x12
	b.ge	LBB0_10
LBB0_7:
	str	x11, [x20, #24]
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20, #32]
	add	w8, w9, #1
	str	w8, [x20, #8]
	b	LBB0_16
LBB0_8:
	str	w8, [x20, #8]
	ldr	x8, [x20]
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.lo	LBB0_5
LBB0_9:
	ldr	x8, [x20, #16]
	ldr	x10, [x21, #16]
LBB0_10:
	cmp	x8, x10
	b.hs	LBB0_13
; %bb.11:
	ldr	x9, [x21, #24]
Lloh7:
	adrp	x10, _TBM_ONE_PAGE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _TBM_ONE_PAGE@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.12:
	add	x21, x21, #40
	b	LBB0_15
LBB0_13:
	mov	x19, #0
	b	LBB0_16
LBB0_14:
	ldr	x9, [x21, #32]
	ldr	x21, [x9, x8, lsl #3]
LBB0_15:
	mov	x0, x21
	mov	x1, x19
	bl	_tbm_extract_page_tuple
	ldr	x8, [x21]
	ldr	w9, [x21, #8]
	stp	w0, w9, [x20, #32]
	ldr	x9, [x20, #16]
	add	x9, x9, #1
	stp	x9, x8, [x20, #16]
LBB0_16:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TBM_ITERATING_PRIVATE,8,3      ; @TBM_ITERATING_PRIVATE
	.comm	_PAGES_PER_CHUNK,4,2            ; @PAGES_PER_CHUNK
	.comm	_TBM_ONE_PAGE,8,3               ; @TBM_ONE_PAGE
.subsections_via_symbols
