	.file	"extr_bfa_ioc_ct.c_bfa_ioc_ct_sync_complete.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bfa_ioc_ct_sync_complete, @function
bfa_ioc_ct_sync_complete:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, 1
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	edi, DWORD PTR [rdi]
	call	readl@PLT
	mov	ebp, eax
	mov	edi, eax
	call	bfa_ioc_ct_get_sync_reqd@PLT
	mov	edi, ebp
	mov	r13d, eax
	call	bfa_ioc_ct_get_sync_ackd@PLT
	test	eax, eax
	jne	.L15
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, rbx
	mov	r12d, eax
	call	bfa_ioc_ct_sync_pos@PLT
	test	eax, r13d
	jne	.L16
.L3:
	cmp	r13d, r12d
	jne	.L7
.L6:
	mov	r12d, DWORD PTR [rbx]
	mov	edi, ebp
	mov	r14d, 1
	call	bfa_ioc_ct_clear_sync_ackd@PLT
	mov	edi, eax
	mov	esi, r12d
	call	writel@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR BFI_IOC_FAIL[rip]
	call	writel@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR BFI_IOC_FAIL[rip]
	call	writel@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	r14d, r14d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r14d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rdi, rbx
	call	bfa_ioc_ct_sync_pos@PLT
	and	eax, r12d
	mov	r14d, eax
	jne	.L3
	mov	rdi, rbx
	call	bfa_ioc_ct_sync_pos@PLT
	or	eax, r12d
	mov	edi, eax
	cmp	r13d, eax
	je	.L6
	cmp	r12d, eax
	je	.L7
	mov	esi, DWORD PTR [rbx]
	or	edi, ebp
	call	writel@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	bfa_ioc_ct_sync_complete, .-bfa_ioc_ct_sync_complete
	.comm	BFI_IOC_FAIL,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_bfa_ioc_ct.c_bfa_ioc_ct_sync_complete.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfa_ioc_ct_sync_complete, %function
bfa_ioc_ct_sync_complete:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, [r0]
	bl	readl
	mov	r6, r0
	bl	bfa_ioc_ct_get_sync_reqd
	mov	r8, r0
	mov	r0, r6
	bl	bfa_ioc_ct_get_sync_ackd
	subs	r5, r0, #0
	moveq	r7, #1
	bne	.L14
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r0, r4
	bl	bfa_ioc_ct_sync_pos
	tst	r0, r8
	bne	.L15
.L3:
	cmp	r8, r5
	bne	.L7
.L6:
	mov	r7, #1
	ldr	r5, .L16
	mov	r0, r6
	bl	bfa_ioc_ct_clear_sync_ackd
	ldr	r1, [r4]
	bl	writel
	ldr	r1, [r4, #8]
	ldr	r0, [r5]
	bl	writel
	ldr	r0, [r5]
	ldr	r1, [r4, #4]
	bl	writel
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r7, #0
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	mov	r0, r4
	bl	bfa_ioc_ct_sync_pos
	ands	r7, r0, r5
	bne	.L3
	mov	r0, r4
	bl	bfa_ioc_ct_sync_pos
	orr	r0, r5, r0
	cmp	r8, r0
	beq	.L6
	cmp	r5, r0
	beq	.L7
	ldr	r1, [r4]
	orr	r0, r6, r0
	bl	writel
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	.align	2
.L16:
	.word	BFI_IOC_FAIL
	.size	bfa_ioc_ct_sync_complete, .-bfa_ioc_ct_sync_complete
	.comm	BFI_IOC_FAIL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
