	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isa_dmarangecheck
_isa_dmarangecheck:                     ## @isa_dmarangecheck
	.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
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r15
	xorl	%r12d, %r12d
	testb	$4, %dl
	sete	%bl
	addl	%esi, %edi
	callq	_round_page
	movslq	%eax, %r13
	xorl	%eax, %eax
	cmpq	%r15, %r13
	jle	LBB0_10
## %bb.1:
	movb	%bl, %r12b
	orl	$-2, %r12d
	shll	$16, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%rcx, %r15
	movq	%rbx, %r14
	cmpq	%r13, %r15
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_pmap_extract
	movl	%eax, %edi
	callq	_trunc_page
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_panic
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %eax
	movq	_ISARAM_END@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	jge	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%r14, %r14
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rcx,%r14), %rdx
	cmpq	%rbx, %rdx
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %r14d
	testl	%r14d, %r12d
	je	LBB0_8
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kernel_pmap,4,2                ## @kernel_pmap
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"isa_dmacheck: no physical page present"

	.comm	_ISARAM_END,8,3                 ## @ISARAM_END
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.no_dead_strip	_isa_dmarangecheck
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isa_dmarangecheck
_isa_dmarangecheck:                     ; @isa_dmarangecheck
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	tst	w2, #0x4
	mov	w8, #-131072
	mov	w9, #-65536
	csel	w22, w9, w8, eq
	add	w0, w19, w1
	bl	_round_page
	sxtw	x23, w0
	cmp	x23, x19
	b.le	LBB0_10
; %bb.1:
	mov	x27, #0
Lloh0:
	adrp	x24, _kernel_pmap@GOTPAGE
Lloh1:
	ldr	x24, [x24, _kernel_pmap@GOTPAGEOFF]
Lloh2:
	adrp	x25, _ISARAM_END@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ISARAM_END@GOTPAGEOFF]
Lloh4:
	adrp	x20, l_.str@PAGE
Lloh5:
	add	x20, x20, l_.str@PAGEOFF
Lloh6:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x8, x19
	cmp	x19, x23
	mov	x27, x21
	b.ge	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	mov	x1, x19
	bl	_pmap_extract
	bl	_trunc_page
	mov	x21, x0
	cbnz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_panic
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25]
	cmp	x21, x8
	b.ge	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26]
	cbz	x27, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x8, x27
	cmp	x9, x21
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	eor	w9, w21, w27
	tst	w22, w9
	b.eq	LBB0_2
LBB0_9:
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_kernel_pmap,4,2                ; @kernel_pmap
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"isa_dmacheck: no physical page present"

	.comm	_ISARAM_END,8,3                 ; @ISARAM_END
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.no_dead_strip	_isa_dmarangecheck
.subsections_via_symbols
