	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h3a_af_validate_params
_h3a_af_validate_params:                ## @h3a_af_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	32(%rsi), %edi
	movq	_OMAP3ISP_AF_PAXEL_HORIZONTAL_COUNT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OMAP3ISP_AF_PAXEL_HORIZONTAL_COUNT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_IS_OUT_OF_BOUNDS
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movl	36(%rbx), %edi
	movq	_OMAP3ISP_AF_PAXEL_VERTICAL_COUNT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OMAP3ISP_AF_PAXEL_VERTICAL_COUNT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_IS_OUT_OF_BOUNDS
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	movl	40(%rbx), %edi
	movq	_OMAP3ISP_AF_PAXEL_HEIGHT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OMAP3ISP_AF_PAXEL_HEIGHT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_IS_OUT_OF_BOUNDS
	testq	%rax, %rax
	jne	LBB0_1
## %bb.4:
	testb	$1, 40(%rbx)
	jne	LBB0_1
## %bb.5:
	movl	44(%rbx), %edi
	movq	_OMAP3ISP_AF_PAXEL_WIDTH_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OMAP3ISP_AF_PAXEL_WIDTH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_IS_OUT_OF_BOUNDS
	testq	%rax, %rax
	jne	LBB0_1
## %bb.6:
	testb	$1, 44(%rbx)
	jne	LBB0_1
## %bb.7:
	movl	48(%rbx), %edi
	movq	_OMAP3ISP_AF_PAXEL_INCREMENT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OMAP3ISP_AF_PAXEL_INCREMENT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_IS_OUT_OF_BOUNDS
	testq	%rax, %rax
	jne	LBB0_1
## %bb.8:
	testb	$1, 48(%rbx)
	jne	LBB0_1
## %bb.9:
	movq	56(%rbx), %rdi
	cmpq	8(%rbx), %rdi
	jl	LBB0_1
## %bb.10:
	movq	_OMAP3ISP_AF_PAXEL_HZSTART_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OMAP3ISP_AF_PAXEL_HZSTART_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_IS_OUT_OF_BOUNDS
	testq	%rax, %rax
	je	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_11:
	movq	_OMAP3ISP_AF_NUM_COEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_16
## %bb.12:
	movq	16(%rbx), %rcx
	movq	_OMAP3ISP_AF_COEF_MAX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%esi, %esi
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rcx,%rsi,8)
	jg	LBB0_1
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	24(%rbx), %rdi
	cmpq	%rdx, (%rdi,%rsi,8)
	jg	LBB0_1
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_14
LBB0_16:
	movl	8(%rbx), %edi
	movq	_OMAP3ISP_AF_IIRSH_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OMAP3ISP_AF_IIRSH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_IS_OUT_OF_BOUNDS
	testq	%rax, %rax
	jne	LBB0_1
## %bb.17:
	movl	36(%rbx), %eax
	imull	32(%rbx), %eax
	cmpl	$10, %eax
	jl	LBB0_19
## %bb.18:
	movl	40(%rbx), %eax
	imull	44(%rbx), %eax
	cmpl	$12, %eax
	je	LBB0_1
LBB0_19:
	movq	%rbx, %rdi
	callq	_h3a_af_get_buf_size
	movq	(%rbx), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_21
## %bb.20:
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_23
LBB0_21:
	movq	_OMAP3ISP_AF_MAX_BUF_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%eax, %eax
	cmpq	%rdx, %rcx
	jle	LBB0_23
