	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __srmmu_get_nocache
___srmmu_get_nocache:                   ## @__srmmu_get_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	_SRMMU_NOCACHE_BITMAP_SHIFT@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	cmpl	%edi, %eax
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_printk
	movl	(%r12), %eax
	movl	%eax, %r15d
LBB0_2:
	decl	%eax
	testl	%r15d, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_printk
	movl	(%r12), %eax
	addl	%eax, %r15d
	decl	%r15d
LBB0_4:
	movq	_SRMMU_NOCACHE_ALIGN_MAX@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r14d, (%rax)
	setl	%dil
	callq	_BUG_ON
	movb	(%r12), %cl
	movl	%r15d, %esi
	sarl	%cl, %esi
	sarl	%cl, %r14d
	movq	_srmmu_nocache_map@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_bit_map_string_get
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.6:
	movb	(%r12), %cl
	shll	%cl, %eax
	movq	_SRMMU_NOCACHE_VADDR@GOTPCREL(%rip), %rcx
	movslq	%eax, %rbx
	addq	(%rcx), %rbx
	jmp	LBB0_7
LBB0_5:
	movq	_srmmu_nocache_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %eax
	movb	(%r12), %cl
	shll	%cl, %eax
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r15d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_printk
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SRMMU_NOCACHE_BITMAP_SHIFT,4,2 ## @SRMMU_NOCACHE_BITMAP_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Size 0x%x too small for nocache request\n"

L_.str.1:                               ## @.str.1
	.asciz	"Size 0x%x unaligned int nocache request\n"

	.comm	_SRMMU_NOCACHE_ALIGN_MAX,4,2    ## @SRMMU_NOCACHE_ALIGN_MAX
	.comm	_srmmu_nocache_map,4,2          ## @srmmu_nocache_map
L_.str.2:                               ## @.str.2
	.asciz	"srmmu: out of nocache %d: %d/%d\n"

	.comm	_srmmu_nocache_size,8,3         ## @srmmu_nocache_size
	.comm	_SRMMU_NOCACHE_VADDR,8,3        ## @SRMMU_NOCACHE_VADDR
	.no_dead_strip	___srmmu_get_nocache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __srmmu_get_nocache
___srmmu_get_nocache:                   ; @__srmmu_get_nocache
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _SRMMU_NOCACHE_BITMAP_SHIFT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SRMMU_NOCACHE_BITMAP_SHIFT@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w0
	b.le	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_printk
	ldr	w8, [x21]
	mov	x19, x8
LBB0_2:
	sub	w8, w8, #1
	tst	w8, w19
	b.eq	LBB0_4
; %bb.3:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_printk
	ldr	w8, [x21]
	add	w8, w19, w8
	sub	w19, w8, #1
LBB0_4:
Lloh6:
	adrp	x8, _SRMMU_NOCACHE_ALIGN_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SRMMU_NOCACHE_ALIGN_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w20
	cset	w0, lt
	bl	_BUG_ON
	ldr	w8, [x21]
	asr	w1, w19, w8
	asr	w2, w20, w8
Lloh9:
	adrp	x20, _srmmu_nocache_map@GOTPAGE
Lloh10:
	ldr	x20, [x20, _srmmu_nocache_map@GOTPAGEOFF]
	mov	x0, x20
	bl	_bit_map_string_get
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _SRMMU_NOCACHE_VADDR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SRMMU_NOCACHE_VADDR@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w9, [x21]
	lsl	w9, w0, w9
	add	x0, x8, w9, sxtw
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, _srmmu_nocache_size@GOTPAGE
Lloh15:
	ldr	x8, [x8, _srmmu_nocache_size@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	w9, [x20]
	ldr	w10, [x21]
	lsl	w9, w9, w10
	stp	x8, x9, [sp]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_printk
	mov	x0, #0
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SRMMU_NOCACHE_BITMAP_SHIFT,4,2 ; @SRMMU_NOCACHE_BITMAP_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Size 0x%x too small for nocache request\n"

l_.str.1:                               ; @.str.1
	.asciz	"Size 0x%x unaligned int nocache request\n"

	.comm	_SRMMU_NOCACHE_ALIGN_MAX,4,2    ; @SRMMU_NOCACHE_ALIGN_MAX
	.comm	_srmmu_nocache_map,4,2          ; @srmmu_nocache_map
l_.str.2:                               ; @.str.2
	.asciz	"srmmu: out of nocache %d: %d/%d\n"

	.comm	_srmmu_nocache_size,8,3         ; @srmmu_nocache_size
	.comm	_SRMMU_NOCACHE_VADDR,8,3        ; @SRMMU_NOCACHE_VADDR
	.no_dead_strip	___srmmu_get_nocache
.subsections_via_symbols
