	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function venc_probe
_venc_probe:                            ## @venc_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_6
## %bb.1:
	callq	_dev_get_drvdata
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_V3
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_IS_V4
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 32(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	32(%r12), %rdi
	jmp	LBB0_12
LBB0_6:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r12, %rdi
	callq	_IS_V4
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 24(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	24(%r12), %rdi
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_13:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_video_device_alloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	%rax, %r15
	movl	48(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	_video_device_release@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r15)
	movq	_venc_fops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r15)
	movq	_venc_ioctl_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	movq	_VFL_DIR_M2M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	%r12, %rax
	addq	$16, %rax
	movq	%rax, 8(%r15)
	movq	_V4L2_CAP_VIDEO_M2M_MPLANE@GOTPCREL(%rip), %rax
	movq	_V4L2_CAP_STREAMING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$-1, %edx
	callq	_video_register_device
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_video_device_release
	jmp	LBB0_8
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_17:
	movq	%r15, 8(%r12)
	movq	%r14, (%r12)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_video_set_drvdata
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"core"

L_.str.1:                               ## @.str.1
	.asciz	"bus"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"qcom-venus-encoder"

	.comm	_venc_fops,4,2                  ## @venc_fops
	.comm	_venc_ioctl_ops,4,2             ## @venc_ioctl_ops
	.comm	_VFL_DIR_M2M,4,2                ## @VFL_DIR_M2M
	.comm	_V4L2_CAP_VIDEO_M2M_MPLANE,4,2  ## @V4L2_CAP_VIDEO_M2M_MPLANE
	.comm	_V4L2_CAP_STREAMING,4,2         ## @V4L2_CAP_STREAMING
	.comm	_VFL_TYPE_GRABBER,4,2           ## @VFL_TYPE_GRABBER
	.no_dead_strip	_venc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function venc_probe
_venc_probe:                            ; @venc_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	x19, x0
	ldr	w0, [x0]
	cbz	w0, LBB0_6
; %bb.1:
	bl	_dev_get_drvdata
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	bl	_IS_V3
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_IS_V4
	cbz	x0, LBB0_9
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.5:
	ldr	x0, [x20, #32]
	b	LBB0_12
LBB0_6:
Lloh2:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	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_9:
	mov	x0, x20
	bl	_IS_V4
	cbz	x0, LBB0_13
; %bb.10:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.11:
	ldr	x0, [x20, #24]
LBB0_12:
	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	_PTR_ERR
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	bl	_video_device_alloc
	cbz	x0, LBB0_16
; %bb.14:
	mov	x21, x0
	ldr	w0, [x0, #48]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #4
	bl	_strscpy
Lloh8:
	adrp	x8, _video_device_release@GOTPAGE
Lloh9:
	ldr	x8, [x8, _video_device_release@GOTPAGEOFF]
	str	x8, [x21, #40]
Lloh10:
	adrp	x8, _venc_fops@GOTPAGE
Lloh11:
	ldr	x8, [x8, _venc_fops@GOTPAGEOFF]
Lloh12:
	adrp	x9, _venc_ioctl_ops@GOTPAGE
Lloh13:
	ldr	x9, [x9, _venc_ioctl_ops@GOTPAGEOFF]
	stp	x9, x8, [x21, #24]
Lloh14:
	adrp	x8, _VFL_DIR_M2M@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VFL_DIR_M2M@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	add	x8, x20, #16
	str	x8, [x21, #8]
Lloh17:
	adrp	x8, _V4L2_CAP_VIDEO_M2M_MPLANE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _V4L2_CAP_VIDEO_M2M_MPLANE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _V4L2_CAP_STREAMING@GOTPAGE
Lloh21:
	ldr	x9, [x9, _V4L2_CAP_STREAMING@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21]
Lloh23:
	adrp	x8, _VFL_TYPE_GRABBER@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VFL_TYPE_GRABBER@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #-1
	bl	_video_register_device
	mov	x22, x0
	cbz	w0, LBB0_17
; %bb.15:
	mov	x0, x21
	bl	_video_device_release
	b	LBB0_8
LBB0_16:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_17:
	stp	x19, x21, [x20]
	mov	x0, x21
	mov	x1, x20
	bl	_video_set_drvdata
	mov	x0, x19
	bl	_pm_runtime_enable
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"core"

l_.str.1:                               ; @.str.1
	.asciz	"bus"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"qcom-venus-encoder"

	.comm	_venc_fops,4,2                  ; @venc_fops
	.comm	_venc_ioctl_ops,4,2             ; @venc_ioctl_ops
	.comm	_VFL_DIR_M2M,4,2                ; @VFL_DIR_M2M
	.comm	_V4L2_CAP_VIDEO_M2M_MPLANE,4,2  ; @V4L2_CAP_VIDEO_M2M_MPLANE
	.comm	_V4L2_CAP_STREAMING,4,2         ; @V4L2_CAP_STREAMING
	.comm	_VFL_TYPE_GRABBER,4,2           ; @VFL_TYPE_GRABBER
	.no_dead_strip	_venc_probe
.subsections_via_symbols
