	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_vin_probe
_rcar_vin_probe:                        ## @rcar_vin_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	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, 40(%rax)
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movq	%rax, 24(%rbx)
	movl	$255, (%rbx)
	movq	_r8a7795es1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_soc_device_match
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
LBB0_3:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	40(%rbx), %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 36(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movl	36(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_9
## %bb.11:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_rvin_dma_register
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	24(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_rvin_mc_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_19
LBB0_14:
	movq	%rbx, %rdi
	callq	_rvin_parallel_init
	testl	%eax, %eax
	je	LBB0_20
## %bb.15:
	movl	%eax, %r15d
	leaq	32(%rbx), %rdi
	callq	_v4l2_ctrl_handler_free
	movq	24(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_19
## %bb.16:
	movq	8(%rbx), %rdi
	callq	_mutex_lock
	movq	%rbx, %rax
	addq	$16, %rax
	movq	8(%rbx), %rdi
	cmpq	8(%rdi), %rax
	jne	LBB0_18
## %bb.17:
	addq	$8, %rdi
	callq	_v4l2_async_notifier_unregister
	movq	8(%rbx), %rdi
	addq	$8, %rdi
	callq	_v4l2_async_notifier_cleanup
	movq	8(%rbx), %rdi
LBB0_18:
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_rvin_group_put
LBB0_19:
	movq	%rbx, %rdi
	callq	_rvin_dma_unregister
	jmp	LBB0_9
LBB0_20:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_pm_suspend_ignore_children
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_r8a7795es1,4,2                 ## @r8a7795es1
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rcar_vin_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_vin_probe
_rcar_vin_probe:                        ; @rcar_vin_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, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #40]
	mov	x0, x20
	bl	_of_device_get_match_data
	str	x0, [x19, #24]
	mov	w8, #255
	str	w8, [x19]
Lloh3:
	adrp	x8, _r8a7795es1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _r8a7795es1@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_soc_device_match
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x0]
	str	x8, [x19, #24]
LBB0_3:
Lloh6:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_7
; %bb.4:
	mov	x1, x0
	ldr	x0, [x19, #40]
	bl	_devm_ioremap_resource
	str	w0, [x19, #36]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.5:
	ldr	w0, [x19, #36]
	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_6:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w21, w8
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
	mov	w1, #0
	bl	_platform_get_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_9
; %bb.11:
	mov	x0, x19
	mov	x1, x21
	bl	_rvin_dma_register
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.12:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_rvin_mc_init
	mov	x21, x0
	cbnz	w0, LBB0_19
LBB0_14:
	mov	x0, x19
	bl	_rvin_parallel_init
	mov	x21, x0
	cbz	w0, LBB0_20
; %bb.15:
	add	x0, x19, #32
	bl	_v4l2_ctrl_handler_free
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_19
; %bb.16:
	ldr	x0, [x19, #8]
	bl	_mutex_lock
	add	x9, x19, #16
	ldr	x0, [x19, #8]
	mov	x8, x0
	ldr	x10, [x8, #8]!
	cmp	x9, x10
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x8
	bl	_v4l2_async_notifier_unregister
	ldr	x8, [x19, #8]
	add	x0, x8, #8
	bl	_v4l2_async_notifier_cleanup
	ldr	x0, [x19, #8]
LBB0_18:
	bl	_mutex_unlock
	mov	x0, x19
	bl	_rvin_group_put
LBB0_19:
	mov	x0, x19
	bl	_rvin_dma_unregister
	b	LBB0_9
LBB0_20:
	mov	x0, x20
	mov	w1, #1
	bl	_pm_suspend_ignore_children
	mov	x0, x20
	bl	_pm_runtime_enable
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_r8a7795es1,4,2                 ; @r8a7795es1
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rcar_vin_probe
.subsections_via_symbols
