	.file	"extr_fman.c_fman_fill_ranges.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"#address-cells"
.LC1:
	.string	"ranges"
	.text
	.p2align 4
	.type	fman_fill_ranges, @function
fman_fill_ranges:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	OF_parent@PLT
	lea	rdx, 20[rsp]
	mov	ecx, 4
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	OF_searchencprop@PLT
	test	eax, eax
	jle	.L4
	lea	rsi, .LC1[rip]
	mov	edi, r13d
	call	OF_getproplen@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L4
	movsx	rsi, eax
	mov	ecx, DWORD PTR 20[rsp]
	add	ecx, DWORD PTR 4[rbx]
	xor	edx, edx
	shr	rsi, 2
	add	ecx, DWORD PTR 8[rbx]
	xor	r8d, r8d
	movsx	rcx, ecx
	mov	rax, rsi
	div	rcx
	mov	DWORD PTR [rbx], eax
	cmp	rsi, rcx
	jnb	.L23
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	edx, DWORD PTR M_WAITOK[rip]
	mov	esi, DWORD PTR M_DEVBUF[rip]
	lea	edi, [rax+rax*2]
	sal	edi, 2
	call	malloc@PLT
	mov	edx, DWORD PTR M_WAITOK[rip]
	mov	esi, DWORD PTR M_DEVBUF[rip]
	mov	edi, r12d
	mov	QWORD PTR 16[rbx], rax
	call	malloc@PLT
	mov	ecx, r12d
	lea	rsi, .LC1[rip]
	mov	edi, r13d
	mov	rdx, rax
	mov	rbp, rax
	call	OF_getencprop@PLT
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	jle	.L13
	mov	rax, QWORD PTR 16[rbx]
	mov	r11d, DWORD PTR 4[rbx]
	sub	edx, 1
	xor	esi, esi
	mov	r10d, DWORD PTR 20[rsp]
	mov	r9d, DWORD PTR 8[rbx]
	lea	rdx, [rdx+rdx*2]
	lea	r8, 4[rbp]
	lea	rdi, 12[rax]
	lea	r15d, -1[r11]
	lea	r12, [rdi+rdx*4]
	lea	r14d, -1[r10]
	lea	r13d, -1[r9]
	.p2align 4,,10
	.p2align 3
.L12:
	mov	DWORD PTR [rax], 0
	test	r11d, r11d
	jle	.L6
	movsx	rcx, esi
	mov	DWORD PTR 12[rsp], esi
	lea	rdx, 0[rbp+rcx*4]
	add	rcx, r15
	lea	rcx, [r8+rcx*4]
	.p2align 4,,10
	.p2align 3
.L7:
	mov	DWORD PTR [rax], 0
	mov	esi, DWORD PTR [rdx]
	add	rdx, 4
	mov	DWORD PTR [rax], esi
	cmp	rdx, rcx
	jne	.L7
	mov	esi, DWORD PTR 12[rsp]
	add	esi, r11d
.L6:
	mov	DWORD PTR 4[rax], 0
	test	r10d, r10d
	jle	.L8
	movsx	rcx, esi
	mov	DWORD PTR 12[rsp], esi
	lea	rdx, 0[rbp+rcx*4]
	add	rcx, r14
	lea	rcx, [r8+rcx*4]
	.p2align 4,,10
	.p2align 3
.L9:
	mov	DWORD PTR 4[rax], 0
	mov	esi, DWORD PTR [rdx]
	add	rdx, 4
	mov	DWORD PTR 4[rax], esi
	cmp	rdx, rcx
	jne	.L9
	mov	esi, DWORD PTR 12[rsp]
	add	esi, r10d
.L8:
	mov	DWORD PTR 8[rax], 0
	test	r9d, r9d
	jle	.L10
	movsx	rcx, esi
	mov	DWORD PTR 12[rsp], esi
	lea	rdx, 0[rbp+rcx*4]
	add	rcx, r13
	lea	rcx, [r8+rcx*4]
	.p2align 4,,10
	.p2align 3
.L11:
	mov	DWORD PTR 8[rax], 0
	mov	esi, DWORD PTR [rdx]
	add	rdx, 4
	mov	DWORD PTR 8[rax], esi
	cmp	rdx, rcx
	jne	.L11
	mov	esi, DWORD PTR 12[rsp]
	add	esi, r9d
