	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_wmi_remove
_acpi_wmi_remove:                       ## @acpi_wmi_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_ACPI_COMPANION
	movq	%rax, %rbx
	movl	(%rax), %edi
	movq	_ACPI_DEVICE_NOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_acpi_wmi_notify_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_acpi_remove_notify_handler
	movl	(%rbx), %edi
	movq	_ACPI_ADR_SPACE_EC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_acpi_wmi_ec_space_handler@GOTPCREL(%rip), %rdx
	callq	_acpi_remove_address_space_handler
	movq	%rbx, %rdi
	callq	_wmi_free_devices
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_MKDEV
	movq	_wmi_bus_class@GOTPCREL(%rip), %rdi
	movl	%eax, %esi
	callq	_device_destroy
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_DEVICE_NOTIFY,4,2         ## @ACPI_DEVICE_NOTIFY
	.comm	_acpi_wmi_notify_handler,4,2    ## @acpi_wmi_notify_handler
	.comm	_ACPI_ADR_SPACE_EC,4,2          ## @ACPI_ADR_SPACE_EC
	.comm	_acpi_wmi_ec_space_handler,4,2  ## @acpi_wmi_ec_space_handler
	.comm	_wmi_bus_class,4,2              ## @wmi_bus_class
	.no_dead_strip	_acpi_wmi_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_wmi_remove
_acpi_wmi_remove:                       ; @acpi_wmi_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	_ACPI_COMPANION
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _ACPI_DEVICE_NOTIFY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_DEVICE_NOTIFY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _acpi_wmi_notify_handler@GOTPAGE
Lloh4:
	ldr	x8, [x8, _acpi_wmi_notify_handler@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_acpi_remove_notify_handler
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _ACPI_ADR_SPACE_EC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ACPI_ADR_SPACE_EC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, _acpi_wmi_ec_space_handler@GOTPAGE
Lloh10:
	ldr	x2, [x2, _acpi_wmi_ec_space_handler@GOTPAGEOFF]
	bl	_acpi_remove_address_space_handler
	mov	x0, x19
	bl	_wmi_free_devices
	mov	w0, #0
	mov	w1, #0
	bl	_MKDEV
	mov	x1, x0
Lloh11:
	adrp	x0, _wmi_bus_class@GOTPAGE
Lloh12:
	ldr	x0, [x0, _wmi_bus_class@GOTPAGEOFF]
	bl	_device_destroy
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_DEVICE_NOTIFY,4,2         ; @ACPI_DEVICE_NOTIFY
	.comm	_acpi_wmi_notify_handler,4,2    ; @acpi_wmi_notify_handler
	.comm	_ACPI_ADR_SPACE_EC,4,2          ; @ACPI_ADR_SPACE_EC
	.comm	_acpi_wmi_ec_space_handler,4,2  ; @acpi_wmi_ec_space_handler
	.comm	_wmi_bus_class,4,2              ; @wmi_bus_class
	.no_dead_strip	_acpi_wmi_remove
.subsections_via_symbols
