	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_mtrr_type
_get_mtrr_type:                         ## @get_mtrr_type
	.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
	.cfi_offset %rbx, -24
                                        ## kill: def $esi killed $esi def $rsi
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.2:
	movq	_KVM_NR_VAR_MTRR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$1048575, %esi                  ## imm = 0xFFFFF
	jg	LBB0_9
## %bb.3:
	cmpq	$0, 32(%rdi)
	je	LBB0_9
## %bb.4:
	cmpl	$524287, %esi                   ## imm = 0x7FFFF
	jg	LBB0_6
## %bb.5:
	sarl	$16, %esi
	movslq	%esi, %rax
	shlq	$2, %rax
	addq	8(%rdi), %rax
	movl	(%rax), %eax
	jmp	LBB0_27
LBB0_1:
	movl	$255, %eax
	jmp	LBB0_27
LBB0_9:
	testb	$2, %cl
	je	LBB0_16
## %bb.10:
	testl	%eax, %eax
	jle	LBB0_16
## %bb.11:
	movq	24(%rdi), %rdx
	movq	_MTRR_TYPE_UNCACHABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	_MTRR_TYPE_WRBACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_MTRR_TYPE_WRTHROUGH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %r11
	movl	$255, %eax
	xorl	%esi, %esi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%ecx, %eax
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	addq	$24, %rsi
	cmpq	%rsi, %r11
	je	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ecx
	testb	$8, 1(%rdx,%rsi)
	je	LBB0_13
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	movzbl	4(%rdx,%rsi), %ebx
	cmpl	$255, %ecx
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%ebx, %eax
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpl	%r9d, %ecx
	je	LBB0_26
## %bb.20:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	%r9d, %ebx
	je	LBB0_26
## %bb.21:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	%r8d, %ecx
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%r10d, %eax
	cmpl	%r10d, %ebx
	je	LBB0_14
LBB0_23:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpl	%r10d, %ecx
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%r10d, %eax
	cmpl	%r8d, %ebx
	je	LBB0_14
LBB0_25:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%ecx, %eax
	cmpl	%ebx, %ecx
	je	LBB0_14
LBB0_26:
	movl	%r9d, %eax
	jmp	LBB0_27
LBB0_6:
	cmpl	$786431, %esi                   ## imm = 0xBFFFF
	ja	LBB0_8
## %bb.7:
	addl	$-524288, %esi                  ## imm = 0xFFF80000
	shrl	$14, %esi
	movq	8(%rdi), %rax
	leaq	(%rax,%rsi,4), %rax
	addq	$32, %rax
	movl	(%rax), %eax
	jmp	LBB0_27
LBB0_8:
	addl	$-786432, %esi                  ## imm = 0xFFF40000
	shrl	$12, %esi
	movq	8(%rdi), %rax
	leaq	(%rax,%rsi,4), %rax
	addq	$96, %rax
	movl	(%rax), %eax
	jmp	LBB0_27
LBB0_15:
	cmpl	$255, %eax
	jne	LBB0_27
LBB0_16:
	movl	16(%rdi), %eax
LBB0_27:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KVM_NR_VAR_MTRR,4,2            ## @KVM_NR_VAR_MTRR
	.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
	.no_dead_strip	_get_mtrr_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_mtrr_type
_get_mtrr_type:                         ; @get_mtrr_type
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x9, _KVM_NR_VAR_MTRR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KVM_NR_VAR_MTRR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w1, #256, lsl #12               ; =1048576
	b.ge	LBB0_6
; %bb.2:
	ldr	x10, [x0, #32]
	cbz	x10, LBB0_6
; %bb.3:
	subs	w8, w1, #128, lsl #12           ; =524288
	b.ge	LBB0_21
; %bb.4:
	asr	w8, w1, #16
	ldr	x9, [x0, #8]
	add	x8, x9, w8, sxtw #2
	ldr	w0, [x8]
	ret
LBB0_5:
	mov	w0, #255
	ret
LBB0_6:
	tbz	w8, #1, LBB0_26
; %bb.7:
	cmp	w9, #1
	b.lt	LBB0_26
; %bb.8:
	ldr	x8, [x0, #24]
Lloh3:
	adrp	x10, _MTRR_TYPE_UNCACHABLE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MTRR_TYPE_UNCACHABLE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _MTRR_TYPE_WRBACK@GOTPAGE
Lloh7:
	ldr	x11, [x11, _MTRR_TYPE_WRBACK@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
Lloh9:
	adrp	x12, _MTRR_TYPE_WRTHROUGH@GOTPAGE
Lloh10:
	ldr	x12, [x12, _MTRR_TYPE_WRTHROUGH@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	add	x13, x8, #4
	mov	w8, #255
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x8, x14
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x13, x13, #24
	subs	x9, x9, #1
	b.eq	LBB0_25
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x14, x8
	ldurb	w8, [x13, #-3]
	tbz	w8, #3, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldrb	w15, [x13]
	mov	x8, x15
	cmp	w14, #255
	b.eq	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w14, w10
	b.eq	LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w15, w10
	b.eq	LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w14, w11
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x8, x12
	cmp	w15, w12
	b.eq	LBB0_10
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	w14, w12
	b.ne	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x8, x12
	cmp	w15, w11
	b.eq	LBB0_10
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x8, x14
	cmp	w14, w15
	b.eq	LBB0_10
LBB0_20:
	mov	x8, x10
	b	LBB0_27
LBB0_21:
	lsr	w9, w1, #18
	cmp	w9, #2
	b.hi	LBB0_23
; %bb.22:
	lsr	w8, w8, #14
	add	w8, w8, #8
	b	LBB0_24
LBB0_23:
	sub	w8, w1, #192, lsl #12           ; =786432
	lsr	w8, w8, #12
	add	w8, w8, #24
LBB0_24:
	ldr	x9, [x0, #8]
	add	x8, x9, w8, uxtw #2
	ldr	w0, [x8]
	ret
LBB0_25:
	cmp	w8, #255
	b.ne	LBB0_27
LBB0_26:
	ldr	w0, [x0, #16]
	ret
LBB0_27:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_KVM_NR_VAR_MTRR,4,2            ; @KVM_NR_VAR_MTRR
	.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
	.no_dead_strip	_get_mtrr_type
.subsections_via_symbols
