	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h3a_aewb_validate_params
_h3a_aewb_validate_params:              ## @h3a_aewb_validate_params
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	(%rsi), %rax
	movq	_OMAP3ISP_AEWB_MAX_SATURATION_LIM@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movl	8(%r13), %eax
	movq	_OMAP3ISP_AEWB_MAX_WIN_H@GOTPCREL(%rip), %r15
	movl	%eax, %edi
	andl	$1, %edi
	cmpl	(%r15), %eax
	movq	_OMAP3ISP_AEWB_MIN_WIN_H@GOTPCREL(%rip), %r14
	movl	$1, %ebx
	cmovgl	%ebx, %edi
	cmpl	(%r14), %eax
	cmovll	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	movl	12(%r13), %eax
	movq	_OMAP3ISP_AEWB_MIN_WIN_W@GOTPCREL(%rip), %rcx
	movq	_OMAP3ISP_AEWB_MAX_WIN_W@GOTPCREL(%rip), %rdx
	movl	%eax, %edi
	andl	$1, %edi
	cmpl	(%rdx), %eax
	cmovgl	%ebx, %edi
	cmpl	(%rcx), %eax
	cmovll	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
## %bb.4:
	movq	16(%r13), %rax
	movq	_OMAP3ISP_AEWB_MIN_WINVC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setl	%cl
	movq	_OMAP3ISP_AEWB_MAX_WINVC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setg	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
## %bb.5:
	movq	24(%r13), %rax
	movq	_OMAP3ISP_AEWB_MIN_WINHC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setl	%cl
	movq	_OMAP3ISP_AEWB_MAX_WINHC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setg	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
## %bb.6:
	movq	32(%r13), %rax
	movq	_OMAP3ISP_AEWB_MAX_WINSTART@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
## %bb.7:
	movq	40(%r13), %rax
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
## %bb.8:
	movq	48(%r13), %rax
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
## %bb.9:
	movl	56(%r13), %eax
	movl	%eax, %edi
	andl	$1, %edi
	cmpl	(%r15), %eax
	movl	$1, %ebx
	cmovgl	%ebx, %edi
	cmpl	(%r14), %eax
	cmovll	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
## %bb.10:
	movl	60(%r13), %eax
	movq	_OMAP3ISP_AEWB_MIN_SUB_INC@GOTPCREL(%rip), %r14
	movq	_OMAP3ISP_AEWB_MAX_SUB_INC@GOTPCREL(%rip), %r15
	movl	%eax, %edi
	andl	$1, %edi
	cmpl	(%r15), %eax
	cmovgl	%ebx, %edi
	cmpl	(%r14), %eax
	cmovll	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
## %bb.11:
	movl	64(%r13), %eax
	movl	%eax, %edi
	andl	$1, %edi
	cmpl	(%r15), %eax
	movl	$1, %ecx
	cmovgl	%ecx, %edi
	cmpl	(%r14), %eax
	cmovll	%ecx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r13, %rdi
	callq	_h3a_aewb_get_buf_size
	movq	72(%r13), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_14
## %bb.13:
	movq	%rax, 72(%r13)
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_14:
	movq	_OMAP3ISP_AEWB_MAX_BUF_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%eax, %eax
	cmpq	%rdx, %rcx
	jle	LBB0_16
