	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp_bootaddress                 ## -- Begin function mp_bootaddress
	.p2align	4, 0x90
_mp_bootaddress:                        ## @mp_bootaddress
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_alloc_ap_trampoline
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	(%r14), %r15d
	movq	_AP_BOOTPT_SZ@GOTPCREL(%rip), %r13
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	addl	$-2, %r15d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rax), %r15d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%r14, %r13
	ja	LBB0_17
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %eax
	leaq	(%rbx,%rax,8), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx,%rax,8), %rdi
	callq	_round_page
	movq	(%r13), %r12
	leal	1(%r15), %ecx
	testq	%r12, %r12
	jle	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r14
	addq	%rax, %r12
	cmpq	(%rbx,%rcx,8), %r12
	jg	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	callq	_is_mpboot_good
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_is_kernel_paddr
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	-1(%r12), %rdi
	callq	_is_kernel_paddr
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rcx, %r12
	movq	(%rbx,%rcx,8), %rdi
	callq	_trunc_page
	movq	%rax, %rbx
	movq	%r13, %r14
	movq	(%r13), %rax
	testq	%rax, %rax
	jle	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %r13
	subq	%rax, %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%rax), %r13
	jl	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_is_mpboot_good
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_is_kernel_paddr
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	decq	%rbx
	movq	%rbx, %rdi
	callq	_is_kernel_paddr
	testl	%eax, %eax
	jne	LBB0_16
## %bb.12:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax,%r12,8)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	movq	%r13, %r14
	jmp	LBB0_13
LBB0_17:
	movq	_boot_address@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_trunc_page
	subl	(%r13), %eax
	movq	_mptramp_pagetables@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_bootverbose@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_18
## %bb.19:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	movq	(%rbx,%rcx,8), %r13
LBB0_13:
	movq	_mptramp_pagetables@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	cmpq	%r13, %r12
	jne	LBB0_18
## %bb.14:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:
	leal	2(%r15), %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,8), %rsi
	subl	%r15d, %eax
	leal	16(,%rax,8), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_memmove
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	$-2, (%rax)
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AP_BOOTPT_SZ,8,3               ## @AP_BOOTPT_SZ
	.comm	_mptramp_pagetables,4,2         ## @mptramp_pagetables
	.comm	_boot_address,8,3               ## @boot_address
	.comm	_bootverbose,8,3                ## @bootverbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot find enough space for the initial AP page tables, placing them at %#x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp_bootaddress                 ; -- Begin function mp_bootaddress
	.p2align	2
_mp_bootaddress:                        ; @mp_bootaddress
	.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	x19, x1
	mov	x20, x0
	bl	_alloc_ap_trampoline
	ldr	w25, [x19]
Lloh0:
	adrp	x26, _AP_BOOTPT_SZ@GOTPAGE
Lloh1:
	ldr	x26, [x26, _AP_BOOTPT_SZ@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	w25, w25, #2
	ldr	w8, [x19]
	cmp	w25, w8
	b.hi	LBB0_13
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x21, x20, w25, uxtw #3
	ldr	x0, [x21]
	bl	_round_page
	ldr	x8, [x26]
	add	w23, w25, #1
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	ldr	x9, [x20, x23, lsl #3]
	add	x24, x8, x0
	cmp	x24, x9
	b.gt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_is_mpboot_good
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_is_kernel_paddr
	cbnz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x0, x24, #1
	bl	_is_kernel_paddr
	cbz	w0, LBB0_15
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, x23, lsl #3]
	bl	_trunc_page
	ldr	x8, [x26]
	cmp	x8, #1
	b.lt	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	ldr	x9, [x21]
	sub	x23, x0, x8
	cmp	x23, x9
	b.lt	LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_is_mpboot_good
	cbz	x0, LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_is_kernel_paddr
	cbnz	w0, LBB0_1
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	x0, x22, #1
	bl	_is_kernel_paddr
	cbnz	w0, LBB0_1
; %bb.12:
	add	w8, w25, #1
	str	x23, [x20, w8, uxtw #3]
	ldr	x24, [x21]
	mov	x22, x23
	b	LBB0_16
LBB0_13:
Lloh2:
	adrp	x8, _boot_address@GOTPAGE
Lloh3:
	ldr	x8, [x8, _boot_address@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	bl	_trunc_page
	ldr	w8, [x26]
	sub	w1, w0, w8
Lloh5:
	adrp	x8, _mptramp_pagetables@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mptramp_pagetables@GOTPAGEOFF]
Lloh7:
	str	w1, [x8]
Lloh8:
	adrp	x8, _bootverbose@GOTPAGE
Lloh9:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_19
; %bb.14:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_printf
LBB0_15:
	add	w8, w25, #1
	str	x24, [x21]
	ldr	x23, [x20, w8, uxtw #3]
LBB0_16:
Lloh13:
	adrp	x8, _mptramp_pagetables@GOTPAGE
Lloh14:
	ldr	x8, [x8, _mptramp_pagetables@GOTPAGEOFF]
Lloh15:
	str	w22, [x8]
	cmp	x24, x23
	b.ne	LBB0_19
; %bb.17:
	ldr	w8, [x19]
	cbz	w8, LBB0_19
; %bb.18:
	add	w9, w25, #2
	add	x1, x20, w9, uxtw #3
	sub	w8, w8, w25
	lsl	w8, w8, #3
	add	w2, w8, #16
	mov	x0, x21
	bl	_memmove
	ldr	w8, [x19]
	sub	w8, w8, #2
	str	w8, [x19]
LBB0_19:
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AP_BOOTPT_SZ,8,3               ; @AP_BOOTPT_SZ
	.comm	_mptramp_pagetables,4,2         ; @mptramp_pagetables
	.comm	_boot_address,8,3               ; @boot_address
	.comm	_bootverbose,8,3                ; @bootverbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot find enough space for the initial AP page tables, placing them at %#x"

.subsections_via_symbols