.L10:
	mov	rax, rdi
	cmp	rdi, r12
	je	.L13
	add	rdi, 12
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, DWORD PTR M_DEVBUF[rip]
	mov	rdi, rbp
	call	free@PLT
	mov	r8d, DWORD PTR [rbx]
	jmp	.L1
.L4:
	mov	r8d, -1
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fman_fill_ranges, .-fman_fill_ranges
	.comm	M_WAITOK,4,4
	.comm	M_DEVBUF,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_fman.c_fman_fill_ranges.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"#address-cells\000"
	.align	2
.LC1:
	.ascii	"ranges\000"
	.global	__aeabi_uidiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fman_fill_ranges, %function
fman_fill_ranges:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L24
	sub	sp, sp, #8
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r8, r0
	bl	OF_parent
	mov	r3, #4
	mov	r2, sp
	ldr	r1, .L24+4
	bl	OF_searchencprop
	cmp	r0, #0
	ble	.L4
	mov	r0, r8
	ldr	r1, .L24+8
	bl	OF_getproplen
	subs	r7, r0, #0
	blt	.L4
	ldr	r3, [sp]
	ldr	r5, [r4, #4]
	ldr	r1, [r4, #8]
	add	r5, r5, r3
	add	r5, r5, r1
	lsr	r6, r7, #2
	mov	r1, r5
	mov	r0, r6
	bl	__aeabi_uidiv
	cmp	r6, r5
	str	r0, [r4]
	movcc	r0, #0
	bcs	.L22
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L22:
	ldr	r6, .L24+12
	ldr	r5, .L24+16
	add	r0, r0, r0, lsl #1
	ldr	r2, [r6]
	ldr	r1, [r5]
	lsl	r0, r0, #2
	bl	malloc
	ldr	r2, [r6]
	ldr	r1, [r5]
	str	r0, [r4, #12]
	mov	r0, r7
	bl	malloc
	mov	r6, r0
	mov	r3, r7
	mov	r0, r8
	mov	r2, r6
	ldr	r1, .L24+8
	bl	OF_getencprop
	ldr	r8, [r4]
	cmp	r8, #0
	ble	.L13
	mov	r3, #0
	mov	lr, r3
	ldr	ip, [r4, #12]
	add	r8, r8, r8, lsl #1
	ldr	r7, [r4, #4]
	ldr	r0, [sp]
	ldr	r1, [r4, #8]
	add	r8, ip, r8, lsl #2
.L12:
	cmp	r7, #0
	str	lr, [ip]
	ble	.L6
	add	r10, r7, r3
	add	r9, r6, r10, lsl #2
	add	r3, r6, r3, lsl #2
.L7:
	str	lr, [ip]
	ldr	r2, [r3], #4
	cmp	r3, r9
	str	r2, [ip]
	bne	.L7
	mov	r3, r10
.L6:
	cmp	r0, #0
	str	lr, [ip, #4]
	ble	.L8
	add	r10, r0, r3
	add	r9, r6, r10, lsl #2
	add	r3, r6, r3, lsl #2
.L9:
	str	lr, [ip, #4]
	ldr	r2, [r3], #4
	cmp	r3, r9
	str	r2, [ip, #4]
	bne	.L9
	mov	r3, r10
.L8:
	cmp	r1, #0
	str	lr, [ip, #8]
	ble	.L10
	add	r10, r1, r3
	add	r9, r6, r10, lsl #2
	add	r3, r6, r3, lsl #2
.L11:
	str	lr, [ip, #8]
	ldr	r2, [r3], #4
	cmp	r3, r9
	str	r2, [ip, #8]
	bne	.L11
	mov	r3, r10
.L10:
	add	ip, ip, #12
	cmp	ip, r8
	bne	.L12
.L13:
	mov	r0, r6
	ldr	r1, [r5]
	bl	free
	ldr	r0, [r4]
	b	.L1
.L4:
	mvn	r0, #0
	b	.L1
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	M_WAITOK
	.word	M_DEVBUF
	.size	fman_fill_ranges, .-fman_fill_ranges
	.comm	M_WAITOK,4,4
	.comm	M_DEVBUF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
