	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vim2m_open
_vim2m_open:                            ## @vim2m_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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_11
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
	movq	%rbx, %rdi
	callq	_video_devdata
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_v4l2_fh_init
	movq	%r12, (%rbx)
	movq	%r14, 48(%r12)
	leaq	40(%r12), %r15
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_HFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	_vim2m_ctrl_ops@GOTPCREL(%rip), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_VFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_default_transtime@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_vim2m_ctrl_trans_time_msec@GOTPCREL(%rip), %rsi
	movl	%eax, (%rsi)
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_v4l2_ctrl_new_custom
	movq	_vim2m_ctrl_trans_num_bufs@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_v4l2_ctrl_new_custom
	movl	40(%r12), %ebx
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	callq	_v4l2_ctrl_handler_free
	jmp	LBB0_6
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_7:
	movq	%r15, 8(%r12)
	movq	%r15, %rdi
	callq	_v4l2_ctrl_handler_setup
	movq	_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	32(%r12), %rcx
	movq	_V4L2_M2M_SRC@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movq	%rax, 16(%rcx,%rdx,8)
	movabsq	$2061584302720, %rsi            ## imm = 0x1E000000280
	movq	%rsi, (%rcx,%rdx,8)
	movl	(%rax), %esi
	sarl	$3, %esi
	imull	$307200, %esi, %esi             ## imm = 0x4B000
	movl	%esi, 8(%rcx,%rdx,8)
	movq	_V4L2_M2M_DST@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	leaq	(%rsi,%rsi,2), %rsi
	movups	(%rcx,%rdx,8), %xmm0
	movups	%xmm0, (%rcx,%rsi,8)
	movq	%rax, 16(%rcx,%rsi,8)
	movq	_V4L2_COLORSPACE_REC709@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movl	8(%r14), %edi
	movq	_queue_init@GOTPCREL(%rip), %rdx
	movq	%r12, %rsi
	callq	_v4l2_m2m_ctx_init
	movl	%eax, (%r12)
	leaq	24(%r12), %rdi
	callq	_mutex_init
	leaq	20(%r12), %rdi
	callq	_spin_lock_init
	movq	%r12, %rdi
	addq	$16, %rdi
	movq	_device_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movl	(%r12), %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%r12), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_v4l2_ctrl_handler_free
	movq	%r12, %rdi
	callq	_v4l2_fh_exit
LBB0_6:
	movq	%r12, %rdi
	callq	_kfree
LBB0_10:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_11:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r12, %rdi
	callq	_v4l2_fh_add
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_atomic_inc
	movl	(%r12), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%r12, %rcx
	callq	_dprintk
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_vim2m_ctrl_ops,4,2             ## @vim2m_ctrl_ops
	.comm	_V4L2_CID_HFLIP,4,2             ## @V4L2_CID_HFLIP
	.comm	_V4L2_CID_VFLIP,4,2             ## @V4L2_CID_VFLIP
	.comm	_default_transtime,4,2          ## @default_transtime
	.comm	_vim2m_ctrl_trans_time_msec,4,2 ## @vim2m_ctrl_trans_time_msec
	.comm	_vim2m_ctrl_trans_num_bufs,4,2  ## @vim2m_ctrl_trans_num_bufs
	.comm	_formats,8,3                    ## @formats
	.comm	_V4L2_M2M_SRC,8,3               ## @V4L2_M2M_SRC
	.comm	_V4L2_M2M_DST,8,3               ## @V4L2_M2M_DST
	.comm	_V4L2_COLORSPACE_REC709,4,2     ## @V4L2_COLORSPACE_REC709
	.comm	_queue_init,4,2                 ## @queue_init
	.comm	_device_work,4,2                ## @device_work
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Created instance: %p, m2m_ctx: %p\n"

	.no_dead_strip	_vim2m_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function vim2m_open
