	.file	"extr_isph3a_aewb.c_h3a_aewb_validate_params.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	h3a_aewb_validate_params, @function
h3a_aewb_validate_params:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xor	edi, edi
	mov	rax, QWORD PTR OMAP3ISP_AEWB_MAX_SATURATION_LIM[rip]
	mov	rbx, rsi
	cmp	QWORD PTR [rsi], rax
	setg	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L38
	mov	eax, DWORD PTR 8[rbx]
	cmp	eax, DWORD PTR OMAP3ISP_AEWB_MIN_WIN_H[rip]
	mov	edi, 1
	jge	.L40
.L4:
	call	unlikely@PLT
	test	rax, rax
	jne	.L38
.L5:
	mov	eax, DWORD PTR 12[rbx]
	cmp	eax, DWORD PTR OMAP3ISP_AEWB_MIN_WIN_W[rip]
	mov	edi, 1
	jl	.L6
	cmp	eax, DWORD PTR OMAP3ISP_AEWB_MAX_WIN_W[rip]
	jle	.L41
.L6:
	call	unlikely@PLT
	test	rax, rax
	jne	.L38
	mov	rax, QWORD PTR 16[rbx]
	cmp	rax, QWORD PTR OMAP3ISP_AEWB_MIN_WINVC[rip]
	mov	edi, 1
	jge	.L42
	call	unlikely@PLT
	test	rax, rax
	jne	.L38
.L9:
	mov	rax, QWORD PTR 24[rbx]
	cmp	rax, QWORD PTR OMAP3ISP_AEWB_MIN_WINHC[rip]
	mov	edi, 1
	jl	.L10
	xor	edi, edi
	cmp	rax, QWORD PTR OMAP3ISP_AEWB_MAX_WINHC[rip]
	setg	dil
.L10:
	call	unlikely@PLT
	test	rax, rax
	jne	.L38
	xor	edi, edi
	mov	rax, QWORD PTR OMAP3ISP_AEWB_MAX_WINSTART[rip]
	cmp	QWORD PTR 32[rbx], rax
	setg	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L12
	.p2align 4,,10
	.p2align 3
.L38:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L40:
	.cfi_restore_state
	cmp	eax, DWORD PTR OMAP3ISP_AEWB_MAX_WIN_H[rip]
	jg	.L4
	and	eax, 1
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	je	.L5
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L42:
	xor	edi, edi
	cmp	rax, QWORD PTR OMAP3ISP_AEWB_MAX_WINVC[rip]
	setg	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L9
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L41:
	and	eax, 1
	mov	edi, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	xor	edi, edi
	mov	rax, QWORD PTR OMAP3ISP_AEWB_MAX_WINSTART[rip]
	cmp	QWORD PTR 40[rbx], rax
	setg	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L38
	xor	edi, edi
	mov	rax, QWORD PTR OMAP3ISP_AEWB_MAX_WINSTART[rip]
	cmp	QWORD PTR 48[rbx], rax
	setg	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L38
	mov	eax, DWORD PTR 56[rbx]
	cmp	eax, DWORD PTR OMAP3ISP_AEWB_MIN_WIN_H[rip]
	mov	edi, 1
	jl	.L15
	cmp	eax, DWORD PTR OMAP3ISP_AEWB_MAX_WIN_H[rip]
	jg	.L15
	and	eax, 1
	mov	edi, eax
.L15:
	call	unlikely@PLT
	test	rax, rax
	jne	.L38
	mov	eax, DWORD PTR 60[rbx]
	cmp	eax, DWORD PTR OMAP3ISP_AEWB_MIN_SUB_INC[rip]
	mov	edi, 1
	jl	.L17
	cmp	eax, DWORD PTR OMAP3ISP_AEWB_MAX_SUB_INC[rip]
	jg	.L17
	and	eax, 1
	mov	edi, eax
.L17:
	call	unlikely@PLT
	test	rax, rax
	jne	.L38
	mov	eax, DWORD PTR 64[rbx]
	cmp	eax, DWORD PTR OMAP3ISP_AEWB_MIN_SUB_INC[rip]
	mov	edi, 1
	jl	.L19
	cmp	eax, DWORD PTR OMAP3ISP_AEWB_MAX_SUB_INC[rip]
	jg	.L19
	and	eax, 1
	mov	edi, eax
