	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_up_temporary_mappings
_set_up_temporary_mappings:             ## @set_up_temporary_mappings
	.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
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_safe_page
	movq	%rax, %rbx
	movq	_temp_level4_pgt@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	___START_KERNEL_map@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_pgd_index
	cltq
	leaq	(%rbx,%rax,4), %r15
	movq	_init_level4_pgt@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%r14), %rdi
	callq	_pgd_index
	cltq
	movl	(%rbx,%rax,4), %esi
	movq	%r15, %rdi
	callq	_set_pgd
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_pfn_to_kaddr
	movq	%rax, %r12
	movq	_max_pfn@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pfn_to_kaddr
	cmpq	%rax, %r12
	jae	LBB0_9
## %bb.3:
	movq	%rax, %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_safe_page
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r13
	movq	_PGDIR_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	addq	%r12, %r15
	cmpq	%r14, %r15
	movq	%r14, %rbx
	cmovbq	%r15, %rbx
	movq	%r12, %rdi
	callq	___pa
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	___pa
	movq	%r13, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_res_phys_pud_init
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_temp_level4_pgt@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_pgd_index
	cltq
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r12
	movq	%r13, %rdi
	callq	___pa
	movl	%eax, %edi
	callq	_mk_kernel_pgd
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_set_pgd
	movq	%rbx, %r12
	cmpq	%r15, %r14
	ja	LBB0_4
## %bb.8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%eax, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_temp_level4_pgt,8,3            ## @temp_level4_pgt
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	___START_KERNEL_map,8,3         ## @__START_KERNEL_map
	.comm	_init_level4_pgt,8,3            ## @init_level4_pgt
	.comm	_max_pfn,4,2                    ## @max_pfn
	.comm	_PGDIR_SIZE,8,3                 ## @PGDIR_SIZE
	.no_dead_strip	_set_up_temporary_mappings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_up_temporary_mappings
_set_up_temporary_mappings:             ; @set_up_temporary_mappings
	.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
Lloh0:
	adrp	x24, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_get_safe_page
Lloh2:
	adrp	x25, _temp_level4_pgt@GOTPAGE
Lloh3:
	ldr	x25, [x25, _temp_level4_pgt@GOTPAGEOFF]
	str	x0, [x25]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
Lloh4:
	adrp	x20, ___START_KERNEL_map@GOTPAGE
Lloh5:
	ldr	x20, [x20, ___START_KERNEL_map@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_pgd_index
	add	x19, x19, w0, sxtw #2
Lloh6:
	adrp	x8, _init_level4_pgt@GOTPAGE
Lloh7:
	ldr	x8, [x8, _init_level4_pgt@GOTPAGEOFF]
Lloh8:
	ldr	x21, [x8]
	ldr	x0, [x20]
	bl	_pgd_index
	ldr	w1, [x21, w0, sxtw #2]
	mov	x0, x19
	bl	_set_pgd
	mov	w0, #0
	bl	_pfn_to_kaddr
	mov	x20, x0
Lloh9:
	adrp	x8, _max_pfn@GOTPAGE
Lloh10:
	ldr	x8, [x8, _max_pfn@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_pfn_to_kaddr
	mov	x19, x0
	mov	w0, #0
	cmp	x20, x19
	b.hs	LBB0_8
; %bb.2:
Lloh12:
	adrp	x26, _PGDIR_SIZE@GOTPAGE
Lloh13:
	ldr	x26, [x26, _PGDIR_SIZE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	bl	_get_safe_page
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	ldr	x8, [x26]
	add	x27, x8, x20
	cmp	x27, x19
	csel	x21, x27, x19, lo
	mov	x0, x20
	bl	___pa
	mov	x23, x0
	mov	x0, x21
	bl	___pa
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_res_phys_pud_init
	cbnz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x23, [x25]
	mov	x0, x20
	bl	_pgd_index
	add	x20, x23, w0, sxtw #2
	mov	x0, x22
	bl	___pa
	bl	_mk_kernel_pgd
	mov	x1, x0
	mov	x0, x20
	bl	_set_pgd
	mov	x20, x21
	cmp	x19, x27
	b.hi	LBB0_3
; %bb.6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_temp_level4_pgt,8,3            ; @temp_level4_pgt
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	___START_KERNEL_map,8,3         ; @__START_KERNEL_map
	.comm	_init_level4_pgt,8,3            ; @init_level4_pgt
	.comm	_max_pfn,4,2                    ; @max_pfn
	.comm	_PGDIR_SIZE,8,3                 ; @PGDIR_SIZE
	.no_dead_strip	_set_up_temporary_mappings
.subsections_via_symbols
