	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_mtrr_state
_set_mtrr_state:                        ## @set_mtrr_state
	.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
	movq	_num_var_ranges@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_1
## %bb.2:
	xorl	%r12d, %r12d
	movq	_mtrr_state@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	orq	%rax, %r14
	incq	%rbx
	movl	(%r15), %eax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jae	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rsi
	addq	%r12, %rsi
	movl	%ebx, %edi
	callq	_set_mtrr_var_ranges
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_MTRR_CHANGE_MASK_VARIABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
LBB0_6:
	movq	_mtrr_state@GOTPCREL(%rip), %rbx
	cmpq	$0, 16(%rbx)
	je	LBB0_9
## %bb.7:
	movl	8(%rbx), %edi
	callq	_set_fixed_ranges
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_MTRR_CHANGE_MASK_FIXED@GOTPCREL(%rip), %rax
	orq	(%rax), %r14
LBB0_9:
	movq	_deftype_lo@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movzbl	%cl, %esi
	movl	(%rbx), %edx
	cmpl	%edx, %esi
	jne	LBB0_10
## %bb.11:
	movl	%ecx, %edi
	shrl	$10, %edi
	andl	$3, %edi
	movl	4(%rbx), %esi
	cmpl	%esi, %edi
	jne	LBB0_12
	jmp	LBB0_13
LBB0_10:
	movl	4(%rbx), %esi
LBB0_12:
	andl	$-3328, %ecx                    ## imm = 0xF300
	orl	%edx, %ecx
	shll	$10, %esi
	orl	%ecx, %esi
	movl	%esi, (%rax)
	movq	_MTRR_CHANGE_MASK_DEFTYPE@GOTPCREL(%rip), %rax
	orq	(%rax), %r14
LBB0_13:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_num_var_ranges,4,2             ## @num_var_ranges
	.comm	_mtrr_state,32,3                ## @mtrr_state
	.comm	_MTRR_CHANGE_MASK_VARIABLE,8,3  ## @MTRR_CHANGE_MASK_VARIABLE
	.comm	_MTRR_CHANGE_MASK_FIXED,8,3     ## @MTRR_CHANGE_MASK_FIXED
	.comm	_deftype_lo,4,2                 ## @deftype_lo
	.comm	_MTRR_CHANGE_MASK_DEFTYPE,8,3   ## @MTRR_CHANGE_MASK_DEFTYPE
	.no_dead_strip	_set_mtrr_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_mtrr_state
_set_mtrr_state:                        ; @set_mtrr_state
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x22, _num_var_ranges@GOTPAGE
Lloh1:
	ldr	x22, [x22, _num_var_ranges@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x21, _mtrr_state@GOTPAGE
Lloh3:
	ldr	x21, [x21, _mtrr_state@GOTPAGEOFF]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x23, #0
	mov	x20, #0
	mov	x19, #0
Lloh4:
	adrp	x24, _MTRR_CHANGE_MASK_VARIABLE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MTRR_CHANGE_MASK_VARIABLE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #24]
	add	x1, x8, x23
	mov	x0, x20
	bl	_set_mtrr_var_ranges
	ldr	x8, [x24]
	cmp	x0, #0
	csel	x8, xzr, x8, eq
	orr	x19, x8, x19
	add	x20, x20, #1
	ldr	w8, [x22]
	add	x23, x23, #4
	cmp	x20, x8
	b.lo	LBB0_2
; %bb.3:
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_5
	b	LBB0_7
LBB0_4:
	mov	x19, #0
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_7
LBB0_5:
	ldr	w0, [x21, #8]
	bl	_set_fixed_ranges
	cbz	x0, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _MTRR_CHANGE_MASK_FIXED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MTRR_CHANGE_MASK_FIXED@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	orr	x19, x8, x19
LBB0_7:
Lloh9:
	adrp	x8, _deftype_lo@GOTPAGE
Lloh10:
	ldr	x8, [x8, _deftype_lo@GOTPAGEOFF]
	ldr	w9, [x8]
	ldr	w10, [x21]
	cmp	w10, w9, uxtb
	b.ne	LBB0_9
; %bb.8:
	ubfx	w12, w9, #10, #2
	ldr	w11, [x21, #4]
	cmp	w12, w11
	b.ne	LBB0_10
	b	LBB0_11
LBB0_9:
	ldr	w11, [x21, #4]
LBB0_10:
	mov	w12, #-3328
	and	w9, w9, w12
	orr	w9, w9, w10
	orr	w9, w9, w11, lsl #10
	str	w9, [x8]
Lloh11:
	adrp	x8, _MTRR_CHANGE_MASK_DEFTYPE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MTRR_CHANGE_MASK_DEFTYPE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	orr	x19, x8, x19
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_num_var_ranges,4,2             ; @num_var_ranges
	.comm	_mtrr_state,32,3                ; @mtrr_state
	.comm	_MTRR_CHANGE_MASK_VARIABLE,8,3  ; @MTRR_CHANGE_MASK_VARIABLE
	.comm	_MTRR_CHANGE_MASK_FIXED,8,3     ; @MTRR_CHANGE_MASK_FIXED
	.comm	_deftype_lo,4,2                 ; @deftype_lo
	.comm	_MTRR_CHANGE_MASK_DEFTYPE,8,3   ; @MTRR_CHANGE_MASK_DEFTYPE
	.no_dead_strip	_set_mtrr_state
.subsections_via_symbols
