	.file	"extr_ipu-common.c_ipu_fsu_link.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ipu_fsu_link
	.type	ipu_fsu_link, @function
ipu_fsu_link:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	edi, esi
	mov	esi, edx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	find_fsu_link_info@PLT
	test	rax, rax
	je	.L8
	mov	rbx, rax
	xor	esi, esi
	mov	rdi, rbp
	call	spin_lock_irqsave@PLT
	mov	edx, DWORD PTR 12[rbx]
	test	edx, edx
	jne	.L9
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jne	.L10
.L5:
	mov	rdi, rbp
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, rbp
	call	ipu_cm_read@PLT
	mov	esi, DWORD PTR [rbx]
	mov	edx, DWORD PTR 8[rbx]
	mov	rdi, rbp
	not	esi
	and	esi, eax
	or	esi, DWORD PTR 4[rbx]
	call	ipu_cm_write@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, DWORD PTR 20[rbx]
	mov	rdi, rbp
	call	ipu_cm_read@PLT
	mov	esi, DWORD PTR 12[rbx]
	mov	edx, DWORD PTR 20[rbx]
	mov	rdi, rbp
	not	esi
	and	esi, eax
	or	esi, DWORD PTR 16[rbx]
	call	ipu_cm_write@PLT
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L5
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	ipu_fsu_link, .-ipu_fsu_link
	.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_ipu-common.c_ipu_fsu_link.c"
	.text
	.align	2
	.global	ipu_fsu_link
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipu_fsu_link, %function
ipu_fsu_link:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r1
	push	{r4, r5, r6, lr}
	mov	r1, r2
	mov	r5, r0
	mov	r0, r3
	bl	find_fsu_link_info
	subs	r4, r0, #0
	beq	.L14
	mov	r1, #0
	mov	r0, r5
	bl	spin_lock_irqsave
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L16
.L5:
	mov	r0, r5
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L16:
	ldr	r1, [r4, #8]
	mov	r0, r5
	bl	ipu_cm_read
	ldr	r3, [r4]
	ldr	r1, [r4, #4]
	bic	r0, r0, r3
	orr	r1, r0, r1
	ldr	r2, [r4, #8]
	mov	r0, r5
	bl	ipu_cm_write
	b	.L5
.L15:
	ldr	r1, [r4, #20]
	mov	r0, r5
	bl	ipu_cm_read
	ldr	r3, [r4, #12]
	ldr	r1, [r4, #16]
	bic	r0, r0, r3
	orr	r1, r0, r1
	ldr	r2, [r4, #20]
	mov	r0, r5
	bl	ipu_cm_write
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L5
	b	.L16
.L14:
	ldr	r3, .L17
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L18:
	.align	2
.L17:
	.word	EINVAL
	.size	ipu_fsu_link, .-ipu_fsu_link
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
