	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpe_fw_cb
_vpe_fw_cb:                             ## @vpe_fw_cb
	.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, %r14
	callq	_platform_get_drvdata
	movq	%rax, %rbx
	leaq	16(%rax), %r15
	movq	_vpe_videodev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	leaq	8(%rbx), %rax
	movq	%rax, 32(%rbx)
	movq	%rbx, 24(%rbx)
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_video_register_device
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_vpe_err
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_vpe_set_clock_enable
	movq	%r14, %rdi
	callq	_vpe_runtime_put
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	movl	4(%rbx), %edi
	callq	_v4l2_m2m_release
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v4l2_device_unregister         ## TAILCALL
LBB0_2:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_video_set_drvdata
	movl	(%rbx), %edi
	movl	16(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_vpe_videodev,24,3              ## @vpe_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"

	.no_dead_strip	_vpe_fw_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpe_fw_cb
_vpe_fw_cb:                             ; @vpe_fw_cb
	.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
	bl	_platform_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x8, _vpe_videodev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vpe_videodev@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	x21, x0
	str	x8, [x21, #16]!
	add	x8, x0, #8
	stp	x0, x8, [x0, #24]
Lloh3:
	adrp	x8, _VFL_TYPE_GRABBER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VFL_TYPE_GRABBER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_video_register_device
	cbz	w0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_vpe_err
	mov	x0, x19
	mov	w1, #0
	bl	_vpe_set_clock_enable
	mov	x0, x20
	bl	_vpe_runtime_put
	mov	x0, x20
	bl	_pm_runtime_disable
	ldr	w0, [x19, #4]
	bl	_v4l2_m2m_release
	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
	b	_v4l2_device_unregister
LBB0_2:
	mov	x0, x21
	mov	x1, x19
	bl	_video_set_drvdata
	ldr	w0, [x19]
	ldr	w2, [x19, #16]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	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
	b	_dev_info
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_vpe_videodev,24,3              ; @vpe_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"

	.no_dead_strip	_vpe_fw_cb
.subsections_via_symbols
