	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__set_memory_array              ## -- Begin function _set_memory_array
	.p2align	4, 0x90
__set_memory_array:                     ## @_set_memory_array
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movl	%esi, %r15d
	movq	%rdi, %r12
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r14,8), %rdi
	callq	___pa
	movq	%rax, %rbx
	movq	(%r12,%r14,8), %rdi
	callq	___pa
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r13, %rbx
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_reserve_memtype
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	cmpq	%r14, %r15
	movq	%rbx, %r13
	jne	LBB0_3
## %bb.5:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %r14d
	jmp	LBB0_6
LBB0_1:
	movq	%r13, %rbx
	xorl	%r14d, %r14d
LBB0_6:
	movq	__PAGE_CACHE_UC_MINUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	___pgprot
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_change_page_attr_set
	testl	%eax, %eax
	je	LBB0_7
LBB0_9:
	movl	%eax, %r13d
LBB0_10:
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.11:
	movl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx,8), %rdi
	callq	___pa
	movq	%rax, %r15
	movq	(%r12,%rbx,8), %rdi
	callq	___pa
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_free_memtype
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_12
LBB0_13:
	movl	%r13d, %ecx
LBB0_14:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	__PAGE_CACHE_WC@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	%rbx, (%rax)
	jne	LBB0_14
## %bb.8:
	movq	%rbx, %rdi
	callq	___pgprot
	movl	%eax, %r13d
	movq	__PAGE_CACHE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	___pgprot
	movq	_CPA_ARRAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	$0, (%rsp)
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_change_page_attr_set_clr
	xorl	%ecx, %ecx
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	__PAGE_CACHE_UC_MINUS,8,3       ## @_PAGE_CACHE_UC_MINUS
	.comm	__PAGE_CACHE_WC,8,3             ## @_PAGE_CACHE_WC
	.comm	__PAGE_CACHE_MASK,8,3           ## @_PAGE_CACHE_MASK
	.comm	_CPA_ARRAY,4,2                  ## @CPA_ARRAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__set_memory_array              ; -- Begin function _set_memory_array
	.p2align	2
__set_memory_array:                     ; @_set_memory_array
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
	cmp	w1, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x24, #0
	mov	w25, w20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x26, x24, #3
	ldr	x0, [x19, x26]
	bl	___pa
	mov	x22, x0
	ldr	x0, [x19, x26]
	bl	___pa
	ldr	x8, [x23]
	add	x1, x8, x0
	mov	x0, x22
	mov	x2, x21
	mov	x3, #0
	bl	_reserve_memtype
	cbnz	w0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, #1
	cmp	x25, x24
	b.ne	LBB0_2
; %bb.4:
	mov	x24, x20
	b	LBB0_6
LBB0_5:
	mov	w24, #0
LBB0_6:
Lloh2:
	adrp	x8, __PAGE_CACHE_UC_MINUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, __PAGE_CACHE_UC_MINUS@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	bl	___pgprot
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #1
	bl	_change_page_attr_set
	cbz	w0, LBB0_11
LBB0_7:
	mov	x22, x0
LBB0_8:
	cbz	w24, LBB0_14
; %bb.9:
	mov	w21, w24
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	bl	___pa
	mov	x20, x0
	ldr	x0, [x19], #8
	bl	___pa
	ldr	x8, [x23]
	add	x1, x8, x0
	mov	x0, x20
	bl	_free_memtype
	subs	x21, x21, #1
	b.ne	LBB0_10
	b	LBB0_14
LBB0_11:
Lloh5:
	adrp	x8, __PAGE_CACHE_WC@GOTPAGE
Lloh6:
	ldr	x8, [x8, __PAGE_CACHE_WC@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x21
	bl	___pgprot
	mov	x21, x0
Lloh8:
	adrp	x8, __PAGE_CACHE_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, __PAGE_CACHE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
	bl	___pgprot
	mov	x3, x0
Lloh11:
	adrp	x8, _CPA_ARRAY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CPA_ARRAY@GOTPAGEOFF]
Lloh13:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w4, #0
	mov	x6, #0
	bl	_change_page_attr_set_clr
	mov	x22, x0
	cbnz	w0, LBB0_8
	b	LBB0_14
LBB0_13:
	mov	w22, #0
LBB0_14:
	mov	x0, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	__PAGE_CACHE_UC_MINUS,8,3       ; @_PAGE_CACHE_UC_MINUS
	.comm	__PAGE_CACHE_WC,8,3             ; @_PAGE_CACHE_WC
	.comm	__PAGE_CACHE_MASK,8,3           ; @_PAGE_CACHE_MASK
	.comm	_CPA_ARRAY,4,2                  ; @CPA_ARRAY
.subsections_via_symbols
