	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function delta_open
_delta_open:                            ## @delta_open
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_video_drvdata
	movq	%rax, %r15
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r15, 24(%rax)
	movq	%rbx, %rdi
	callq	_video_devdata
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_v4l2_fh_init
	movq	%r13, (%rbx)
	movq	%r13, %rdi
	callq	_v4l2_fh_add
	leaq	20(%r13), %rdi
	movq	_delta_run_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	16(%r13), %rdi
	callq	_mutex_init
	movl	32(%r15), %edi
	movq	_queue_init@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_v4l2_m2m_ctx_init
	movl	%eax, (%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	(%r13), %edi
	callq	_PTR_ERR
	movl	%eax, %r12d
	movl	8(%r15), %edi
	movq	_DELTA_PREFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %ecx
	callq	_dev_err
	movq	%r13, %rdi
	callq	_v4l2_fh_del
	movq	%r13, %rdi
	callq	_v4l2_fh_exit
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_4:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_12
LBB0_5:
	movq	_DELTA_STATE_WF_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	movq	%r13, %rdi
	addq	$8, %rdi
	callq	_INIT_LIST_HEAD
	movl	(%r15), %ecx
	incl	%ecx
	movl	%ecx, (%r15)
	movl	4(%r13), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	%r13, %rdi
	callq	_set_default_params
	movq	24(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.6:
	callq	_clk_prepare_enable
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	8(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
LBB0_8:
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.9:
	callq	_clk_prepare_enable
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	8(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_warn
LBB0_11:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	8(%r15), %edi
	movl	4(%r13), %edx
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_dbg
	xorl	%r12d, %r12d
LBB0_12:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_delta_run_work,4,2             ## @delta_run_work
	.comm	_queue_init,4,2                 ## @queue_init
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s failed to initialize m2m context (%d)\n"

	.comm	_DELTA_PREFIX,4,2               ## @DELTA_PREFIX
	.comm	_DELTA_STATE_WF_FORMAT,4,2      ## @DELTA_STATE_WF_FORMAT
L_.str.1:                               ## @.str.1
	.asciz	"[%3d:----]"

L_.str.2:                               ## @.str.2
	.asciz	"failed to enable st231 clk\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to enable delta promip clk\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s decoder instance created\n"

	.no_dead_strip	_delta_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function delta_open
_delta_open:                            ; @delta_open
	.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	x22, x0
	bl	_video_drvdata
	mov	x21, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	x21, [x0, #24]
	mov	x0, x22
	bl	_video_devdata
	mov	x1, x0
	mov	x0, x20
	bl	_v4l2_fh_init
	str	x20, [x22]
	mov	x0, x20
	bl	_v4l2_fh_add
	add	x0, x20, #20
Lloh3:
	adrp	x8, _delta_run_work@GOTPAGE
Lloh4:
	ldr	x8, [x8, _delta_run_work@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x20, #16
	bl	_mutex_init
	ldr	w0, [x21, #32]
Lloh6:
	adrp	x8, _queue_init@GOTPAGE
Lloh7:
	ldr	x8, [x8, _queue_init@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_v4l2_m2m_ctx_init
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x20]
	bl	_PTR_ERR
	mov	x22, x0
	ldr	w0, [x21, #8]
Lloh9:
	adrp	x8, _DELTA_PREFIX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DELTA_PREFIX@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x22
	bl	_dev_err
	mov	x0, x20
	bl	_v4l2_fh_del
	mov	x0, x20
	bl	_v4l2_fh_exit
	mov	x0, x20
	bl	_kfree
	b	LBB0_4
LBB0_3:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_4:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_12
LBB0_5:
Lloh17:
	adrp	x8, _DELTA_STATE_WF_FORMAT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DELTA_STATE_WF_FORMAT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x20, #12]
	add	x0, x20, #8
	bl	_INIT_LIST_HEAD
	ldr	w8, [x21]
	add	w3, w8, #1
	str	w3, [x21]
	ldr	w0, [x20, #4]
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	mov	x0, x20
	bl	_set_default_params
	ldr	x0, [x21, #24]
	cbz	x0, LBB0_8
; %bb.6:
	bl	_clk_prepare_enable
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w0, [x21, #8]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
LBB0_8:
	ldr	x0, [x21, #16]
	cbz	x0, LBB0_11
; %bb.9:
	bl	_clk_prepare_enable
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w0, [x21, #8]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_warn
LBB0_11:
	mov	x0, x19
	bl	_mutex_unlock
	ldr	w0, [x21, #8]
	ldr	w2, [x20, #4]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
	mov	w22, #0
LBB0_12:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_delta_run_work,4,2             ; @delta_run_work
	.comm	_queue_init,4,2                 ; @queue_init
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s failed to initialize m2m context (%d)\n"

	.comm	_DELTA_PREFIX,4,2               ; @DELTA_PREFIX
	.comm	_DELTA_STATE_WF_FORMAT,4,2      ; @DELTA_STATE_WF_FORMAT
l_.str.1:                               ; @.str.1
	.asciz	"[%3d:----]"

l_.str.2:                               ; @.str.2
	.asciz	"failed to enable st231 clk\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to enable delta promip clk\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s decoder instance created\n"

	.no_dead_strip	_delta_open
.subsections_via_symbols
