	.file	"extr_nsnames.c_AcpiNsBuildNormalizedPath.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	AcpiNsBuildNormalizedPath
	.type	AcpiNsBuildNormalizedPath, @function
AcpiNsBuildNormalizedPath:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14d, edx
	push	r13
	push	r12
	push	rbx
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 56
	mov	QWORD PTR -80[rbp], rcx
	mov	QWORD PTR -72[rbp], rdi
	mov	rdx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR ACPI_NAMESEG_SIZE[rip]
	add	rax, 15
	mov	rcx, rax
	and	rax, -4096
	sub	rdx, rax
	and	rcx, -16
	mov	rax, rdx
	cmp	rsp, rax
	je	.L3
.L39:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L39
.L3:
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	jne	.L40
.L4:
	mov	r15, QWORD PTR -72[rbp]
	mov	edi, DWORD PTR NsBuildNormalizedPath[rip]
	mov	r13, rsp
	mov	rsi, r15
	call	ACPI_FUNCTION_TRACE_PTR@PLT
	test	rbx, rbx
	je	.L5
	test	r15, r15
	je	.L21
.L19:
	lea	rax, 3[r13]
	mov	r12, QWORD PTR -72[rbp]
	xor	r15d, r15d
	mov	QWORD PTR -88[rbp], rax
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	QWORD PTR AcpiGbl_RootNode[rip], r12
	je	.L37
	cmp	QWORD PTR -72[rbp], r12
	je	.L8
	cmp	r15d, r14d
	jge	.L9
	movzx	ecx, BYTE PTR AML_DUAL_NAME_PREFIX[rip]
	movsx	rax, r15d
	mov	BYTE PTR [rbx+rax], cl
.L9:
	add	r15d, 1
.L8:
	lea	rsi, 8[r12]
	mov	rdi, r13
	call	ACPI_MOVE_32_TO_32@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rcx, QWORD PTR -80[rbp]
	movzx	esi, BYTE PTR [rax]
	test	rcx, rcx
	je	.L34
.L42:
	cmp	sil, 95
	cmovne	rcx, QWORD PTR FALSE[rip]
	test	rcx, rcx
	je	.L34
	lea	rsi, -1[rax]
	cmp	r13, rax
	je	.L41
.L22:
	mov	rax, rsi
	movzx	esi, BYTE PTR [rax]
	test	rcx, rcx
	jne	.L42
.L34:
	cmp	r15d, r14d
	jge	.L12
	movsx	rdi, r15d
	mov	BYTE PTR [rbx+rdi], sil
.L12:
	add	r15d, 1
	lea	rsi, -1[rax]
	cmp	r13, rax
	jne	.L22
.L41:
	mov	r12, QWORD PTR [r12]
	test	r12, r12
	jne	.L7
.L37:
	lea	r8d, 1[r15]
	lea	edi, 2[r15]
	cmp	r15d, r14d
	jge	.L16
	movzx	eax, BYTE PTR AML_ROOT_PREFIX[rip]
	movsx	r15, r15d
	mov	BYTE PTR [rbx+r15], al
.L16:
	cmp	r8d, r14d
	jg	.L17
	movsx	rax, r8d
	lea	rax, -1[rbx+rax]
	cmp	rbx, rax
	jnb	.L6
	mov	rcx, rbx
	.p2align 4,,10
	.p2align 3
.L18:
	movzx	esi, BYTE PTR [rcx]
	movzx	edx, BYTE PTR [rax]
	add	rcx, 1
	sub	rax, 1
	mov	BYTE PTR -1[rcx], dl
	mov	BYTE PTR 1[rax], sil
	cmp	rcx, rax
	jb	.L18
.L6:
	cmp	r8d, r14d
	jge	.L17
	movsx	r8, r8d
	mov	BYTE PTR [rbx+r8], 0
.L17:
	call	return_UINT32@PLT
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L43
	lea	rsp, -40[rbp]
	xor	eax, eax
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L5:
	.cfi_restore_state
	cmp	QWORD PTR -72[rbp], 0
	je	.L23
	xor	r14d, r14d
	jmp	.L19
.L40:
	or	QWORD PTR -8[rsp+rcx], 0
	jmp	.L4
.L21:
	mov	edi, 1
	xor	r8d, r8d
	jmp	.L6
