	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_virtio_gpu_deinit              ## -- Begin function virtio_gpu_deinit
	.p2align	4, 0x90
_virtio_gpu_deinit:                     ## @virtio_gpu_deinit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	movl	$0, (%rbx)
	leaq	32(%rbx), %rdi
	callq	_flush_work
	leaq	28(%rbx), %rdi
	callq	_flush_work
	leaq	24(%rbx), %rdi
	callq	_flush_work
	movq	16(%rbx), %rdi
	movq	(%rdi), %rax
	callq	*8(%rax)
	movq	16(%rbx), %rdi
	movq	(%rdi), %rax
	callq	*(%rax)
	movq	%rbx, %rdi
	callq	_virtio_gpu_modeset_fini
	movq	%rbx, %rdi
	callq	_virtio_gpu_ttm_fini
	movq	%rbx, %rdi
	callq	_virtio_gpu_free_vbufs
	movq	%rbx, %rdi
	callq	_virtio_gpu_cleanup_cap_cache
	movq	8(%rbx), %rdi
	callq	_kfree
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_virtio_gpu_deinit              ; -- Begin function virtio_gpu_deinit
	.p2align	2
_virtio_gpu_deinit:                     ; @virtio_gpu_deinit
	.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
	ldr	x19, [x0]
	str	wzr, [x19]
	add	x0, x19, #32
	bl	_flush_work
	add	x0, x19, #28
	bl	_flush_work
	add	x0, x19, #24
	bl	_flush_work
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	blr	x8
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
	mov	x0, x19
	bl	_virtio_gpu_modeset_fini
	mov	x0, x19
	bl	_virtio_gpu_ttm_fini
	mov	x0, x19
	bl	_virtio_gpu_free_vbufs
	mov	x0, x19
	bl	_virtio_gpu_cleanup_cap_cache
	ldr	x0, [x19, #8]
	bl	_kfree
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
