	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mptable_setup_cpus_handler
_mptable_setup_cpus_handler:            ## @mptable_setup_cpus_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$128, (%rdi)
	jne	LBB0_4
## %bb.1:
	movq	_PROCENTRY_FLAG_EN@GOTPCREL(%rip), %rax
	testb	$-128, (%rax)
	je	LBB0_4
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movq	_PROCENTRY_FLAG_BP@GOTPCREL(%rip), %rax
	movl	$128, %esi
	andl	(%rax), %esi
	callq	_lapic_create
	movq	8(%rbx), %rcx
	movq	_MAX_LAPIC_ID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jae	LBB0_4
## %bb.3:
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rax
	orq	%rax, (%r14)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PROCENTRY_FLAG_EN,4,2          ## @PROCENTRY_FLAG_EN
	.comm	_PROCENTRY_FLAG_BP,4,2          ## @PROCENTRY_FLAG_BP
	.comm	_MAX_LAPIC_ID,8,3               ## @MAX_LAPIC_ID
	.no_dead_strip	_mptable_setup_cpus_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mptable_setup_cpus_handler
_mptable_setup_cpus_handler:            ; @mptable_setup_cpus_handler
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _PROCENTRY_FLAG_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PROCENTRY_FLAG_EN@GOTPAGEOFF]
	ldrb	w8, [x8]
	tbz	w8, #7, LBB0_4
; %bb.2:
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x0, #8]
Lloh2:
	adrp	x8, _PROCENTRY_FLAG_BP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PROCENTRY_FLAG_BP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w1, w8, #0x80
	bl	_lapic_create
	ldr	x8, [x20, #8]
Lloh5:
	adrp	x9, _MAX_LAPIC_ID@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAX_LAPIC_ID@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_4
; %bb.3:
	mov	w9, #1
	lsl	x8, x9, x8
	ldr	x9, [x19]
	orr	x8, x9, x8
	str	x8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PROCENTRY_FLAG_EN,4,2          ; @PROCENTRY_FLAG_EN
	.comm	_PROCENTRY_FLAG_BP,4,2          ; @PROCENTRY_FLAG_BP
	.comm	_MAX_LAPIC_ID,8,3               ; @MAX_LAPIC_ID
	.no_dead_strip	_mptable_setup_cpus_handler
.subsections_via_symbols
