	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tsb_tte_lookup                 ## -- Begin function tsb_tte_lookup
	.p2align	4, 0x90
_tsb_tte_lookup:                        ## @tsb_tte_lookup
	.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
	movl	%esi, %r12d
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_tsb_nlookup_k@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PMAP_STATS_INC
	movl	%r12d, %edi
	callq	_tsb_kvtotte
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_tte_match
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_9
LBB0_2:
	movq	%rdi, %rbx
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PMAP_LOCK_ASSERT
	movq	_tsb_nlookup_u@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PMAP_STATS_INC
	movq	_TS_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_TS_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jle	LBB0_3
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_TSB_BUCKET_SIZE@GOTPCREL(%rip), %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%r15), %rax
	movq	_TS_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r15
	movq	%rax, %r15
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jge	LBB0_9
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_tsb_vtobucket
	cmpq	$0, (%r13)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_tte_match
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=2
	incq	%r14
	addq	$4, %rbx
	cmpq	(%r13), %r14
	jb	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_kernel_pmap,8,3                ## @kernel_pmap
	.comm	_tsb_nlookup_k,4,2              ## @tsb_nlookup_k
	.comm	_MA_OWNED,4,2                   ## @MA_OWNED
	.comm	_tsb_nlookup_u,4,2              ## @tsb_nlookup_u
	.comm	_TS_MIN,8,3                     ## @TS_MIN
	.comm	_TS_MAX,8,3                     ## @TS_MAX
	.comm	_TSB_BUCKET_SIZE,8,3            ## @TSB_BUCKET_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tsb_tte_lookup                 ; -- Begin function tsb_tte_lookup
	.p2align	2
_tsb_tte_lookup:                        ; @tsb_tte_lookup
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
Lloh0:
	adrp	x8, _kernel_pmap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kernel_pmap@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _tsb_nlookup_k@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tsb_nlookup_k@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_PMAP_STATS_INC
	mov	x0, x19
	bl	_tsb_kvtotte
	mov	x22, x0
	mov	x1, x19
	bl	_tte_match
	cbnz	x0, LBB0_4
	b	LBB0_3
LBB0_2:
	mov	x20, x0
Lloh6:
	adrp	x8, _MA_OWNED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MA_OWNED@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_PMAP_LOCK_ASSERT
Lloh9:
	adrp	x8, _tsb_nlookup_u@GOTPAGE
Lloh10:
	ldr	x8, [x8, _tsb_nlookup_u@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_PMAP_STATS_INC
Lloh12:
	adrp	x8, _TS_MIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TS_MIN@GOTPAGEOFF]
Lloh14:
	ldr	x21, [x8]
Lloh15:
	adrp	x23, _TS_MAX@GOTPAGE
Lloh16:
	ldr	x23, [x23, _TS_MAX@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x21, x8
	b.le	LBB0_5
LBB0_3:
	mov	x22, #0
LBB0_4:
	mov	x0, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh17:
	adrp	x24, _TSB_BUCKET_SIZE@GOTPAGE
Lloh18:
	ldr	x24, [x24, _TSB_BUCKET_SIZE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x21, #1
	ldr	x9, [x23]
	cmp	x21, x9
	mov	x21, x8
	b.ge	LBB0_3
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_tsb_vtobucket
	ldr	x8, [x24]
	cbz	x8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, x0
	mov	x25, #0
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	mov	x1, x19
	bl	_tte_match
	cbnz	x0, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x25, x25, #1
	ldr	x8, [x24]
	add	x22, x22, #4
	cmp	x25, x8
	b.lo	LBB0_9
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_kernel_pmap,8,3                ; @kernel_pmap
	.comm	_tsb_nlookup_k,4,2              ; @tsb_nlookup_k
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.comm	_tsb_nlookup_u,4,2              ; @tsb_nlookup_u
	.comm	_TS_MIN,8,3                     ; @TS_MIN
	.comm	_TS_MAX,8,3                     ; @TS_MAX
	.comm	_TSB_BUCKET_SIZE,8,3            ; @TSB_BUCKET_SIZE
.subsections_via_symbols