## %bb.22:
	movq	%rdx, (%rbx)
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP3ISP_AF_PAXEL_HORIZONTAL_COUNT_MIN,4,2 ## @OMAP3ISP_AF_PAXEL_HORIZONTAL_COUNT_MIN
	.comm	_OMAP3ISP_AF_PAXEL_HORIZONTAL_COUNT_MAX,4,2 ## @OMAP3ISP_AF_PAXEL_HORIZONTAL_COUNT_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OMAP3ISP_AF_PAXEL_VERTICAL_COUNT_MIN,4,2 ## @OMAP3ISP_AF_PAXEL_VERTICAL_COUNT_MIN
	.comm	_OMAP3ISP_AF_PAXEL_VERTICAL_COUNT_MAX,4,2 ## @OMAP3ISP_AF_PAXEL_VERTICAL_COUNT_MAX
	.comm	_OMAP3ISP_AF_PAXEL_HEIGHT_MIN,4,2 ## @OMAP3ISP_AF_PAXEL_HEIGHT_MIN
	.comm	_OMAP3ISP_AF_PAXEL_HEIGHT_MAX,4,2 ## @OMAP3ISP_AF_PAXEL_HEIGHT_MAX
	.comm	_OMAP3ISP_AF_PAXEL_WIDTH_MIN,4,2 ## @OMAP3ISP_AF_PAXEL_WIDTH_MIN
	.comm	_OMAP3ISP_AF_PAXEL_WIDTH_MAX,4,2 ## @OMAP3ISP_AF_PAXEL_WIDTH_MAX
	.comm	_OMAP3ISP_AF_PAXEL_INCREMENT_MIN,4,2 ## @OMAP3ISP_AF_PAXEL_INCREMENT_MIN
	.comm	_OMAP3ISP_AF_PAXEL_INCREMENT_MAX,4,2 ## @OMAP3ISP_AF_PAXEL_INCREMENT_MAX
	.comm	_OMAP3ISP_AF_PAXEL_HZSTART_MIN,4,2 ## @OMAP3ISP_AF_PAXEL_HZSTART_MIN
	.comm	_OMAP3ISP_AF_PAXEL_HZSTART_MAX,4,2 ## @OMAP3ISP_AF_PAXEL_HZSTART_MAX
	.comm	_OMAP3ISP_AF_NUM_COEF,4,2       ## @OMAP3ISP_AF_NUM_COEF
	.comm	_OMAP3ISP_AF_COEF_MAX,8,3       ## @OMAP3ISP_AF_COEF_MAX
	.comm	_OMAP3ISP_AF_IIRSH_MIN,4,2      ## @OMAP3ISP_AF_IIRSH_MIN
	.comm	_OMAP3ISP_AF_IIRSH_MAX,4,2      ## @OMAP3ISP_AF_IIRSH_MAX
	.comm	_OMAP3ISP_AF_MAX_BUF_SIZE,8,3   ## @OMAP3ISP_AF_MAX_BUF_SIZE
	.no_dead_strip	_h3a_af_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_af_validate_params