.L19:
	call	unlikely@PLT
	test	rax, rax
	jne	.L38
	mov	rdi, rbx
	call	h3a_aewb_get_buf_size@PLT
	mov	rdx, QWORD PTR 72[rbx]
	cmp	rdx, rax
	jge	.L21
	mov	QWORD PTR 72[rbx], rax
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	mov	rcx, QWORD PTR OMAP3ISP_AEWB_MAX_BUF_SIZE[rip]
	xor	eax, eax
	cmp	rdx, rcx
	jle	.L1
	mov	QWORD PTR 72[rbx], rcx
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	h3a_aewb_validate_params, .-h3a_aewb_validate_params
	.comm	OMAP3ISP_AEWB_MIN_WIN_W,4,4
	.comm	OMAP3ISP_AEWB_MIN_WIN_H,4,4
	.comm	OMAP3ISP_AEWB_MIN_WINVC,8,8
	.comm	OMAP3ISP_AEWB_MIN_WINHC,8,8
	.comm	OMAP3ISP_AEWB_MIN_SUB_INC,4,4
	.comm	OMAP3ISP_AEWB_MAX_WIN_W,4,4
	.comm	OMAP3ISP_AEWB_MAX_WIN_H,4,4
	.comm	OMAP3ISP_AEWB_MAX_WINVC,8,8
	.comm	OMAP3ISP_AEWB_MAX_WINSTART,8,8
	.comm	OMAP3ISP_AEWB_MAX_WINHC,8,8
	.comm	OMAP3ISP_AEWB_MAX_SUB_INC,4,4
	.comm	OMAP3ISP_AEWB_MAX_SATURATION_LIM,8,8
	.comm	OMAP3ISP_AEWB_MAX_BUF_SIZE,8,8
	.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_isph3a_aewb.c_h3a_aewb_validate_params.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	h3a_aewb_validate_params, %function
