	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_fdtget
_do_fdtget:                             ## @do_fdtget
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movl	%ecx, %r15d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_utilfdt_read
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	xorl	%r13d, %r13d
	cmpl	%r15d, %ebx
	jg	LBB0_15
## %bb.3:
	movslq	%ebx, %r13
	movslq	%r15d, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%r12), %ecx
	movslq	%ecx, %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%rcx,8), %rcx
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_show_data_for_item
	testq	%rax, %rax
	jne	LBB0_14
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	-72(%rbp), %r13                 ## 8-byte Folded Reload
	addl	%ebx, %r12d
	cmpq	-64(%rbp), %r13                 ## 8-byte Folded Reload
	jg	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r12d, %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rsi
	movq	%r14, %rdi
	callq	_fdt_path_offset
	testl	%eax, %eax
	js	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$1, %ebx
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_puts
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %r13d
	jmp	LBB0_16
LBB0_8:
	xorl	%r13d, %r13d
	jmp	LBB0_15
LBB0_9:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%r15,8), %rdi
	movl	%eax, %esi
	callq	_report_error
LBB0_14:
	movl	$-1, %r13d
LBB0_15:
	movq	%r14, %rdi
	callq	_free
LBB0_16:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_do_fdtget
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_fdtget
_do_fdtget:                             ; @do_fdtget
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x4
	mov	x23, x3
	mov	x21, x2
	mov	x22, x0
	mov	x0, x1
	bl	_utilfdt_read
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	cmp	w20, w23
	b.le	LBB0_4
LBB0_2:
	mov	w20, #0
	b	LBB0_15
LBB0_3:
	mov	w20, #-1
	b	LBB0_16
LBB0_4:
	mov	w8, #0
	sxtw	x24, w20
	sxtw	x23, w23
	mov	x25, x24
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w8, w26, #1
	ldr	x3, [x21, w8, sxtw #3]
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_show_data_for_item
	cbnz	x0, LBB0_14
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w8, w26, w20
	add	x25, x25, x24
	cmp	x25, x23
	b.gt	LBB0_2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x26, w8
	ldr	x1, [x21, w8, sxtw #3]
	mov	x0, x19
	bl	_fdt_path_offset
	mov	x2, x0
	tbnz	w0, #31, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w20, #1
	b.ne	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x3, #0
	b	LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x22]
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_puts
	b	LBB0_7
LBB0_13:
	ldr	x0, [x21, x26, lsl #3]
	mov	x1, x2
	bl	_report_error
LBB0_14:
	mov	w20, #-1
LBB0_15:
	mov	x0, x19
	bl	_free
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_do_fdtget
.subsections_via_symbols
