	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtrr_del_page                  ## -- Begin function mtrr_del_page
	.p2align	4, 0x90
_mtrr_del_page:                         ## @mtrr_del_page
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r13d, %r13d
	movq	_mtrr_if@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r15
	movq	%rsi, %r12
	movl	%edi, %ebx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movq	_num_var_ranges@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_get_online_cpus
	movq	_mtrr_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	testl	%ebx, %ebx
	js	LBB0_3
## %bb.8:
	cmpl	%r14d, %ebx
	jge	LBB0_9
LBB0_13:
	movq	_mtrr_if@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	-72(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	movl	%ebx, %edi
	callq	*(%rax)
	cmpq	$0, -56(%rbp)
	je	LBB0_14
## %bb.15:
	movq	_mtrr_usage_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %edx
	testl	%edx, %edx
	jle	LBB0_16
## %bb.17:
	leal	-1(%rdx), %esi
	movl	%esi, (%rax,%rcx,4)
	cmpl	$1, %edx
	jne	LBB0_19
## %bb.18:
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_set_mtrr
LBB0_19:
	movl	%ebx, %r13d
	jmp	LBB0_20
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_21
LBB0_3:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_12
## %bb.4:
	xorl	%ebx, %ebx
	leaq	-60(%rbp), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	%ebx, %r14d
	je	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_mtrr_if@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %edi
	leaq	-72(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r13, %rcx
	callq	*(%rax)
	cmpq	%r12, -72(%rbp)
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r15, -56(%rbp)
	jne	LBB0_11
## %bb.7:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	cmpl	%r14d, %ebx
	jl	LBB0_13
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_10
LBB0_12:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_pr_debug
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_20
LBB0_14:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_10
LBB0_16:
	leaq	L_.str.3(%rip), %rdi
LBB0_10:
	movl	%ebx, %esi
	callq	_pr_warning
LBB0_20:
	movq	_mtrr_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	callq	_put_online_cpus
LBB0_21:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_mtrr_if,8,3                    ## @mtrr_if
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_num_var_ranges,4,2             ## @num_var_ranges
	.comm	_mtrr_mutex,4,2                 ## @mtrr_mutex
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mtrr: no MTRR for %lx000,%lx000 found\n"

L_.str.1:                               ## @.str.1
	.asciz	"mtrr: register: %d too big\n"

L_.str.2:                               ## @.str.2
	.asciz	"mtrr: MTRR %d not used\n"

	.comm	_mtrr_usage_table,8,3           ## @mtrr_usage_table
L_.str.3:                               ## @.str.3
	.asciz	"mtrr: reg: %d has count=0\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtrr_del_page                  ; -- Begin function mtrr_del_page
	.p2align	2
_mtrr_del_page:                         ; @mtrr_del_page
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, _mtrr_if@GOTPAGE
Lloh1:
	ldr	x23, [x23, _mtrr_if@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w19, w8
Lloh5:
	adrp	x8, _num_var_ranges@GOTPAGE
Lloh6:
	ldr	x8, [x8, _num_var_ranges@GOTPAGEOFF]
Lloh7:
	ldr	w24, [x8]
	bl	_get_online_cpus
Lloh8:
	adrp	x0, _mtrr_mutex@GOTPAGE
Lloh9:
	ldr	x0, [x0, _mtrr_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	tbnz	w20, #31, LBB0_9
LBB0_2:
	cmp	w20, w24
	b.ge	LBB0_14
; %bb.3:
	ldr	x8, [x23]
	ldr	x8, [x8]
	add	x1, sp, #16
	add	x2, sp, #8
	add	x3, sp, #28
	mov	x0, x20
	blr	x8
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_15
; %bb.4:
Lloh10:
	adrp	x8, _mtrr_usage_table@GOTPAGE
Lloh11:
	ldr	x8, [x8, _mtrr_usage_table@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	w9, [x8, w20, sxtw #2]
	cmp	w9, #0
	b.le	LBB0_16
; %bb.5:
	sxtw	x10, w20
	subs	w9, w9, #1
	str	w9, [x8, x10, lsl #2]
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_set_mtrr
LBB0_7:
	mov	x19, x20
	b	LBB0_18
LBB0_8:
Lloh13:
	adrp	x8, _ENXIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_19
LBB0_9:
	cmp	w24, #1
	b.lt	LBB0_13
; %bb.10:
	mov	w20, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8]
	add	x1, sp, #16
	add	x2, sp, #8
	add	x3, sp, #28
	mov	x0, x20
	blr	x8
	ldp	x9, x8, [sp, #8]
	cmp	x8, x22
	ccmp	x9, x21, #0, eq
	b.eq	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w20, w20, #1
	cmp	w24, w20
	b.ne	LBB0_11
LBB0_13:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x21
	bl	_pr_debug
	b	LBB0_18
LBB0_14:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_15:
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_17:
	mov	x1, x20
	bl	_pr_warning
LBB0_18:
Lloh24:
	adrp	x0, _mtrr_mutex@GOTPAGE
Lloh25:
	ldr	x0, [x0, _mtrr_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	bl	_put_online_cpus
LBB0_19:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_mtrr_if,8,3                    ; @mtrr_if
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_num_var_ranges,4,2             ; @num_var_ranges
	.comm	_mtrr_mutex,4,2                 ; @mtrr_mutex
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mtrr: no MTRR for %lx000,%lx000 found\n"

l_.str.1:                               ; @.str.1
	.asciz	"mtrr: register: %d too big\n"

l_.str.2:                               ; @.str.2
	.asciz	"mtrr: MTRR %d not used\n"

	.comm	_mtrr_usage_table,8,3           ; @mtrr_usage_table
l_.str.3:                               ; @.str.3
	.asciz	"mtrr: reg: %d has count=0\n"

.subsections_via_symbols
