	.file	"extr_fdt_common.c_fdt_regsize.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"reg"
	.text
	.p2align 4
	.globl	fdt_regsize
	.type	fdt_regsize, @function
fdt_regsize:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	OF_parent@PLT
	lea	rdx, 12[rsp]
	lea	rsi, 8[rsp]
	mov	edi, eax
	call	fdt_addrsize_cells@PLT
	test	rax, rax
	jne	.L9
	mov	eax, DWORD PTR 12[rsp]
	add	eax, DWORD PTR 8[rsp]
	cdqe
	sal	rax, 2
	cmp	rax, 16
	jbe	.L4
	mov	eax, DWORD PTR ENOMEM[rip]
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	lea	r13, 16[rsp]
	mov	ecx, 16
	lea	rsi, .LC0[rip]
	mov	edi, r12d
	mov	rdx, r13
	call	OF_getprop@PLT
	test	eax, eax
	jle	.L11
	mov	esi, DWORD PTR 8[rsp]
	mov	rdi, r13
	call	fdt_data_get@PLT
	mov	esi, DWORD PTR 12[rsp]
	mov	DWORD PTR 0[rbp], eax
	movsx	rax, DWORD PTR 8[rsp]
	lea	rdi, 0[r13+rax*4]
	call	fdt_data_get@PLT
	mov	DWORD PTR [rbx], eax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR ENXIO[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR EINVAL[rip]
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fdt_regsize, .-fdt_regsize
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_fdt_common.c_fdt_regsize.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"reg\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fdt_regsize
	.syntax unified
	.arm
	.fpu softvfp
	.type	fdt_regsize, %function
fdt_regsize:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L12
	sub	sp, sp, #36
	mov	r6, r1
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r7, r0
	bl	OF_parent
	add	r2, sp, #8
	add	r1, sp, #4
	bl	fdt_addrsize_cells
	subs	r4, r0, #0
	bne	.L9
	ldmib	sp, {r2, r3}
	add	r3, r3, r2
	lsl	r3, r3, #2
	cmp	r3, #16
	bls	.L4
	ldr	r3, .L12+4
	ldr	r4, [r3]
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L4:
	mov	r0, r7
	mov	r3, #16
	ldr	r1, .L12+8
	add	r2, sp, #12
	bl	OF_getprop
	cmp	r0, #0
	ble	.L11
	ldr	r1, [sp, #4]
	add	r0, sp, #12
	bl	fdt_data_get
	ldr	r3, [sp, #4]
	add	r2, sp, #12
	str	r0, [r6]
	ldr	r1, [sp, #8]
	add	r0, r2, r3, lsl #2
	bl	fdt_data_get
	str	r0, [r5]
	b	.L1
.L9:
	ldr	r3, .L12+12
	ldr	r4, [r3]
	b	.L1
.L11:
	ldr	r3, .L12+16
	ldr	r4, [r3]
	b	.L1
.L10:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	ENOMEM
	.word	.LC0
	.word	ENXIO
	.word	EINVAL
	.size	fdt_regsize, .-fdt_regsize
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
