	.file	"extr_ctsrc.c_get_src_rsc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Can't meet SRC resource request!\n"
	.text
	.p2align 4
	.type	get_src_rsc, @function
get_src_rsc:
.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	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	xor	esi, esi
	lea	r14, 4[rbp]
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR SRC_RESOURCE_NUM[rip]
	mov	QWORD PTR [rdx], 0
	mov	DWORD PTR 4[rsp], eax
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR MEMRD[rip]
	lea	rdx, 4[rsp]
	cmp	QWORD PTR [rbx], rax
	je	.L16
	mov	esi, 1
	mov	rdi, r14
	call	mgr_get_resource@PLT
	xor	esi, esi
	mov	rdi, rbp
	mov	r12d, eax
	call	spin_unlock_irqrestore@PLT
	test	r12d, r12d
	jne	.L17
.L4:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rax, QWORD PTR MEMRD[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L18
	mov	edi, 4
	call	kzalloc@PLT
	mov	r15, rax
.L7:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	r15, r15
	je	.L9
	mov	esi, DWORD PTR 4[rsp]
	mov	rcx, rbp
	mov	rdx, rbx
	mov	rdi, r15
	call	src_rsc_init@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L19
	mov	QWORD PTR 0[r13], r15
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L19:
	.cfi_restore_state
	mov	rdi, r15
	call	kfree@PLT
.L9:
	xor	esi, esi
	mov	rdi, rbp
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR MEMRD[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L21
	mov	edx, DWORD PTR 4[rsp]
	mov	esi, 1
	mov	rdi, r14
	call	mgr_put_resource@PLT
.L12:
	xor	esi, esi
	mov	rdi, rbp
	call	spin_unlock_irqrestore@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, r14
	call	mgr_get_resource@PLT
	xor	esi, esi
	mov	rdi, rbp
	mov	r12d, eax
	call	spin_unlock_irqrestore@PLT
	test	r12d, r12d
	je	.L4
.L17:
	mov	rax, QWORD PTR 8[rbp]
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR [rax]
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, esi
	mov	esi, 4
	call	kcalloc@PLT
	mov	r15, rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	mov	esi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR 4[rsp]
	mov	rdi, r14
	call	mgr_put_resource@PLT
	jmp	.L12
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_src_rsc, .-get_src_rsc
	.comm	SRC_RESOURCE_NUM,4,4
	.comm	MEMRD,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_ctsrc.c_get_src_rsc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Can't meet SRC resource request!\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_src_rsc, %function
get_src_rsc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r2
	mov	r2, #0
	mov	r6, r1
	mov	r5, r0
	ldr	r3, .L21
	ldr	r1, .L21+4
	sub	sp, sp, #8
	ldr	r3, [r3]
	ldr	r9, .L21+8
	ldr	r1, [r1]
	str	r1, [sp, #4]
	mov	r1,#0
	mov	r1, r2
	str	r2, [r7]
	str	r3, [sp]
	bl	spin_lock_irqsave
	ldr	r2, [r6]
	ldr	r3, [r9]
	add	r10, r5, #4
	cmp	r2, r3
	movne	r1, #1
	ldreq	r1, [r6, #4]
	mov	r2, sp
	mov	r0, r10
	bl	mgr_get_resource
	mov	r4, r0
	mov	r1, #0
	mov	r0, r5
	bl	spin_unlock_irqrestore
	cmp	r4, #0
	bne	.L16
	ldr	r1, [r6]
	ldr	r2, [r9]
	ldr	r3, .L21+12
	cmp	r1, r2
	ldr	r1, [r3]
	beq	.L17
	mov	r0, #4
	bl	kzalloc
	mov	r8, r0
	cmp	r8, #0
	beq	.L18
.L8:
	mov	r3, r5
	mov	r2, r6
	mov	r0, r8
	ldr	r1, [sp]
	bl	src_rsc_init
	subs	r4, r0, #0
	streq	r8, [r7]
	bne	.L19
.L1:
	ldr	r3, .L21+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	mov	r2, r1
	ldr	r0, [r6, #4]
	mov	r1, #4
	bl	kcalloc
	mov	r8, r0
	cmp	r8, #0
	bne	.L8
.L18:
	ldr	r3, .L21+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L9:
	mov	r1, #0
	mov	r0, r5
	bl	spin_lock_irqsave
	ldr	r2, [r6]
	ldr	r3, [r9]
	cmp	r2, r3
	movne	r1, #1
	ldreq	r1, [r6, #4]
	moveq	r0, r10
	movne	r0, r10
	ldreq	r2, [sp]
	ldrne	r2, [sp]
	bl	mgr_put_resource
	mov	r0, r5
	mov	r1, #0
	bl	spin_unlock_irqrestore
	b	.L1
.L16:
	ldr	r3, [r5, #8]
	ldr	r1, .L21+20
	ldr	r0, [r3]
	bl	dev_err
	b	.L1
.L19:
	mov	r0, r8
	bl	kfree
	b	.L9
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	SRC_RESOURCE_NUM
	.word	.LC1
	.word	MEMRD
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	.LC0
	.size	get_src_rsc, .-get_src_rsc
	.comm	SRC_RESOURCE_NUM,4,4
	.comm	MEMRD,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
