	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prom_finddevice                ## -- Begin function prom_finddevice
	.p2align	4, 0x90
_prom_finddevice:                       ## @prom_finddevice
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rsp, -208(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_prom_root_node@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_PROMREG_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	(,%rbx,8), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -200(%rbp)                ## 8-byte Spill
	cmpb	$0, (%r14)
	je	LBB0_29
## %bb.1:
	shll	$3, %ebx
	movq	%rbx, -216(%rbp)                ## 8-byte Spill
	leaq	-176(%rbp), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %r14
	testb	%al, %al
	je	LBB0_29
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
                                        ##     Child Loop BB0_25 Depth 2
	cmpb	$0, 1(%r14)
	je	LBB0_29
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%r14), %r13
	movl	%r12d, %edi
	callq	_prom_getchild
	movq	%r15, -184(%rbp)
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r13), %ecx
	testb	%cl, %cl
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpb	$47, %cl
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpb	$64, %cl
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	incq	%r13
	movq	-184(%rbp), %rdx
	leaq	1(%rdx), %rsi
	movq	%rsi, -184(%rbp)
	movb	%cl, (%rdx)
	decq	%rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-184(%rbp), %rcx
	movb	$0, (%rcx)
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_prom_searchsiblings
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r12d
	movb	(%r13), %al
	cmpb	$64, %al
	jne	LBB0_28
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movsbl	1(%r13), %edi
	callq	_isxdigit
	testq	%rax, %rax
	je	LBB0_25
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$44, 2(%r13)
	jne	LBB0_25
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	subq	%rbx, %r14
	leaq	2(%r14), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_simple_strtoul
	movl	%eax, -192(%rbp)                ## 4-byte Spill
	leaq	4(%r14), %rbx
	movq	%rbx, %rdi
	leaq	-184(%rbp), %rsi
	movl	$16, %edx
	callq	_simple_strtoul
	movl	%eax, -188(%rbp)                ## 4-byte Spill
	movq	-184(%rbp), %rax
	cmpq	%rax, %rbx
	je	LBB0_25
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movb	(%rax), %cl
	cmpb	$47, %cl
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	testb	%cl, %cl
	jne	LBB0_25
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$12, %r14
	cmpq	%r14, %rax
	ja	LBB0_25
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %eax
	decl	%eax
	cmpl	$-3, %eax
	movq	-200(%rbp), %r14                ## 8-byte Reload
	ja	LBB0_25
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %ebx
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	-216(%rbp), %rcx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_prom_getproperty
	testq	%rax, %rax
	jle	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	movl	-192(%rbp), %eax                ## 4-byte Reload
	cmpl	(%r14), %eax
	jne	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=2
	movl	-188(%rbp), %eax                ## 4-byte Reload
	cmpl	4(%r14), %eax
	je	LBB0_22
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=2
	movl	%ebx, %edi
	callq	_prom_getsibling
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=2
	movl	%eax, %edi
	callq	_prom_getsibling
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_prom_searchsiblings
	movl	%eax, %ebx
	decl	%eax
	cmpl	$-2, %eax
	jb	LBB0_19
	jmp	LBB0_25
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %r12d
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_25 Depth=2
	incq	%r13
LBB0_25:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r13), %eax
	testb	%al, %al
	je	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=2
	cmpb	$47, %al
	jne	LBB0_27
	jmp	LBB0_28
LBB0_9:
	xorl	%r12d, %r12d
LBB0_29:
	movq	-208(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.30:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_prom_root_node,4,2             ## @prom_root_node
	.comm	_PROMREG_MAX,4,2                ## @PROMREG_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prom_finddevice                ; -- Begin function prom_finddevice
	.p2align	2
_prom_finddevice:                       ; @prom_finddevice
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #160
	mov	x23, x0
	mov	x8, sp
	stur	x8, [x29, #-240]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _prom_root_node@GOTPAGE
Lloh4:
	ldr	x8, [x8, _prom_root_node@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
Lloh6:
	adrp	x8, _PROMREG_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PROMREG_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x8]
	lsl	x8, x12, #3
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x19, x9, x8
	mov	sp, x19
	ldrb	w8, [x0]
	cbz	w8, LBB0_27
; %bb.1:
	lsl	w20, w12, #3
	sub	x28, x29, #224
Lloh11:
	adrp	x22, l_.str@PAGE
Lloh12:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	w8, LBB0_27
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
                                        ;     Child Loop BB0_25 Depth 2
	ldrb	w8, [x23, #1]
	cbz	w8, LBB0_27
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_prom_getchild
	stur	x28, [x29, #-232]
	add	x24, x23, #12
	ldurb	w8, [x24, #-11]
	cbz	w8, LBB0_8
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w8, #47
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w8, #64
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	ldur	x9, [x29, #-232]
	add	x10, x9, #1
	stur	x10, [x29, #-232]
	strb	w8, [x9]
	add	x24, x24, #1
	ldurb	w8, [x24, #-11]
	cbnz	w8, LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldur	x8, [x29, #-232]
	strb	wzr, [x8]
	sub	x1, x29, #224
	bl	_prom_searchsiblings
	mov	x21, x0
	cbz	w0, LBB0_27
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x23, x24, #11
	ldrb	w8, [x23]
	cmp	w8, #64
	b.ne	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x24
	ldrsb	w0, [x25, #-10]!
	bl	_isxdigit
	cbz	x0, LBB0_25
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldurb	w8, [x24, #-9]
	cmp	w8, #44
	b.ne	LBB0_25
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	mov	x1, #0
	mov	w2, #16
	bl	_simple_strtoul
	mov	x27, x0
	sub	x26, x24, #8
	sub	x1, x29, #232
	mov	x0, x26
	mov	w2, #16
	bl	_simple_strtoul
	ldur	x8, [x29, #-232]
	cmp	x26, x8
	b.eq	LBB0_25
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
	ldrb	w9, [x8]
	cmp	w9, #47
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w9, LBB0_25
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x8, x24
	b.hi	LBB0_25
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	sub	w8, w21, #1
	cmn	w8, #3
	b.hi	LBB0_25
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x21
LBB0_18:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x26
	mov	x1, x22
	mov	x2, x19
	mov	x3, x20
	bl	_prom_getproperty
	cmp	x0, #1
	b.lt	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	w8, [x19]
	cmp	w27, w8
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	w8, [x19, #4]
	cmp	w25, w8
	b.eq	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_18 Depth=2
	mov	x0, x26
	bl	_prom_getsibling
	add	w8, w0, #1
	cmp	w8, #2
	b.lo	LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=2
	bl	_prom_getsibling
	sub	x1, x29, #224
	bl	_prom_searchsiblings
	mov	x26, x0
	sub	w8, w0, #1
	cmn	w8, #2
	b.lo	LBB0_18
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x26
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=2
	add	x23, x23, #1
LBB0_25:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x23]
	cbz	w8, LBB0_2
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=2
	cmp	w8, #47
	b.ne	LBB0_24
	b	LBB0_2
LBB0_27:
	ldur	x8, [x29, #-240]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-96]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.28:
	mov	x0, x21
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_prom_root_node,4,2             ; @prom_root_node
	.comm	_PROMREG_MAX,4,2                ; @PROMREG_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

.subsections_via_symbols
