	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PpcFindDevice                  ## -- Begin function PpcFindDevice
	.p2align	4, 0x90
_PpcFindDevice:                         ## @PpcFindDevice
	.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	%rcx, %r14
	movq	%rdx, %r13
	movl	%esi, %ebx
	movl	%edi, %r15d
	movl	%esi, %edi
	callq	_ofw_child
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	leaq	_PpcFindDevice.buf(%rip), %rdx
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movq	%rdx, %rbx
	movl	$256, %ecx                      ## imm = 0x100
	callq	_ofw_getprop
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%r14, %r14
	jne	LBB0_3
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_17
LBB0_3:
	testl	%r15d, %r15d
	jle	LBB0_11
## %bb.4:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$32, %edi
	callq	_PpcOfwPutChar
	decl	%ebx
	jne	LBB0_5
## %bb.6:
	cmpl	$1, %r15d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	jne	LBB0_11
## %bb.7:
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.8:
	testl	%eax, %eax
	movl	$42, %eax
	movl	$32, %esi
	cmovel	%eax, %esi
	leaq	L_.str.1(%rip), %rdi
	leaq	_PpcFindDevice.buf(%rip), %rdx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_printf
LBB0_10:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_11:
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_17
## %bb.12:
	testl	%r12d, %r12d
	je	LBB0_17
## %bb.13:
	incl	%r15d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movl	%r12d, %esi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_PpcFindDevice
	testl	%eax, %eax
	jne	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%r12d, %edi
	callq	_ofw_peer
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_17
LBB0_15:
	movl	%eax, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_PpcFindDevice.buf,256,4 ## @PpcFindDevice.buf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"name"

L_.str.1:                               ## @.str.1
	.asciz	"%c Name: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"- No name attribute for %x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PpcFindDevice                  ; -- Begin function PpcFindDevice
	.p2align	2
_PpcFindDevice:                         ; @PpcFindDevice
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
	mov	x0, x1
	bl	_ofw_child
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x24, _PpcFindDevice.buf@PAGE
Lloh3:
	add	x24, x24, _PpcFindDevice.buf@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	mov	w3, #256
	bl	_ofw_getprop
	mov	x26, x0
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x24
	mov	x1, x20
	bl	_strncmp
	mov	x25, x0
	cbnz	x19, LBB0_2
; %bb.1:
	cbz	w25, LBB0_17
LBB0_2:
	cmp	w22, #1
	b.lt	LBB0_10
; %bb.3:
	mov	x27, x22
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #32
	bl	_PpcOfwPutChar
	subs	w27, w27, #1
	b.ne	LBB0_4
; %bb.5:
	cmp	w22, #1
	b.ne	LBB0_10
; %bb.6:
	cmp	w26, #1
	b.lt	LBB0_8
; %bb.7:
	mov	w8, #32
	mov	w9, #42
	cmp	w25, #0
	csel	w1, w9, w8, eq
	str	x24, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x23
LBB0_9:
	bl	_printf
LBB0_10:
	mov	w23, #0
	cbz	w25, LBB0_17
; %bb.11:
	cbz	w21, LBB0_17
; %bb.12:
	add	w22, w22, #1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_PpcFindDevice
	cbnz	w0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x21
	bl	_ofw_peer
	mov	x21, x0
	cbnz	w0, LBB0_13
; %bb.15:
	mov	w23, #0
	b	LBB0_17
LBB0_16:
	mov	x23, x0
LBB0_17:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_PpcFindDevice.buf,256,0 ; @PpcFindDevice.buf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"name"

l_.str.1:                               ; @.str.1
	.asciz	"%c Name: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"- No name attribute for %x\n"

.subsections_via_symbols
