	.file	"extr_remoteproc_core.c_rproc_handle_carveout.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"carveout rsc is truncated\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"carveout rsc has non zero reserved bytes\n"
	.align 8
.LC2:
	.string	"carveout rsc: name: %s, da 0x%x, pa 0x%x, len 0x%x, flags 0x%x\n"
	.align 8
.LC3:
	.string	"Carveout already associated to resource table\n"
	.align 8
.LC4:
	.string	"Can't allocate memory entry structure\n"
	.text
	.p2align 4
	.type	rproc_handle_carveout, @function
rproc_handle_carveout:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	ecx, 31
	jbe	.L12
	cmp	QWORD PTR 24[rsi], 0
	mov	rbx, rsi
	jne	.L13
	mov	eax, DWORD PTR [rsi]
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	ecx, DWORD PTR 8[rsi]
	mov	r13d, edx
	mov	edx, DWORD PTR 4[rsi]
	push	rax
	.cfi_def_cfa_offset 64
	mov	r9d, DWORD PTR 12[rsi]
	mov	r8d, DWORD PTR 16[rsi]
	lea	rsi, .LC2[rip]
	call	dev_dbg@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, rbp
	call	rproc_find_carveout_by_name@PLT
	pop	rcx
	.cfi_def_cfa_offset 56
	pop	rsi
	.cfi_def_cfa_offset 48
	mov	r12, rax
	test	rax, rax
	je	.L5
	mov	eax, DWORD PTR FW_RSC_ADDR_ANY[rip]
	cmp	DWORD PTR [r12], eax
	je	.L6
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
.L1:
	add	rsp, 8
	.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
.L13:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	ecx, DWORD PTR 12[rbx]
	mov	edx, DWORD PTR 8[rbx]
	mov	rsi, r12
	mov	rdi, rbp
	call	rproc_check_carveout_da@PLT
	test	rax, rax
	je	.L7
.L10:
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR [r12], r13d
	mov	DWORD PTR 4[r12], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR 4[rbx]
	mov	ecx, DWORD PTR 12[rbx]
	xor	edx, edx
	xor	esi, esi
	mov	r9d, DWORD PTR rproc_alloc_carveout[rip]
	mov	rdi, rbp
	push	rax
	.cfi_def_cfa_offset 56
	mov	eax, DWORD PTR rproc_release_carveout[rip]
	push	rax
	.cfi_def_cfa_offset 64
	mov	r8d, DWORD PTR 8[rbx]
	call	rproc_mem_entry_init@PLT
	mov	rsi, rax
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
	test	rsi, rsi
	je	.L14
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR [rsi], r13d
	mov	rdi, rbp
	mov	DWORD PTR 4[rsi], eax
	call	rproc_add_carveout@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	rproc_handle_carveout, .-rproc_handle_carveout
	.comm	rproc_release_carveout,4,4
	.comm	rproc_alloc_carveout,4,4
	.comm	FW_RSC_ADDR_ANY,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_remoteproc_core.c_rproc_handle_carveout.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"carveout rsc is truncated\012\000"
	.align	2
.LC1:
	.ascii	"carveout rsc has non zero reserved bytes\012\000"
	.align	2
.LC2:
	.ascii	"carveout rsc: name: %s, da 0x%x, pa 0x%x, len 0x%x,"
	.ascii	" flags 0x%x\012\000"
	.align	2
.LC3:
	.ascii	"Carveout already associated to resource table\012\000"
	.align	2
.LC4:
	.ascii	"Can't allocate memory entry structure\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rproc_handle_carveout, %function
rproc_handle_carveout:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #23
	sub	sp, sp, #16
	bls	.L12
	ldr	r5, [r1, #20]
	mov	r4, r1
	cmp	r5, #0
	bne	.L13
	mov	r6, r0
	ldr	r1, [r1]
	ldr	r3, [r4, #16]
	mov	r7, r2
	ldr	r2, [r4, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r1, .L15
	ldmib	r4, {r2, r3}
	bl	dev_dbg
	mov	r0, r6
	ldr	r1, [r4, #4]
	bl	rproc_find_carveout_by_name
	subs	r8, r0, #0
	beq	.L5
	ldr	r3, .L15+4
	ldr	r2, [r8]
	ldr	r3, [r3]
	mov	r0, r6
	cmp	r2, r3
	beq	.L6
	ldr	r1, .L15+8
	bl	dev_err
	ldr	r3, .L15+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r1, .L15+16
	bl	dev_err
	ldr	r3, .L15+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r1, r8
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #8]
	bl	rproc_check_carveout_da
	subs	r5, r0, #0
	beq	.L7
.L10:
	ldr	r3, .L15+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r1, .L15+24
	bl	dev_err
	ldr	r3, .L15+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r0, r5
	ldr	r3, [r4]
	str	r7, [r8]
	str	r3, [r8, #4]
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r2, .L15+28
	ldr	r3, .L15+32
	ldr	r0, [r2]
	ldr	r1, [r3]
	ldmib	r4, {r2, r3}
	str	r0, [sp, #8]
	str	r1, [sp, #4]
	str	r2, [sp, #12]
	str	r3, [sp]
	mov	r1, r5
	mov	r2, r5
	mov	r0, r6
	ldr	r3, [r4, #12]
	bl	rproc_mem_entry_init
	subs	r1, r0, #0
	beq	.L14
	ldr	r3, [r4]
	mov	r0, r6
	str	r3, [r1, #4]
	str	r7, [r1]
	bl	rproc_add_carveout
	b	.L1
.L14:
	mov	r0, r6
	ldr	r1, .L15+36
	bl	dev_err
	b	.L10
.L16:
	.align	2
.L15:
	.word	.LC2
	.word	FW_RSC_ADDR_ANY
	.word	.LC3
	.word	ENOMEM
	.word	.LC1
	.word	EINVAL
	.word	.LC0
	.word	rproc_release_carveout
	.word	rproc_alloc_carveout
	.word	.LC4
	.size	rproc_handle_carveout, .-rproc_handle_carveout
	.comm	rproc_release_carveout,4,4
	.comm	rproc_alloc_carveout,4,4
	.comm	FW_RSC_ADDR_ANY,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
