	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rga_remove
_rga_remove:                            ## @rga_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_platform_get_drvdata
	movq	%rax, %rbx
	movq	_RGA_CMDBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	36(%rbx), %edx
	movl	(%rbx), %edi
	movl	32(%rbx), %ecx
	movq	_DMA_ATTR_WRITE_COMBINE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	callq	_dma_free_attrs
	movq	24(%rbx), %rdi
	movl	$3, %esi
	callq	_free_pages
	movq	16(%rbx), %rdi
	movl	$3, %esi
	callq	_free_pages
	leaq	4(%rbx), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_v4l2_info
	movl	12(%rbx), %edi
	callq	_v4l2_m2m_release
	movl	8(%rbx), %edi
	callq	_video_unregister_device
	movq	%r14, %rdi
	callq	_v4l2_device_unregister
	movl	(%rbx), %edi
	callq	_pm_runtime_disable
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RGA_CMDBUF_SIZE,4,2            ## @RGA_CMDBUF_SIZE
	.comm	_DMA_ATTR_WRITE_COMBINE,4,2     ## @DMA_ATTR_WRITE_COMBINE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Removing\n"

	.no_dead_strip	_rga_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rga_remove
_rga_remove:                            ; @rga_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
	bl	_platform_get_drvdata
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _RGA_CMDBUF_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RGA_CMDBUF_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	w3, w2, [x19, #32]
Lloh3:
	adrp	x8, _DMA_ATTR_WRITE_COMBINE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_ATTR_WRITE_COMBINE@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	bl	_dma_free_attrs
	ldr	x0, [x19, #24]
	mov	w1, #3
	bl	_free_pages
	ldr	x0, [x19, #16]
	mov	w1, #3
	bl	_free_pages
	add	x20, x19, #4
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_v4l2_info
	ldr	w0, [x19, #12]
	bl	_v4l2_m2m_release
	ldr	w0, [x19, #8]
	bl	_video_unregister_device
	mov	x0, x20
	bl	_v4l2_device_unregister
	ldr	w0, [x19]
	bl	_pm_runtime_disable
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RGA_CMDBUF_SIZE,4,2            ; @RGA_CMDBUF_SIZE
	.comm	_DMA_ATTR_WRITE_COMBINE,4,2     ; @DMA_ATTR_WRITE_COMBINE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Removing\n"

	.no_dead_strip	_rga_remove
.subsections_via_symbols
