	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccdc_lsc_validate_config
_ccdc_lsc_validate_config:              ## @ccdc_lsc_validate_config
	.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, %rbx
	movq	%rdi, %r13
	callq	_to_isp_device
	movq	%rax, %r14
	movl	(%rbx), %r12d
	leal	-7(%r12), %eax
	leaq	L_.str(%rip), %rsi
	cmpl	$-5, %eax
	jb	LBB0_13
## %bb.1:
	movl	4(%rbx), %r15d
	cmpl	$2, %r15d
	jb	LBB0_13
## %bb.2:
	cmpl	$6, %r15d
	ja	LBB0_13
## %bb.3:
	testb	$3, 8(%rbx)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_13
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	testb	$1, 12(%rbx)
	jne	LBB0_13
## %bb.6:
	testb	$1, 16(%rbx)
	jne	LBB0_13
## %bb.7:
	movq	_CCDC_PAD_SINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	___ccdc_get_format
	movl	$-1, %edx
	movl	%r12d, %ecx
	shll	%cl, %edx
	notl	%edx
	addl	(%rax), %edx
	addl	12(%rbx), %edx
	movl	$-1, %esi
	shrl	%cl, %edx
	movl	%r15d, %ecx
	shll	%cl, %esi
	notl	%esi
	addl	4(%rax), %esi
	addl	16(%rbx), %esi
	shrl	%cl, %esi
	leal	1(%rsi), %edi
	leal	4(,%rdx,4), %ecx
	imull	%ecx, %edi
	movl	20(%rbx), %eax
	cmpl	%eax, %edi
	jbe	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_13
LBB0_9:
	movl	8(%rbx), %edi
	cmpl	%ecx, %edi
	jae	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_13
LBB0_11:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	divl	%edi
	cmpl	%esi, %eax
	ja	LBB0_14
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
LBB0_13:
	movl	(%r14), %edi
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_14:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CCDC: LSC: Invalid paxel size\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"CCDC: LSC: Offset must be a multiple of 4\n"

L_.str.2:                               ## @.str.2
	.asciz	"CCDC: LSC: initial_x and y must be even\n"

	.comm	_CCDC_PAD_SINK,4,2              ## @CCDC_PAD_SINK
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
L_.str.3:                               ## @.str.3
	.asciz	"CCDC: LSC: too small table\n"

L_.str.4:                               ## @.str.4
	.asciz	"CCDC: LSC: Offset is too small\n"

L_.str.5:                               ## @.str.5
	.asciz	"CCDC: LSC: Wrong size/offset combination\n"

	.no_dead_strip	_ccdc_lsc_validate_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccdc_lsc_validate_config
_ccdc_lsc_validate_config:              ; @ccdc_lsc_validate_config
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x21, x0
	bl	_to_isp_device
	mov	x19, x0
	ldp	w23, w22, [x20]
	sub	w8, w23, #7
	cmn	w8, #5
	ccmp	w22, #2, #0, hs
	ccmp	w22, #6, #2, hs
	b.ls	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_2:
	ldrb	w8, [x20, #8]
	tst	w8, #0x3
	b.eq	LBB0_4
; %bb.3:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_4:
	ldrb	w8, [x20, #12]
	tbnz	w8, #0, LBB0_8
; %bb.5:
	ldrb	w8, [x20, #16]
	tbnz	w8, #0, LBB0_8
; %bb.6:
Lloh4:
	adrp	x8, _CCDC_PAD_SINK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CCDC_PAD_SINK@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, #0
	bl	___ccdc_get_format
	ldp	w8, w9, [x0]
	mov	w10, #-1
	lsl	w11, w10, w23
	mvn	w11, w11
	ldp	w12, w13, [x20, #12]
	add	w8, w8, w11
	add	w8, w8, w12
	lsr	w11, w8, w23
	lsl	w8, w10, w22
	mvn	w8, w8
	add	w8, w9, w8
	add	w8, w8, w13
	lsr	w8, w8, w22
	lsl	w9, w11, #2
	add	w10, w9, #4
	madd	w11, w10, w8, w10
	ldr	w9, [x20, #20]
	cmp	w11, w9
	b.ls	LBB0_11
; %bb.7:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	ldr	w0, [x19]
	bl	_dev_dbg
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	w11, [x20, #8]
	cmp	w11, w10
	b.hs	LBB0_13
; %bb.12:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_13:
	udiv	w9, w9, w11
	cmp	w9, w8
	b.ls	LBB0_15
; %bb.14:
	mov	w0, #0
	b	LBB0_10
LBB0_15:
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CCDC: LSC: Invalid paxel size\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"CCDC: LSC: Offset must be a multiple of 4\n"

l_.str.2:                               ; @.str.2
	.asciz	"CCDC: LSC: initial_x and y must be even\n"

	.comm	_CCDC_PAD_SINK,4,2              ; @CCDC_PAD_SINK
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
l_.str.3:                               ; @.str.3
	.asciz	"CCDC: LSC: too small table\n"

l_.str.4:                               ; @.str.4
	.asciz	"CCDC: LSC: Offset is too small\n"

l_.str.5:                               ; @.str.5
	.asciz	"CCDC: LSC: Wrong size/offset combination\n"

	.no_dead_strip	_ccdc_lsc_validate_config
.subsections_via_symbols
