	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hist_validate_params
_hist_validate_params:                  ## @hist_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rax
	movq	_OMAP3ISP_HIST_CFA_FOVEONX3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_23:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%rsi, %r14
	movl	8(%rsi), %r9d
	movq	_OMAP3ISP_HIST_MIN_REGIONS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r9d
	jl	LBB0_1
## %bb.3:
	movq	_OMAP3ISP_HIST_MAX_REGIONS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r9d
	jg	LBB0_1
## %bb.4:
	testl	%r9d, %r9d
	jle	LBB0_13
## %bb.5:
	movq	32(%r14), %r10
	movq	_ISPHIST_REG_START_END_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	movq	%r9, %r8
	shlq	$4, %r8
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%rdi), %esi
	testl	%edx, %esi
	jne	LBB0_1
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	4(%r10,%rdi), %ebx
	testl	%edx, %ebx
	jne	LBB0_1
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	8(%r10,%rdi), %eax
	testl	%edx, %eax
	jne	LBB0_1
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	12(%r10,%rdi), %ecx
	testl	%edx, %ecx
	jne	LBB0_1
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%ebx, %esi
	jg	LBB0_1
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%ecx, %eax
	jg	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	$16, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_7
LBB0_13:
	cmpl	$2, %r9d
	je	LBB0_19
## %bb.14:
	cmpl	$1, %r9d
	jne	LBB0_20
## %bb.15:
	movl	24(%r14), %eax
	movq	_OMAP3ISP_HIST_BINS_256@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_19:
	movl	24(%r14), %eax
	movq	_OMAP3ISP_HIST_BINS_128@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_20:
	movl	24(%r14), %eax
	movq	_OMAP3ISP_HIST_BINS_64@GOTPCREL(%rip), %rcx
LBB0_16:
	cmpl	(%rcx), %eax
	jg	LBB0_1
## %bb.17:
	movq	%r14, %rdi
	callq	_hist_get_buf_size
	movq	16(%r14), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_21
## %bb.18:
	movq	%rax, 16(%r14)
	xorl	%eax, %eax
	jmp	LBB0_23
LBB0_21:
	movq	_OMAP3ISP_HIST_MAX_BUF_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%eax, %eax
	cmpq	%rdx, %rcx
	jle	LBB0_23
## %bb.22:
	movq	%rdx, 16(%r14)
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP3ISP_HIST_CFA_FOVEONX3,8,3 ## @OMAP3ISP_HIST_CFA_FOVEONX3
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OMAP3ISP_HIST_MIN_REGIONS,4,2  ## @OMAP3ISP_HIST_MIN_REGIONS
	.comm	_OMAP3ISP_HIST_MAX_REGIONS,4,2  ## @OMAP3ISP_HIST_MAX_REGIONS
	.comm	_ISPHIST_REG_START_END_MASK,4,2 ## @ISPHIST_REG_START_END_MASK
	.comm	_OMAP3ISP_HIST_BINS_256,4,2     ## @OMAP3ISP_HIST_BINS_256
	.comm	_OMAP3ISP_HIST_BINS_128,4,2     ## @OMAP3ISP_HIST_BINS_128
	.comm	_OMAP3ISP_HIST_BINS_64,4,2      ## @OMAP3ISP_HIST_BINS_64
	.comm	_OMAP3ISP_HIST_MAX_BUF_SIZE,8,3 ## @OMAP3ISP_HIST_MAX_BUF_SIZE
	.no_dead_strip	_hist_validate_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hist_validate_params
_hist_validate_params:                  ; @hist_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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _OMAP3ISP_HIST_CFA_FOVEONX3@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OMAP3ISP_HIST_CFA_FOVEONX3@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_2
; %bb.1:
	mov	x19, x1
	ldr	w8, [x1, #8]
Lloh3:
	adrp	x9, _OMAP3ISP_HIST_MIN_REGIONS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OMAP3ISP_HIST_MIN_REGIONS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _OMAP3ISP_HIST_MAX_REGIONS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _OMAP3ISP_HIST_MAX_REGIONS@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #0, ge
	b.le	LBB0_4
LBB0_2:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.5:
	ldr	x10, [x19, #32]
Lloh12:
	adrp	x9, _ISPHIST_REG_START_END_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ISPHIST_REG_START_END_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	mvn	w9, w9
	add	x10, x10, #8
	mov	x11, x8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w12, [x10, #-8]
	tst	w12, w9
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldur	w13, [x10, #-4]
	tst	w13, w9
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w14, [x10]
	tst	w14, w9
	b.ne	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w15, [x10, #4]
	tst	w15, w9
	b.ne	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w12, w13
	b.gt	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w14, w15
	b.gt	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x10, x10, #16
	subs	x11, x11, #1
	b.ne	LBB0_6
LBB0_13:
	cmp	w8, #2
	b.eq	LBB0_16
; %bb.14:
	cmp	w8, #1
	b.ne	LBB0_17
; %bb.15:
	ldr	w8, [x19, #24]
Lloh15:
	adrp	x9, _OMAP3ISP_HIST_BINS_256@GOTPAGE
Lloh16:
	ldr	x9, [x9, _OMAP3ISP_HIST_BINS_256@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
	ldr	w8, [x19, #24]
Lloh17:
	adrp	x9, _OMAP3ISP_HIST_BINS_128@GOTPAGE
Lloh18:
	ldr	x9, [x9, _OMAP3ISP_HIST_BINS_128@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
	ldr	w8, [x19, #24]
Lloh19:
	adrp	x9, _OMAP3ISP_HIST_BINS_64@GOTPAGE
Lloh20:
	ldr	x9, [x9, _OMAP3ISP_HIST_BINS_64@GOTPAGEOFF]
LBB0_18:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_2
; %bb.19:
	mov	x0, x19
	bl	_hist_get_buf_size
	ldr	x9, [x19, #16]
	cmp	x0, x9
	b.le	LBB0_21
; %bb.20:
	mov	x8, x0
	b	LBB0_22
LBB0_21:
Lloh21:
	adrp	x8, _OMAP3ISP_HIST_MAX_BUF_SIZE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _OMAP3ISP_HIST_MAX_BUF_SIZE@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x9, x8
	b.le	LBB0_23
LBB0_22:
	mov	w0, #0
	str	x8, [x19, #16]
	b	LBB0_3
LBB0_23:
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP3ISP_HIST_CFA_FOVEONX3,8,3 ; @OMAP3ISP_HIST_CFA_FOVEONX3
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OMAP3ISP_HIST_MIN_REGIONS,4,2  ; @OMAP3ISP_HIST_MIN_REGIONS
	.comm	_OMAP3ISP_HIST_MAX_REGIONS,4,2  ; @OMAP3ISP_HIST_MAX_REGIONS
	.comm	_ISPHIST_REG_START_END_MASK,4,2 ; @ISPHIST_REG_START_END_MASK
	.comm	_OMAP3ISP_HIST_BINS_256,4,2     ; @OMAP3ISP_HIST_BINS_256
	.comm	_OMAP3ISP_HIST_BINS_128,4,2     ; @OMAP3ISP_HIST_BINS_128
	.comm	_OMAP3ISP_HIST_BINS_64,4,2      ; @OMAP3ISP_HIST_BINS_64
	.comm	_OMAP3ISP_HIST_MAX_BUF_SIZE,8,3 ; @OMAP3ISP_HIST_MAX_BUF_SIZE
	.no_dead_strip	_hist_validate_params
.subsections_via_symbols
