	.file	"extr_ipu_idmac.c_ipu_channel_status.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ipu_channel_status, @function
ipu_channel_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR IPU_TASKS_STAT[rip]
	mov	r12d, DWORD PTR TASK_STAT_IDLE[rip]
	call	idmac_read_ipureg@PLT
	cmp	ebx, 130
	jne	.L1
	mov	ecx, DWORD PTR TSTAT_CSI2MEM_OFFSET[rip]
	and	eax, DWORD PTR TSTAT_CSI2MEM_MASK[rip]
	sar	eax, cl
	mov	r12d, eax
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ipu_channel_status, .-ipu_channel_status
	.comm	TSTAT_CSI2MEM_OFFSET,4,4
	.comm	TSTAT_CSI2MEM_MASK,4,4
	.comm	TASK_STAT_IDLE,4,4
	.comm	IPU_TASKS_STAT,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_idmac.c_ipu_channel_status.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipu_channel_status, %function
ipu_channel_status:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r2, .L5
	ldr	r3, .L5+4
	ldr	r1, [r2]
	ldr	r5, [r3]
	bl	idmac_read_ipureg
	cmp	r4, #130
	bne	.L1
	ldr	r3, .L5+8
	ldr	r2, .L5+12
	ldr	r3, [r3]
	ldr	r5, [r2]
	and	r0, r0, r3
	asr	r5, r0, r5
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L6:
	.align	2
.L5:
	.word	IPU_TASKS_STAT
	.word	TASK_STAT_IDLE
	.word	TSTAT_CSI2MEM_MASK
	.word	TSTAT_CSI2MEM_OFFSET
	.size	ipu_channel_status, .-ipu_channel_status
	.comm	TSTAT_CSI2MEM_OFFSET,4,4
	.comm	TSTAT_CSI2MEM_MASK,4,4
	.comm	TASK_STAT_IDLE,4,4
	.comm	IPU_TASKS_STAT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
