	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ex_unload_table           ## -- Begin function acpi_ex_unload_table
	.p2align	4, 0x90
_acpi_ex_unload_table:                  ## @acpi_ex_unload_table
	.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
	movq	_ex_unload_table@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_ACPI_GET_DESCRIPTOR_TYPE
	movq	_ACPI_DESC_TYPE_OPERAND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	(%r14), %r15
	movq	_ACPI_TYPE_LOCAL_REFERENCE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_4
## %bb.3:
	movq	_AOPOBJ_DATA_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	jne	LBB0_5
LBB0_4:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
	movl	(%r14), %r15d
LBB0_5:
	movl	%r15d, %edi
	callq	_acpi_tb_is_table_loaded
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_AE_NOT_EXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_7:
	leaq	-32(%rbp), %rsi
	movl	%r15d, %edi
	callq	_acpi_get_table_by_index
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_ACPI_TABLE_EVENT_UNLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-32(%rbp), %rsi
	movq	_acpi_gbl_table_handler_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_acpi_gbl_table_handler
LBB0_9:
	movl	%r15d, %edi
	callq	_acpi_tb_delete_namespace_by_owner
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	%ebx, %edi
	callq	_return_ACPI_STATUS
LBB0_11:
	movl	%r15d, %edi
	callq	_acpi_tb_release_owner_id
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_acpi_tb_set_table_loaded_flag
	movq	_AOPOBJ_DATA_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r14)
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_ex_unload_table,4,2            ## @ex_unload_table
	.comm	_ACPI_DESC_TYPE_OPERAND,8,3     ## @ACPI_DESC_TYPE_OPERAND
	.comm	_ACPI_TYPE_LOCAL_REFERENCE,8,3  ## @ACPI_TYPE_LOCAL_REFERENCE
	.comm	_AOPOBJ_DATA_VALID,4,2          ## @AOPOBJ_DATA_VALID
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_AE_NOT_EXIST,4,2               ## @AE_NOT_EXIST
	.comm	_ACPI_TABLE_EVENT_UNLOAD,4,2    ## @ACPI_TABLE_EVENT_UNLOAD
	.comm	_acpi_gbl_table_handler_context,4,2 ## @acpi_gbl_table_handler_context
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ex_unload_table           ; -- Begin function acpi_ex_unload_table
	.p2align	2
_acpi_ex_unload_table:                  ; @acpi_ex_unload_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _ex_unload_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ex_unload_table@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
Lloh3:
	adrp	x22, _AOPOBJ_DATA_VALID@GOTPAGE
Lloh4:
	ldr	x22, [x22, _AOPOBJ_DATA_VALID@GOTPAGEOFF]
	cbz	x19, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_ACPI_GET_DESCRIPTOR_TYPE
Lloh5:
	adrp	x8, _ACPI_DESC_TYPE_OPERAND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ACPI_DESC_TYPE_OPERAND@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	ldr	x20, [x19]
Lloh8:
	adrp	x8, _ACPI_TYPE_LOCAL_REFERENCE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ACPI_TYPE_LOCAL_REFERENCE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x19, #8]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
	ldr	w20, [x19]
LBB0_5:
	mov	x0, x20
	bl	_acpi_tb_is_table_loaded
	cbnz	w0, LBB0_7
; %bb.6:
Lloh14:
	adrp	x8, _AE_NOT_EXIST@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AE_NOT_EXIST@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_7:
	add	x1, sp, #8
	mov	x0, x20
	bl	_acpi_get_table_by_index
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_9
; %bb.8:
Lloh17:
	adrp	x8, _ACPI_TABLE_EVENT_UNLOAD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ACPI_TABLE_EVENT_UNLOAD@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	x1, [sp, #8]
Lloh20:
	adrp	x8, _acpi_gbl_table_handler_context@GOTPAGE
Lloh21:
	ldr	x8, [x8, _acpi_gbl_table_handler_context@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	bl	_acpi_gbl_table_handler
LBB0_9:
	mov	x0, x20
	bl	_acpi_tb_delete_namespace_by_owner
	mov	x21, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_return_ACPI_STATUS
LBB0_11:
	mov	x0, x20
	bl	_acpi_tb_release_owner_id
Lloh23:
	adrp	x8, _FALSE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_acpi_tb_set_table_loaded_flag
	ldr	w8, [x22]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
Lloh26:
	adrp	x8, _AE_OK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_ex_unload_table,4,2            ; @ex_unload_table
	.comm	_ACPI_DESC_TYPE_OPERAND,8,3     ; @ACPI_DESC_TYPE_OPERAND
	.comm	_ACPI_TYPE_LOCAL_REFERENCE,8,3  ; @ACPI_TYPE_LOCAL_REFERENCE
	.comm	_AOPOBJ_DATA_VALID,4,2          ; @AOPOBJ_DATA_VALID
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_AE_NOT_EXIST,4,2               ; @AE_NOT_EXIST
	.comm	_ACPI_TABLE_EVENT_UNLOAD,4,2    ; @ACPI_TABLE_EVENT_UNLOAD
	.comm	_acpi_gbl_table_handler_context,4,2 ; @acpi_gbl_table_handler_context
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
