	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clu_configure_frame
_clu_configure_frame:                   ## @clu_configure_frame
	.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
	movq	%rcx, %r15
	movq	%rdx, %r14
	callq	_to_clu
	movq	_VI6_CLU_CTRL_AAI@GOTPCREL(%rip), %rdx
	movq	_VI6_CLU_CTRL_MVS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	%rax, %r12
	movq	_VI6_CLU_CTRL_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	(%r12), %rax
	movq	_V4L2_CID_VSP1_CLU_MODE_2D@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 24(%r12)
	je	LBB0_3
## %bb.2:
	movq	_VI6_CLU_CTRL_AX1I_2D@GOTPCREL(%rip), %rax
	movq	_VI6_CLU_CTRL_AX2I_2D@GOTPCREL(%rip), %rdx
	movq	_VI6_CLU_CTRL_OS0_2D@GOTPCREL(%rip), %rsi
	movq	_VI6_CLU_CTRL_OS1_2D@GOTPCREL(%rip), %rdi
	movq	_VI6_CLU_CTRL_OS2_2D@GOTPCREL(%rip), %rbx
	movq	_VI6_CLU_CTRL_M2D@GOTPCREL(%rip), %r8
	orl	(%rax), %ecx
	orl	(%rdx), %ecx
	orl	(%rsi), %ecx
	orl	(%rdi), %ecx
	orl	(%rbx), %ecx
	orl	(%r8), %ecx
LBB0_3:
	movq	_VI6_CLU_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_vsp1_clu_write
	movq	%r12, %rbx
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	16(%r12), %r15
	movq	$0, 16(%r12)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	testq	%r15, %r15
	je	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_vsp1_dl_list_add_body
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vsp1_dl_body_put               ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VI6_CLU_CTRL_AAI,4,2           ## @VI6_CLU_CTRL_AAI
	.comm	_VI6_CLU_CTRL_MVS,4,2           ## @VI6_CLU_CTRL_MVS
	.comm	_VI6_CLU_CTRL_EN,4,2            ## @VI6_CLU_CTRL_EN
	.comm	_V4L2_CID_VSP1_CLU_MODE_2D,8,3  ## @V4L2_CID_VSP1_CLU_MODE_2D
	.comm	_VI6_CLU_CTRL_AX1I_2D,4,2       ## @VI6_CLU_CTRL_AX1I_2D
	.comm	_VI6_CLU_CTRL_AX2I_2D,4,2       ## @VI6_CLU_CTRL_AX2I_2D
	.comm	_VI6_CLU_CTRL_OS0_2D,4,2        ## @VI6_CLU_CTRL_OS0_2D
	.comm	_VI6_CLU_CTRL_OS1_2D,4,2        ## @VI6_CLU_CTRL_OS1_2D
	.comm	_VI6_CLU_CTRL_OS2_2D,4,2        ## @VI6_CLU_CTRL_OS2_2D
	.comm	_VI6_CLU_CTRL_M2D,4,2           ## @VI6_CLU_CTRL_M2D
	.comm	_VI6_CLU_CTRL,4,2               ## @VI6_CLU_CTRL
	.no_dead_strip	_clu_configure_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clu_configure_frame
_clu_configure_frame:                   ; @clu_configure_frame
	.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	x21, x3
	mov	x19, x2
	bl	_to_clu
	mov	x20, x0
Lloh0:
	adrp	x8, _VI6_CLU_CTRL_AAI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VI6_CLU_CTRL_AAI@GOTPAGEOFF]
Lloh2:
	adrp	x9, _VI6_CLU_CTRL_MVS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VI6_CLU_CTRL_MVS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _VI6_CLU_CTRL_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VI6_CLU_CTRL_EN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldr	x8, [x0]
Lloh9:
	adrp	x9, _V4L2_CID_VSP1_CLU_MODE_2D@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_CID_VSP1_CLU_MODE_2D@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _VI6_CLU_CTRL_AX1I_2D@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VI6_CLU_CTRL_AX1I_2D@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _VI6_CLU_CTRL_AX2I_2D@GOTPAGE
Lloh16:
	ldr	x9, [x9, _VI6_CLU_CTRL_AX2I_2D@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _VI6_CLU_CTRL_OS0_2D@GOTPAGE
Lloh19:
	ldr	x10, [x10, _VI6_CLU_CTRL_OS0_2D@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
Lloh21:
	adrp	x11, _VI6_CLU_CTRL_OS1_2D@GOTPAGE
Lloh22:
	ldr	x11, [x11, _VI6_CLU_CTRL_OS1_2D@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
Lloh24:
	adrp	x12, _VI6_CLU_CTRL_OS2_2D@GOTPAGE
Lloh25:
	ldr	x12, [x12, _VI6_CLU_CTRL_OS2_2D@GOTPAGEOFF]
Lloh26:
	ldr	w12, [x12]
Lloh27:
	adrp	x13, _VI6_CLU_CTRL_M2D@GOTPAGE
Lloh28:
	ldr	x13, [x13, _VI6_CLU_CTRL_M2D@GOTPAGEOFF]
Lloh29:
	ldr	w13, [x13]
	orr	w8, w8, w3
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w8, w8, w12
	orr	w3, w8, w13
LBB0_3:
Lloh30:
	adrp	x8, _VI6_CLU_CTRL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _VI6_CLU_CTRL@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_vsp1_clu_write
	add	x22, x20, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x21, [x20, #16]
	str	xzr, [x20, #16]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	cbz	x21, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x21
	bl	_vsp1_dl_list_add_body
	mov	x0, x21
	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	_vsp1_dl_body_put
LBB0_5:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_VI6_CLU_CTRL_AAI,4,2           ; @VI6_CLU_CTRL_AAI
	.comm	_VI6_CLU_CTRL_MVS,4,2           ; @VI6_CLU_CTRL_MVS
	.comm	_VI6_CLU_CTRL_EN,4,2            ; @VI6_CLU_CTRL_EN
	.comm	_V4L2_CID_VSP1_CLU_MODE_2D,8,3  ; @V4L2_CID_VSP1_CLU_MODE_2D
	.comm	_VI6_CLU_CTRL_AX1I_2D,4,2       ; @VI6_CLU_CTRL_AX1I_2D
	.comm	_VI6_CLU_CTRL_AX2I_2D,4,2       ; @VI6_CLU_CTRL_AX2I_2D
	.comm	_VI6_CLU_CTRL_OS0_2D,4,2        ; @VI6_CLU_CTRL_OS0_2D
	.comm	_VI6_CLU_CTRL_OS1_2D,4,2        ; @VI6_CLU_CTRL_OS1_2D
	.comm	_VI6_CLU_CTRL_OS2_2D,4,2        ; @VI6_CLU_CTRL_OS2_2D
	.comm	_VI6_CLU_CTRL_M2D,4,2           ; @VI6_CLU_CTRL_M2D
	.comm	_VI6_CLU_CTRL,4,2               ; @VI6_CLU_CTRL
	.no_dead_strip	_clu_configure_frame
.subsections_via_symbols
