	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_driver_remove             ## -- Begin function i915_driver_remove
	.p2align	4, 0x90
_i915_driver_remove:                    ## @i915_driver_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %r12
	movq	8(%rdi), %r15
	callq	_disable_rpm_wakeref_asserts
	movq	%rbx, %rdi
	callq	_i915_driver_unregister
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_intel_gt_set_wedged
	xorl	%eax, %eax
	callq	_synchronize_rcu
	movq	%rbx, %rdi
	callq	_i915_gem_suspend
	movq	%r12, %rdi
	callq	_drm_atomic_helper_shutdown
	movq	%rbx, %rdi
	callq	_intel_gvt_driver_remove
	movq	%r12, %rdi
	callq	_intel_modeset_driver_remove
	movq	%rbx, %rdi
	callq	_intel_bios_driver_remove
	movq	%r15, %rdi
	callq	_vga_switcheroo_unregister_client
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vga_client_register
	movq	%rbx, %rdi
	callq	_intel_csr_ucode_fini
	movq	%r14, %rdi
	callq	_cancel_delayed_work_sync
	movq	%rbx, %rdi
	callq	_i915_reset_error_state
	movq	%rbx, %rdi
	callq	_i915_gem_driver_remove
	movq	%rbx, %rdi
	callq	_intel_power_domains_driver_remove
	movq	%rbx, %rdi
	callq	_i915_driver_hw_remove
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_enable_rpm_wakeref_asserts     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_driver_remove             ; -- Begin function i915_driver_remove
	.p2align	2
_i915_driver_remove:                    ; @i915_driver_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	x19, x0
	mov	x20, x0
	ldr	x21, [x20, #8]!
	bl	_disable_rpm_wakeref_asserts
	mov	x0, x19
	bl	_i915_driver_unregister
	add	x22, x19, #4
	mov	x0, x22
	bl	_intel_gt_set_wedged
	bl	_synchronize_rcu
	mov	x0, x19
	bl	_i915_gem_suspend
	mov	x0, x20
	bl	_drm_atomic_helper_shutdown
	mov	x0, x19
	bl	_intel_gvt_driver_remove
	mov	x0, x20
	bl	_intel_modeset_driver_remove
	mov	x0, x19
	bl	_intel_bios_driver_remove
	mov	x0, x21
	bl	_vga_switcheroo_unregister_client
	mov	x0, x21
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_vga_client_register
	mov	x0, x19
	bl	_intel_csr_ucode_fini
	mov	x0, x22
	bl	_cancel_delayed_work_sync
	mov	x0, x19
	bl	_i915_reset_error_state
	mov	x0, x19
	bl	_i915_gem_driver_remove
	mov	x0, x19
	bl	_intel_power_domains_driver_remove
	mov	x0, x19
	bl	_i915_driver_hw_remove
	mov	x0, x19
	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	_enable_rpm_wakeref_asserts
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
