	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccdc_config_csc
_ccdc_config_csc:                       ## @ccdc_config_csc
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 8(%rdi)
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	movq	_CCDC_CSC_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CSCCTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_regw
	movq	_CCDC_CSC_COEFF_TABLE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.2:
	xorl	%ebx, %ebx
	movl	$-2, %r12d
	movq	_CCDC_CSC_COEF_INTEG_MASK@GOTPCREL(%rip), %r8
	movq	_CCDC_CSC_COEF_INTEG_SHIFT@GOTPCREL(%rip), %r9
	movq	_CCDC_CSC_COEF_DECIMAL_MASK@GOTPCREL(%rip), %r13
	movq	_CCDC_CSC_DEC_MAX@GOTPCREL(%rip), %r11
	xorl	%r15d, %r15d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_CCDC_CSCM_MSB_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	shll	%cl, %edi
	orl	%r15d, %edi
	movslq	%r12d, %rsi
	movq	_CSCM0@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r9, %r15
	movq	%r11, %r14
	callq	_regw
	movq	%r14, %r11
	movq	%r15, %r9
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	_CCDC_CSC_COEF_INTEG_MASK@GOTPCREL(%rip), %r8
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	_CCDC_CSC_COEFF_TABLE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	addl	$2, %r12d
	cmpq	%rcx, %rbx
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdx
	movl	(%r8), %esi
	andl	(%rdx,%rbx,8), %esi
	movzbl	(%r9), %ecx
	shll	%cl, %esi
	movl	(%r13), %ecx
	andl	4(%rdx,%rbx,8), %ecx
	imull	(%r11), %ecx
	movslq	%ecx, %rcx
	imulq	$1374389535, %rcx, %rdi         ## imm = 0x51EB851F
	movq	%rdi, %rcx
	shrq	$63, %rcx
	sarq	$37, %rdi
	addl	%ecx, %edi
	orl	%esi, %edi
	testb	$1, %bl
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%edi, %r15d
	jmp	LBB0_6
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CCDC_CSC_ENABLE,4,2            ## @CCDC_CSC_ENABLE
	.comm	_CSCCTL,8,3                     ## @CSCCTL
	.comm	_CCDC_CSC_COEFF_TABLE_SIZE,4,2  ## @CCDC_CSC_COEFF_TABLE_SIZE
	.comm	_CCDC_CSC_COEF_INTEG_MASK,4,2   ## @CCDC_CSC_COEF_INTEG_MASK
	.comm	_CCDC_CSC_COEF_INTEG_SHIFT,4,2  ## @CCDC_CSC_COEF_INTEG_SHIFT
	.comm	_CCDC_CSC_COEF_DECIMAL_MASK,4,2 ## @CCDC_CSC_COEF_DECIMAL_MASK
	.comm	_CCDC_CSC_DEC_MAX,4,2           ## @CCDC_CSC_DEC_MAX
	.comm	_CCDC_CSCM_MSB_SHIFT,4,2        ## @CCDC_CSCM_MSB_SHIFT
	.comm	_CSCM0,8,3                      ## @CSCM0
	.no_dead_strip	_ccdc_config_csc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccdc_config_csc
_ccdc_config_csc:                       ; @ccdc_config_csc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _CCDC_CSC_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CCDC_CSC_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _CSCCTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CSCCTL@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	bl	_regw
Lloh6:
	adrp	x8, _CCDC_CSC_COEFF_TABLE_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CCDC_CSC_COEFF_TABLE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x21, #0
	mov	x22, #0
	mov	w28, #0
Lloh9:
	adrp	x23, _CCDC_CSC_COEF_INTEG_MASK@GOTPAGE
Lloh10:
	ldr	x23, [x23, _CCDC_CSC_COEF_INTEG_MASK@GOTPAGEOFF]
Lloh11:
	adrp	x24, _CCDC_CSC_COEF_INTEG_SHIFT@GOTPAGE
Lloh12:
	ldr	x24, [x24, _CCDC_CSC_COEF_INTEG_SHIFT@GOTPAGEOFF]
Lloh13:
	adrp	x25, _CCDC_CSC_COEF_DECIMAL_MASK@GOTPAGE
Lloh14:
	ldr	x25, [x25, _CCDC_CSC_COEF_DECIMAL_MASK@GOTPAGEOFF]
Lloh15:
	adrp	x26, _CCDC_CSC_DEC_MAX@GOTPAGE
Lloh16:
	ldr	x26, [x26, _CCDC_CSC_DEC_MAX@GOTPAGEOFF]
	mov	w27, #34079
	movk	w27, #20971, lsl #16
Lloh17:
	adrp	x20, _CSCM0@GOTPAGE
Lloh18:
	ldr	x20, [x20, _CSCM0@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	add	x21, x21, #2
	cmp	x22, w8, sxtw
	mov	x28, x9
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	add	x9, x9, x21, lsl #2
	ldr	w10, [x23]
	ldp	w11, w9, [x9]
	and	w10, w10, w11
	ldr	w11, [x24]
	lsl	w10, w10, w11
	ldr	w11, [x25]
	and	w9, w11, w9
	ldr	w11, [x26]
	mul	w9, w9, w11
	smull	x9, w9, w27
	lsr	x11, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w11
	orr	w9, w9, w10
	tbz	w22, #0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh19:
	adrp	x8, _CCDC_CSCM_MSB_SHIFT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CCDC_CSCM_MSB_SHIFT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	lsl	w8, w9, w8
	orr	w0, w8, w28
	ldr	x8, [x20]
	sub	w9, w21, #2
	add	x1, x8, w9, sxtw
	bl	_regw
Lloh22:
	adrp	x8, _CCDC_CSC_COEFF_TABLE_SIZE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CCDC_CSC_COEFF_TABLE_SIZE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	mov	x9, x28
	b	LBB0_3
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CCDC_CSC_ENABLE,4,2            ; @CCDC_CSC_ENABLE
	.comm	_CSCCTL,8,3                     ; @CSCCTL
	.comm	_CCDC_CSC_COEFF_TABLE_SIZE,4,2  ; @CCDC_CSC_COEFF_TABLE_SIZE
	.comm	_CCDC_CSC_COEF_INTEG_MASK,4,2   ; @CCDC_CSC_COEF_INTEG_MASK
	.comm	_CCDC_CSC_COEF_INTEG_SHIFT,4,2  ; @CCDC_CSC_COEF_INTEG_SHIFT
	.comm	_CCDC_CSC_COEF_DECIMAL_MASK,4,2 ; @CCDC_CSC_COEF_DECIMAL_MASK
	.comm	_CCDC_CSC_DEC_MAX,4,2           ; @CCDC_CSC_DEC_MAX
	.comm	_CCDC_CSCM_MSB_SHIFT,4,2        ; @CCDC_CSCM_MSB_SHIFT
	.comm	_CSCM0,8,3                      ; @CSCM0
	.no_dead_strip	_ccdc_config_csc
.subsections_via_symbols
