	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccdc_setwin
_ccdc_setwin:                           ## @ccdc_setwin
	.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
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	_ccdc_cfg@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	decb	%r15b
	movl	(%r12), %edi
	movl	%r15d, %ecx
	shll	%cl, %edi
	movl	4(%r12), %ebx
	shll	%cl, %ebx
	decl	%ebx
	movq	_SPH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movq	_NPH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_regw
	movl	8(%r12), %r15d
	movq	_CCDC_FRMFMT_INTERLACED@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	12(%r12), %r14d
	sarl	%r14d
	sarl	%r15d
	incl	%r15d
	movq	_VDINT0@GOTPCREL(%rip), %rax
	movl	%r15d, %ebx
	jmp	LBB0_3
LBB0_2:
	movl	12(%r12), %r14d
	movl	%r14d, %eax
	shrl	$31, %eax
	addl	%r14d, %eax
	sarl	%eax
	movl	%r15d, %ebx
	incl	%ebx
	addl	%eax, %r15d
	incl	%r15d
	movq	_VDINT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_regw
	movq	_VDINT1@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_regw
	decl	%r14d
	movq	_CCDC_START_VER_ONE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	movq	_SLV0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movq	_CCDC_START_VER_TWO_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_SLV1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_regw
	movq	_CCDC_NUM_LINES_VER@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	_NLV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_regw
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ccdc_cfg,4,2                   ## @ccdc_cfg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nStarting ccdc_setwin..."

	.comm	_SPH,4,2                        ## @SPH
	.comm	_NPH,4,2                        ## @NPH
	.comm	_CCDC_FRMFMT_INTERLACED,4,2     ## @CCDC_FRMFMT_INTERLACED
	.comm	_VDINT0,4,2                     ## @VDINT0
	.comm	_VDINT1,4,2                     ## @VDINT1
	.comm	_CCDC_START_VER_ONE_MASK,4,2    ## @CCDC_START_VER_ONE_MASK
	.comm	_SLV0,4,2                       ## @SLV0
	.comm	_CCDC_START_VER_TWO_MASK,4,2    ## @CCDC_START_VER_TWO_MASK
	.comm	_SLV1,4,2                       ## @SLV1
	.comm	_CCDC_NUM_LINES_VER,4,2         ## @CCDC_NUM_LINES_VER
	.comm	_NLV,4,2                        ## @NLV
L_.str.1:                               ## @.str.1
	.asciz	"\nEnd of ccdc_setwin..."

	.no_dead_strip	_ccdc_setwin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccdc_setwin
_ccdc_setwin:                           ; @ccdc_setwin
	.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, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _ccdc_cfg@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ccdc_cfg@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	sub	w8, w19, #1
	ldp	w9, w10, [x20]
	lsl	w0, w9, w8
	lsl	w8, w10, w8
	sub	w19, w8, #1
Lloh4:
	adrp	x8, _SPH@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SPH@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_regw
Lloh7:
	adrp	x8, _NPH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NPH@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_regw
	ldr	w8, [x20, #8]
Lloh10:
	adrp	x9, _CCDC_FRMFMT_INTERLACED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CCDC_FRMFMT_INTERLACED@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w9, w21
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [x20, #12]
	asr	w21, w9, #1
	asr	w8, w8, #1
	add	w20, w8, #1
Lloh13:
	adrp	x8, _VDINT0@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VDINT0@GOTPAGEOFF]
	mov	x19, x20
	b	LBB0_3
LBB0_2:
	add	w19, w8, #1
	ldr	w21, [x20, #12]
	cmp	w21, #0
	cinc	w8, w21, lt
	add	w20, w19, w8, asr #1
Lloh15:
	adrp	x8, _VDINT0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VDINT0@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_regw
Lloh18:
	adrp	x8, _VDINT1@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VDINT1@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_regw
Lloh20:
	adrp	x8, _CCDC_START_VER_ONE_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CCDC_START_VER_ONE_MASK@GOTPAGEOFF]
	sub	w20, w21, #1
Lloh22:
	ldr	w8, [x8]
	and	w0, w8, w19
Lloh23:
	adrp	x8, _SLV0@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SLV0@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_regw
Lloh26:
	adrp	x8, _CCDC_START_VER_TWO_MASK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CCDC_START_VER_TWO_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	and	w0, w8, w19
Lloh29:
	adrp	x8, _SLV1@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SLV1@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_regw
Lloh32:
	adrp	x8, _CCDC_NUM_LINES_VER@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CCDC_NUM_LINES_VER@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	and	w0, w8, w20
Lloh35:
	adrp	x8, _NLV@GOTPAGE
Lloh36:
	ldr	x8, [x8, _NLV@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	bl	_regw
	ldr	w0, [x22]
Lloh38:
	adrp	x1, l_.str.1@PAGE
Lloh39:
	add	x1, x1, l_.str.1@PAGEOFF
	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
	b	_dev_dbg
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ccdc_cfg,4,2                   ; @ccdc_cfg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nStarting ccdc_setwin..."

	.comm	_SPH,4,2                        ; @SPH
	.comm	_NPH,4,2                        ; @NPH
	.comm	_CCDC_FRMFMT_INTERLACED,4,2     ; @CCDC_FRMFMT_INTERLACED
	.comm	_VDINT0,4,2                     ; @VDINT0
	.comm	_VDINT1,4,2                     ; @VDINT1
	.comm	_CCDC_START_VER_ONE_MASK,4,2    ; @CCDC_START_VER_ONE_MASK
	.comm	_SLV0,4,2                       ; @SLV0
	.comm	_CCDC_START_VER_TWO_MASK,4,2    ; @CCDC_START_VER_TWO_MASK
	.comm	_SLV1,4,2                       ; @SLV1
	.comm	_CCDC_NUM_LINES_VER,4,2         ; @CCDC_NUM_LINES_VER
	.comm	_NLV,4,2                        ; @NLV
l_.str.1:                               ; @.str.1
	.asciz	"\nEnd of ccdc_setwin..."

	.no_dead_strip	_ccdc_setwin
.subsections_via_symbols
