	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function powermac_smp_first_cpu
_powermac_smp_first_cpu:                ## @powermac_smp_first_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	%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	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%edi, %edi
	callq	_OF_peer
	movl	%eax, %edi
	callq	_OF_child
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %r15
	leaq	-56(%rbp), %r12
	leaq	L_.str.1(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_OF_peer
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	$8, %ecx
	callq	_OF_getprop
	testl	%eax, %eax
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	callq	_OF_finddevice
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_6
LBB0_7:
	movl	%ebx, %edi
	callq	_OF_child
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %r15
	leaq	-56(%rbp), %r12
	leaq	L_.str.4(%rip), %r13
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%ebx, %edi
	callq	_OF_peer
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	$8, %ecx
	callq	_OF_getprop
	testl	%eax, %eax
	jle	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_11
## %bb.12:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_powermac_smp_fill_cpuref
	jmp	LBB0_13
LBB0_6:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"name"

L_.str.1:                               ## @.str.1
	.asciz	"cpus"

L_.str.2:                               ## @.str.2
	.asciz	"/cpus"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.3:                               ## @.str.3
	.asciz	"device_type"

L_.str.4:                               ## @.str.4
	.asciz	"cpu"

	.no_dead_strip	_powermac_smp_first_cpu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function powermac_smp_first_cpu
_powermac_smp_first_cpu:                ; @powermac_smp_first_cpu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	mov	w0, #0
	bl	_OF_peer
	bl	_OF_child
	cbz	w0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
Lloh5:
	adrp	x22, l_.str.1@PAGE
Lloh6:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_OF_peer
	mov	x20, x0
	cbz	w0, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x2, sp
	mov	x0, x20
	mov	x1, x21
	mov	w3, #8
	bl	_OF_getprop
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, sp
	mov	x1, x22
	bl	_strcmp
	cbnz	x0, LBB0_2
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_OF_finddevice
	mov	x20, x0
	cmn	w0, #1
	b.eq	LBB0_12
LBB0_6:
	mov	x0, x20
	bl	_OF_child
	cbz	w0, LBB0_12
; %bb.7:
	mov	x20, x0
Lloh9:
	adrp	x21, l_.str.3@PAGE
Lloh10:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh11:
	adrp	x22, l_.str.4@PAGE
Lloh12:
	add	x22, x22, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	bl	_OF_peer
	mov	x20, x0
	cbz	w0, LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x2, sp
	mov	x0, x20
	mov	x1, x21
	mov	w3, #8
	bl	_OF_getprop
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, sp
	mov	x1, x22
	bl	_strcmp
	cbnz	x0, LBB0_8
; %bb.11:
	mov	x0, x19
	mov	x1, x20
	bl	_powermac_smp_fill_cpuref
	b	LBB0_13
LBB0_12:
Lloh13:
	adrp	x8, _ENOENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_13:
	ldr	x8, [sp, #8]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"name"

l_.str.1:                               ; @.str.1
	.asciz	"cpus"

l_.str.2:                               ; @.str.2
	.asciz	"/cpus"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.3:                               ; @.str.3
	.asciz	"device_type"

l_.str.4:                               ; @.str.4
	.asciz	"cpu"

	.no_dead_strip	_powermac_smp_first_cpu
.subsections_via_symbols
