	.file	"extr_tbutils.c_AcpiTbCopyDsdt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	AcpiTbCopyDsdt
	.type	AcpiTbCopyDsdt, @function
AcpiTbCopyDsdt:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR AcpiGbl_RootTableList[rip]
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	lea	rbp, [rax+rdi*8]
	mov	edi, DWORD PTR 0[rbp]
	call	ACPI_ALLOCATE@PLT
	mov	r12, rax
	test	rax, rax
	je	.L6
	mov	esi, DWORD PTR 4[rbp]
	mov	edx, DWORD PTR 0[rbp]
	mov	rdi, rax
	call	memcpy@PLT
	mov	rdi, rbp
	call	AcpiTbUninstallTable@PLT
	mov	rdi, r12
	mov	r13d, DWORD PTR ACPI_TABLE_ORIGIN_INTERNAL_VIRTUAL[rip]
	call	ACPI_PTR_TO_PHYSADDR@PLT
	mov	rdx, QWORD PTR AcpiGbl_DsdtIndex[rip]
	mov	rcx, r12
	mov	esi, eax
	mov	rax, QWORD PTR AcpiGbl_RootTableList[rip]
	lea	rdi, [rax+rdx*8]
	mov	edx, r13d
	call	AcpiTbInitTableDescriptor@PLT
	movsx	rdi, DWORD PTR [r12]
	call	ACPI_INFO@PLT
.L1:
	mov	rax, r12
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	call	ACPI_ERROR@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	AcpiTbCopyDsdt, .-AcpiTbCopyDsdt
	.comm	AcpiGbl_RootTableList,8,8
	.comm	AcpiGbl_DsdtIndex,8,8
	.comm	AE_INFO,4,4
	.comm	ACPI_TABLE_ORIGIN_INTERNAL_VIRTUAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_tbutils.c_AcpiTbCopyDsdt.c"
	.text
	.align	2
	.global	AcpiTbCopyDsdt
	.syntax unified
	.arm
	.fpu softvfp
	.type	AcpiTbCopyDsdt, %function
AcpiTbCopyDsdt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L7
	mov	r5, r0
	ldr	r6, [r7]
	ldr	r0, [r6, r0, lsl #3]
	bl	ACPI_ALLOCATE
	subs	r4, r0, #0
	add	r8, r6, r5, lsl #3
	beq	.L6
	ldr	r2, [r6, r5, lsl #3]
	ldr	r1, [r8, #4]
	bl	memcpy
	mov	r0, r8
	bl	AcpiTbUninstallTable
	ldr	r3, .L7+4
	ldr	r5, [r7]
	ldr	r3, [r3]
	mov	r0, r4
	add	r5, r5, r3, lsl #3
	bl	ACPI_PTR_TO_PHYSADDR
	ldr	r3, .L7+8
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, r5
	mov	r3, r4
	bl	AcpiTbInitTableDescriptor
	ldr	r0, [r4]
	bl	ACPI_INFO
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r0, [r6, r5, lsl #3]
	bl	ACPI_ERROR
	b	.L1
.L8:
	.align	2
.L7:
	.word	AcpiGbl_RootTableList
	.word	AcpiGbl_DsdtIndex
	.word	ACPI_TABLE_ORIGIN_INTERNAL_VIRTUAL
	.size	AcpiTbCopyDsdt, .-AcpiTbCopyDsdt
	.comm	AcpiGbl_RootTableList,4,4
	.comm	AcpiGbl_DsdtIndex,4,4
	.comm	AE_INFO,4,4
	.comm	ACPI_TABLE_ORIGIN_INTERNAL_VIRTUAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
