	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_vin_remove
_rcar_vin_remove:                       ## @rcar_vin_remove
	.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
	callq	_platform_get_drvdata
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	movq	%r15, %rdi
	callq	_rvin_v4l2_unregister
	leaq	32(%r15), %rbx
	movq	%rbx, %rdi
	callq	_v4l2_async_notifier_unregister
	movq	%rbx, %rdi
	callq	_v4l2_async_notifier_cleanup
	movq	24(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movq	8(%r15), %rdi
	callq	_mutex_lock
	movq	%r15, %rax
	addq	$16, %rax
	movq	8(%r15), %rdi
	cmpq	8(%rdi), %rax
	jne	LBB0_3
## %bb.2:
	addq	$8, %rdi
	callq	_v4l2_async_notifier_unregister
	movq	8(%r15), %rdi
	addq	$8, %rdi
	callq	_v4l2_async_notifier_cleanup
	movq	8(%r15), %rdi
LBB0_3:
	callq	_mutex_unlock
	movq	%r15, %rdi
	callq	_rvin_group_put
LBB0_4:
	movq	%r15, %rdi
	callq	_v4l2_ctrl_handler_free
	movq	%r15, %rdi
	callq	_rvin_dma_unregister
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rcar_vin_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_vin_remove
_rcar_vin_remove:                       ; @rcar_vin_remove
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_platform_get_drvdata
	mov	x19, x0
	mov	x0, x20
	bl	_pm_runtime_disable
	mov	x0, x19
	bl	_rvin_v4l2_unregister
	add	x20, x19, #32
	mov	x0, x20
	bl	_v4l2_async_notifier_unregister
	mov	x0, x20
	bl	_v4l2_async_notifier_cleanup
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	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_3
; %bb.2:
	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_3:
	bl	_mutex_unlock
	mov	x0, x19
	bl	_rvin_group_put
LBB0_4:
	mov	x0, x19
	bl	_v4l2_ctrl_handler_free
	mov	x0, x19
	bl	_rvin_dma_unregister
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rcar_vin_remove
.subsections_via_symbols
