	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdp1_open
_fdp1_open:                             ## @fdp1_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
	subq	$24, %rsp
	.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, %r14
	movq	%rax, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	leaq	8(%rax), %r15
	movq	%rbx, %rdi
	callq	_video_devdata
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_v4l2_fh_init
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, (%rbx)
	movq	%r14, 48(%r12)
	leaq	40(%r12), %rdi
	callq	_INIT_LIST_HEAD
	movl	$1, (%r12)
	movq	$0, 32(%r12)
	movq	%r12, %r13
	addq	$24, %r13
	movq	%r13, %rdi
	movl	$3, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_DEINTERLACING_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_FDP1_NEXTFIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%edi, %edi
	callq	_BIT
	movq	_FDP1_FIXED3D@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	_fdp1_ctrl_deint_menu@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rsp)
	movq	_fdp1_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	callq	_v4l2_ctrl_new_std_menu_items
	movq	_V4L2_CID_MIN_BUFFERS_FOR_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, (%rsp)
	movq	%r13, %rdi
	movq	_fdp1_ctrl_ops@GOTPCREL(%rip), %rsi
	movl	$1, %ecx
	movl	$2, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_V4L2_CTRL_FLAG_VOLATILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
LBB0_6:
	movq	_V4L2_CID_ALPHA_COMPONENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$255, (%rsp)
	movq	_fdp1_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movl	(%r13), %ebx
	testl	%ebx, %ebx
	jne	LBB0_7
