	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vim2m_probe
_vim2m_probe:                           ## @vim2m_probe
	.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, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_v4l2_device_register
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	leaq	68(%rbx), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	64(%rbx), %r13
	movq	%r13, %rdi
	callq	_mutex_init
	movq	%rbx, %r12
	addq	$8, %r12
	movq	_vim2m_videodev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	%r13, 24(%rbx)
	movq	%rbx, 16(%rbx)
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_video_register_device
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_v4l2_err
	movq	%rbx, %rdi
	callq	_v4l2_device_unregister
	movl	%r13d, %r14d
LBB0_4:
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_7
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_video_set_drvdata
	movl	8(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_v4l2_info
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	_m2m_ops@GOTPCREL(%rip), %rdi
	callq	_v4l2_m2m_init
	movl	%eax, 32(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_v4l2_err
	movl	32(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_video_unregister_device
	movl	%ebx, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_vim2m_videodev,24,3            ## @vim2m_videodev
	.comm	_VFL_TYPE_GRABBER,4,2           ## @VFL_TYPE_GRABBER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to register video device\n"

L_.str.1:                               ## @.str.1
	.asciz	"Device registered as /dev/video%d\n"

	.comm	_m2m_ops,4,2                    ## @m2m_ops
L_.str.2:                               ## @.str.2
	.asciz	"Failed to init mem2mem device\n"

	.comm	_MEDIA_ENT_F_PROC_VIDEO_SCALER,4,2 ## @MEDIA_ENT_F_PROC_VIDEO_SCALER
	.comm	_m2m_media_ops,4,2              ## @m2m_media_ops
	.no_dead_strip	_vim2m_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vim2m_probe
_vim2m_probe:                           ; @vim2m_probe
	.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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_v4l2_device_register
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.2:
	add	x0, x19, #68
	mov	w1, #0
	bl	_atomic_set
	add	x22, x19, #64
	mov	x0, x22
	bl	_mutex_init
Lloh3:
	adrp	x8, _vim2m_videodev@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vim2m_videodev@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	x21, x19
	str	x8, [x21, #8]!
	stp	x19, x22, [x19, #16]
Lloh6:
	adrp	x8, _VFL_TYPE_GRABBER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VFL_TYPE_GRABBER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_video_register_device
	cbz	w0, LBB0_7
; %bb.3:
	mov	x22, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_v4l2_err
	mov	x0, x19
	bl	_v4l2_device_unregister
LBB0_4:
	mov	x0, x19
	bl	_kfree
	mov	x0, x22
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	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
	ret
LBB0_7:
	mov	x0, x21
	mov	x1, x19
	bl	_video_set_drvdata
	ldr	w2, [x19, #8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_v4l2_info
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
Lloh16:
	adrp	x0, _m2m_ops@GOTPAGE
Lloh17:
	ldr	x0, [x0, _m2m_ops@GOTPAGEOFF]
	bl	_v4l2_m2m_init
	str	w0, [x19, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_v4l2_err
	ldr	w0, [x19, #32]
	bl	_PTR_ERR
	mov	x19, x0
	mov	x0, x21
	bl	_video_unregister_device
	mov	x0, x19
	b	LBB0_6
LBB0_9:
	mov	w22, #0
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_vim2m_videodev,24,3            ; @vim2m_videodev
	.comm	_VFL_TYPE_GRABBER,4,2           ; @VFL_TYPE_GRABBER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to register video device\n"

l_.str.1:                               ; @.str.1
	.asciz	"Device registered as /dev/video%d\n"

	.comm	_m2m_ops,4,2                    ; @m2m_ops
l_.str.2:                               ; @.str.2
	.asciz	"Failed to init mem2mem device\n"

	.comm	_MEDIA_ENT_F_PROC_VIDEO_SCALER,4,2 ; @MEDIA_ENT_F_PROC_VIDEO_SCALER
	.comm	_m2m_media_ops,4,2              ; @m2m_media_ops
	.no_dead_strip	_vim2m_probe
.subsections_via_symbols
