	.file	"extr_ipu_idmac.c_ipu_init_channel_buffer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Stride length must be 32-bit aligned, stride = %d, bytes = %d\n"
	.align 8
.LC1:
	.string	"Stride must be 8 pixel multiple\n"
	.text
	.p2align 4
	.type	ipu_init_channel_buffer, @function
ipu_init_channel_buffer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r9d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r13d, DWORD PTR 4[rdi]
	mov	edi, DWORD PTR 8[rdi]
	mov	DWORD PTR 12[rsp], edx
	mov	DWORD PTR 8[rsp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	to_idmac@PLT
	mov	rdi, rax
	call	to_ipu@PLT
	mov	edi, r14d
	mov	DWORD PTR 20[rsp], 0
	mov	rbp, rax
	call	bytes_per_pixel@PLT
	mov	ecx, DWORD PTR 8[rsp]
	mov	edx, DWORD PTR 12[rsp]
	imul	eax, r12d
	test	al, 3
	mov	r8d, eax
	jne	.L13
	cmp	DWORD PTR IDMAC_IC_13[rip], r13d
	jb	.L4
	and	r12d, 7
	jne	.L14
.L4:
	lea	r12, 20[rsp]
	mov	esi, r14d
	xor	r14d, r14d
	mov	rdi, r12
	call	ipu_ch_param_set_size@PLT
	mov	edx, DWORD PTR 104[rsp]
	mov	esi, DWORD PTR 96[rsp]
	mov	rdi, r12
	call	ipu_ch_param_set_buffer@PLT
	mov	esi, r15d
	mov	rdi, r12
	call	ipu_ch_param_set_rotation@PLT
	mov	rsi, r14
	mov	rdi, rbp
	call	spin_lock_irqsave@PLT
	mov	edi, r13d
	call	dma_param_addr@PLT
	mov	edx, 10
	mov	rsi, r12
	mov	edi, eax
	call	ipu_write_param_mem@PLT
	mov	esi, DWORD PTR IPU_CHA_DB_MODE_SEL[rip]
	mov	rdi, rbp
	call	idmac_read_ipureg@PLT
	mov	ecx, r13d
	mov	esi, 1
	mov	rdi, rbp
	sal	rsi, cl
	mov	ecx, DWORD PTR 104[rsp]
	mov	edx, esi
	not	edx
	and	edx, eax
	or	eax, esi
	test	ecx, ecx
	mov	esi, edx
	mov	edx, DWORD PTR IPU_CHA_DB_MODE_SEL[rip]
	cmovne	esi, eax
	call	idmac_write_ipureg@PLT
	mov	eax, DWORD PTR IPU_CHANNEL_READY[rip]
	mov	rsi, r14
	mov	rdi, rbp
	mov	DWORD PTR [rbx], eax
	call	spin_unlock_irqrestore@PLT
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR 24[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbp]
	mov	ecx, eax
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR 4[rbp]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ipu_init_channel_buffer, .-ipu_init_channel_buffer
	.comm	IPU_CHA_DB_MODE_SEL,4,4
	.comm	IPU_CHANNEL_READY,4,4
	.comm	IDMAC_IC_13,4,4
	.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_idmac.c_ipu_init_channel_buffer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Stride length must be 32-bit aligned, stride = %d, "
	.ascii	"bytes = %d\012\000"
	.align	2
.LC1:
	.ascii	"Stride must be 8 pixel multiple\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipu_init_channel_buffer, %function
ipu_init_channel_buffer:
	@ args = 16, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	fp, r3
	ldr	r3, .L16
	sub	sp, sp, #20
	ldr	r0, [r0, #8]
	mov	r6, r1
	mov	r10, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r9, [sp, #56]
	ldr	r7, [r5, #4]
	ldr	r8, [sp, #68]
	bl	to_idmac
	bl	to_ipu
	mov	r3, #0
	mov	r4, r0
	mov	r0, r6
	str	r3, [sp, #8]
	bl	bytes_per_pixel
	mul	r0, r9, r0
	tst	r0, #3
	bne	.L13
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r3, r7
	bcc	.L4
	tst	r9, #7
	bne	.L14
.L4:
	mov	r3, fp
	mov	r1, r6
	mov	r2, r10
	str	r0, [sp]
	add	r0, sp, #8
	bl	ipu_ch_param_set_size
	mov	r2, r8
	ldr	r1, [sp, #64]
	add	r0, sp, #8
	bl	ipu_ch_param_set_buffer
	ldr	r1, [sp, #60]
	add	r0, sp, #8
	bl	ipu_ch_param_set_rotation
	mov	r1, #0
	mov	r0, r4
	bl	spin_lock_irqsave
	ldr	r6, .L16+8
	mov	r0, r7
	bl	dma_param_addr
	mov	r2, #10
	add	r1, sp, #8
	bl	ipu_write_param_mem
	ldr	r1, [r6]
	mov	r0, r4
	bl	idmac_read_ipureg
	mov	r1, #1
	cmp	r8, #0
	lsl	r1, r1, r7
	orrne	r1, r0, r1
	biceq	r1, r0, r1
	ldr	r2, [r6]
	mov	r0, r4
	bl	idmac_write_ipureg
	ldr	r3, .L16+12
	mov	r0, r4
	ldr	r3, [r3]
	mov	r1, #0
	str	r3, [r5]
	bl	spin_unlock_irqrestore
	mov	r0, #0
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	mov	r3, r0
	mov	r2, r9
	ldr	r0, [r4, #4]
	ldr	r1, .L16+16
	bl	dev_err
	ldr	r3, .L16+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L14:
	ldr	r0, [r4, #4]
	ldr	r1, .L16+24
	bl	dev_err
	ldr	r3, .L16+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC2
	.word	IDMAC_IC_13
	.word	IPU_CHA_DB_MODE_SEL
	.word	IPU_CHANNEL_READY
	.word	.LC0
	.word	EINVAL
	.word	.LC1
	.size	ipu_init_channel_buffer, .-ipu_init_channel_buffer
	.comm	IPU_CHA_DB_MODE_SEL,4,4
	.comm	IPU_CHANNEL_READY,4,4
	.comm	IDMAC_IC_13,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
