	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtrr_valid
_mtrr_valid:                            ## @mtrr_valid
	.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	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_msr_mtrr_valid
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_30
## %bb.1:
	movq	_MSR_IA32_CR_PAT@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_11
## %bb.2:
	movl	%r13d, %ebx
	movzbl	%bl, %edi
	callq	_valid_pat_type
	testl	%eax, %eax
	je	LBB0_31
## %bb.3:
	movzbl	%bh, %edi
	callq	_valid_pat_type
	testl	%eax, %eax
	je	LBB0_31
## %bb.4:
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %edi
	callq	_valid_pat_type
	testl	%eax, %eax
	je	LBB0_31
## %bb.5:
	shrl	$24, %ebx
	movl	%ebx, %edi
	callq	_valid_pat_type
	testl	%eax, %eax
	je	LBB0_31
## %bb.6:
	callq	_valid_pat_type
	testl	%eax, %eax
	je	LBB0_31
## %bb.7:
	callq	_valid_pat_type
	testl	%eax, %eax
	je	LBB0_31
## %bb.8:
	callq	_valid_pat_type
	movl	$0, %r14d
	testl	%eax, %eax
	je	LBB0_31
## %bb.9:
	callq	_valid_pat_type
	jmp	LBB0_24
LBB0_11:
	movq	_MSR_MTRRdefType@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_14
## %bb.12:
	movl	$0, %r14d
	testl	$-3328, %r13d                   ## imm = 0xF300
	jne	LBB0_31
## %bb.13:
	movzbl	%r13b, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_valid_mtrr_type                ## TAILCALL
LBB0_14:
	movq	_MSR_MTRRfix64K_00000@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_MSR_MTRRfix4K_F8000@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	%r13d, %eax
	movzbl	%al, %edi
	callq	_valid_mtrr_type
	movl	%eax, %r14d
	cmpq	%rbx, %r12
	jg	LBB0_31
## %bb.15:
	cmpq	%rbx, %r15
	jl	LBB0_31
## %bb.16:
	testl	%r14d, %r14d
	je	LBB0_30
## %bb.17:
	movl	%r13d, %ebx
	movzbl	%bh, %edi
	callq	_valid_mtrr_type
	testl	%eax, %eax
	je	LBB0_30
## %bb.18:
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %edi
	callq	_valid_mtrr_type
	testl	%eax, %eax
	je	LBB0_30
## %bb.19:
	shrl	$24, %ebx
	movl	%ebx, %edi
	callq	_valid_mtrr_type
	testl	%eax, %eax
	je	LBB0_30
## %bb.20:
	callq	_valid_mtrr_type
	testl	%eax, %eax
	je	LBB0_30
## %bb.21:
	callq	_valid_mtrr_type
	testl	%eax, %eax
	je	LBB0_30
## %bb.22:
	callq	_valid_mtrr_type
	movl	$0, %r14d
	testl	%eax, %eax
	je	LBB0_31
## %bb.23:
	callq	_valid_mtrr_type
LBB0_24:
	xorl	%r14d, %r14d
	testl	%eax, %eax
	setne	%r14b
	jmp	LBB0_31
LBB0_30:
	xorl	%r14d, %r14d
LBB0_31:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSR_IA32_CR_PAT,8,3            ## @MSR_IA32_CR_PAT
	.comm	_MSR_MTRRdefType,8,3            ## @MSR_MTRRdefType
	.comm	_MSR_MTRRfix64K_00000,8,3       ## @MSR_MTRRfix64K_00000
	.comm	_MSR_MTRRfix4K_F8000,8,3        ## @MSR_MTRRfix4K_F8000
	.no_dead_strip	_mtrr_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtrr_valid
_mtrr_valid:                            ; @mtrr_valid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x0, x1
	bl	_msr_mtrr_valid
	cbz	w0, LBB0_23
; %bb.1:
Lloh0:
	adrp	x8, _MSR_IA32_CR_PAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSR_IA32_CR_PAT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_10
; %bb.2:
	and	w0, w19, #0xff
	bl	_valid_pat_type
	cbz	w0, LBB0_23
; %bb.3:
	ubfx	w0, w19, #8, #8
	bl	_valid_pat_type
	cbz	w0, LBB0_23
; %bb.4:
	ubfx	w0, w19, #16, #8
	bl	_valid_pat_type
	cbz	w0, LBB0_23
; %bb.5:
	lsr	w0, w19, #24
	bl	_valid_pat_type
	cbz	w0, LBB0_23
; %bb.6:
	bl	_valid_pat_type
	cbz	w0, LBB0_23
; %bb.7:
	bl	_valid_pat_type
	cbz	w0, LBB0_23
; %bb.8:
	bl	_valid_pat_type
	cbz	w0, LBB0_23
; %bb.9:
	bl	_valid_pat_type
	b	LBB0_22
LBB0_10:
Lloh3:
	adrp	x8, _MSR_MTRRdefType@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSR_MTRRdefType@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_13
; %bb.11:
	mov	w8, #-3328
	tst	w19, w8
	b.eq	LBB0_24
; %bb.12:
	mov	w0, #0
	b	LBB0_23
LBB0_13:
Lloh6:
	adrp	x8, _MSR_MTRRfix64K_00000@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSR_MTRRfix64K_00000@GOTPAGEOFF]
Lloh8:
	ldr	x21, [x8]
Lloh9:
	adrp	x8, _MSR_MTRRfix4K_F8000@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSR_MTRRfix4K_F8000@GOTPAGEOFF]
Lloh11:
	ldr	x22, [x8]
	and	w0, w19, #0xff
	bl	_valid_mtrr_type
	cmp	x21, x20
	ccmp	x22, x20, #8, le
	b.lt	LBB0_23
; %bb.14:
	cbz	w0, LBB0_23
; %bb.15:
	ubfx	w0, w19, #8, #8
	bl	_valid_mtrr_type
	cbz	w0, LBB0_23
; %bb.16:
	ubfx	w0, w19, #16, #8
	bl	_valid_mtrr_type
	cbz	w0, LBB0_23
; %bb.17:
	lsr	w0, w19, #24
	bl	_valid_mtrr_type
	cbz	w0, LBB0_23
; %bb.18:
	bl	_valid_mtrr_type
	cbz	w0, LBB0_23
; %bb.19:
	bl	_valid_mtrr_type
	cbz	w0, LBB0_23
; %bb.20:
	bl	_valid_mtrr_type
	cbz	w0, LBB0_23
; %bb.21:
	bl	_valid_mtrr_type
LBB0_22:
	cmp	w0, #0
	cset	w0, ne
LBB0_23:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_24:
	and	w0, w19, #0xff
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_valid_mtrr_type
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MSR_IA32_CR_PAT,8,3            ; @MSR_IA32_CR_PAT
	.comm	_MSR_MTRRdefType,8,3            ; @MSR_MTRRdefType
	.comm	_MSR_MTRRfix64K_00000,8,3       ; @MSR_MTRRfix64K_00000
	.comm	_MSR_MTRRfix4K_F8000,8,3        ; @MSR_MTRRfix4K_F8000
	.no_dead_strip	_mtrr_valid
.subsections_via_symbols