## %bb.15:
	movq	%rdx, 72(%r13)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP3ISP_AEWB_MAX_SATURATION_LIM,8,3 ## @OMAP3ISP_AEWB_MAX_SATURATION_LIM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OMAP3ISP_AEWB_MIN_WIN_H,4,2    ## @OMAP3ISP_AEWB_MIN_WIN_H
	.comm	_OMAP3ISP_AEWB_MAX_WIN_H,4,2    ## @OMAP3ISP_AEWB_MAX_WIN_H
	.comm	_OMAP3ISP_AEWB_MIN_WIN_W,4,2    ## @OMAP3ISP_AEWB_MIN_WIN_W
	.comm	_OMAP3ISP_AEWB_MAX_WIN_W,4,2    ## @OMAP3ISP_AEWB_MAX_WIN_W
	.comm	_OMAP3ISP_AEWB_MIN_WINVC,8,3    ## @OMAP3ISP_AEWB_MIN_WINVC
	.comm	_OMAP3ISP_AEWB_MAX_WINVC,8,3    ## @OMAP3ISP_AEWB_MAX_WINVC
	.comm	_OMAP3ISP_AEWB_MIN_WINHC,8,3    ## @OMAP3ISP_AEWB_MIN_WINHC
	.comm	_OMAP3ISP_AEWB_MAX_WINHC,8,3    ## @OMAP3ISP_AEWB_MAX_WINHC
	.comm	_OMAP3ISP_AEWB_MAX_WINSTART,8,3 ## @OMAP3ISP_AEWB_MAX_WINSTART
	.comm	_OMAP3ISP_AEWB_MIN_SUB_INC,4,2  ## @OMAP3ISP_AEWB_MIN_SUB_INC
	.comm	_OMAP3ISP_AEWB_MAX_SUB_INC,4,2  ## @OMAP3ISP_AEWB_MAX_SUB_INC
	.comm	_OMAP3ISP_AEWB_MAX_BUF_SIZE,8,3 ## @OMAP3ISP_AEWB_MAX_BUF_SIZE
	.no_dead_strip	_h3a_aewb_validate_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h3a_aewb_validate_params
_h3a_aewb_validate_params:              ; @h3a_aewb_validate_params
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _OMAP3ISP_AEWB_MAX_SATURATION_LIM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OMAP3ISP_AEWB_MAX_SATURATION_LIM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, gt
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.1:
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x20, _OMAP3ISP_AEWB_MIN_WIN_H@GOTPAGE
Lloh4:
	ldr	x20, [x20, _OMAP3ISP_AEWB_MIN_WIN_H@GOTPAGEOFF]
Lloh5:
	adrp	x21, _OMAP3ISP_AEWB_MAX_WIN_H@GOTPAGE
