	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd_validate_add_page
_amd_validate_add_page:                 ## @amd_validate_add_page
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MTRR_TYPE_WRCOMB@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jb	LBB0_5
## %bb.1:
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	$17, %cl
	subb	(%rax), %cl
	movl	$1, %edx
	shll	%cl, %edx
	leaq	-1(%rsi), %rax
	testq	%rax, %rsi
	jne	LBB0_5
## %bb.2:
	movslq	%edx, %rcx
	cmpq	%rsi, %rcx
	ja	LBB0_5
## %bb.3:
	testq	%rdi, %rax
	je	LBB0_4
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTRR_TYPE_WRCOMB,4,2           ## @MTRR_TYPE_WRCOMB
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_amd_validate_add_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd_validate_add_page
_amd_validate_add_page:                 ; @amd_validate_add_page
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MTRR_TYPE_WRCOMB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTRR_TYPE_WRCOMB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.lo	LBB0_4
; %bb.1:
	sub	x8, x1, #1
	tst	x1, x8
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	w10, #17
	sub	w9, w10, w9
	mov	w10, #1
	lsl	w9, w10, w9
	sxtw	x9, w9
	cmp	x9, x1
	b.hi	LBB0_4
; %bb.3:
	tst	x8, x0
	b.eq	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_5:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MTRR_TYPE_WRCOMB,4,2           ; @MTRR_TYPE_WRCOMB
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_amd_validate_add_page
.subsections_via_symbols
