	.file	"extr_flow_divert.c_flow_divert_get_src_proc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	flow_divert_get_src_proc, @function
flow_divert_get_src_proc:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR [rsi]
	mov	edx, DWORD PTR [rdi]
	test	DWORD PTR SOF_DELEGATED[rip], edx
	je	.L2
	mov	rbp, rdi
	mov	rdi, QWORD PTR 8[rdi]
	cmp	QWORD PTR [rax], rdi
	je	.L3
	call	proc_find@PLT
	mov	QWORD PTR [rbx], rax
	cmp	rax, QWORD PTR PROC_NULL[rip]
	je	.L7
.L15:
	cmp	QWORD PTR [rax], 0
	je	.L6
.L7:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdx, QWORD PTR PROC_NULL[rip]
	cmp	rdx, rax
	je	.L21
.L12:
	cmp	QWORD PTR [rax], 0
	jne	.L18
.L10:
	mov	QWORD PTR [rbx], rdx
.L18:
	xor	eax, eax
.L22:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR 16[rbp]
	mov	edi, DWORD PTR 8[rax]
	call	uuid_compare@PLT
	test	rax, rax
	jne	.L8
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR PROC_NULL[rip]
	cmp	rax, rdx
	jne	.L12
	xor	eax, eax
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rax
	call	proc_rele@PLT
	mov	rdx, QWORD PTR PROC_NULL[rip]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L21:
	xor	eax, eax
	call	current_proc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rdx, QWORD PTR PROC_NULL[rip]
	cmp	rax, rdx
	jne	.L12
	xor	eax, eax
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR 16[rbp]
	call	flow_divert_find_proc_by_uuid@PLT
	mov	QWORD PTR [rbx], rax
	cmp	rax, QWORD PTR PROC_NULL[rip]
	jne	.L15
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	flow_divert_get_src_proc, .-flow_divert_get_src_proc
	.comm	SOF_DELEGATED,4,4
	.comm	PROC_NULL,8,8
	.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_flow_divert.c_flow_divert_get_src_proc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	flow_divert_get_src_proc, %function
flow_divert_get_src_proc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r3, .L35
	ldr	r1, [r0]
	ldr	r2, [r3]
	ldr	r3, [r4]
	tst	r1, r2
	beq	.L2
	mov	r5, r0
	ldr	r2, [r3]
	ldr	r0, [r0, #4]
	cmp	r2, r0
	beq	.L3
	bl	proc_find
.L32:
	ldr	r5, .L35+4
	str	r0, [r4]
	ldr	r3, [r5]
	cmp	r0, r3
	beq	.L7
	ldr	r3, [r0]
	cmp	r3, #0
	bne	.L7
	bl	proc_rele
	ldr	r2, [r5]
	b	.L10
.L7:
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r5, .L35+4
	ldr	r2, [r5]
	cmp	r2, r3
	beq	.L34
.L12:
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L11
.L10:
	mov	r0, #0
	str	r2, [r4]
	pop	{r4, r5, r6, pc}
.L34:
	bl	current_proc
	str	r0, [r4]
	ldr	r2, [r5]
	cmp	r0, r2
	beq	.L11
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L10
.L11:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r0, [r3, #4]
	ldr	r1, [r5, #8]
	bl	uuid_compare
	cmp	r0, #0
	bne	.L8
	ldr	r2, .L35+4
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L12
	b	.L11
.L8:
	ldr	r0, [r5, #8]
	bl	flow_divert_find_proc_by_uuid
	b	.L32
.L36:
	.align	2
.L35:
	.word	SOF_DELEGATED
	.word	PROC_NULL
	.size	flow_divert_get_src_proc, .-flow_divert_get_src_proc
	.comm	SOF_DELEGATED,4,4
	.comm	PROC_NULL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
