	.file	"extr_exnames.c_AcpiExAllocateNameString.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	AcpiExAllocateNameString, @function
AcpiExAllocateNameString:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR ExAllocateNameString[rip]
	call	ACPI_FUNCTION_TRACE@PLT
	cmp	DWORD PTR ACPI_UINT32_MAX[rip], ebx
	je	.L14
	mov	eax, DWORD PTR ACPI_NAMESEG_SIZE[rip]
	imul	eax, r12d
	lea	r13d, 3[rbx+rax]
	mov	edi, r13d
	call	ACPI_ALLOCATE@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L15
.L4:
	cmp	DWORD PTR ACPI_UINT32_MAX[rip], ebx
	je	.L5
	lea	esi, -1[rbx]
	mov	rax, rbp
	lea	rcx, 1[rbp+rsi]
	test	ebx, ebx
	je	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, DWORD PTR AML_PARENT_PREFIX[rip]
	add	rax, 1
	mov	BYTE PTR -1[rax], dl
	cmp	rax, rcx
	jne	.L8
	lea	rax, 1[rbp+rsi]
.L7:
	cmp	r12d, 2
	jle	.L9
	mov	edx, DWORD PTR AML_MULTI_NAME_PREFIX[rip]
	add	rax, 2
	mov	BYTE PTR -1[rax], r12b
	mov	BYTE PTR -2[rax], dl
.L10:
	mov	BYTE PTR [rax], 0
	mov	rdi, rbp
	call	return_PTR@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L9:
	.cfi_restore_state
	jne	.L10
	mov	edx, DWORD PTR AML_DUAL_NAME_PREFIX[rip]
	add	rax, 1
	mov	BYTE PTR -1[rax], dl
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, DWORD PTR AML_ROOT_PREFIX[rip]
	lea	rax, 1[rbp]
	mov	BYTE PTR 0[rbp], dl
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L14:
	mov	r13d, DWORD PTR ACPI_NAMESEG_SIZE[rip]
	imul	r13d, r12d
	add	r13d, 4
	mov	edi, r13d
	call	ACPI_ALLOCATE@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L4
.L15:
	mov	edi, r13d
	call	ACPI_ERROR@PLT
	xor	edi, edi
	call	return_PTR@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	AcpiExAllocateNameString, .-AcpiExAllocateNameString
	.comm	ExAllocateNameString,4,4
	.comm	AML_ROOT_PREFIX,4,4
	.comm	AML_PARENT_PREFIX,4,4
	.comm	AML_MULTI_NAME_PREFIX,4,4
	.comm	AML_DUAL_NAME_PREFIX,4,4
	.comm	AE_INFO,4,4
	.comm	ACPI_UINT32_MAX,4,4
	.comm	ACPI_NAMESEG_SIZE,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_exnames.c_AcpiExAllocateNameString.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	AcpiExAllocateNameString, %function
AcpiExAllocateNameString:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r7, r1
	ldr	r3, .L15
	ldr	r8, .L15+4
	ldr	r0, [r3]
	bl	ACPI_FUNCTION_TRACE
	ldr	r3, [r8]
	cmp	r3, r4
	ldr	r3, .L15+8
	ldr	r6, [r3]
	muleq	r6, r7, r6
	mlane	r6, r7, r6, r4
	addeq	r6, r6, #4
	addne	r6, r6, #3
	mov	r0, r6
	bl	ACPI_ALLOCATE
	subs	r5, r0, #0
	beq	.L14
.L4:
	ldr	r3, [r8]
	cmp	r3, r4
	beq	.L5
	cmp	r4, #0
	moveq	r2, r5
	beq	.L7
	mov	r3, r5
	ldr	r1, .L15+12
	add	r2, r5, r4
.L8:
	ldr	ip, [r1]
	strb	ip, [r3], #1
	cmp	r2, r3
	bne	.L8
.L7:
	cmp	r7, #2
	ble	.L9
	mov	r3, r2
	ldr	r1, .L15+16
	ldr	r1, [r1]
	strb	r1, [r3], #2
	strb	r7, [r2, #1]
	mov	r2, r3
.L10:
	mov	r3, #0
	strb	r3, [r2]
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	return_PTR
.L9:
	ldreq	r3, .L15+20
	ldreq	r3, [r3]
	strbeq	r3, [r2], #1
	b	.L10
.L5:
	mov	r2, r5
	ldr	r3, .L15+24
	ldr	r3, [r3]
	strb	r3, [r2], #1
	b	.L7
.L14:
	mov	r0, r6
	bl	ACPI_ERROR
	mov	r0, r5
	bl	return_PTR
	b	.L4
.L16:
	.align	2
.L15:
	.word	ExAllocateNameString
	.word	ACPI_UINT32_MAX
	.word	ACPI_NAMESEG_SIZE
	.word	AML_PARENT_PREFIX
	.word	AML_MULTI_NAME_PREFIX
	.word	AML_DUAL_NAME_PREFIX
	.word	AML_ROOT_PREFIX
	.size	AcpiExAllocateNameString, .-AcpiExAllocateNameString
	.comm	ExAllocateNameString,4,4
	.comm	AML_ROOT_PREFIX,4,4
	.comm	AML_PARENT_PREFIX,4,4
	.comm	AML_MULTI_NAME_PREFIX,4,4
	.comm	AML_DUAL_NAME_PREFIX,4,4
	.comm	AE_INFO,4,4
	.comm	ACPI_UINT32_MAX,4,4
	.comm	ACPI_NAMESEG_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
