	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srmmu_nocache_calcsize
_srmmu_nocache_calcsize:                ## @srmmu_nocache_calcsize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	callq	_probe_memory
	movl	%eax, %ecx
	leal	1023(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$10, %eax
	movslq	%eax, %rcx
	movq	_SRMMU_NOCACHE_ALCRATIO@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	%rcx, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_3
LBB0_1:
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	shrq	$2, %rax
	andl	$-256, %eax
	movq	_SRMMU_MIN_NOCACHE_PAGES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovlel	%ecx, %eax
	movq	_SRMMU_MAX_NOCACHE_PAGES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovgel	%ecx, %eax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cltq
	imulq	%rcx, %rax
	movq	_srmmu_nocache_size@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_SRMMU_NOCACHE_VADDR@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	_srmmu_nocache_end@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SRMMU_NOCACHE_ALCRATIO,8,3     ## @SRMMU_NOCACHE_ALCRATIO
	.comm	_SRMMU_MIN_NOCACHE_PAGES,4,2    ## @SRMMU_MIN_NOCACHE_PAGES
	.comm	_SRMMU_MAX_NOCACHE_PAGES,4,2    ## @SRMMU_MAX_NOCACHE_PAGES
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_srmmu_nocache_size,4,2         ## @srmmu_nocache_size
	.comm	_SRMMU_NOCACHE_VADDR,8,3        ## @SRMMU_NOCACHE_VADDR
	.comm	_srmmu_nocache_end,8,3          ## @srmmu_nocache_end
	.no_dead_strip	_srmmu_nocache_calcsize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srmmu_nocache_calcsize
_srmmu_nocache_calcsize:                ; @srmmu_nocache_calcsize
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_probe_memory
	add	w8, w0, #1023
	cmp	w0, #0
	csel	w8, w8, w0, lt
Lloh0:
	adrp	x9, _SRMMU_NOCACHE_ALCRATIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SRMMU_NOCACHE_ALCRATIO@GOTPAGEOFF]
	sbfx	x8, x8, #10, #22
Lloh2:
	ldr	x9, [x9]
	udiv	x8, x8, x9
	lsr	x8, x8, #2
Lloh3:
	adrp	x9, _SRMMU_MIN_NOCACHE_PAGES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SRMMU_MIN_NOCACHE_PAGES@GOTPAGEOFF]
	and	w8, w8, #0xffffff00
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w8, w8, w9, gt
Lloh6:
	adrp	x9, _SRMMU_MAX_NOCACHE_PAGES@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SRMMU_MAX_NOCACHE_PAGES@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w8, w8, w9, lt
Lloh9:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh11:
	ldrsw	x9, [x9]
	sxtw	x8, w8
	mul	x8, x8, x9
Lloh12:
	adrp	x9, _srmmu_nocache_size@GOTPAGE
Lloh13:
	ldr	x9, [x9, _srmmu_nocache_size@GOTPAGEOFF]
Lloh14:
	adrp	x10, _SRMMU_NOCACHE_VADDR@GOTPAGE
Lloh15:
	ldr	x10, [x10, _SRMMU_NOCACHE_VADDR@GOTPAGEOFF]
Lloh16:
	str	w8, [x9]
Lloh17:
	ldr	x9, [x10]
	add	x8, x9, x8
Lloh18:
	adrp	x9, _srmmu_nocache_end@GOTPAGE
Lloh19:
	ldr	x9, [x9, _srmmu_nocache_end@GOTPAGEOFF]
Lloh20:
	str	x8, [x9]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SRMMU_NOCACHE_ALCRATIO,8,3     ; @SRMMU_NOCACHE_ALCRATIO
	.comm	_SRMMU_MIN_NOCACHE_PAGES,4,2    ; @SRMMU_MIN_NOCACHE_PAGES
	.comm	_SRMMU_MAX_NOCACHE_PAGES,4,2    ; @SRMMU_MAX_NOCACHE_PAGES
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_srmmu_nocache_size,4,2         ; @srmmu_nocache_size
	.comm	_SRMMU_NOCACHE_VADDR,8,3        ; @SRMMU_NOCACHE_VADDR
	.comm	_srmmu_nocache_end,8,3          ; @srmmu_nocache_end
	.no_dead_strip	_srmmu_nocache_calcsize
.subsections_via_symbols
