	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tlb1_iomapped
_tlb1_iomapped:                         ## @tlb1_iomapped
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movl	%edi, %esi
	movl	$0, (%rcx)
	leaq	-32(%rbp), %rdi
	callq	_tlb1_read_entry
	movl	-32(%rbp), %ebx
	movq	_MAS1_VALID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.1:
	movl	-28(%rbp), %eax
	movq	_MAS2_I@GOTPCREL(%rip), %rcx
	movq	_MAS2_G@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%eax
	testl	%eax, %edx
	jne	LBB0_4
## %bb.2:
	movl	-24(%rbp), %eax
	movq	_MAS3_SR@GOTPCREL(%rip), %rcx
	movq	_MAS3_SW@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%eax
	testl	%eax, %edx
	jne	LBB0_4
## %bb.3:
	movq	_MAS1_TSIZE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_MAS1_TSIZE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrl	%cl, %ebx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	callq	_KASSERT
	movl	%ebx, %edi
	callq	_tsize2size
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_4:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAS1_VALID,4,2                 ## @MAS1_VALID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAS2_I,4,2                     ## @MAS2_I
	.comm	_MAS2_G,4,2                     ## @MAS2_G
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_MAS3_SR,4,2                    ## @MAS3_SR
	.comm	_MAS3_SW,4,2                    ## @MAS3_SW
	.comm	_MAS1_TSIZE_MASK,4,2            ## @MAS1_TSIZE_MASK
	.comm	_MAS1_TSIZE_SHIFT,4,2           ## @MAS1_TSIZE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tlb1_iomapped: invalid entry tsize"

	.comm	_MAS7_RPN,4,2                   ## @MAS7_RPN
	.comm	_MAS3_RPN,4,2                   ## @MAS3_RPN
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_MAS2_EPN_MASK,4,2              ## @MAS2_EPN_MASK
	.no_dead_strip	_tlb1_iomapped
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tlb1_iomapped
_tlb1_iomapped:                         ; @tlb1_iomapped
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x1, x0
	str	wzr, [x3]
	add	x0, sp, #8
	bl	_tlb1_read_entry
	ldr	w8, [sp, #8]
Lloh0:
	adrp	x9, _MAS1_VALID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAS1_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	ldr	w9, [sp, #12]
Lloh3:
	adrp	x10, _MAS2_I@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MAS2_I@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _MAS2_G@GOTPAGE
Lloh7:
	ldr	x11, [x11, _MAS2_G@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w10, w11, w10
	bics	wzr, w10, w9
	b.ne	LBB0_4
; %bb.2:
	ldr	w9, [sp, #16]
Lloh9:
	adrp	x10, _MAS3_SR@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MAS3_SR@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _MAS3_SW@GOTPAGE
Lloh13:
	ldr	x11, [x11, _MAS3_SW@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	orr	w10, w11, w10
	bics	wzr, w10, w9
	b.ne	LBB0_4
; %bb.3:
Lloh15:
	adrp	x9, _MAS1_TSIZE_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MAS1_TSIZE_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh18:
	adrp	x9, _MAS1_TSIZE_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MAS1_TSIZE_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	lsr	w19, w8, w9
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_KASSERT
	mov	x0, x19
	bl	_tsize2size
	mov	w0, #0
	b	LBB0_7
LBB0_4:
Lloh23:
	adrp	x8, _EPERM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MAS1_VALID,4,2                 ; @MAS1_VALID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAS2_I,4,2                     ; @MAS2_I
	.comm	_MAS2_G,4,2                     ; @MAS2_G
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_MAS3_SR,4,2                    ; @MAS3_SR
	.comm	_MAS3_SW,4,2                    ; @MAS3_SW
	.comm	_MAS1_TSIZE_MASK,4,2            ; @MAS1_TSIZE_MASK
	.comm	_MAS1_TSIZE_SHIFT,4,2           ; @MAS1_TSIZE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tlb1_iomapped: invalid entry tsize"

	.comm	_MAS7_RPN,4,2                   ; @MAS7_RPN
	.comm	_MAS3_RPN,4,2                   ; @MAS3_RPN
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_MAS2_EPN_MASK,4,2              ; @MAS2_EPN_MASK
	.no_dead_strip	_tlb1_iomapped
.subsections_via_symbols
