	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpfe_ccdc_validate_param
_vpfe_ccdc_validate_param:              ## @vpfe_ccdc_validate_param
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_to_vpfe
	xorl	%r15d, %r15d
	cmpl	$0, 8(%rbx)
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movq	(%rbx), %rdi
	callq	_ccdc_gamma_width_max_bit
	movq	%rax, %r12
	movl	16(%rbx), %edi
	callq	_ccdc_data_size_max_bit
	movq	(%rbx), %rcx
	movq	_VPFE_CCDC_GAMMA_BITS_09_0@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jg	LBB0_4
## %bb.2:
	movq	_VPFE_CCDC_GAMMA_BITS_15_6@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jl	LBB0_4
## %bb.3:
	cmpq	%rax, %r12
	jle	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_vpfe_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPFE_CCDC_GAMMA_BITS_09_0,8,3  ## @VPFE_CCDC_GAMMA_BITS_09_0
	.comm	_VPFE_CCDC_GAMMA_BITS_15_6,8,3  ## @VPFE_CCDC_GAMMA_BITS_15_6
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid data line select\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vpfe_ccdc_validate_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpfe_ccdc_validate_param
_vpfe_ccdc_validate_param:              ; @vpfe_ccdc_validate_param
	.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	x20, x1
	bl	_to_vpfe
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x0, [x20]
	bl	_ccdc_gamma_width_max_bit
	mov	x21, x0
	ldr	w0, [x20, #16]
	bl	_ccdc_data_size_max_bit
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _VPFE_CCDC_GAMMA_BITS_09_0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VPFE_CCDC_GAMMA_BITS_09_0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _VPFE_CCDC_GAMMA_BITS_15_6@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VPFE_CCDC_GAMMA_BITS_15_6@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #8, le
	ccmp	x21, x0, #0, ge
	b.le	LBB0_3
; %bb.2:
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	mov	x1, x19
	bl	_vpfe_dbg
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VPFE_CCDC_GAMMA_BITS_09_0,8,3  ; @VPFE_CCDC_GAMMA_BITS_09_0
	.comm	_VPFE_CCDC_GAMMA_BITS_15_6,8,3  ; @VPFE_CCDC_GAMMA_BITS_15_6
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid data line select\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vpfe_ccdc_validate_param
.subsections_via_symbols
