	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ips_remove
_ips_remove:                            ## @ips_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	_pci_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ips_debugfs_cleanup
	cmpq	$0, 64(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_i915_read_mch_val@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_symbol_put
LBB0_2:
	cmpq	$0, 56(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_i915_gpu_raise@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_symbol_put
LBB0_4:
	cmpq	$0, 48(%rbx)
	je	LBB0_6
## %bb.5:
	movq	_i915_gpu_lower@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_symbol_put
LBB0_6:
	cmpq	$0, 40(%rbx)
	je	LBB0_8
## %bb.7:
	movq	_i915_gpu_busy@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_symbol_put
LBB0_8:
	cmpq	$0, 32(%rbx)
	je	LBB0_10
## %bb.9:
	movq	_i915_gpu_turbo_disable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_symbol_put
LBB0_10:
	movq	_TURBO_POWER_CURRENT_LIMIT@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_rdmsrl
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_wrmsrl
	movl	(%r15), %edi
	movl	(%rbx), %esi
	callq	_wrmsrl
	movl	24(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	%r14, %rdi
	callq	_pci_free_irq_vectors
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_kthread_stop
LBB0_12:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_kthread_stop
LBB0_14:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_i915_read_mch_val,4,2          ## @i915_read_mch_val
	.comm	_i915_gpu_raise,4,2             ## @i915_gpu_raise
	.comm	_i915_gpu_lower,4,2             ## @i915_gpu_lower
	.comm	_i915_gpu_busy,4,2              ## @i915_gpu_busy
	.comm	_i915_gpu_turbo_disable,4,2     ## @i915_gpu_turbo_disable
	.comm	_TURBO_POWER_CURRENT_LIMIT,4,2  ## @TURBO_POWER_CURRENT_LIMIT
	.comm	_TURBO_TDC_OVR_EN,4,2           ## @TURBO_TDC_OVR_EN
	.comm	_TURBO_TDP_OVR_EN,4,2           ## @TURBO_TDP_OVR_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IPS driver removed\n"

	.no_dead_strip	_ips_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ips_remove
_ips_remove:                            ; @ips_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
	bl	_pci_get_drvdata
	mov	x20, x0
	bl	_ips_debugfs_cleanup
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _i915_read_mch_val@GOTPAGE
Lloh1:
	ldr	x8, [x8, _i915_read_mch_val@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_symbol_put
LBB0_2:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _i915_gpu_raise@GOTPAGE
Lloh4:
	ldr	x8, [x8, _i915_gpu_raise@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_symbol_put
LBB0_4:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _i915_gpu_lower@GOTPAGE
Lloh7:
	ldr	x8, [x8, _i915_gpu_lower@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_symbol_put
LBB0_6:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_8
; %bb.7:
Lloh9:
	adrp	x8, _i915_gpu_busy@GOTPAGE
Lloh10:
	ldr	x8, [x8, _i915_gpu_busy@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_symbol_put
LBB0_8:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_10
; %bb.9:
Lloh12:
	adrp	x8, _i915_gpu_turbo_disable@GOTPAGE
Lloh13:
	ldr	x8, [x8, _i915_gpu_turbo_disable@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_symbol_put
LBB0_10:
Lloh15:
	adrp	x21, _TURBO_POWER_CURRENT_LIMIT@GOTPAGE
Lloh16:
	ldr	x21, [x21, _TURBO_POWER_CURRENT_LIMIT@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_rdmsrl
	ldr	w0, [x21]
	mov	w1, #0
	bl	_wrmsrl
	ldr	w0, [x21]
	ldr	w1, [x20]
	bl	_wrmsrl
	ldr	w0, [x20, #24]
	mov	x1, x20
	bl	_free_irq
	mov	x0, x19
	bl	_pci_free_irq_vectors
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_kthread_stop
LBB0_12:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_kthread_stop
LBB0_14:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	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	_dev_dbg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_i915_read_mch_val,4,2          ; @i915_read_mch_val
	.comm	_i915_gpu_raise,4,2             ; @i915_gpu_raise
	.comm	_i915_gpu_lower,4,2             ; @i915_gpu_lower
	.comm	_i915_gpu_busy,4,2              ; @i915_gpu_busy
	.comm	_i915_gpu_turbo_disable,4,2     ; @i915_gpu_turbo_disable
	.comm	_TURBO_POWER_CURRENT_LIMIT,4,2  ; @TURBO_POWER_CURRENT_LIMIT
	.comm	_TURBO_TDC_OVR_EN,4,2           ; @TURBO_TDC_OVR_EN
	.comm	_TURBO_TDP_OVR_EN,4,2           ; @TURBO_TDP_OVR_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IPS driver removed\n"

	.no_dead_strip	_ips_remove
.subsections_via_symbols
