	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_address_cells              ## -- Begin function fdt_address_cells
	.p2align	4, 0x90
_fdt_address_cells:                     ## @fdt_address_cells
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	leaq	L_.str(%rip), %rdx
	leaq	-4(%rbp), %rcx
	callq	_fdt_getprop
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpl	$4, -4(%rbp)
	jne	LBB0_5
## %bb.3:
	movl	(%rax), %edi
	callq	_fdt32_to_cpu
	testl	%eax, %eax
	jle	LBB0_5
## %bb.4:
	movq	_FDT_MAX_NCELLS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_6
LBB0_5:
	movq	_FDT_ERR_BADNCELLS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_1:
	movl	$2, %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"#address-cells"

	.comm	_FDT_ERR_BADNCELLS,4,2          ## @FDT_ERR_BADNCELLS
	.comm	_FDT_MAX_NCELLS,4,2             ## @FDT_MAX_NCELLS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_address_cells              ; -- Begin function fdt_address_cells
	.p2align	2
_fdt_address_cells:                     ; @fdt_address_cells
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	sub	x3, x29, #4
	bl	_fdt_getprop
	cbz	x0, LBB0_4
; %bb.1:
	ldur	w8, [x29, #-4]
	cmp	w8, #4
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x0]
	bl	_fdt32_to_cpu
Lloh2:
	adrp	x8, _FDT_MAX_NCELLS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FDT_MAX_NCELLS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, #1
	ccmp	w0, w8, #0, ge
	b.le	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _FDT_ERR_BADNCELLS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FDT_ERR_BADNCELLS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #2
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"#address-cells"

	.comm	_FDT_ERR_BADNCELLS,4,2          ; @FDT_ERR_BADNCELLS
	.comm	_FDT_MAX_NCELLS,4,2             ; @FDT_MAX_NCELLS
.subsections_via_symbols