Lloh6:
	ldr	x21, [x21, _OMAP3ISP_AEWB_MAX_WIN_H@GOTPAGEOFF]
	ldr	w9, [x20]
	ldr	w10, [x21]
	cmp	w8, w10
	ccmp	w8, w9, #8, le
	and	w8, w8, #0x1
	csinc	w0, w8, wzr, ge
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.2:
	ldr	w8, [x19, #12]
Lloh7:
	adrp	x9, _OMAP3ISP_AEWB_MIN_WIN_W@GOTPAGE
Lloh8:
	ldr	x9, [x9, _OMAP3ISP_AEWB_MIN_WIN_W@GOTPAGEOFF]
Lloh9:
	adrp	x10, _OMAP3ISP_AEWB_MAX_WIN_W@GOTPAGE
Lloh10:
	ldr	x10, [x10, _OMAP3ISP_AEWB_MAX_WIN_W@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	ldr	w10, [x10]
	cmp	w8, w10
	ccmp	w8, w9, #8, le
	and	w8, w8, #0x1
	csinc	w0, w8, wzr, ge
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.3:
	ldr	x8, [x19, #16]
Lloh13:
	adrp	x9, _OMAP3ISP_AEWB_MIN_WINVC@GOTPAGE
Lloh14:
	ldr	x9, [x9, _OMAP3ISP_AEWB_MIN_WINVC@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh16:
	adrp	x9, _OMAP3ISP_AEWB_MAX_WINVC@GOTPAGE
Lloh17:
	ldr	x9, [x9, _OMAP3ISP_AEWB_MAX_WINVC@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	ccmp	x8, x9, #0, ge
	cset	w0, gt
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.4:
	ldr	x8, [x19, #24]
Lloh19:
	adrp	x9, _OMAP3ISP_AEWB_MIN_WINHC@GOTPAGE
Lloh20:
	ldr	x9, [x9, _OMAP3ISP_AEWB_MIN_WINHC@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh22:
	adrp	x9, _OMAP3ISP_AEWB_MAX_WINHC@GOTPAGE
Lloh23:
	ldr	x9, [x9, _OMAP3ISP_AEWB_MAX_WINHC@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	ccmp	x8, x9, #0, ge
	cset	w0, gt
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.5:
	ldr	x8, [x19, #32]
Lloh25:
	adrp	x22, _OMAP3ISP_AEWB_MAX_WINSTART@GOTPAGE
Lloh26:
	ldr	x22, [x22, _OMAP3ISP_AEWB_MAX_WINSTART@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, gt
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.6:
	ldr	x8, [x19, #40]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, gt
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.7:
	ldr	x8, [x19, #48]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, gt
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.8:
	ldr	w8, [x19, #56]
	ldr	w9, [x20]
	ldr	w10, [x21]
	cmp	w8, w10
	ccmp	w8, w9, #8, le
	and	w8, w8, #0x1
	csinc	w0, w8, wzr, ge
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.9:
	ldr	w8, [x19, #60]
Lloh27:
	adrp	x20, _OMAP3ISP_AEWB_MIN_SUB_INC@GOTPAGE
Lloh28:
	ldr	x20, [x20, _OMAP3ISP_AEWB_MIN_SUB_INC@GOTPAGEOFF]
Lloh29:
	adrp	x21, _OMAP3ISP_AEWB_MAX_SUB_INC@GOTPAGE
Lloh30:
	ldr	x21, [x21, _OMAP3ISP_AEWB_MAX_SUB_INC@GOTPAGEOFF]
	ldr	w9, [x20]
	ldr	w10, [x21]
	cmp	w8, w10
	ccmp	w8, w9, #8, le
	and	w8, w8, #0x1
	csinc	w0, w8, wzr, ge
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.10:
	ldr	w8, [x19, #64]
	ldr	w9, [x20]
	ldr	w10, [x21]
	cmp	w8, w10
	ccmp	w8, w9, #8, le
	and	w8, w8, #0x1
	csinc	w0, w8, wzr, ge
	bl	_unlikely
	cbz	x0, LBB0_13
LBB0_11:
Lloh31:
	adrp	x8, _EINVAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	x0, x19
	bl	_h3a_aewb_get_buf_size
	ldr	x9, [x19, #72]
	cmp	x0, x9
	b.le	LBB0_15
; %bb.14:
	mov	x8, x0
	b	LBB0_16
LBB0_15:
Lloh34:
	adrp	x8, _OMAP3ISP_AEWB_MAX_BUF_SIZE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _OMAP3ISP_AEWB_MAX_BUF_SIZE@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	cmp	x9, x8
	b.le	LBB0_17
LBB0_16:
	mov	w0, #0
	str	x8, [x19, #72]
	b	LBB0_12
LBB0_17:
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP3ISP_AEWB_MAX_SATURATION_LIM,8,3 ; @OMAP3ISP_AEWB_MAX_SATURATION_LIM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OMAP3ISP_AEWB_MIN_WIN_H,4,2    ; @OMAP3ISP_AEWB_MIN_WIN_H
	.comm	_OMAP3ISP_AEWB_MAX_WIN_H,4,2    ; @OMAP3ISP_AEWB_MAX_WIN_H
	.comm	_OMAP3ISP_AEWB_MIN_WIN_W,4,2    ; @OMAP3ISP_AEWB_MIN_WIN_W
	.comm	_OMAP3ISP_AEWB_MAX_WIN_W,4,2    ; @OMAP3ISP_AEWB_MAX_WIN_W
	.comm	_OMAP3ISP_AEWB_MIN_WINVC,8,3    ; @OMAP3ISP_AEWB_MIN_WINVC
	.comm	_OMAP3ISP_AEWB_MAX_WINVC,8,3    ; @OMAP3ISP_AEWB_MAX_WINVC
	.comm	_OMAP3ISP_AEWB_MIN_WINHC,8,3    ; @OMAP3ISP_AEWB_MIN_WINHC
	.comm	_OMAP3ISP_AEWB_MAX_WINHC,8,3    ; @OMAP3ISP_AEWB_MAX_WINHC
	.comm	_OMAP3ISP_AEWB_MAX_WINSTART,8,3 ; @OMAP3ISP_AEWB_MAX_WINSTART
	.comm	_OMAP3ISP_AEWB_MIN_SUB_INC,4,2  ; @OMAP3ISP_AEWB_MIN_SUB_INC
	.comm	_OMAP3ISP_AEWB_MAX_SUB_INC,4,2  ; @OMAP3ISP_AEWB_MAX_SUB_INC
	.comm	_OMAP3ISP_AEWB_MAX_BUF_SIZE,8,3 ; @OMAP3ISP_AEWB_MAX_BUF_SIZE
	.no_dead_strip	_h3a_aewb_validate_params
.subsections_via_symbols
