	.file	"extr_knav_qmss_queue.c_knav_get_link_ram.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to alloc linkram\n"
	.text
	.p2align 4
	.type	knav_get_link_ram, @function
knav_get_link_ram:
.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	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	to_platform_device@PLT
	mov	rdx, rsp
	mov	ecx, 2
	mov	rsi, r12
	mov	rdi, QWORD PTR [rax]
	call	of_property_read_u32_array@PLT
	test	eax, eax
	jne	.L2
	mov	r12d, eax
	mov	rax, QWORD PTR [rsp]
	mov	rsi, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L3
	mov	QWORD PTR 16[rbx], rax
	mov	QWORD PTR 8[rbx], 0
	mov	DWORD PTR [rbx], esi
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	DWORD PTR [rbx], esi
	lea	rdx, 16[rbx]
	sal	esi, 3
	call	dmam_alloc_coherent@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	jne	.L1
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	knav_get_link_ram, .-knav_get_link_ram
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,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_knav_qmss_queue.c_knav_get_link_ram.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to alloc linkram\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	knav_get_link_ram, %function
knav_get_link_ram:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L9
	sub	sp, sp, #16
	mov	r5, r0
	ldr	r0, [r0]
	mov	r4, r1
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	to_platform_device
	mov	r1, r4
	mov	r3, #2
	ldr	r0, [r0]
	add	r2, sp, #4
	bl	of_property_read_u32_array
	subs	r4, r0, #0
	bne	.L2
	ldr	r3, [sp, #4]
	ldr	r1, [sp, #8]
	cmp	r3, #0
	beq	.L3
	stm	r6, {r1, r4}
	str	r3, [r6, #8]
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L9+4
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L3:
	mov	r2, r6
	ldr	r3, .L9+8
	str	r1, [r2], #8
	ldr	r3, [r3]
	ldr	r0, [r5]
	lsl	r1, r1, #3
	bl	dmam_alloc_coherent
	cmp	r0, #0
	str	r0, [r6, #4]
	bne	.L1
	ldr	r0, [r5]
	ldr	r1, .L9+12
	bl	dev_err
	ldr	r3, .L9+16
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	ENODEV
	.word	GFP_KERNEL
	.word	.LC0
	.word	ENOMEM
	.size	knav_get_link_ram, .-knav_get_link_ram
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
