	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtrr_type_lookup               ## -- Begin function mtrr_type_lookup
	.p2align	4, 0x90
_mtrr_type_lookup:                      ## @mtrr_type_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	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edi killed $edi def $rdi
	movq	_mtrr_state_set@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movl	$255, %eax
	je	LBB0_33
## %bb.1:
	movq	_mtrr_state@GOTPCREL(%rip), %r8
	movl	(%r8), %ecx
	testl	%ecx, %ecx
	je	LBB0_33
## %bb.2:
	cmpl	$1048575, %edi                  ## imm = 0xFFFFF
	jg	LBB0_9
## %bb.3:
	cmpq	$0, 32(%r8)
	je	LBB0_9
## %bb.4:
	cmpl	$524287, %edi                   ## imm = 0x7FFFF
	jg	LBB0_6
## %bb.5:
	sarl	$16, %edi
	movslq	%edi, %rax
	shlq	$2, %rax
	addq	8(%r8), %rax
	movl	(%rax), %eax
	jmp	LBB0_33
LBB0_9:
	testb	$2, %cl
	jne	LBB0_10
## %bb.12:
	movl	16(%r8), %eax
	jmp	LBB0_33
LBB0_6:
	cmpl	$786431, %edi                   ## imm = 0xBFFFF
	ja	LBB0_8
## %bb.7:
	addl	$-524288, %edi                  ## imm = 0xFFF80000
	shrl	$14, %edi
	movq	8(%r8), %rax
	leaq	(%rax,%rdi,4), %rax
	addq	$32, %rax
	movl	(%rax), %eax
	jmp	LBB0_33
LBB0_10:
	movq	_num_var_ranges@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.13:
	movq	24(%r8), %r14
	movq	_MTRR_TYPE_UNCACHABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MTRR_TYPE_WRBACK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	_MTRR_TYPE_WRTHROUGH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r10d
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %r11
	movl	$255, %ebx
	xorl	%ecx, %ecx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	%ebx, %edx
LBB0_25:                                ##   in Loop: Header=BB0_14 Depth=1
	addq	$24, %rcx
	movl	%edx, %ebx
	cmpq	%rcx, %r11
	je	LBB0_26
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	testb	$8, 1(%r14,%rcx)
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movzbl	4(%r14,%rcx), %r15d
	cmpl	$255, %ebx
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%r15d, %edx
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	cmpl	%eax, %ebx
	je	LBB0_33
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	%eax, %r15d
	je	LBB0_33
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	%r9d, %ebx
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%r10d, %edx
	cmpl	%r10d, %r15d
	je	LBB0_25
LBB0_22:                                ##   in Loop: Header=BB0_14 Depth=1
	cmpl	%r10d, %ebx
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%r10d, %edx
	cmpl	%r9d, %r15d
	je	LBB0_25
LBB0_24:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	%ebx, %edx
	cmpl	%r15d, %ebx
	je	LBB0_25
	jmp	LBB0_33
LBB0_8:
	addl	$-786432, %edi                  ## imm = 0xFFF40000
	shrl	$12, %edi
	movq	8(%r8), %rax
	leaq	(%rax,%rdi,4), %rax
	addq	$96, %rax
	movl	(%rax), %eax
	jmp	LBB0_33
LBB0_11:
	movl	$255, %edx
LBB0_26:
	movq	_mtrr_tom2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%esi, %eax
	jl	LBB0_30
## %bb.27:
	testl	%edi, %edi
	jns	LBB0_30
## %bb.28:
	testl	%eax, %eax
	je	LBB0_30
## %bb.29:
	movq	_MTRR_TYPE_WRBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_33
LBB0_30:
	cmpl	$255, %edx
	jne	LBB0_32
## %bb.31:
	movl	16(%r8), %edx
LBB0_32:
	movl	%edx, %eax
LBB0_33:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mtrr_state_set,4,2             ## @mtrr_state_set
	.comm	_mtrr_state,40,3                ## @mtrr_state
	.comm	_num_var_ranges,4,2             ## @num_var_ranges
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_MTRR_TYPE_UNCACHABLE,4,2       ## @MTRR_TYPE_UNCACHABLE
	.comm	_MTRR_TYPE_WRBACK,4,2           ## @MTRR_TYPE_WRBACK
	.comm	_MTRR_TYPE_WRTHROUGH,4,2        ## @MTRR_TYPE_WRTHROUGH
	.comm	_mtrr_tom2,4,2                  ## @mtrr_tom2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtrr_type_lookup               ; -- Begin function mtrr_type_lookup
	.p2align	2
