	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vsp1_clu_create                ## -- Begin function vsp1_clu_create
	.p2align	4, 0x90
_vsp1_clu_create:                       ## @vsp1_clu_create
	.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	%rdi, %r14
	movl	(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	36(%rax), %rdi
	callq	_spin_lock_init
	movq	%rbx, %r15
	addq	$8, %r15
	movq	_clu_entity_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	_VSP1_ENTITY_CLU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_MEDIA_ENT_F_PROC_VIDEO_LUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str(%rip), %rdx
	movq	_clu_ops@GOTPCREL(%rip), %r8
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$2, %ecx
	callq	_vsp1_entity_init
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movl	16(%rbx), %edi
	movq	_CLU_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	incq	%rdx
	xorl	%r12d, %r12d
	movl	$3, %esi
	xorl	%ecx, %ecx
	callq	_vsp1_dl_body_pool_create
	movl	%eax, 32(%rbx)
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_clu_table_control@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_v4l2_ctrl_new_custom
	movq	_clu_mode_control@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_v4l2_ctrl_new_custom
	movq	%rbx, 8(%rbx)
	cmpl	$0, (%rbx)
	je	LBB0_9
## %bb.8:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movl	(%rbx), %ebx
	movq	%r15, %rdi
	callq	_vsp1_entity_destroy
	movl	%ebx, %edi
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_4
LBB0_3:
	movl	%eax, %edi
	jmp	LBB0_4
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %edi
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_9:
	movq	%rbx, %rdi
	callq	_v4l2_ctrl_handler_setup
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_clu_entity_ops,4,2             ## @clu_entity_ops
	.comm	_VSP1_ENTITY_CLU,4,2            ## @VSP1_ENTITY_CLU
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clu"

	.comm	_clu_ops,4,2                    ## @clu_ops
	.comm	_MEDIA_ENT_F_PROC_VIDEO_LUT,4,2 ## @MEDIA_ENT_F_PROC_VIDEO_LUT
	.comm	_CLU_SIZE,8,3                   ## @CLU_SIZE
	.comm	_clu_table_control,4,2          ## @clu_table_control
	.comm	_clu_mode_control,4,2           ## @clu_mode_control
L_.str.1:                               ## @.str.1
	.asciz	"clu: failed to initialize controls\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vsp1_clu_create                ; -- Begin function vsp1_clu_create
	.p2align	2
_vsp1_clu_create:                       ; @vsp1_clu_create
	.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, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	add	x0, x0, #36
	bl	_spin_lock_init
	add	x21, x19, #8
Lloh3:
	adrp	x8, _clu_entity_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _clu_entity_ops@GOTPAGEOFF]
Lloh5:
	adrp	x9, _VSP1_ENTITY_CLU@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VSP1_ENTITY_CLU@GOTPAGEOFF]
	str	x8, [x19, #24]
Lloh7:
	ldr	w8, [x9]
	str	w8, [x19, #20]
Lloh8:
	adrp	x8, _MEDIA_ENT_F_PROC_VIDEO_LUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MEDIA_ENT_F_PROC_VIDEO_LUT@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
Lloh13:
	adrp	x4, _clu_ops@GOTPAGE
Lloh14:
	ldr	x4, [x4, _clu_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x21
	mov	w3, #2
	bl	_vsp1_entity_init
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	w0, [x19, #16]
Lloh15:
	adrp	x8, _CLU_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CLU_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	add	x2, x8, #1
	mov	w1, #3
	mov	w3, #0
	bl	_vsp1_dl_body_pool_create
	str	w0, [x19, #32]
	cbz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	w1, #2
	bl	_v4l2_ctrl_handler_init
Lloh18:
	adrp	x1, _clu_table_control@GOTPAGE
Lloh19:
	ldr	x1, [x1, _clu_table_control@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, #0
	bl	_v4l2_ctrl_new_custom
Lloh20:
	adrp	x1, _clu_mode_control@GOTPAGE
Lloh21:
	ldr	x1, [x1, _clu_mode_control@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, #0
	bl	_v4l2_ctrl_new_custom
	str	x19, [x19, #8]
	ldr	w8, [x19]
	cbz	w8, LBB0_7
; %bb.4:
	ldr	w0, [x20]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	w19, [x19]
	mov	x0, x21
	bl	_vsp1_entity_destroy
	mov	x0, x19
	b	LBB0_6
LBB0_5:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	_ERR_PTR
LBB0_7:
	mov	x0, x19
	bl	_v4l2_ctrl_handler_setup
	mov	x0, x19
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_clu_entity_ops,4,2             ; @clu_entity_ops
	.comm	_VSP1_ENTITY_CLU,4,2            ; @VSP1_ENTITY_CLU
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clu"

	.comm	_clu_ops,4,2                    ; @clu_ops
	.comm	_MEDIA_ENT_F_PROC_VIDEO_LUT,4,2 ; @MEDIA_ENT_F_PROC_VIDEO_LUT
	.comm	_CLU_SIZE,8,3                   ; @CLU_SIZE
	.comm	_clu_table_control,4,2          ; @clu_table_control
	.comm	_clu_mode_control,4,2           ; @clu_mode_control
l_.str.1:                               ; @.str.1
	.asciz	"clu: failed to initialize controls\n"

.subsections_via_symbols