## %bb.8:
	movq	%r13, 16(%r12)
	movq	%r13, %rdi
	callq	_v4l2_ctrl_handler_setup
	leaq	-56(%rbp), %r15
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_fdp1_set_format
	movl	8(%r14), %edi
	movq	_queue_init@GOTPCREL(%rip), %rdx
	movq	%r12, %rsi
	callq	_v4l2_m2m_ctx_init
	movl	%eax, 8(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	8(%r12), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_7:
	movq	%r13, %rdi
	callq	_v4l2_ctrl_handler_free
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_10:
	movl	4(%r14), %edi
	callq	_pm_runtime_get_sync
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_v4l2_fh_add
	movl	8(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_dprintk
LBB0_11:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_fdp1_ctrl_ops,4,2              ## @fdp1_ctrl_ops
	.comm	_V4L2_CID_DEINTERLACING_MODE,4,2 ## @V4L2_CID_DEINTERLACING_MODE
	.comm	_FDP1_NEXTFIELD,4,2             ## @FDP1_NEXTFIELD
	.comm	_FDP1_FIXED3D,4,2               ## @FDP1_FIXED3D
	.comm	_fdp1_ctrl_deint_menu,4,2       ## @fdp1_ctrl_deint_menu
	.comm	_V4L2_CID_MIN_BUFFERS_FOR_CAPTURE,4,2 ## @V4L2_CID_MIN_BUFFERS_FOR_CAPTURE
	.comm	_V4L2_CTRL_FLAG_VOLATILE,4,2    ## @V4L2_CTRL_FLAG_VOLATILE
	.comm	_V4L2_CID_ALPHA_COMPONENT,4,2   ## @V4L2_CID_ALPHA_COMPONENT
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,4,2 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
	.comm	_queue_init,4,2                 ## @queue_init
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Created instance: %p, m2m_ctx: %p\n"

	.no_dead_strip	_fdp1_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdp1_open
_fdp1_open:                             ; @fdp1_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x0
	bl	_video_drvdata
	mov	x19, x0
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_12
LBB0_2:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x20, x0
	add	x21, x0, #8
	mov	x0, x22
	bl	_video_devdata
	mov	x1, x0
	mov	x0, x21
	bl	_v4l2_fh_init
	str	x21, [x22]
	str	x19, [x20, #48]
	add	x0, x20, #40
	bl	_INIT_LIST_HEAD
	mov	w8, #1
	str	w8, [x20]
	str	xzr, [x20, #32]
	add	x22, x20, #24
	mov	x0, x22
	mov	w1, #3
	bl	_v4l2_ctrl_handler_init
Lloh6:
	adrp	x8, _V4L2_CID_DEINTERLACING_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_CID_DEINTERLACING_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
Lloh9:
	adrp	x8, _FDP1_NEXTFIELD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FDP1_NEXTFIELD@GOTPAGEOFF]
Lloh11:
	ldr	w24, [x8]
	mov	w0, #0
	bl	_BIT
	mov	x4, x0
Lloh12:
	adrp	x8, _FDP1_FIXED3D@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FDP1_FIXED3D@GOTPAGEOFF]
Lloh14:
	ldr	w5, [x8]
Lloh15:
	adrp	x8, _fdp1_ctrl_deint_menu@GOTPAGE
Lloh16:
	ldr	x8, [x8, _fdp1_ctrl_deint_menu@GOTPAGEOFF]
Lloh17:
	ldr	w6, [x8]
Lloh18:
	adrp	x25, _fdp1_ctrl_ops@GOTPAGE
Lloh19:
	ldr	x25, [x25, _fdp1_ctrl_ops@GOTPAGEOFF]
	mov	x0, x22
	mov	x1, x25
	mov	x2, x23
	mov	x3, x24
	bl	_v4l2_ctrl_new_std_menu_items
Lloh20:
	adrp	x8, _V4L2_CID_MIN_BUFFERS_FOR_CAPTURE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _V4L2_CID_MIN_BUFFERS_FOR_CAPTURE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x25
	mov	w3, #1
	mov	w4, #2
	mov	w5, #1
	mov	w6, #1
	bl	_v4l2_ctrl_new_std
	cbz	x0, LBB0_5
; %bb.4:
Lloh23:
	adrp	x8, _V4L2_CTRL_FLAG_VOLATILE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _V4L2_CTRL_FLAG_VOLATILE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
LBB0_5:
Lloh26:
	adrp	x8, _V4L2_CID_ALPHA_COMPONENT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _V4L2_CID_ALPHA_COMPONENT@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
Lloh29:
	adrp	x1, _fdp1_ctrl_ops@GOTPAGE
Lloh30:
	ldr	x1, [x1, _fdp1_ctrl_ops@GOTPAGEOFF]
	mov	x0, x22
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #255
	bl	_v4l2_ctrl_new_std
	ldr	w23, [x22]
	cbnz	w23, LBB0_8
; %bb.6:
	str	x22, [x20, #16]
	mov	x0, x22
	bl	_v4l2_ctrl_handler_setup
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh31:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_fdp1_set_format
	ldr	w0, [x19, #8]
Lloh34:
	adrp	x2, _queue_init@GOTPAGE
Lloh35:
	ldr	x2, [x2, _queue_init@GOTPAGEOFF]
	mov	x1, x20
	bl	_v4l2_m2m_ctx_init
	str	w0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.7:
	ldr	w0, [x20, #8]
	bl	_PTR_ERR
	mov	x23, x0
LBB0_8:
	mov	x0, x22
	bl	_v4l2_ctrl_handler_free
	mov	x0, x20
	bl	_kfree
	b	LBB0_11
LBB0_9:
Lloh36:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_11
LBB0_10:
	ldr	w0, [x19, #4]
	bl	_pm_runtime_get_sync
	mov	x0, x21
	bl	_v4l2_fh_add
	ldr	w3, [x20, #8]
Lloh39:
	adrp	x1, l_.str@PAGE
Lloh40:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dprintk
	mov	w23, #0
LBB0_11:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_12:
	mov	x0, x23
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_fdp1_ctrl_ops,4,2              ; @fdp1_ctrl_ops
	.comm	_V4L2_CID_DEINTERLACING_MODE,4,2 ; @V4L2_CID_DEINTERLACING_MODE
	.comm	_FDP1_NEXTFIELD,4,2             ; @FDP1_NEXTFIELD
	.comm	_FDP1_FIXED3D,4,2               ; @FDP1_FIXED3D
	.comm	_fdp1_ctrl_deint_menu,4,2       ; @fdp1_ctrl_deint_menu
	.comm	_V4L2_CID_MIN_BUFFERS_FOR_CAPTURE,4,2 ; @V4L2_CID_MIN_BUFFERS_FOR_CAPTURE
	.comm	_V4L2_CTRL_FLAG_VOLATILE,4,2    ; @V4L2_CTRL_FLAG_VOLATILE
	.comm	_V4L2_CID_ALPHA_COMPONENT,4,2   ; @V4L2_CID_ALPHA_COMPONENT
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,4,2 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
	.comm	_queue_init,4,2                 ; @queue_init
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Created instance: %p, m2m_ctx: %p\n"

	.no_dead_strip	_fdp1_open
.subsections_via_symbols
