	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_tb_terminate              ## -- Begin function acpi_tb_terminate
	.p2align	4, 0x90
_acpi_tb_terminate:                     ## @acpi_tb_terminate
	.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	_tb_terminate@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	_ACPI_MTX_TABLES@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_acpi_ut_acquire_mutex
	movq	_acpi_gbl_root_table_list@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_3
## %bb.1:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	addq	%r12, %rdi
	callq	_acpi_tb_delete_table
	incq	%rbx
	addq	$4, %r12
	cmpq	(%r15), %rbx
	jb	LBB0_2
LBB0_3:
	movq	_ACPI_ROOT_ORIGIN_ALLOCATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_5
## %bb.4:
	movq	16(%r15), %rdi
	callq	_ACPI_FREE
LBB0_5:
	movq	$0, 16(%r15)
	movl	$0, 8(%r15)
	movq	$0, (%r15)
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT
	movl	(%r14), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_acpi_ut_release_mutex          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tb_terminate,4,2               ## @tb_terminate
	.comm	_ACPI_MTX_TABLES,4,2            ## @ACPI_MTX_TABLES
	.comm	_acpi_gbl_root_table_list,24,3  ## @acpi_gbl_root_table_list
	.comm	_ACPI_ROOT_ORIGIN_ALLOCATED,4,2 ## @ACPI_ROOT_ORIGIN_ALLOCATED
	.comm	_ACPI_DB_INFO,4,2               ## @ACPI_DB_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ACPI Tables freed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_tb_terminate              ; -- Begin function acpi_tb_terminate
	.p2align	2
_acpi_tb_terminate:                     ; @acpi_tb_terminate
	.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
Lloh0:
	adrp	x8, _tb_terminate@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tb_terminate@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
Lloh3:
	adrp	x19, _ACPI_MTX_TABLES@GOTPAGE
Lloh4:
	ldr	x19, [x19, _ACPI_MTX_TABLES@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_acpi_ut_acquire_mutex
Lloh5:
	adrp	x20, _acpi_gbl_root_table_list@GOTPAGE
Lloh6:
	ldr	x20, [x20, _acpi_gbl_root_table_list@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x21, #0
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	add	x0, x8, x21
	bl	_acpi_tb_delete_table
	add	x22, x22, #1
	ldr	x8, [x20]
	add	x21, x21, #4
	cmp	x22, x8
	b.lo	LBB0_2
LBB0_3:
	ldr	w8, [x20, #8]
Lloh7:
	adrp	x9, _ACPI_ROOT_ORIGIN_ALLOCATED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ACPI_ROOT_ORIGIN_ALLOCATED@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	x0, [x20, #16]
	bl	_ACPI_FREE
LBB0_5:
	str	xzr, [x20, #16]
	str	wzr, [x20, #8]
	str	xzr, [x20]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_DEBUG_PRINT
	ldr	w0, [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	_acpi_ut_release_mutex
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_tb_terminate,4,2               ; @tb_terminate
	.comm	_ACPI_MTX_TABLES,4,2            ; @ACPI_MTX_TABLES
	.comm	_acpi_gbl_root_table_list,24,3  ; @acpi_gbl_root_table_list
	.comm	_ACPI_ROOT_ORIGIN_ALLOCATED,4,2 ; @ACPI_ROOT_ORIGIN_ALLOCATED
	.comm	_ACPI_DB_INFO,4,2               ; @ACPI_DB_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ACPI Tables freed\n"

.subsections_via_symbols
