	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_device_unregister
_acpi_device_unregister:                ## @acpi_device_unregister
	.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
	movq	_acpi_device_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	leaq	12(%rbx), %rdi
	callq	_list_del
LBB0_2:
	leaq	8(%rbx), %rdi
	callq	_list_del
	movq	_acpi_device_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	4(%rbx), %edi
	movq	_acpi_bus_data_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_acpi_detach_data
	movq	%rbx, %rdi
	callq	_acpi_device_remove_files
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_device_unregister              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_acpi_device_lock,4,2           ## @acpi_device_lock
	.comm	_acpi_bus_data_handler,4,2      ## @acpi_bus_data_handler
	.no_dead_strip	_acpi_device_unregister
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_device_unregister
_acpi_device_unregister:                ; @acpi_device_unregister
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, _acpi_device_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _acpi_device_lock@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.1:
	add	x0, x19, #12
	bl	_list_del
LBB0_2:
	add	x0, x19, #8
	bl	_list_del
Lloh2:
	adrp	x0, _acpi_device_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _acpi_device_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	ldr	w0, [x19, #4]
Lloh4:
	adrp	x8, _acpi_bus_data_handler@GOTPAGE
Lloh5:
	ldr	x8, [x8, _acpi_bus_data_handler@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_acpi_detach_data
	mov	x0, x19
	bl	_acpi_device_remove_files
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_device_unregister
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_acpi_device_lock,4,2           ; @acpi_device_lock
	.comm	_acpi_bus_data_handler,4,2      ; @acpi_bus_data_handler
	.no_dead_strip	_acpi_device_unregister
.subsections_via_symbols