h3a_aewb_validate_params:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L41
	ldr	r0, [r1]
	ldr	r3, [r3]
	push	{r4, r5, r6, lr}
	cmp	r0, r3
	movle	r0, #0
	movgt	r0, #1
	mov	r4, r1
	bl	unlikely
	cmp	r0, #0
	bne	.L37
	ldr	r5, .L41+4
	ldr	r0, [r4, #4]
	ldr	r3, [r5]
	cmp	r0, r3
	bge	.L39
.L23:
	mov	r0, #1
.L4:
	bl	unlikely
	cmp	r0, #0
	bne	.L37
	ldr	r3, .L41+8
	ldr	r0, [r4, #8]
	ldr	r3, [r3]
	cmp	r0, r3
	blt	.L25
	ldr	r3, .L41+12
	ldr	r3, [r3]
	cmp	r0, r3
	andle	r0, r0, #1
	bgt	.L25
.L6:
	bl	unlikely
	cmp	r0, #0
	bne	.L37
	ldr	r3, .L41+16
	ldr	r0, [r4, #12]
	ldr	r3, [r3]
	cmp	r0, r3
	movlt	r0, #1
	bge	.L40
	bl	unlikely
	cmp	r0, #0
	bne	.L37
.L9:
	ldr	r3, .L41+20
	ldr	r0, [r4, #16]
	ldr	r3, [r3]
	cmp	r0, r3
	movlt	r0, #1
	blt	.L10
	ldr	r3, .L41+24
	ldr	r3, [r3]
	cmp	r0, r3
	movle	r0, #0
	movgt	r0, #1
.L10:
	bl	unlikely
	cmp	r0, #0
	bne	.L37
	ldr	r6, .L41+28
	ldr	r0, [r4, #20]
	ldr	r3, [r6]
	cmp	r0, r3
	movle	r0, #0
	movgt	r0, #1
	bl	unlikely
	cmp	r0, #0
	beq	.L12
.L37:
	ldr	r3, .L41+32
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L39:
	ldr	r3, .L41+36
	ldr	r3, [r3]
	cmp	r0, r3
	andle	r0, r0, #1
	ble	.L4
	b	.L23
.L25:
	mov	r0, #1
	b	.L6
.L40:
	ldr	r3, .L41+40
	ldr	r3, [r3]
	cmp	r0, r3
	movle	r0, #0
	movgt	r0, #1
	bl	unlikely
	cmp	r0, #0
	beq	.L9
	b	.L37
.L12:
	ldr	r0, [r4, #24]
	ldr	r3, [r6]
	cmp	r0, r3
	movle	r0, #0
	movgt	r0, #1
	bl	unlikely
	cmp	r0, #0
	bne	.L37
	ldr	r0, [r4, #28]
	ldr	r3, [r6]
	cmp	r0, r3
	movle	r0, #0
	movgt	r0, #1
	bl	unlikely
	cmp	r0, #0
	bne	.L37
	ldr	r2, [r5]
	ldr	r3, [r4, #32]
	cmp	r3, r2
	blt	.L29
	ldr	r2, .L41+36
	ldr	r2, [r2]
	cmp	r3, r2
	andle	r0, r3, #1
	ble	.L15
.L29:
	mov	r0, #1
.L15:
	bl	unlikely
	cmp	r0, #0
	bne	.L37
	ldr	r5, .L41+44
	ldr	r3, [r4, #36]
	ldr	r2, [r5]
	cmp	r3, r2
	blt	.L31
	ldr	r2, .L41+48
	ldr	r2, [r2]
	cmp	r3, r2
	andle	r0, r3, #1
	ble	.L17
.L31:
	mov	r0, #1
.L17:
	bl	unlikely
	cmp	r0, #0
	bne	.L37
	ldr	r2, [r5]
	ldr	r3, [r4, #40]
	cmp	r3, r2
	blt	.L33
	ldr	r2, .L41+48
	ldr	r2, [r2]
	cmp	r3, r2
	andle	r0, r3, #1
	ble	.L19
.L33:
	mov	r0, #1
.L19:
	bl	unlikely
	subs	r5, r0, #0
	bne	.L37
	mov	r0, r4
	bl	h3a_aewb_get_buf_size
	ldr	r3, [r4, #44]
	cmp	r3, r0
	strlt	r0, [r4, #44]
	blt	.L1
	ldr	r2, .L41+52
	ldr	r2, [r2]
	cmp	r3, r2
	strgt	r2, [r4, #44]
	b	.L1
.L42:
	.align	2
.L41:
	.word	OMAP3ISP_AEWB_MAX_SATURATION_LIM
	.word	OMAP3ISP_AEWB_MIN_WIN_H
	.word	OMAP3ISP_AEWB_MIN_WIN_W
	.word	OMAP3ISP_AEWB_MAX_WIN_W
	.word	OMAP3ISP_AEWB_MIN_WINVC
	.word	OMAP3ISP_AEWB_MIN_WINHC
	.word	OMAP3ISP_AEWB_MAX_WINHC
	.word	OMAP3ISP_AEWB_MAX_WINSTART
	.word	EINVAL
	.word	OMAP3ISP_AEWB_MAX_WIN_H
	.word	OMAP3ISP_AEWB_MAX_WINVC
	.word	OMAP3ISP_AEWB_MIN_SUB_INC
	.word	OMAP3ISP_AEWB_MAX_SUB_INC
	.word	OMAP3ISP_AEWB_MAX_BUF_SIZE
	.size	h3a_aewb_validate_params, .-h3a_aewb_validate_params
	.comm	OMAP3ISP_AEWB_MIN_WIN_W,4,4
	.comm	OMAP3ISP_AEWB_MIN_WIN_H,4,4
	.comm	OMAP3ISP_AEWB_MIN_WINVC,4,4
	.comm	OMAP3ISP_AEWB_MIN_WINHC,4,4
	.comm	OMAP3ISP_AEWB_MIN_SUB_INC,4,4
	.comm	OMAP3ISP_AEWB_MAX_WIN_W,4,4
	.comm	OMAP3ISP_AEWB_MAX_WIN_H,4,4
	.comm	OMAP3ISP_AEWB_MAX_WINVC,4,4
	.comm	OMAP3ISP_AEWB_MAX_WINSTART,4,4
	.comm	OMAP3ISP_AEWB_MAX_WINHC,4,4
	.comm	OMAP3ISP_AEWB_MAX_SUB_INC,4,4
	.comm	OMAP3ISP_AEWB_MAX_SATURATION_LIM,4,4
	.comm	OMAP3ISP_AEWB_MAX_BUF_SIZE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