lCPI0_0:
	.long	640                             ; 0x280
	.long	480                             ; 0x1e0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vim2m_open:                            ; @vim2m_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	x21, 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	w22, w8
	b	LBB0_10
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_5
; %bb.3:
	mov	x20, x0
	mov	x0, x21
	bl	_video_devdata
	mov	x1, x0
	mov	x0, x20
	bl	_v4l2_fh_init
	str	x20, [x21]
	str	x19, [x20, #48]
	add	x21, x20, #40
	mov	x0, x21
	mov	w1, #4
	bl	_v4l2_ctrl_handler_init
Lloh6:
	adrp	x8, _V4L2_CID_HFLIP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_CID_HFLIP@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x22, _vim2m_ctrl_ops@GOTPAGE
Lloh10:
	ldr	x22, [x22, _vim2m_ctrl_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
Lloh11:
	adrp	x8, _V4L2_CID_VFLIP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_CID_VFLIP@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
Lloh14:
	adrp	x8, _default_transtime@GOTPAGE
Lloh15:
	ldr	x8, [x8, _default_transtime@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x1, _vim2m_ctrl_trans_time_msec@GOTPAGE
Lloh18:
	ldr	x1, [x1, _vim2m_ctrl_trans_time_msec@GOTPAGEOFF]
	str	w8, [x1]
	mov	x0, x21
	mov	x2, #0
	bl	_v4l2_ctrl_new_custom
Lloh19:
	adrp	x1, _vim2m_ctrl_trans_num_bufs@GOTPAGE
Lloh20:
	ldr	x1, [x1, _vim2m_ctrl_trans_num_bufs@GOTPAGEOFF]
	mov	x0, x21
	mov	x2, #0
	bl	_v4l2_ctrl_new_custom
	ldr	w22, [x20, #40]
	cbz	w22, LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_v4l2_ctrl_handler_free
	b	LBB0_8
LBB0_5:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_9
LBB0_6:
	str	x21, [x20, #8]
	mov	x0, x21
	bl	_v4l2_ctrl_handler_setup
Lloh24:
	adrp	x8, _formats@GOTPAGE
Lloh25:
	ldr	x8, [x8, _formats@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	x9, [x20, #32]
Lloh27:
	adrp	x10, _V4L2_M2M_SRC@GOTPAGE
Lloh28:
	ldr	x10, [x10, _V4L2_M2M_SRC@GOTPAGEOFF]
Lloh29:
	ldr	x10, [x10]
	mov	w11, #24
	madd	x10, x10, x11, x9
	str	x8, [x10, #16]
Lloh30:
	adrp	x12, lCPI0_0@PAGE
Lloh31:
	ldr	d0, [x12, lCPI0_0@PAGEOFF]
	str	d0, [x10]
	ldr	w12, [x8]
	asr	w12, w12, #3
	mov	w13, #45056
	movk	w13, #4, lsl #16
	mul	w12, w12, w13
	str	w12, [x10, #8]
Lloh32:
	adrp	x12, _V4L2_M2M_DST@GOTPAGE
Lloh33:
	ldr	x12, [x12, _V4L2_M2M_DST@GOTPAGEOFF]
Lloh34:
	ldr	x12, [x12]
	madd	x9, x12, x11, x9
	ldr	q0, [x10]
	str	x8, [x9, #16]
	str	q0, [x9]
Lloh35:
	adrp	x8, _V4L2_COLORSPACE_REC709@GOTPAGE
Lloh36:
	ldr	x8, [x8, _V4L2_COLORSPACE_REC709@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	str	w8, [x20, #28]
	ldr	w0, [x19, #8]
Lloh38:
	adrp	x2, _queue_init@GOTPAGE
Lloh39:
	ldr	x2, [x2, _queue_init@GOTPAGEOFF]
	mov	x1, x20
	bl	_v4l2_m2m_ctx_init
	str	w0, [x20]
	add	x0, x20, #24
	bl	_mutex_init
	add	x0, x20, #20
	bl	_spin_lock_init
	add	x0, x20, #16
Lloh40:
	adrp	x8, _device_work@GOTPAGE
Lloh41:
	ldr	x8, [x8, _device_work@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	ldr	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.7:
	ldr	w0, [x20]
	bl	_PTR_ERR
	mov	x22, x0
	mov	x0, x21
	bl	_v4l2_ctrl_handler_free
	mov	x0, x20
	bl	_v4l2_fh_exit
LBB0_8:
	mov	x0, x20
	bl	_kfree
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_10:
	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
LBB0_11:
	mov	x0, x20
	bl	_v4l2_fh_add
	add	x0, x19, #4
	bl	_atomic_inc
	ldr	w4, [x20]
Lloh43:
	adrp	x2, l_.str@PAGE
Lloh44:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	mov	x3, x20
	bl	_dprintk
	mov	w22, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdr	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_vim2m_ctrl_ops,4,2             ; @vim2m_ctrl_ops
	.comm	_V4L2_CID_HFLIP,4,2             ; @V4L2_CID_HFLIP
	.comm	_V4L2_CID_VFLIP,4,2             ; @V4L2_CID_VFLIP
	.comm	_default_transtime,4,2          ; @default_transtime
	.comm	_vim2m_ctrl_trans_time_msec,4,2 ; @vim2m_ctrl_trans_time_msec
	.comm	_vim2m_ctrl_trans_num_bufs,4,2  ; @vim2m_ctrl_trans_num_bufs
	.comm	_formats,8,3                    ; @formats
	.comm	_V4L2_M2M_SRC,8,3               ; @V4L2_M2M_SRC
	.comm	_V4L2_M2M_DST,8,3               ; @V4L2_M2M_DST
	.comm	_V4L2_COLORSPACE_REC709,4,2     ; @V4L2_COLORSPACE_REC709
	.comm	_queue_init,4,2                 ; @queue_init
	.comm	_device_work,4,2                ; @device_work
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Created instance: %p, m2m_ctx: %p\n"

	.no_dead_strip	_vim2m_open
.subsections_via_symbols
