	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc85xx_smp_next_cpu
_mpc85xx_smp_next_cpu:                  ## @mpc85xx_smp_next_cpu
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rax
	movq	_cpu@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	_maxcpu@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rsi
	jge	LBB0_1
## %bb.2:
	leaq	1(%rsi), %rdx
	movq	%rdx, (%rcx)
	movl	%esi, (%rax)
	movl	%esi, 4(%rax)
	movq	_bootverbose@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_printf
	jmp	LBB0_4
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu,8,3                        ## @cpu
	.comm	_maxcpu,8,3                     ## @maxcpu
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_bootverbose,8,3                ## @bootverbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"powerpc_smp_next_cpu: cpuid %d\n"

	.no_dead_strip	_mpc85xx_smp_next_cpu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc85xx_smp_next_cpu
_mpc85xx_smp_next_cpu:                  ; @mpc85xx_smp_next_cpu
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x1
Lloh0:
	adrp	x9, _cpu@GOTPAGE
Lloh1:
	ldr	x9, [x9, _cpu@GOTPAGEOFF]
	ldr	x1, [x9]
Lloh2:
	adrp	x10, _maxcpu@GOTPAGE
Lloh3:
	ldr	x10, [x10, _maxcpu@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x1, x10
	b.ge	LBB0_4
; %bb.1:
	add	x10, x1, #1
	str	x10, [x9]
	stp	w1, w1, [x8]
Lloh5:
	adrp	x8, _bootverbose@GOTPAGE
Lloh6:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_printf
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh10:
	adrp	x8, _ENOENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu,8,3                        ; @cpu
	.comm	_maxcpu,8,3                     ; @maxcpu
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_bootverbose,8,3                ; @bootverbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"powerpc_smp_next_cpu: cpuid %d\n"

	.no_dead_strip	_mpc85xx_smp_next_cpu
.subsections_via_symbols
