	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpfe_remove
_vpfe_remove:                           ## @vpfe_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, %rbx
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_v4l2_info
	movl	24(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	16(%rbx), %rdi
	callq	_kfree
	leaq	8(%rbx), %rdi
	callq	_v4l2_device_unregister
	movl	4(%rbx), %edi
	callq	_video_unregister_device
	movq	_ccdc_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	(%rax), %rdi
	movq	8(%rax), %rsi
	subq	%rdi, %rsi
	incq	%rsi
	callq	_release_mem_region
	movq	_ccdc_cfg@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_iounmap
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_vpfe_disable_clock
	movq	%rbx, %rdi
	callq	_kfree
	movq	(%r14), %rdi
	callq	_kfree
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vpfe_remove\n"

	.comm	_ccdc_lock,4,2                  ## @ccdc_lock
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_ccdc_cfg,8,3                   ## @ccdc_cfg
	.no_dead_strip	_vpfe_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpfe_remove
_vpfe_remove:                           ; @vpfe_remove
	.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
	bl	_platform_get_drvdata
	mov	x19, x0
	ldr	w0, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_v4l2_info
	ldr	w0, [x19, #24]
	mov	x1, x19
	bl	_free_irq
	ldr	x0, [x19, #16]
	bl	_kfree
	add	x0, x19, #8
	bl	_v4l2_device_unregister
	ldr	w0, [x19, #4]
	bl	_video_unregister_device
Lloh2:
	adrp	x21, _ccdc_lock@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ccdc_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_mutex_lock
Lloh4:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	ldp	x8, x9, [x0]
	sub	x9, x9, x8
	add	x1, x9, #1
	mov	x0, x8
	bl	_release_mem_region
Lloh7:
	adrp	x20, _ccdc_cfg@GOTPAGE
Lloh8:
	ldr	x20, [x20, _ccdc_cfg@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_iounmap
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	bl	_vpfe_disable_clock
	mov	x0, x19
	bl	_kfree
	ldr	x0, [x20]
	bl	_kfree
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vpfe_remove\n"

	.comm	_ccdc_lock,4,2                  ; @ccdc_lock
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_ccdc_cfg,8,3                   ; @ccdc_cfg
	.no_dead_strip	_vpfe_remove
.subsections_via_symbols
