	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_veu_probe
_sh_veu_probe:                          ## @sh_veu_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %rbx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movl	%eax, %r15d
	testl	%eax, %eax
	jle	LBB0_5
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_resource_size
	xorl	%ecx, %ecx
	cmpl	$556, %eax                      ## imm = 0x22C
	sete	%cl
	movl	%ecx, (%r14)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 56(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movl	56(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
LBB0_7:
	subl	(%rax), %r13d
LBB0_8:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_sh_veu_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_sh_veu_bh@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, (%rsp)
	leaq	L_.str.1(%rip), %r9
	movq	%r12, %rdi
	movl	%r15d, %esi
	xorl	%r8d, %r8d
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_14
## %bb.10:
	leaq	4(%r14), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_v4l2_device_register
	testl	%eax, %eax
	js	LBB0_15
## %bb.11:
	leaq	40(%r14), %r13
	movq	_sh_veu_videodev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r14)
	movq	%r15, 48(%r14)
	leaq	36(%r14), %rdi
	callq	_spin_lock_init
	movq	%r14, %rbx
	addq	$32, %rbx
	movq	%rbx, %rdi
	callq	_mutex_init
	movq	%rbx, 40(%r14)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_video_set_drvdata
	movq	%r12, 24(%r14)
	movq	_DEFAULT_OUT_VFMT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_DEFAULT_IN_VFMT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_sh_veu_m2m_ops@GOTPCREL(%rip), %rdi
	callq	_v4l2_m2m_init
	movl	%eax, 8(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	movl	8(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_v4l2_err
LBB0_13:
	movq	%r15, %rdi
	callq	_v4l2_device_unregister
	jmp	LBB0_8
LBB0_14:
	movl	%eax, %r13d
	jmp	LBB0_8
LBB0_15:
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_8
LBB0_16:
	movq	%r12, %rdi
	callq	_pm_runtime_enable
	movq	%r12, %rdi
	callq	_pm_runtime_resume
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$-1, %edx
	callq	_video_register_device
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_pm_runtime_suspend
	testl	%r13d, %r13d
	jns	LBB0_8
## %bb.17:
	movq	%r12, %rdi
	callq	_pm_runtime_disable
	movl	8(%r14), %edi
	callq	_v4l2_m2m_release
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Insufficient VEU platform information.\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sh_veu_isr,4,2                 ## @sh_veu_isr
	.comm	_sh_veu_bh,4,2                  ## @sh_veu_bh
L_.str.1:                               ## @.str.1
	.asciz	"veu"

L_.str.2:                               ## @.str.2
	.asciz	"Error registering v4l2 device\n"

	.comm	_sh_veu_videodev,16,3           ## @sh_veu_videodev
	.comm	_DEFAULT_OUT_VFMT,4,2           ## @DEFAULT_OUT_VFMT
	.comm	_DEFAULT_IN_VFMT,4,2            ## @DEFAULT_IN_VFMT
	.comm	_sh_veu_m2m_ops,4,2             ## @sh_veu_m2m_ops
L_.str.3:                               ## @.str.3
	.asciz	"Failed to init mem2mem device: %d\n"

	.comm	_VFL_TYPE_GRABBER,4,2           ## @VFL_TYPE_GRABBER
	.no_dead_strip	_sh_veu_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_veu_probe
_sh_veu_probe:                          ; @sh_veu_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	mov	x22, x0
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	cmp	x22, #0
	ccmp	w0, #0, #4, ne
	b.gt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	mov	x21, x0
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	mov	x0, x22
	bl	_resource_size
	cmp	w0, #556
	cset	w8, eq
	str	w8, [x20]
	mov	x0, x19
	mov	x1, x22
	bl	_devm_ioremap_resource
	str	w0, [x20, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w0, [x20, #56]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_5:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh12:
	adrp	x8, _sh_veu_isr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _sh_veu_isr@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _sh_veu_bh@GOTPAGE
Lloh16:
	ldr	x8, [x8, _sh_veu_bh@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
Lloh18:
	adrp	x5, l_.str.1@PAGE
Lloh19:
	add	x5, x5, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	w4, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	tbnz	w0, #31, LBB0_13
; %bb.9:
	add	x21, x20, #4
	mov	x0, x19
	mov	x1, x21
	bl	_v4l2_device_register
	tbnz	w0, #31, LBB0_14
; %bb.10:
Lloh20:
	adrp	x8, _sh_veu_videodev@GOTPAGE
Lloh21:
	ldr	x8, [x8, _sh_veu_videodev@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	mov	x22, x20
	str	x8, [x22, #40]!
	str	x21, [x20, #48]
	add	x0, x20, #36
	bl	_spin_lock_init
	add	x23, x20, #32
	mov	x0, x23
	bl	_mutex_init
	str	x23, [x22]
	mov	x0, x22
	mov	x1, x20
	bl	_video_set_drvdata
	str	x19, [x20, #24]
Lloh23:
	adrp	x8, _DEFAULT_OUT_VFMT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DEFAULT_OUT_VFMT@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _DEFAULT_IN_VFMT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _DEFAULT_IN_VFMT@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #12]
Lloh29:
	adrp	x0, _sh_veu_m2m_ops@GOTPAGE
Lloh30:
	ldr	x0, [x0, _sh_veu_m2m_ops@GOTPAGEOFF]
	bl	_v4l2_m2m_init
	str	w0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.11:
	ldr	w0, [x20, #8]
	bl	_PTR_ERR
	mov	x22, x0
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_v4l2_err
LBB0_12:
	mov	x0, x21
	bl	_v4l2_device_unregister
	b	LBB0_7
LBB0_13:
	mov	x22, x0
	b	LBB0_7
LBB0_14:
	mov	x22, x0
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
LBB0_15:
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x19
	bl	_pm_runtime_resume
Lloh35:
	adrp	x8, _VFL_TYPE_GRABBER@GOTPAGE
Lloh36:
	ldr	x8, [x8, _VFL_TYPE_GRABBER@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #-1
	bl	_video_register_device
	mov	x22, x0
	mov	x0, x19
	bl	_pm_runtime_suspend
	tbz	w22, #31, LBB0_7
; %bb.16:
	mov	x0, x19
	bl	_pm_runtime_disable
	ldr	w0, [x20, #8]
	bl	_v4l2_m2m_release
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Insufficient VEU platform information.\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sh_veu_isr,4,2                 ; @sh_veu_isr
	.comm	_sh_veu_bh,4,2                  ; @sh_veu_bh
l_.str.1:                               ; @.str.1
	.asciz	"veu"

l_.str.2:                               ; @.str.2
	.asciz	"Error registering v4l2 device\n"

	.comm	_sh_veu_videodev,16,3           ; @sh_veu_videodev
	.comm	_DEFAULT_OUT_VFMT,4,2           ; @DEFAULT_OUT_VFMT
	.comm	_DEFAULT_IN_VFMT,4,2            ; @DEFAULT_IN_VFMT
	.comm	_sh_veu_m2m_ops,4,2             ; @sh_veu_m2m_ops
l_.str.3:                               ; @.str.3
	.asciz	"Failed to init mem2mem device: %d\n"

	.comm	_VFL_TYPE_GRABBER,4,2           ; @VFL_TYPE_GRABBER
	.no_dead_strip	_sh_veu_probe
.subsections_via_symbols