.L23:
	mov	edi, 1
	jmp	.L17
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	AcpiNsBuildNormalizedPath, .-AcpiNsBuildNormalizedPath
	.comm	NsBuildNormalizedPath,4,4
	.comm	FALSE,8,8
	.comm	AcpiGbl_RootNode,8,8
	.comm	AML_ROOT_PREFIX,1,1
	.comm	AML_DUAL_NAME_PREFIX,1,1
	.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_nsnames.c_AcpiNsBuildNormalizedPath.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	AcpiNsBuildNormalizedPath
	.syntax unified
	.arm
	.fpu softvfp
	.type	AcpiNsBuildNormalizedPath, %function
AcpiNsBuildNormalizedPath:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	mov	r4, r0
	mov	r8, r1
	ldr	r1, .L31
	str	r0, [fp, #-48]
	ldr	r1, [r1]
	ldr	r0, .L31+4
	add	r1, r1, #7
	str	r3, [fp, #-52]
	bic	r1, r1, #7
	ldr	r3, .L31+8
	sub	sp, sp, r1
	ldr	r0, [r0]
	mov	r1, r4
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	ACPI_FUNCTION_TRACE_PTR
	cmp	r8, #0
	mov	r6, sp
	beq	.L2
	cmp	r4, #0
	beq	.L18
.L16:
	mov	r4, #0
	ldr	r5, [fp, #-48]
	ldr	r9, .L31+12
	ldr	r10, .L31+16
.L4:
	ldr	r1, [r9]
	cmp	r1, r5
	beq	.L28
	ldr	r3, [fp, #-48]
	cmp	r3, r5
	beq	.L5
	cmp	r4, r7
	ldrlt	r3, .L31+20
	ldrblt	r1, [r3]	@ zero_extendqisi2
	strblt	r1, [r8, r4]
	add	r4, r4, #1
.L5:
	add	r1, r5, #4
	mov	r0, r6
	bl	ACPI_MOVE_32_TO_32
	ldr	r0, [fp, #-52]
	add	r1, r6, #3
.L10:
	ldrb	ip, [r1]	@ zero_extendqisi2
	mov	lr, r1
	cmp	r0, #0
	cmpne	ip, #95
	ldrne	r0, [r10]
	sub	r1, r1, #1
	cmp	r0, #0
	bne	.L8
	cmp	r4, r7
	strblt	ip, [r8, r4]
	add	r4, r4, #1
.L8:
	cmp	r6, lr
	bne	.L10
	ldr	r5, [r5]
	cmp	r5, #0
	bne	.L4
.L28:
	cmp	r4, r7
	ldrlt	r3, .L31+24
	add	r9, r4, #1
	ldrblt	r3, [r3]	@ zero_extendqisi2
	add	r0, r4, #2
	strblt	r3, [r8, r4]
	cmp	r9, r7
	bgt	.L14
	add	r4, r8, r4
	cmp	r8, r4
	bcs	.L3
	mov	r3, r8
.L15:
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r1, [r4]	@ zero_extendqisi2
	strb	r1, [r3], #1
	strb	r2, [r4], #-1
	cmp	r3, r4
	bcc	.L15
.L3:
	cmp	r9, r7
	movlt	r3, #0
	strblt	r3, [r8, r9]
.L14:
	bl	return_UINT32
	ldr	r3, .L31+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	mov	r0, #0
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	movne	r7, r8
	bne	.L16
	mov	r0, #1
	b	.L14
.L18:
	mov	r0, #1
	ldr	r9, [fp, #-48]
	b	.L3
.L30:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	ACPI_NAMESEG_SIZE
	.word	NsBuildNormalizedPath
	.word	.LC0
	.word	AcpiGbl_RootNode
	.word	FALSE
	.word	AML_DUAL_NAME_PREFIX
	.word	AML_ROOT_PREFIX
	.size	AcpiNsBuildNormalizedPath, .-AcpiNsBuildNormalizedPath
	.comm	NsBuildNormalizedPath,4,4
	.comm	FALSE,4,4
	.comm	AcpiGbl_RootNode,4,4
	.comm	AML_ROOT_PREFIX,1,1
	.comm	AML_DUAL_NAME_PREFIX,1,1
	.comm	ACPI_NAMESEG_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
