	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srmmu_free_nocache
_srmmu_free_nocache:                    ## @srmmu_free_nocache
	.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	%esi, %r14d
	movq	%rdi, %rbx
	movq	_SRMMU_NOCACHE_VADDR@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	cmpq	%rdi, %rdx
	jbe	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printk
	xorl	%eax, %eax
	callq	_BUG
LBB0_2:
	movslq	%r14d, %r15
	leaq	(%r15,%rbx), %rax
	movq	_srmmu_nocache_end@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	jbe	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printk
	xorl	%eax, %eax
	callq	_BUG
LBB0_4:
	movl	%r14d, %edi
	callq	_is_power_of_2
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_printk
	xorl	%eax, %eax
	callq	_BUG
LBB0_6:
	movq	_SRMMU_NOCACHE_BITMAP_SHIFT@GOTPCREL(%rip), %r13
	cmpl	%r14d, (%r13)
	jle	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_printk
	xorl	%eax, %eax
	callq	_BUG
LBB0_8:
	leal	-1(%r14), %eax
	cltq
	testq	%rbx, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_printk
	xorl	%eax, %eax
	callq	_BUG
LBB0_10:
	subq	(%r12), %rbx
	movb	(%r13), %cl
	shrq	%cl, %rbx
	sarl	%cl, %r14d
	movq	_srmmu_nocache_map@GOTPCREL(%rip), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bit_map_clear                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SRMMU_NOCACHE_VADDR,8,3        ## @SRMMU_NOCACHE_VADDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Vaddr %lx is smaller than nocache base 0x%lx\n"

	.comm	_srmmu_nocache_end,8,3          ## @srmmu_nocache_end
L_.str.1:                               ## @.str.1
	.asciz	"Vaddr %lx is bigger than nocache end 0x%lx\n"

L_.str.2:                               ## @.str.2
	.asciz	"Size 0x%x is not a power of 2\n"

	.comm	_SRMMU_NOCACHE_BITMAP_SHIFT,4,2 ## @SRMMU_NOCACHE_BITMAP_SHIFT
L_.str.3:                               ## @.str.3
	.asciz	"Size 0x%x is too small\n"

L_.str.4:                               ## @.str.4
	.asciz	"Vaddr %lx is not aligned to size 0x%x\n"

	.comm	_srmmu_nocache_map,4,2          ## @srmmu_nocache_map
	.no_dead_strip	_srmmu_free_nocache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srmmu_free_nocache
_srmmu_free_nocache:                    ; @srmmu_free_nocache
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _SRMMU_NOCACHE_VADDR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SRMMU_NOCACHE_VADDR@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, x0
	b.ls	LBB0_2
; %bb.1:
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_printk
	bl	_BUG
LBB0_2:
	sxtw	x21, w19
Lloh4:
	adrp	x8, _srmmu_nocache_end@GOTPAGE
Lloh5:
	ldr	x8, [x8, _srmmu_nocache_end@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	add	x9, x21, x20
	cmp	x9, x8
	b.ls	LBB0_4
; %bb.3:
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_printk
	bl	_BUG
LBB0_4:
	mov	x0, x19
	bl	_is_power_of_2
	cbnz	w0, LBB0_6
; %bb.5:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_printk
	bl	_BUG
LBB0_6:
Lloh11:
	adrp	x23, _SRMMU_NOCACHE_BITMAP_SHIFT@GOTPAGE
Lloh12:
	ldr	x23, [x23, _SRMMU_NOCACHE_BITMAP_SHIFT@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w19
	b.le	LBB0_8
; %bb.7:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	bl	_printk
	bl	_BUG
LBB0_8:
	sub	w8, w19, #1
	sxtw	x8, w8
	tst	x8, x20
	b.eq	LBB0_10
; %bb.9:
	mov	x8, x19
	str	x8, [sp]
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	bl	_printk
	bl	_BUG
LBB0_10:
	ldr	x8, [x22]
	sub	x8, x20, x8
	ldr	w9, [x23]
	lsr	x1, x8, x9
	asr	w2, w19, w9
Lloh17:
	adrp	x0, _srmmu_nocache_map@GOTPAGE
Lloh18:
	ldr	x0, [x0, _srmmu_nocache_map@GOTPAGEOFF]
                                        ; kill: def $w1 killed $w1 killed $x1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_bit_map_clear
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SRMMU_NOCACHE_VADDR,8,3        ; @SRMMU_NOCACHE_VADDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Vaddr %lx is smaller than nocache base 0x%lx\n"

	.comm	_srmmu_nocache_end,8,3          ; @srmmu_nocache_end
l_.str.1:                               ; @.str.1
	.asciz	"Vaddr %lx is bigger than nocache end 0x%lx\n"

l_.str.2:                               ; @.str.2
	.asciz	"Size 0x%x is not a power of 2\n"

	.comm	_SRMMU_NOCACHE_BITMAP_SHIFT,4,2 ; @SRMMU_NOCACHE_BITMAP_SHIFT
l_.str.3:                               ; @.str.3
	.asciz	"Size 0x%x is too small\n"

l_.str.4:                               ; @.str.4
	.asciz	"Vaddr %lx is not aligned to size 0x%x\n"

	.comm	_srmmu_nocache_map,4,2          ; @srmmu_nocache_map
	.no_dead_strip	_srmmu_free_nocache
.subsections_via_symbols
