	.file	"extr_aml8726_mp.c_alloc_resource_for_node.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	alloc_resource_for_node, @function
alloc_resource_for_node:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	OF_parent@PLT
	xor	esi, esi
	lea	rcx, 8[rsp]
	mov	rdx, rsp
	mov	edi, eax
	call	fdt_get_range@PLT
	test	eax, eax
	je	.L6
.L1:
	mov	rbx, QWORD PTR 24[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L7
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	lea	rsi, 16[rsp]
	mov	rdx, rbx
	mov	edi, ebp
	call	fdt_regsize@PLT
	test	eax, eax
	jne	.L1
	xor	esi, esi
	mov	rdi, r12
	mov	edx, 8
	mov	rax, QWORD PTR [rsp]
	add	QWORD PTR 16[rsp], rax
	call	memset@PLT
	mov	edi, DWORD PTR fdtbus_bs_tag[rip]
	mov	rdx, QWORD PTR [rbx]
	xor	ecx, ecx
	mov	rsi, QWORD PTR 16[rsp]
	mov	r8, r12
	mov	DWORD PTR 4[r12], edi
	call	bus_space_map@PLT
	jmp	.L1
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	alloc_resource_for_node, .-alloc_resource_for_node
	.comm	fdtbus_bs_tag,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_aml8726_mp.c_alloc_resource_for_node.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_resource_for_node, %function
alloc_resource_for_node:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L8
	sub	sp, sp, #28
	mov	r7, r1
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r5, r0
	bl	OF_parent
	mov	r1, #0
	add	r3, sp, #12
	add	r2, sp, #8
	bl	fdt_get_range
	subs	r4, r0, #0
	beq	.L6
.L1:
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	mov	r0, r5
	mov	r2, r6
	add	r1, sp, #16
	bl	fdt_regsize
	subs	r4, r0, #0
	bne	.L1
	ldr	r5, [sp, #16]
	ldr	r3, [sp, #8]
	mov	r1, r4
	add	r5, r5, r3
	mov	r2, #8
	mov	r0, r7
	str	r5, [sp, #16]
	bl	memset
	ldr	r3, .L8+4
	mov	r1, r5
	ldr	r0, [r3]
	str	r7, [sp]
	mov	r3, r4
	ldr	r2, [r6]
	str	r0, [r7, #4]
	bl	bus_space_map
	mov	r4, r0
	b	.L1
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	fdtbus_bs_tag
	.size	alloc_resource_for_node, .-alloc_resource_for_node
	.comm	fdtbus_bs_tag,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
