	.file	"extr_dpu_hw_sspp.c__sspp_setup_opmode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_sspp_setup_opmode, @function
_sspp_setup_opmode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rsi, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR DPU_SSPP_SCALER_QSEED2[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	test_bit@PLT
	test	eax, eax
	jne	.L13
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	esi, DWORD PTR DPU_SSPP_SCALER_QSEED2[rip]
	mov	rdx, rsp
	mov	rdi, rbp
	call	_sspp_subblk_offset@PLT
	test	rax, rax
	jne	.L1
	mov	rsi, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR DPU_SSPP_CSC[rip]
	call	test_bit@PLT
	test	eax, eax
	je	.L1
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, rbp
	add	rsi, QWORD PTR SSPP_VIG_OP_MODE[rip]
	call	DPU_REG_READ@PLT
	mov	rdi, rbp
	mov	rdx, rax
	or	rax, rbx
	not	rbx
	mov	rsi, rbx
	and	rsi, rdx
	test	r12, r12
	cmove	rax, rsi
	mov	rsi, QWORD PTR [rsp]
	add	rsi, QWORD PTR SSPP_VIG_OP_MODE[rip]
	mov	rdx, rax
	call	DPU_REG_WRITE@PLT
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	_sspp_setup_opmode, .-_sspp_setup_opmode
	.comm	SSPP_VIG_OP_MODE,8,8
	.comm	DPU_SSPP_SCALER_QSEED2,4,4
	.comm	DPU_SSPP_CSC,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_dpu_hw_sspp.c__sspp_setup_opmode.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_sspp_setup_opmode, %function
_sspp_setup_opmode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r5, .L15
	ldr	r3, .L15+4
	sub	sp, sp, #12
	mov	r4, r0
	mov	r7, r1
	ldr	r1, [r0, #4]
	ldr	r0, [r5]
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	test_bit
	cmp	r0, #0
	bne	.L13
.L1:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L13:
	mov	r2, sp
	mov	r0, r4
	ldr	r1, [r5]
	bl	_sspp_subblk_offset
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L15+8
	ldr	r1, [r4, #4]
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	beq	.L1
	ldr	r5, .L15+12
	ldr	r3, [sp]
	ldr	r1, [r5]
	mov	r0, r4
	add	r1, r1, r3
	bl	DPU_REG_READ
	ldr	r1, [r5]
	ldr	r3, [sp]
	cmp	r6, #0
	orrne	r2, r0, r7
	biceq	r2, r0, r7
	add	r1, r1, r3
	mov	r0, r4
	bl	DPU_REG_WRITE
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	DPU_SSPP_SCALER_QSEED2
	.word	.LC0
	.word	DPU_SSPP_CSC
	.word	SSPP_VIG_OP_MODE
	.size	_sspp_setup_opmode, .-_sspp_setup_opmode
	.comm	SSPP_VIG_OP_MODE,4,4
	.comm	DPU_SSPP_SCALER_QSEED2,4,4
	.comm	DPU_SSPP_CSC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
