	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tbm_find_pageentry
_tbm_find_pageentry:                    ## @tbm_find_pageentry
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpq	$0, (%rdi)
	je	LBB0_7
## %bb.1:
	movq	8(%rdi), %rax
	movq	_TBM_ONE_PAGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	cmpq	%rsi, 24(%rdi)
	jne	LBB0_7
## %bb.3:
	leaq	24(%rdi), %rbx
	xorl	%eax, %eax
	cmpq	$0, 32(%rdi)
	sete	%al
	movl	%eax, %edi
	callq	_Assert
	jmp	LBB0_8
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_5:
	movl	16(%rdi), %edi
	callq	_pagetable_lookup
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	cmpq	$0, 8(%rax)
	cmoveq	%rax, %rbx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TBM_ONE_PAGE,8,3               ## @TBM_ONE_PAGE
	.no_dead_strip	_tbm_find_pageentry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tbm_find_pageentry
_tbm_find_pageentry:                    ; @tbm_find_pageentry
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x8, [x0, #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:
	mov	x19, x0
	ldr	x8, [x19, #24]!
	cmp	x8, x1
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x0, #32]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	b	LBB0_7
LBB0_4:
	ldr	w0, [x0, #16]
	bl	_pagetable_lookup
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x0, #8]
	cmp	x8, #0
	csel	x19, x0, xzr, eq
	b	LBB0_7
LBB0_6:
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TBM_ONE_PAGE,8,3               ; @TBM_ONE_PAGE
	.no_dead_strip	_tbm_find_pageentry
.subsections_via_symbols
