	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arm_physmem_exclude_region     ## -- Begin function arm_physmem_exclude_region
	.p2align	4, 0x90
_arm_physmem_exclude_region:            ## @arm_physmem_exclude_region
	.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	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_trunc_page
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_trunc_page
	movq	%rax, %r12
	addq	%r15, %rbx
	subq	%r13, %rbx
	movq	%rbx, %rdi
	callq	_round_page
	movq	%rax, %r15
	movq	_excnt@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r14
	movq	_exregions@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_nitems
	cmpq	%rax, %r14
	jl	LBB0_2
## %bb.1:
	leal	(%r15,%r12), %edx
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_panic
LBB0_2:
	movl	(%r13), %edi
	movq	(%rbx), %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_insert_region
	movq	%rax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_excnt,8,3                      ## @excnt
	.comm	_exregions,4,2                  ## @exregions
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to exclude region %#jx-%#jx"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arm_physmem_exclude_region     ; -- Begin function arm_physmem_exclude_region
	.p2align	2
_arm_physmem_exclude_region:            ; @arm_physmem_exclude_region
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_trunc_page
	mov	x23, x0
	mov	x0, x22
	bl	_trunc_page
	mov	x20, x0
	add	x8, x21, x22
	sub	x0, x8, x23
	bl	_round_page
	mov	x21, x0
Lloh0:
	adrp	x22, _excnt@GOTPAGE
Lloh1:
	ldr	x22, [x22, _excnt@GOTPAGEOFF]
	ldr	x24, [x22]
Lloh2:
	adrp	x23, _exregions@GOTPAGE
Lloh3:
	ldr	x23, [x23, _exregions@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_nitems
	cmp	x24, x0
	b.lt	LBB0_2
; %bb.1:
	add	w2, w21, w20
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_panic
LBB0_2:
	ldr	w0, [x23]
	ldr	x1, [x22]
	mov	x2, x20
	mov	x3, x21
	mov	x4, x19
	bl	_insert_region
	str	x0, [x22]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_excnt,8,3                      ; @excnt
	.comm	_exregions,4,2                  ; @exregions
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to exclude region %#jx-%#jx"

.subsections_via_symbols
