	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_tb_resize_root_table_list ## -- Begin function acpi_tb_resize_root_table_list
	.p2align	4, 0x90
_acpi_tb_resize_root_table_list:        ## @acpi_tb_resize_root_table_list
	.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	_tb_resize_root_table_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	_acpi_gbl_root_table_list@GOTPCREL(%rip), %r14
	movq	_ACPI_ROOT_ALLOW_RESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_ERROR
	movq	_AE_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_2:
	movq	_ACPI_ROOT_TABLE_SIZE_INCREMENT@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	addl	8(%r14), %edi
	shll	$2, %edi
	callq	_ACPI_ALLOCATE_ZEROED
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_ERROR
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_4:
	movq	16(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.5:
	movl	8(%r14), %edx
	shll	$2, %edx
	movq	%rbx, %rdi
	callq	_ACPI_MEMCPY
	movq	_ACPI_ROOT_ORIGIN_ALLOCATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.6:
	movq	16(%r14), %rdi
	callq	_ACPI_FREE
LBB0_7:
	movq	%rbx, 16(%r14)
	movslq	(%r15), %rax
	addq	%rax, 8(%r14)
	movq	_ACPI_ROOT_ORIGIN_ALLOCATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tb_resize_root_table_list,4,2  ## @tb_resize_root_table_list
	.comm	_acpi_gbl_root_table_list,24,3  ## @acpi_gbl_root_table_list
	.comm	_ACPI_ROOT_ALLOW_RESIZE,4,2     ## @ACPI_ROOT_ALLOW_RESIZE
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Resize of Root Table Array is not allowed"

	.comm	_AE_SUPPORT,4,2                 ## @AE_SUPPORT
	.comm	_ACPI_ROOT_TABLE_SIZE_INCREMENT,4,2 ## @ACPI_ROOT_TABLE_SIZE_INCREMENT
L_.str.1:                               ## @.str.1
	.asciz	"Could not allocate new root table array"

	.comm	_AE_NO_MEMORY,4,2               ## @AE_NO_MEMORY
	.comm	_ACPI_ROOT_ORIGIN_ALLOCATED,4,2 ## @ACPI_ROOT_ORIGIN_ALLOCATED
	.comm	_AE_OK,4,2                      ## @AE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_tb_resize_root_table_list ; -- Begin function acpi_tb_resize_root_table_list
	.p2align	2
_acpi_tb_resize_root_table_list:        ; @acpi_tb_resize_root_table_list
	.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_resize_root_table_list@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tb_resize_root_table_list@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
Lloh3:
	adrp	x20, _acpi_gbl_root_table_list@GOTPAGE
Lloh4:
	ldr	x20, [x20, _acpi_gbl_root_table_list@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _ACPI_ROOT_ALLOW_RESIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ACPI_ROOT_ALLOW_RESIZE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_ERROR
Lloh10:
	adrp	x8, _AE_SUPPORT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AE_SUPPORT@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_2:
	ldr	w8, [x20, #8]
Lloh13:
	adrp	x21, _ACPI_ROOT_TABLE_SIZE_INCREMENT@GOTPAGE
Lloh14:
	ldr	x21, [x21, _ACPI_ROOT_TABLE_SIZE_INCREMENT@GOTPAGEOFF]
	ldr	w9, [x21]
	add	w8, w9, w8
	lsl	w0, w8, #2
	bl	_ACPI_ALLOCATE_ZEROED
	mov	x19, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_ERROR
Lloh17:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_4:
	ldr	x1, [x20, #16]
Lloh20:
	adrp	x22, _ACPI_ROOT_ORIGIN_ALLOCATED@GOTPAGE
Lloh21:
	ldr	x22, [x22, _ACPI_ROOT_ORIGIN_ALLOCATED@GOTPAGEOFF]
	cbz	x1, LBB0_7
; %bb.5:
	ldr	w8, [x20, #8]
	lsl	w2, w8, #2
	mov	x0, x19
	bl	_ACPI_MEMCPY
	ldr	w8, [x20]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	x0, [x20, #16]
	bl	_ACPI_FREE
LBB0_7:
	ldrsw	x8, [x21]
	ldr	x9, [x20, #8]
	add	x8, x9, x8
	stp	x8, x19, [x20, #8]
	ldr	w8, [x22]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
Lloh22:
	adrp	x8, _AE_OK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	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	_return_ACPI_STATUS
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_tb_resize_root_table_list,4,2  ; @tb_resize_root_table_list
	.comm	_acpi_gbl_root_table_list,24,3  ; @acpi_gbl_root_table_list
	.comm	_ACPI_ROOT_ALLOW_RESIZE,4,2     ; @ACPI_ROOT_ALLOW_RESIZE
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Resize of Root Table Array is not allowed"

	.comm	_AE_SUPPORT,4,2                 ; @AE_SUPPORT
	.comm	_ACPI_ROOT_TABLE_SIZE_INCREMENT,4,2 ; @ACPI_ROOT_TABLE_SIZE_INCREMENT
l_.str.1:                               ; @.str.1
	.asciz	"Could not allocate new root table array"

	.comm	_AE_NO_MEMORY,4,2               ; @AE_NO_MEMORY
	.comm	_ACPI_ROOT_ORIGIN_ALLOCATED,4,2 ; @ACPI_ROOT_ORIGIN_ALLOCATED
	.comm	_AE_OK,4,2                      ; @AE_OK
.subsections_via_symbols
