	.file	"extr_dmextern.c_AcpiDmNormalizeParentPrefix.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"."
	.text
	.p2align 4
	.type	AcpiDmNormalizeParentPrefix, @function
AcpiDmNormalizeParentPrefix:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	rdi, rdi
	je	.L4
	mov	rax, QWORD PTR 8[rdi]
	mov	rbp, rsi
	test	rax, rax
	jne	.L6
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L4
.L6:
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	je	.L32
	movzx	eax, BYTE PTR AML_PARENT_PREFIX[rip]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, QWORD PTR [rdi]
	add	rbp, 1
	test	rdi, rdi
	je	.L4
.L14:
	cmp	BYTE PTR 0[rbp], al
	je	.L7
	call	AcpiNsGetExternalPathname@PLT
	mov	r12, rax
	test	rax, rax
	je	.L4
	mov	rdi, r12
	call	strlen@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	strlen@PLT
	add	r13, rax
	cmp	BYTE PTR 1[r12], 0
	jne	.L9
	lea	rdi, 1[r13]
	xor	ebx, ebx
.L10:
	call	ACPI_ALLOCATE_ZEROED@PLT
	mov	r13, rax
	test	rax, rax
	je	.L11
	lea	rsi, [r12+rbx]
	mov	rdi, rax
	call	strcpy@PLT
	cmp	BYTE PTR 1[r12], 0
	jne	.L33
.L12:
	mov	rsi, rbp
	mov	rdi, r13
	call	strcat@PLT
.L11:
	mov	rdi, r12
	call	ACPI_FREE@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	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
.L4:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	r13d, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	rax, r13
	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
	xor	ebx, ebx
	movzx	eax, BYTE PTR AML_ROOT_PREFIX[rip]
	cmp	BYTE PTR [r12], al
	lea	rdi, 2[r13]
	sete	bl
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L33:
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	strcat@PLT
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	AcpiDmNormalizeParentPrefix, .-AcpiDmNormalizeParentPrefix
	.comm	AML_ROOT_PREFIX,1,1
	.comm	AML_PARENT_PREFIX,8,8
	.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_dmextern.c_AcpiDmNormalizeParentPrefix.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	".\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	AcpiDmNormalizeParentPrefix, %function
AcpiDmNormalizeParentPrefix:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #0
	push	{r4, r5, r6, r7, r8, lr}
	beq	.L4
	ldr	r3, [r0, #4]
	cmp	r3, #0
	bne	.L6
	b	.L4
.L35:
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L4
.L6:
	ldr	r0, [r3]
	cmp	r0, #0
	beq	.L35
	ldr	r3, .L37
	ldrb	r2, [r3]	@ zero_extendqisi2
	b	.L14
.L7:
	ldr	r0, [r0]
	cmp	r0, #0
	beq	.L4
.L14:
	mov	r4, r1
	ldrb	r3, [r1], #1	@ zero_extendqisi2
	cmp	r3, r2
	beq	.L7
	bl	AcpiNsGetExternalPathname
	subs	r6, r0, #0
	beq	.L4
	bl	strlen
	mov	r5, r0
	mov	r0, r4
	bl	strlen
	ldrb	r3, [r6, #1]	@ zero_extendqisi2
	add	r0, r5, r0
	cmp	r3, #0
	ldrne	r2, .L37+4
	ldrbne	r3, [r6]	@ zero_extendqisi2
	ldrbne	r7, [r2]	@ zero_extendqisi2
	addeq	r0, r0, #1
	subne	r7, r3, r7
	clzne	r7, r7
	addne	r0, r0, #2
	moveq	r7, r3
	lsrne	r7, r7, #5
	bl	ACPI_ALLOCATE_ZEROED
	subs	r5, r0, #0
	beq	.L11
	add	r1, r6, r7
	bl	strcpy
	ldrb	r3, [r6, #1]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L36
.L12:
	mov	r1, r4
	mov	r0, r5
	bl	strcat
.L11:
	mov	r0, r6
	bl	ACPI_FREE
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L36:
	mov	r0, r5
	bl	strlen
	mov	r2, #2
	ldr	r1, .L37+8
	add	r0, r5, r0
	bl	memcpy
	b	.L12
.L38:
	.align	2
.L37:
	.word	AML_PARENT_PREFIX
	.word	AML_ROOT_PREFIX
	.word	.LC0
	.size	AcpiDmNormalizeParentPrefix, .-AcpiDmNormalizeParentPrefix
	.comm	AML_ROOT_PREFIX,1,1
	.comm	AML_PARENT_PREFIX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
