	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpe_probe
_vpe_probe:                             ## @vpe_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), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	48(%rax), %rdi
	callq	_spin_lock_init
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_v4l2_device_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.3:
	leaq	44(%r15), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	40(%r15), %rdi
	callq	_mutex_init
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_platform_get_resource_byname
	movq	%rax, 32(%r15)
	movl	(%rax), %esi
	movq	_SZ_32K@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_devm_ioremap
	movl	%eax, 28(%r15)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	_vpe_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_VPE_MODULE_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	movq	%r15, %r9
	callq	_devm_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	_m2m_ops@GOTPCREL(%rip), %rdi
	callq	_v4l2_m2m_init
	movl	%eax, 4(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_vpe_err
	movl	4(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_8:
	movq	%r15, %rdi
	callq	_v4l2_device_unregister
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	%r14, %rdi
	callq	_vpe_runtime_get
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_vpe_set_clock_enable
	movq	%r15, %rdi
	callq	_vpe_top_reset
	movq	_VPE_PID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VPE_PID_FUNC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VPE_PID_FUNC_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_read_field_reg
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_vpe_dbg
	movq	%r15, %rdi
	callq	_vpe_top_vpdma_reset
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_sc_create
	movl	%eax, 24(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	movq	%r15, %rax
	addq	$24, %rax
	jmp	LBB0_12
LBB0_15:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_csc_create
	movl	%eax, 20(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%r15, %rax
	addq	$20, %rax
LBB0_12:
	movl	(%rax), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_13:
	movq	%r14, %rdi
	callq	_vpe_runtime_put
LBB0_14:
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	movl	4(%r15), %edi
	callq	_v4l2_m2m_release
	jmp	LBB0_8
LBB0_17:
	movq	%r15, %rsi
	addq	$16, %rsi
	movq	%rsi, 8(%r15)
	movq	_vpe_fw_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_vpdma_create
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.18:
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vpe_top"

	.comm	_SZ_32K,4,2                     ## @SZ_32K
	.comm	_vpe_irq,4,2                    ## @vpe_irq
	.comm	_VPE_MODULE_NAME,4,2            ## @VPE_MODULE_NAME
	.comm	_m2m_ops,4,2                    ## @m2m_ops
L_.str.1:                               ## @.str.1
	.asciz	"Failed to init mem2mem device\n"

	.comm	_VPE_PID,4,2                    ## @VPE_PID
	.comm	_VPE_PID_FUNC_MASK,4,2          ## @VPE_PID_FUNC_MASK
	.comm	_VPE_PID_FUNC_SHIFT,4,2         ## @VPE_PID_FUNC_SHIFT
L_.str.2:                               ## @.str.2
	.asciz	"VPE PID function %x\n"

L_.str.3:                               ## @.str.3
	.asciz	"sc"

L_.str.4:                               ## @.str.4
	.asciz	"csc"

	.comm	_vpe_fw_cb,4,2                  ## @vpe_fw_cb
	.no_dead_strip	_vpe_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpe_probe
_vpe_probe:                             ; @vpe_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	w2, [x8]
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	add	x0, x0, #48
	bl	_spin_lock_init
	mov	x0, x20
	mov	x1, x19
	bl	_v4l2_device_register
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.2:
	add	x0, x19, #44
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #40
	bl	_mutex_init
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_platform_get_resource_byname
	str	x0, [x19, #32]
	ldr	w1, [x0]
Lloh8:
	adrp	x8, _SZ_32K@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SZ_32K@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_devm_ioremap
	str	w0, [x19, #28]
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	mov	x1, x0
Lloh11:
	adrp	x8, _vpe_irq@GOTPAGE
Lloh12:
	ldr	x8, [x8, _vpe_irq@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _VPE_MODULE_NAME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VPE_MODULE_NAME@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	mov	x0, x20
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
Lloh17:
	adrp	x0, _m2m_ops@GOTPAGE
Lloh18:
	ldr	x0, [x0, _m2m_ops@GOTPAGEOFF]
	bl	_v4l2_m2m_init
	str	w0, [x19, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.5:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_vpe_err
	ldr	w0, [x19, #4]
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_8
LBB0_6:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_7:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x19
	bl	_v4l2_device_unregister
LBB0_9:
	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_10:
	mov	x0, x20
	bl	_pm_runtime_enable
	mov	x0, x20
	bl	_vpe_runtime_get
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.11:
	mov	x0, x19
	mov	w1, #1
	bl	_vpe_set_clock_enable
	mov	x0, x19
	bl	_vpe_top_reset
Lloh27:
	adrp	x8, _VPE_PID@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VPE_PID@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _VPE_PID_FUNC_MASK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _VPE_PID_FUNC_MASK@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
Lloh33:
	adrp	x8, _VPE_PID_FUNC_SHIFT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _VPE_PID_FUNC_SHIFT@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_read_field_reg
	mov	x2, x0
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_vpe_dbg
	mov	x0, x19
	bl	_vpe_top_vpdma_reset
Lloh38:
	adrp	x1, l_.str.3@PAGE
Lloh39:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_sc_create
	mov	x21, x19
	str	w0, [x21, #24]!
	bl	_IS_ERR
	cbnz	x0, LBB0_13
; %bb.12:
Lloh40:
	adrp	x1, l_.str.4@PAGE
Lloh41:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_csc_create
	mov	x21, x19
	str	w0, [x21, #20]!
	bl	_IS_ERR
	cbz	x0, LBB0_16
LBB0_13:
	ldr	w0, [x21]
	bl	_PTR_ERR
	mov	x21, x0
LBB0_14:
	mov	x0, x20
	bl	_vpe_runtime_put
LBB0_15:
	mov	x0, x20
	bl	_pm_runtime_disable
	ldr	w0, [x19, #4]
	bl	_v4l2_m2m_release
	b	LBB0_8
LBB0_16:
	add	x1, x19, #16
	str	x1, [x19, #8]
Lloh42:
	adrp	x8, _vpe_fw_cb@GOTPAGE
Lloh43:
	ldr	x8, [x8, _vpe_fw_cb@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_vpdma_create
	mov	x21, x0
	cbnz	w0, LBB0_14
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vpe_top"

	.comm	_SZ_32K,4,2                     ; @SZ_32K
	.comm	_vpe_irq,4,2                    ; @vpe_irq
	.comm	_VPE_MODULE_NAME,4,2            ; @VPE_MODULE_NAME
	.comm	_m2m_ops,4,2                    ; @m2m_ops
l_.str.1:                               ; @.str.1
	.asciz	"Failed to init mem2mem device\n"

	.comm	_VPE_PID,4,2                    ; @VPE_PID
	.comm	_VPE_PID_FUNC_MASK,4,2          ; @VPE_PID_FUNC_MASK
	.comm	_VPE_PID_FUNC_SHIFT,4,2         ; @VPE_PID_FUNC_SHIFT
l_.str.2:                               ; @.str.2
	.asciz	"VPE PID function %x\n"

l_.str.3:                               ; @.str.3
	.asciz	"sc"

l_.str.4:                               ; @.str.4
	.asciz	"csc"

	.comm	_vpe_fw_cb,4,2                  ; @vpe_fw_cb
	.no_dead_strip	_vpe_probe
.subsections_via_symbols
