	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_ccdc_cfg@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	decb	%bl
	movl	(%r15), %edi
	movl	4(%r15), %eax
	movl	%ebx, %ecx
	shll	%cl, %edi
	shll	%cl, %eax
	movq	_CCDC_HORZ_INFO_SPH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	decl	%eax
	orl	%eax, %edi
	movq	_CCDC_HORZ_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movl	8(%r15), %ebx
	movq	_CCDC_FRMFMT_INTERLACED@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	12(%r15), %r14d
	sarl	%r14d
	sarl	%ebx
	incl	%ebx
	movq	_CCDC_VDINT_VDINT0_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%ebx, %edi
	shll	%cl, %edi
	jmp	LBB0_3
LBB0_2:
	movl	12(%r15), %r14d
	movl	%r14d, %eax
	shrl	$31, %eax
	addl	%r14d, %eax
	sarl	%eax
	leal	(%rax,%rbx), %edi
	incl	%edi
	movl	%ebx, %eax
	incl	%eax
	movq	_CCDC_VDINT_VDINT0_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %edx
	shll	%cl, %edx
	movq	_CCDC_VDINT_VDINT1_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edi
	orl	%edx, %edi
	movl	%eax, %ebx
LBB0_3:
	movq	_CCDC_VDINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movq	_CCDC_VERT_START_SLV0_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%ebx, %edi
	shll	%cl, %edi
	decl	%r14d
	orl	%ebx, %edi
	movq	_CCDC_VERT_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movq	_CCDC_VERT_LINES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_regw
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	popq	%rbx
	popq	%r12
	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	_CCDC_HORZ_INFO_SPH_SHIFT,4,2   ## @CCDC_HORZ_INFO_SPH_SHIFT
	.comm	_CCDC_HORZ_INFO,4,2             ## @CCDC_HORZ_INFO
	.comm	_CCDC_FRMFMT_INTERLACED,4,2     ## @CCDC_FRMFMT_INTERLACED
	.comm	_CCDC_VDINT_VDINT0_SHIFT,4,2    ## @CCDC_VDINT_VDINT0_SHIFT
	.comm	_CCDC_VDINT,4,2                 ## @CCDC_VDINT
	.comm	_CCDC_VDINT_VDINT1_MASK,4,2     ## @CCDC_VDINT_VDINT1_MASK
	.comm	_CCDC_VERT_START_SLV0_SHIFT,4,2 ## @CCDC_VERT_START_SLV0_SHIFT
	.comm	_CCDC_VERT_START,4,2            ## @CCDC_VERT_START
	.comm	_CCDC_VERT_LINES,4,2            ## @CCDC_VERT_LINES
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	x20, x2
	mov	x21, x1
	mov	x19, 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, w20, #1
	ldp	w9, w10, [x19]
	lsl	w9, w9, w8
	lsl	w8, w10, w8
	sub	w8, w8, #1
Lloh4:
	adrp	x10, _CCDC_HORZ_INFO_SPH_SHIFT@GOTPAGE
Lloh5:
	ldr	x10, [x10, _CCDC_HORZ_INFO_SPH_SHIFT@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w0, w9, w8
Lloh7:
	adrp	x8, _CCDC_HORZ_INFO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CCDC_HORZ_INFO@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_regw
	ldr	w8, [x19, #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, [x19, #12]
	asr	w19, w9, #1
	asr	w8, w8, #1
	add	w20, w8, #1
Lloh13:
	adrp	x8, _CCDC_VDINT_VDINT0_SHIFT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CCDC_VDINT_VDINT0_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	lsl	w0, w20, w8
	b	LBB0_3
LBB0_2:
	add	w20, w8, #1
	ldr	w19, [x19, #12]
	cmp	w19, #0
	cinc	w8, w19, lt
	add	w8, w20, w8, asr #1
Lloh16:
	adrp	x9, _CCDC_VDINT_VDINT0_SHIFT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CCDC_VDINT_VDINT0_SHIFT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	lsl	w9, w20, w9
Lloh19:
	adrp	x10, _CCDC_VDINT_VDINT1_MASK@GOTPAGE
Lloh20:
	ldr	x10, [x10, _CCDC_VDINT_VDINT1_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	and	w8, w8, w10
	orr	w0, w8, w9
LBB0_3:
Lloh22:
	adrp	x8, _CCDC_VDINT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CCDC_VDINT@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_regw
	sub	w19, w19, #1
Lloh25:
	adrp	x8, _CCDC_VERT_START_SLV0_SHIFT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CCDC_VERT_START_SLV0_SHIFT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	lsl	w8, w20, w8
	orr	w0, w8, w20
Lloh28:
	adrp	x8, _CCDC_VERT_START@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CCDC_VERT_START@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_regw
Lloh31:
	adrp	x8, _CCDC_VERT_LINES@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CCDC_VERT_LINES@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_regw
	ldr	w0, [x22]
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	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 AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ccdc_cfg,4,2                   ; @ccdc_cfg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nStarting ccdc_setwin..."

	.comm	_CCDC_HORZ_INFO_SPH_SHIFT,4,2   ; @CCDC_HORZ_INFO_SPH_SHIFT
	.comm	_CCDC_HORZ_INFO,4,2             ; @CCDC_HORZ_INFO
	.comm	_CCDC_FRMFMT_INTERLACED,4,2     ; @CCDC_FRMFMT_INTERLACED
	.comm	_CCDC_VDINT_VDINT0_SHIFT,4,2    ; @CCDC_VDINT_VDINT0_SHIFT
	.comm	_CCDC_VDINT,4,2                 ; @CCDC_VDINT
	.comm	_CCDC_VDINT_VDINT1_MASK,4,2     ; @CCDC_VDINT_VDINT1_MASK
	.comm	_CCDC_VERT_START_SLV0_SHIFT,4,2 ; @CCDC_VERT_START_SLV0_SHIFT
	.comm	_CCDC_VERT_START,4,2            ; @CCDC_VERT_START
	.comm	_CCDC_VERT_LINES,4,2            ; @CCDC_VERT_LINES
l_.str.1:                               ; @.str.1
	.asciz	"\nEnd of ccdc_setwin..."

	.no_dead_strip	_ccdc_setwin
.subsections_via_symbols