_mtrr_type_lookup:                      ; @mtrr_type_lookup
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _mtrr_state_set@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mtrr_state_set@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
Lloh3:
	adrp	x9, _mtrr_state@GOTPAGE
Lloh4:
	ldr	x9, [x9, _mtrr_state@GOTPAGEOFF]
	ldr	w8, [x9]
	cmp	w10, #0
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #255
	ret
LBB0_2:
	cmp	w0, #256, lsl #12               ; =1048576
	b.ge	LBB0_6
; %bb.3:
	ldr	x10, [x9, #32]
	cbz	x10, LBB0_6
; %bb.4:
	subs	w8, w0, #128, lsl #12           ; =524288
	b.ge	LBB0_8
; %bb.5:
	asr	w8, w0, #16
	ldr	x9, [x9, #8]
	add	x8, x9, w8, sxtw #2
	ldr	w0, [x8]
	ret
LBB0_6:
	tbnz	w8, #1, LBB0_10
; %bb.7:
	ldr	w0, [x9, #16]
	ret
LBB0_8:
	lsr	w10, w0, #18
	cmp	w10, #2
	b.hi	LBB0_23
; %bb.9:
	lsr	w8, w8, #14
	add	w8, w8, #8
	b	LBB0_24
LBB0_10:
Lloh5:
	adrp	x8, _num_var_ranges@GOTPAGE
Lloh6:
	ldr	x8, [x8, _num_var_ranges@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x8]
Lloh8:
	adrp	x10, _MTRR_TYPE_WRBACK@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MTRR_TYPE_WRBACK@GOTPAGEOFF]
	cmp	w11, #1
	b.lt	LBB0_25
; %bb.11:
	ldr	x14, [x9, #24]
Lloh10:
	adrp	x8, _MTRR_TYPE_UNCACHABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MTRR_TYPE_UNCACHABLE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w12, [x10]
Lloh13:
	adrp	x13, _MTRR_TYPE_WRTHROUGH@GOTPAGE
Lloh14:
	ldr	x13, [x13, _MTRR_TYPE_WRTHROUGH@GOTPAGEOFF]
Lloh15:
	ldr	w13, [x13]
	add	x14, x14, #4
	mov	w15, #255
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x16, x15
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x14, x14, #24
	mov	x15, x16
	subs	x11, x11, #1
	b.eq	LBB0_26
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldurb	w16, [x14, #-3]
	tbz	w16, #3, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldrb	w17, [x14]
	mov	x16, x17
	cmp	w15, #255
	b.eq	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	w15, w8
	b.eq	LBB0_31
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	w17, w8
	b.eq	LBB0_31
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	w15, w12
	b.ne	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x16, x13
	cmp	w17, w13
	b.eq	LBB0_13
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=1
	cmp	w15, w13
	b.ne	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x16, x13
	cmp	w17, w12
	b.eq	LBB0_13
LBB0_22:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x16, x15
	cmp	w15, w17
	b.eq	LBB0_13
	b	LBB0_31
LBB0_23:
	sub	w8, w0, #192, lsl #12           ; =786432
	lsr	w8, w8, #12
	add	w8, w8, #24
LBB0_24:
	ldr	x9, [x9, #8]
	add	x8, x9, w8, uxtw #2
	ldr	w0, [x8]
	ret
LBB0_25:
	mov	w16, #255
LBB0_26:
Lloh16:
	adrp	x8, _mtrr_tom2@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mtrr_tom2@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w8, w1
	b.lt	LBB0_30
; %bb.27:
	tbz	w0, #31, LBB0_30
; %bb.28:
	cbz	w8, LBB0_30
; %bb.29:
	ldr	w0, [x10]
	ret
LBB0_30:
	ldr	w8, [x9, #16]
	cmp	w16, #255
	csel	w8, w8, w16, eq
LBB0_31:
	mov	x0, x8
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_mtrr_state_set,4,2             ; @mtrr_state_set
	.comm	_mtrr_state,40,3                ; @mtrr_state
	.comm	_num_var_ranges,4,2             ; @num_var_ranges
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_MTRR_TYPE_UNCACHABLE,4,2       ; @MTRR_TYPE_UNCACHABLE
	.comm	_MTRR_TYPE_WRBACK,4,2           ; @MTRR_TYPE_WRBACK
	.comm	_MTRR_TYPE_WRTHROUGH,4,2        ; @MTRR_TYPE_WRTHROUGH
	.comm	_mtrr_tom2,4,2                  ; @mtrr_tom2
.subsections_via_symbols
