	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vicodec_probe
_vicodec_probe:                         ## @vicodec_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_v4l2_device_register
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movq	_vicodec_v4l2_dev_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	leaq	16(%r15), %rsi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_register_instance
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	leaq	24(%r15), %rsi
	leaq	L_.str.1(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_register_instance
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	leaq	32(%r15), %rsi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_register_instance
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	leaq	28(%r15), %rdi
	callq	_video_unregister_device
	movl	24(%r15), %edi
	callq	_v4l2_m2m_release
LBB0_7:
	movq	%r15, %rdi
	addq	$20, %rdi
	callq	_video_unregister_device
	movl	16(%r15), %edi
	callq	_v4l2_m2m_release
LBB0_8:
	movq	%r15, %rdi
	callq	_v4l2_device_unregister
LBB0_9:
	movq	%r15, %rdi
	callq	_kfree
	movl	%r14d, %ebx
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_vicodec_v4l2_dev_release,4,2   ## @vicodec_v4l2_dev_release
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stateful-encoder"

L_.str.1:                               ## @.str.1
	.asciz	"stateful-decoder"

L_.str.2:                               ## @.str.2
	.asciz	"stateless-decoder"

	.comm	_MEDIA_ENT_F_PROC_VIDEO_DECODER,4,2 ## @MEDIA_ENT_F_PROC_VIDEO_DECODER
	.comm	_MEDIA_ENT_F_PROC_VIDEO_ENCODER,4,2 ## @MEDIA_ENT_F_PROC_VIDEO_ENCODER
	.comm	_vicodec_m2m_media_ops,4,2      ## @vicodec_m2m_media_ops
	.no_dead_strip	_vicodec_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vicodec_probe
_vicodec_probe:                         ; @vicodec_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	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	mov	x0, x21
	mov	x1, x20
	bl	_v4l2_device_register
	mov	x19, x0
	cbnz	w0, LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _vicodec_v4l2_dev_release@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vicodec_v4l2_dev_release@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_platform_set_drvdata
	add	x1, x20, #16
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	w3, #1
	bl	_register_instance
	cbnz	x0, LBB0_7
; %bb.3:
	add	x1, x20, #24
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w3, #0
	bl	_register_instance
	cbnz	x0, LBB0_6
; %bb.4:
	add	x1, x20, #32
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	w3, #0
	bl	_register_instance
	cbz	x0, LBB0_11
; %bb.5:
	add	x0, x20, #28
	bl	_video_unregister_device
	ldr	w0, [x20, #24]
	bl	_v4l2_m2m_release
LBB0_6:
	add	x0, x20, #20
	bl	_video_unregister_device
	ldr	w0, [x20, #16]
	bl	_v4l2_m2m_release
LBB0_7:
	mov	x0, x20
	bl	_v4l2_device_unregister
LBB0_8:
	mov	x0, x20
	bl	_kfree
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_10:
	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
LBB0_11:
	mov	w19, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_vicodec_v4l2_dev_release,4,2   ; @vicodec_v4l2_dev_release
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stateful-encoder"

l_.str.1:                               ; @.str.1
	.asciz	"stateful-decoder"

l_.str.2:                               ; @.str.2
	.asciz	"stateless-decoder"

	.comm	_MEDIA_ENT_F_PROC_VIDEO_DECODER,4,2 ; @MEDIA_ENT_F_PROC_VIDEO_DECODER
	.comm	_MEDIA_ENT_F_PROC_VIDEO_ENCODER,4,2 ; @MEDIA_ENT_F_PROC_VIDEO_ENCODER
	.comm	_vicodec_m2m_media_ops,4,2      ; @vicodec_m2m_media_ops
	.no_dead_strip	_vicodec_probe
.subsections_via_symbols
