	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdt_lbc_reg_decode
_fdt_lbc_reg_decode:                    ## @fdt_lbc_reg_decode
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %ebx
	callq	_OF_parent
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movl	%eax, %edi
	callq	_fdt_addrsize_cells
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_7
LBB0_2:
	movl	-44(%rbp), %r12d
	addl	-48(%rbp), %r12d
	shll	$2, %r12d
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rcx
	movl	%ebx, %edi
	movl	%r12d, %edx
	callq	_OF_getencprop_alloc_multi
	movl	%eax, %ebx
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_debugf
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_debugf
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.3:
	movq	-56(%rbp), %rdi
	leaq	4(%r14), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	decl	%ebx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %esi
	callq	_fdt_data_get
	movl	%eax, (%r14)
	movslq	-48(%rbp), %rcx
	movslq	-44(%rbp), %rdx
	addq	%rcx, %rdx
	shlq	$2, %rdx
	addq	%rdx, -56(%rbp)
	movq	%r15, %r13
	movq	(%r15), %rcx
	movslq	%eax, %r12
	movl	(%rcx,%r12,4), %r14d
	leal	-1(%r14), %r15d
	leaq	L_.str.3(%rip), %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	callq	_debugf
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	xorl	%r9d, %r9d
	callq	_resource_list_add
	subl	$1, %ebx
	jb	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r13, %r15
	jmp	LBB0_4
LBB0_6:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_OF_prop_free
	xorl	%r13d, %r13d
LBB0_7:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

L_.str.1:                               ## @.str.1
	.asciz	"addr_cells = %d, size_cells = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"tuples = %d, tuple size = %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"reg addr bank = %d, start = %jx, end = %jx, count = %jx\n"

	.comm	_SYS_RES_MEMORY,4,2             ## @SYS_RES_MEMORY
	.no_dead_strip	_fdt_lbc_reg_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdt_lbc_reg_decode
_fdt_lbc_reg_decode:                    ; @fdt_lbc_reg_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x2
	mov	x20, x1
	mov	x21, x0
	bl	_OF_parent
	add	x1, sp, #20
	add	x2, sp, #16
	bl	_fdt_addrsize_cells
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_2:
	ldp	w9, w8, [sp, #16]
	add	w8, w9, w8
	lsl	w22, w8, #2
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #24
	mov	x0, x21
	mov	x2, x22
	bl	_OF_getencprop_alloc_multi
	mov	x21, x0
	ldp	w2, w1, [sp, #16]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_debugf
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	bl	_debugf
	subs	w27, w21, #1
	b.lt	LBB0_7
; %bb.3:
	ldr	x21, [sp, #24]
	add	x22, x19, #4
Lloh9:
	adrp	x23, l_.str.3@PAGE
Lloh10:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh11:
	adrp	x28, _SYS_RES_MEMORY@GOTPAGE
Lloh12:
	ldr	x28, [x28, _SYS_RES_MEMORY@GOTPAGEOFF]
	mov	x0, x21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	w1, #1
	bl	_fdt_data_get
	mov	x24, x0
	str	w0, [x19]
	ldr	x8, [sp, #24]
	ldp	w10, w9, [sp, #16]
	add	w9, w9, w10
	sub	w9, w9, #1
	add	x8, x8, w9, sxtw #2
	add	x8, x8, #4
	str	x8, [sp, #24]
	ldr	x8, [x20]
	ldr	w25, [x8, w0, sxtw #2]
	sub	w26, w25, #1
	stp	x26, xzr, [sp]
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	bl	_debugf
	ldr	w1, [x28]
	mov	x0, x22
	mov	x2, x24
	mov	x3, x25
	mov	x4, x26
	mov	w5, #0
	bl	_resource_list_add
	cbz	w27, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #24]
	sub	w27, w27, #1
	b	LBB0_4
LBB0_6:
	mov	x0, x21
	bl	_OF_prop_free
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

l_.str.1:                               ; @.str.1
	.asciz	"addr_cells = %d, size_cells = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"tuples = %d, tuple size = %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"reg addr bank = %d, start = %jx, end = %jx, count = %jx\n"

	.comm	_SYS_RES_MEMORY,4,2             ; @SYS_RES_MEMORY
	.no_dead_strip	_fdt_lbc_reg_decode
.subsections_via_symbols
