	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, 16(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	_venc_soc_devices@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_soc_device_match
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	$1, (%rbx)
LBB0_4:
	movq	%rbx, %rdi
	addq	$32, %rdi
	callq	_mutex_init
	movq	_venc_config_pal_trm@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	16(%rbx), %rdi
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 8(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	8(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r15d
LBB0_16:
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_17
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_17:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movl	%eax, 4(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	4(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r15d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%r15d, %ecx
	addl	(%rax), %ecx
	je	LBB0_16
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	callq	_DSSERR
	jmp	LBB0_16
LBB0_9:
	movq	%rbx, %rdi
	callq	_venc_get_clocks
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.10:
	movq	%rbx, %rdi
	callq	_venc_probe_of
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	%rbx, %rdi
	callq	_venc_init_output
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movq	_venc_component_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_component_add
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_venc_uninit_output
LBB0_15:
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	jmp	LBB0_16
LBB0_13:
	xorl	%r15d, %r15d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_venc_soc_devices,4,2           ## @venc_soc_devices
	.comm	_venc_config_pal_trm,4,2        ## @venc_config_pal_trm
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vdda"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.1:                               ## @.str.1
	.asciz	"can't get VDDA_DAC regulator\n"

	.comm	_venc_component_ops,4,2         ## @venc_component_ops
	.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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
Lloh3:
	adrp	x8, _venc_soc_devices@GOTPAGE
Lloh4:
	ldr	x8, [x8, _venc_soc_devices@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_soc_device_match
	cbz	x0, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x19]
LBB0_3:
	add	x0, x19, #32
	bl	_mutex_init
Lloh6:
	adrp	x8, _venc_config_pal_trm@GOTPAGE
Lloh7:
	ldr	x8, [x8, _venc_config_pal_trm@GOTPAGEOFF]
	str	x8, [x19, #24]
	ldr	x0, [x19, #16]
Lloh8:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	w0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w0, [x19, #8]
	bl	_PTR_ERR
	mov	x21, x0
LBB0_5:
	mov	x0, x19
	bl	_kfree
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	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_8:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get
	str	w0, [x19, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.9:
	ldr	w0, [x19, #4]
	bl	_PTR_ERR
	mov	x21, x0
Lloh16:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_5
; %bb.10:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DSSERR
	b	LBB0_5
LBB0_11:
	mov	x0, x19
	bl	_venc_get_clocks
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.12:
	mov	x0, x19
	bl	_venc_probe_of
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.13:
	mov	x0, x20
	bl	_pm_runtime_enable
	mov	x0, x19
	bl	_venc_init_output
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.14:
Lloh21:
	adrp	x1, _venc_component_ops@GOTPAGE
Lloh22:
	ldr	x1, [x1, _venc_component_ops@GOTPAGEOFF]
	mov	x0, x20
	bl	_component_add
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.15:
	mov	x0, x19
	bl	_venc_uninit_output
LBB0_16:
	mov	x0, x20
	bl	_pm_runtime_disable
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_venc_soc_devices,4,2           ; @venc_soc_devices
	.comm	_venc_config_pal_trm,4,2        ; @venc_config_pal_trm
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vdda"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.1:                               ; @.str.1
	.asciz	"can't get VDDA_DAC regulator\n"

	.comm	_venc_component_ops,4,2         ; @venc_component_ops
	.no_dead_strip	_venc_probe
.subsections_via_symbols
