	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tbm_shared_iterate             ## -- Begin function tbm_shared_iterate
	.p2align	4, 0x90
_tbm_shared_iterate:                    ## @tbm_shared_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %r13
	jmp	LBB0_3
LBB0_1:
	xorl	%r13d, %r13d
LBB0_3:
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	(%rax), %rax
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %r14
	movq	(%rdi), %rax
	testq	%rax, %rax
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.8:
	movq	(%rax), %r15
	jmp	LBB0_9
LBB0_7:
	xorl	%r15d, %r15d
LBB0_9:
	leaq	40(%r14), %rbx
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LWLockAcquire
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	cmpq	%rcx, %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jae	LBB0_14
## %bb.10:
	movl	16(%r14), %edx
	leaq	-44(%rbp), %rbx
	movq	_PAGES_PER_CHUNK@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r15,%rax,4), %rdi
	shlq	$4, %rdi
	addq	%r13, %rdi
	movl	%edx, -44(%rbp)
	movq	%rbx, %rsi
	callq	_tbm_advance_schunkbit
	movl	-44(%rbp), %eax
	cmpl	(%r12), %eax
	jl	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r14), %rax
	incq	%rax
	movq	%rax, (%r14)
	movl	$0, 16(%r14)
	movq	8(%r14), %rcx
	xorl	%edx, %edx
	cmpq	%rcx, %rax
	jb	LBB0_11
	jmp	LBB0_14
LBB0_12:
	movl	%eax, 16(%r14)
	movq	(%r14), %rax
	movq	8(%r14), %rcx
LBB0_14:
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	leaq	32(%r8), %r12
	cmpq	%rcx, %rax
	jae	LBB0_15
## %bb.18:
	movslq	(%r15,%rax,4), %rcx
	shlq	$4, %rcx
	movslq	16(%r14), %rax
	movq	(%r13,%rcx), %rsi
	addq	%rax, %rsi
	movq	24(%r14), %rcx
	movq	32(%r14), %rdx
	cmpq	%rdx, %rcx
	jae	LBB0_20
## %bb.19:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movslq	(%rdi,%rcx,4), %rdi
	shlq	$4, %rdi
	cmpq	(%r13,%rdi), %rsi
	jge	LBB0_16
LBB0_20:
	movq	%rsi, 32(%r8)
	movabsq	$8589934591, %rcx               ## imm = 0x1FFFFFFFF
	movq	%rcx, 40(%r8)
	incl	%eax
	movl	%eax, 16(%r14)
	jmp	LBB0_22
LBB0_15:
	movq	24(%r14), %rcx
	movq	32(%r14), %rdx
LBB0_16:
	cmpq	%rdx, %rcx
	jae	LBB0_17
## %bb.21:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax,%rcx,4), %rbx
	shlq	$4, %rbx
	leaq	(%rbx,%r13), %rdi
	movq	%r12, %rsi
	movq	%r8, %r15
	callq	_tbm_extract_page_tuple
	movq	(%r13,%rbx), %rcx
	movq	%rcx, 32(%r15)
	movl	%eax, 40(%r15)
	movl	8(%r13,%rbx), %eax
	movl	%eax, 44(%r15)
	incq	24(%r14)
	jmp	LBB0_22
LBB0_17:
	xorl	%r12d, %r12d
LBB0_22:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_LWLockRelease
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_PAGES_PER_CHUNK,4,2            ## @PAGES_PER_CHUNK
.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_shared_iterate
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_tbm_shared_iterate
	.p2align	2
_tbm_shared_iterate:                    ; @tbm_shared_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, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x22, [x8]
	b	LBB0_3
LBB0_2:
	mov	x22, #0
LBB0_3:
	ldr	x23, [x19, #24]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x24, [x8]
	ldr	x8, [x19]
	cbz	x8, LBB0_7
LBB0_5:
	ldr	x25, [x8]
	b	LBB0_8
LBB0_6:
	mov	x24, #0
	ldr	x8, [x19]
	cbnz	x8, LBB0_5
LBB0_7:
	mov	x25, #0
LBB0_8:
	add	x20, x19, #32
	add	x21, x23, #40
Lloh0:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_LWLockAcquire
	ldp	x8, x9, [x23]
	cmp	x8, x9
	b.hs	LBB0_12
; %bb.9:
	ldr	w10, [x23, #16]
Lloh3:
	adrp	x26, _PAGES_PER_CHUNK@GOTPAGE
Lloh4:
	ldr	x26, [x26, _PAGES_PER_CHUNK@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x25, x8, lsl #2]
	add	x0, x22, x8, lsl #4
	str	w10, [sp, #12]
	add	x1, sp, #12
	bl	_tbm_advance_schunkbit
	ldr	w8, [sp, #12]
	ldr	w9, [x26]
	cmp	w8, w9
	b.lt	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w10, #0
	ldp	x8, x9, [x23]
	add	x8, x8, #1
	str	x8, [x23]
	str	wzr, [x23, #16]
	cmp	x8, x9
	b.lo	LBB0_10
LBB0_12:
	cmp	x8, x9
	b.hs	LBB0_17
LBB0_13:
	ldrsw	x8, [x25, x8, lsl #2]
	lsl	x8, x8, #4
	ldr	x8, [x22, x8]
	ldrsw	x9, [x23, #16]
	add	x11, x8, x9
	ldp	x8, x10, [x23, #24]
	cmp	x8, x10
	b.hs	LBB0_15
; %bb.14:
	ldrsw	x12, [x24, x8, lsl #2]
	lsl	x12, x12, #4
	ldr	x12, [x22, x12]
	cmp	x11, x12
	b.ge	LBB0_18
LBB0_15:
	str	x11, [x19, #32]
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #40]
	add	w8, w9, #1
	str	w8, [x23, #16]
	b	LBB0_21
LBB0_16:
	str	w8, [x23, #16]
	ldp	x8, x9, [x23]
	cmp	x8, x9
	b.lo	LBB0_13
LBB0_17:
	ldp	x8, x10, [x23, #24]
LBB0_18:
	cmp	x8, x10
	b.hs	LBB0_20
; %bb.19:
	ldrsw	x8, [x24, x8, lsl #2]
	add	x22, x22, x8, lsl #4
	mov	x0, x22
	mov	x1, x20
	bl	_tbm_extract_page_tuple
	ldr	x8, [x22]
	str	x8, [x19, #32]
	ldr	w8, [x22, #8]
	stp	w0, w8, [x19, #40]
	ldr	x8, [x23, #24]
	add	x8, x8, #1
	str	x8, [x23, #24]
	b	LBB0_21
LBB0_20:
	mov	x20, #0
LBB0_21:
	mov	x0, x21
	bl	_LWLockRelease
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdr	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_PAGES_PER_CHUNK,4,2            ; @PAGES_PER_CHUNK
.subsections_via_symbols