_h3a_af_validate_params:                ; @h3a_af_validate_params
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w0, [x1, #32]
Lloh0:
	adrp	x8, _OMAP3ISP_AF_PAXEL_HORIZONTAL_COUNT_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OMAP3ISP_AF_PAXEL_HORIZONTAL_COUNT_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _OMAP3ISP_AF_PAXEL_HORIZONTAL_COUNT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OMAP3ISP_AF_PAXEL_HORIZONTAL_COUNT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_IS_OUT_OF_BOUNDS
	cbnz	x0, LBB0_10
; %bb.1:
	ldr	w0, [x19, #36]
Lloh6:
	adrp	x8, _OMAP3ISP_AF_PAXEL_VERTICAL_COUNT_MIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OMAP3ISP_AF_PAXEL_VERTICAL_COUNT_MIN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _OMAP3ISP_AF_PAXEL_VERTICAL_COUNT_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OMAP3ISP_AF_PAXEL_VERTICAL_COUNT_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_IS_OUT_OF_BOUNDS
	cbnz	x0, LBB0_10
; %bb.2:
	ldr	w0, [x19, #40]
Lloh12:
	adrp	x8, _OMAP3ISP_AF_PAXEL_HEIGHT_MIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OMAP3ISP_AF_PAXEL_HEIGHT_MIN@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _OMAP3ISP_AF_PAXEL_HEIGHT_MAX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OMAP3ISP_AF_PAXEL_HEIGHT_MAX@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bl	_IS_OUT_OF_BOUNDS
	cbnz	x0, LBB0_10
; %bb.3:
	ldrb	w8, [x19, #40]
	tbnz	w8, #0, LBB0_10
; %bb.4:
	ldr	w0, [x19, #44]
Lloh18:
	adrp	x8, _OMAP3ISP_AF_PAXEL_WIDTH_MIN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OMAP3ISP_AF_PAXEL_WIDTH_MIN@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _OMAP3ISP_AF_PAXEL_WIDTH_MAX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _OMAP3ISP_AF_PAXEL_WIDTH_MAX@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	bl	_IS_OUT_OF_BOUNDS
	cbnz	x0, LBB0_10
; %bb.5:
	ldrb	w8, [x19, #44]
	tbnz	w8, #0, LBB0_10
; %bb.6:
	ldr	w0, [x19, #48]
Lloh24:
	adrp	x8, _OMAP3ISP_AF_PAXEL_INCREMENT_MIN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _OMAP3ISP_AF_PAXEL_INCREMENT_MIN@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _OMAP3ISP_AF_PAXEL_INCREMENT_MAX@GOTPAGE
Lloh28:
	ldr	x8, [x8, _OMAP3ISP_AF_PAXEL_INCREMENT_MAX@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	bl	_IS_OUT_OF_BOUNDS
	cbnz	x0, LBB0_10
; %bb.7:
	ldrb	w8, [x19, #48]
	tbnz	w8, #0, LBB0_10
; %bb.8:
	ldr	x0, [x19, #56]
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.lt	LBB0_10
; %bb.9:
Lloh30:
	adrp	x8, _OMAP3ISP_AF_PAXEL_HZSTART_MIN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _OMAP3ISP_AF_PAXEL_HZSTART_MIN@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x8, _OMAP3ISP_AF_PAXEL_HZSTART_MAX@GOTPAGE
Lloh34:
	ldr	x8, [x8, _OMAP3ISP_AF_PAXEL_HZSTART_MAX@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_IS_OUT_OF_BOUNDS
	cbz	x0, LBB0_12
LBB0_10:
Lloh36:
	adrp	x8, _EINVAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh39:
	adrp	x8, _OMAP3ISP_AF_NUM_COEF@GOTPAGE
Lloh40:
	ldr	x8, [x8, _OMAP3ISP_AF_NUM_COEF@GOTPAGEOFF]
Lloh41:
	ldr	w11, [x8]
	cmp	w11, #1
	b.lt	LBB0_17
; %bb.13:
	mov	x8, #0
	ldr	x9, [x19, #16]
Lloh42:
	adrp	x10, _OMAP3ISP_AF_COEF_MAX@GOTPAGE
Lloh43:
	ldr	x10, [x10, _OMAP3ISP_AF_COEF_MAX@GOTPAGEOFF]
Lloh44:
	ldr	x10, [x10]
	lsl	x11, x11, #3
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9, x8]
	cmp	x12, x10
	b.gt	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x12, [x19, #24]
	ldr	x12, [x12, x8]
	cmp	x12, x10
	b.gt	LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x8, x8, #8
	cmp	x11, x8
	b.ne	LBB0_14
LBB0_17:
	ldr	w0, [x19, #8]
Lloh45:
	adrp	x8, _OMAP3ISP_AF_IIRSH_MIN@GOTPAGE
Lloh46:
	ldr	x8, [x8, _OMAP3ISP_AF_IIRSH_MIN@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
Lloh48:
	adrp	x8, _OMAP3ISP_AF_IIRSH_MAX@GOTPAGE
Lloh49:
	ldr	x8, [x8, _OMAP3ISP_AF_IIRSH_MAX@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	bl	_IS_OUT_OF_BOUNDS
	cbnz	x0, LBB0_10
; %bb.18:
	ldp	w8, w9, [x19, #32]
	mul	w8, w9, w8
	cmp	w8, #10
	b.lt	LBB0_20
; %bb.19:
	ldp	w9, w8, [x19, #40]
	mul	w8, w9, w8
	cmp	w8, #12
	b.eq	LBB0_10
LBB0_20:
	mov	x0, x19
	bl	_h3a_af_get_buf_size
	ldr	x9, [x19]
	cmp	x0, x9
	b.le	LBB0_22
; %bb.21:
	mov	x8, x0
	b	LBB0_23
LBB0_22:
Lloh51:
	adrp	x8, _OMAP3ISP_AF_MAX_BUF_SIZE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _OMAP3ISP_AF_MAX_BUF_SIZE@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
	cmp	x9, x8
	b.le	LBB0_24
LBB0_23:
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_11
LBB0_24:
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP3ISP_AF_PAXEL_HORIZONTAL_COUNT_MIN,4,2 ; @OMAP3ISP_AF_PAXEL_HORIZONTAL_COUNT_MIN
	.comm	_OMAP3ISP_AF_PAXEL_HORIZONTAL_COUNT_MAX,4,2 ; @OMAP3ISP_AF_PAXEL_HORIZONTAL_COUNT_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OMAP3ISP_AF_PAXEL_VERTICAL_COUNT_MIN,4,2 ; @OMAP3ISP_AF_PAXEL_VERTICAL_COUNT_MIN
	.comm	_OMAP3ISP_AF_PAXEL_VERTICAL_COUNT_MAX,4,2 ; @OMAP3ISP_AF_PAXEL_VERTICAL_COUNT_MAX
	.comm	_OMAP3ISP_AF_PAXEL_HEIGHT_MIN,4,2 ; @OMAP3ISP_AF_PAXEL_HEIGHT_MIN
	.comm	_OMAP3ISP_AF_PAXEL_HEIGHT_MAX,4,2 ; @OMAP3ISP_AF_PAXEL_HEIGHT_MAX
	.comm	_OMAP3ISP_AF_PAXEL_WIDTH_MIN,4,2 ; @OMAP3ISP_AF_PAXEL_WIDTH_MIN
	.comm	_OMAP3ISP_AF_PAXEL_WIDTH_MAX,4,2 ; @OMAP3ISP_AF_PAXEL_WIDTH_MAX
	.comm	_OMAP3ISP_AF_PAXEL_INCREMENT_MIN,4,2 ; @OMAP3ISP_AF_PAXEL_INCREMENT_MIN
	.comm	_OMAP3ISP_AF_PAXEL_INCREMENT_MAX,4,2 ; @OMAP3ISP_AF_PAXEL_INCREMENT_MAX
	.comm	_OMAP3ISP_AF_PAXEL_HZSTART_MIN,4,2 ; @OMAP3ISP_AF_PAXEL_HZSTART_MIN
	.comm	_OMAP3ISP_AF_PAXEL_HZSTART_MAX,4,2 ; @OMAP3ISP_AF_PAXEL_HZSTART_MAX
	.comm	_OMAP3ISP_AF_NUM_COEF,4,2       ; @OMAP3ISP_AF_NUM_COEF
	.comm	_OMAP3ISP_AF_COEF_MAX,8,3       ; @OMAP3ISP_AF_COEF_MAX
	.comm	_OMAP3ISP_AF_IIRSH_MIN,4,2      ; @OMAP3ISP_AF_IIRSH_MIN
	.comm	_OMAP3ISP_AF_IIRSH_MAX,4,2      ; @OMAP3ISP_AF_IIRSH_MAX
	.comm	_OMAP3ISP_AF_MAX_BUF_SIZE,8,3   ; @OMAP3ISP_AF_MAX_BUF_SIZE
	.no_dead_strip	_h3a_af_validate_params
.subsections_via_symbols
