	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_hw_sspp_setup_cdp
_dpu_hw_sspp_setup_cdp:                 ## @dpu_hw_sspp_setup_cdp
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.2:
	movq	%rdi, %r14
	movq	_DPU_SSPP_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	__sspp_subblk_offset
	testq	%rax, %rax
	jne	LBB0_13
## %bb.3:
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.5:
	xorl	%edi, %edi
	callq	_BIT
	movl	%eax, %r15d
	cmpq	$0, 16(%rbx)
	je	LBB0_8
LBB0_7:
	movl	$1, %edi
	callq	_BIT
	orl	%eax, %r15d
LBB0_8:
	cmpq	$0, 8(%rbx)
	je	LBB0_10
## %bb.9:
	movl	$2, %edi
	callq	_BIT
	orl	%eax, %r15d
LBB0_10:
	movq	(%rbx), %rax
	movq	_DPU_SSPP_CDP_PRELOAD_AHEAD_64@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movl	$3, %edi
	callq	_BIT
	orl	%eax, %r15d
LBB0_12:
	movq	_SSPP_CDP_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_DPU_REG_WRITE
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%r15d, %r15d
	cmpq	$0, 16(%rbx)
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_DPU_SSPP_SRC,4,2               ## @DPU_SSPP_SRC
	.comm	_DPU_SSPP_CDP_PRELOAD_AHEAD_64,8,3 ## @DPU_SSPP_CDP_PRELOAD_AHEAD_64
	.comm	_SSPP_CDP_CNTL,4,2              ## @SSPP_CDP_CNTL
	.no_dead_strip	_dpu_hw_sspp_setup_cdp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpu_hw_sspp_setup_cdp
_dpu_hw_sspp_setup_cdp:                 ; @dpu_hw_sspp_setup_cdp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_11
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x8, _DPU_SSPP_SRC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPU_SSPP_SRC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	__sspp_subblk_offset
	cbnz	x0, LBB0_11
; %bb.3:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_12
; %bb.4:
	mov	w0, #0
	bl	_BIT
	mov	x21, x0
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
LBB0_5:
	mov	w0, #1
	bl	_BIT
	orr	w21, w0, w21
LBB0_6:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	w0, #2
	bl	_BIT
	orr	w21, w0, w21
LBB0_8:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _DPU_SSPP_CDP_PRELOAD_AHEAD_64@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DPU_SSPP_CDP_PRELOAD_AHEAD_64@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	mov	w0, #3
	bl	_BIT
	orr	w21, w0, w21
LBB0_10:
Lloh6:
	adrp	x8, _SSPP_CDP_CNTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSPP_CDP_CNTL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_DPU_REG_WRITE
LBB0_11:
	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
	add	sp, sp, #64
	ret
LBB0_12:
	mov	w21, #0
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_5
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DPU_SSPP_SRC,4,2               ; @DPU_SSPP_SRC
	.comm	_DPU_SSPP_CDP_PRELOAD_AHEAD_64,8,3 ; @DPU_SSPP_CDP_PRELOAD_AHEAD_64
	.comm	_SSPP_CDP_CNTL,4,2              ; @SSPP_CDP_CNTL
	.no_dead_strip	_dpu_hw_sspp_setup_cdp
.subsections_via_symbols
