	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tbm_intersect                  ## -- Begin function tbm_intersect
	.p2align	4, 0x90
_tbm_intersect:                         ## @tbm_intersect
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	xorl	%edi, %edi
	cmpl	$0, 48(%r13)
	sete	%dil
	callq	_Assert
	cmpq	$0, (%r13)
	je	LBB0_13
## %bb.1:
	movq	8(%r13), %rax
	movq	_TBM_ONE_PAGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	leaq	32(%r13), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_tbm_intersect_page
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	xorl	%edi, %edi
	cmpq	$0, 40(%r13)
	sete	%dil
	callq	_Assert
	decl	20(%r13)
	xorl	%edi, %edi
	decq	(%r13)
	sete	%dil
	callq	_Assert
	movq	_TBM_EMPTY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	jmp	LBB0_13
LBB0_4:
	movq	_TBM_HASH@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movl	16(%r13), %edi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_pagetable_start_iterate
	movl	16(%r13), %edi
	movq	%rbx, %rsi
	callq	_pagetable_iterate
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	movq	%rax, %rbx
	leaq	-44(%rbp), %r15
	leaq	L_.str(%rip), %r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	16(%r13), %edi
	movq	%r15, %rsi
	callq	_pagetable_iterate
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_13
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_tbm_intersect_page
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	decl	24(%r13)
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	decl	20(%r13)
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	decq	(%r13)
	movl	16(%r13), %edi
	movl	(%rbx), %esi
	callq	_pagetable_delete
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_elog
	jmp	LBB0_12
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TBM_ONE_PAGE,8,3               ## @TBM_ONE_PAGE
	.comm	_TBM_EMPTY,8,3                  ## @TBM_EMPTY
	.comm	_TBM_HASH,8,3                   ## @TBM_HASH
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hash table corrupted"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tbm_intersect                  ; -- Begin function tbm_intersect
	.p2align	2
_tbm_intersect:                         ; @tbm_intersect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0, #48]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x19]
	cbz	x8, LBB0_13
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _TBM_ONE_PAGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TBM_ONE_PAGE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	add	x1, x19, #32
	mov	x0, x19
	mov	x2, x20
	bl	_tbm_intersect_page
	cbz	x0, LBB0_13
; %bb.3:
	ldr	x8, [x19, #40]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	ldr	w8, [x19, #20]
	sub	w8, w8, #1
	str	w8, [x19, #20]
	ldr	x8, [x19]
	subs	x8, x8, #1
	str	x8, [x19]
	cset	w0, eq
	bl	_Assert
Lloh3:
	adrp	x8, _TBM_EMPTY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TBM_EMPTY@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_13
LBB0_4:
Lloh6:
	adrp	x9, _TBM_HASH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TBM_HASH@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	w0, [x19, #16]
	add	x1, sp, #12
	bl	_pagetable_start_iterate
	ldr	w0, [x19, #16]
	add	x1, sp, #12
	bl	_pagetable_iterate
	cbz	x0, LBB0_13
; %bb.5:
	mov	x22, x0
Lloh9:
	adrp	x23, _ERROR@GOTPAGE
Lloh10:
	ldr	x23, [x23, _ERROR@GOTPAGEOFF]
Lloh11:
	adrp	x21, l_.str@PAGE
Lloh12:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x19, #16]
	add	x1, sp, #12
	bl	_pagetable_iterate
	mov	x22, x0
	cbz	x0, LBB0_13
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_tbm_intersect_page
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19, #24]
	sub	w8, w8, #1
	str	w8, [x19, #24]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19, #20]
	sub	w8, w8, #1
	str	w8, [x19, #20]
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19]
	sub	x8, x8, #1
	str	x8, [x19]
	ldr	w0, [x19, #16]
	ldr	w1, [x22]
	bl	_pagetable_delete
	cbnz	w0, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x23]
	mov	x1, x21
	bl	_elog
	b	LBB0_6
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TBM_ONE_PAGE,8,3               ; @TBM_ONE_PAGE
	.comm	_TBM_EMPTY,8,3                  ; @TBM_EMPTY
	.comm	_TBM_HASH,8,3                   ; @TBM_HASH
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hash table corrupted"

.subsections_via_symbols
