	.file	"extr_cvparser.c_CvAddToFileTree.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"w+"
.LC1:
	.string	"\"%s\" - %s"
	.text
	.p2align 4
	.type	CvAddToFileTree, @function
CvAddToFileTree:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	mov	esi, DWORD PTR AcpiGbl_RootFilename[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	AcpiUtStricmp@PLT
	test	eax, eax
	jne	.L2
	test	rbp, rbp
	je	.L3
	mov	rsi, QWORD PTR AcpiGbl_FileTreeRoot[rip]
	mov	rdi, rbp
	call	CvFilenameExists@PLT
	test	rax, rax
	je	.L5
	mov	QWORD PTR [rax], r12
.L5:
	mov	rsi, QWORD PTR AcpiGbl_FileTreeRoot[rip]
	mov	rdi, r12
	call	CvFilenameExists@PLT
	test	rax, rax
	je	.L8
	test	rbp, rbp
	je	.L8
	mov	rsi, QWORD PTR AcpiGbl_FileTreeRoot[rip]
	mov	rdi, rbp
	call	CvFilenameExists@PLT
	test	rax, rax
	je	.L1
	cmp	QWORD PTR [rax], r12
	jb	.L36
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L40:
	.cfi_restore_state
	cmp	QWORD PTR [rax], r12
	jnb	.L35
.L36:
	mov	QWORD PTR [rax], r12
.L35:
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	jne	.L40
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR AcpiGbl_RootFilename[rip]
	mov	rdi, r12
	call	AcpiUtStricmp@PLT
	test	eax, eax
	je	.L1
	mov	rsi, QWORD PTR AcpiGbl_FileTreeRoot[rip]
	mov	rdi, r12
	call	CvFilenameExists@PLT
.L8:
	mov	edi, DWORD PTR AcpiGbl_FileCache[rip]
	mov	rbx, QWORD PTR AcpiGbl_FileTreeRoot[rip]
	call	AcpiOsAcquireObject@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	mov	QWORD PTR 40[rax], rbx
	mov	rbp, rax
	mov	QWORD PTR 32[rax], 0
	mov	QWORD PTR 8[rax], r12
	mov	QWORD PTR 16[rax], r12
	mov	QWORD PTR AcpiGbl_FileTreeRoot[rip], rax
	mov	eax, DWORD PTR FALSE[rip]
	mov	DWORD PTR 28[rbp], eax
	call	fopen@PLT
	mov	DWORD PTR 24[rbp], eax
	mov	rax, QWORD PTR AcpiGbl_FileTreeRoot[rip]
	mov	ecx, DWORD PTR 24[rax]
	test	ecx, ecx
	je	.L41
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR AcpiGbl_RootFilename[rip]
	mov	rdi, r12
	call	AcpiUtStricmp@PLT
	test	rbp, rbp
	jne	.L5
	test	eax, eax
	jne	.L5
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L41:
	mov	edi, DWORD PTR ASL_FILE_AML_OUTPUT[rip]
	call	FlDeleteFile@PLT
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR AslGbl_MsgBuffer[rip]
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	mov	rcx, rax
	call	sprintf@PLT
	mov	eax, DWORD PTR AslGbl_MsgBuffer[rip]
	xor	edx, edx
	xor	r9d, r9d
	mov	esi, DWORD PTR ASL_MSG_OPEN[rip]
	mov	edi, DWORD PTR ASL_ERROR[rip]
	xor	r8d, r8d
	xor	ecx, ecx
	push	rax
	.cfi_def_cfa_offset 40
	push	0
	.cfi_def_cfa_offset 48
	call	AslCommonError@PLT
	pop	rax
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rdx
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	AslAbort@PLT
	.cfi_endproc
.LFE0:
	.size	CvAddToFileTree, .-CvAddToFileTree
	.comm	errno,4,4
	.comm	FALSE,4,4
	.comm	AslGbl_MsgBuffer,4,4
	.comm	AcpiGbl_RootFilename,4,4
	.comm	AcpiGbl_FileTreeRoot,8,8
	.comm	AcpiGbl_FileCache,4,4
	.comm	ASL_MSG_OPEN,4,4
	.comm	ASL_FILE_AML_OUTPUT,4,4
	.comm	ASL_ERROR,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_cvparser.c_CvAddToFileTree.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"w+\000"
	.align	2
.LC1:
	.ascii	"\"%s\" - %s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CvAddToFileTree, %function
CvAddToFileTree:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r6, .L29
	mov	r5, r1
	sub	sp, sp, #20
	ldr	r1, [r6]
	mov	r4, r0
	bl	AcpiUtStricmp
	cmp	r0, #0
	bne	.L2
	cmp	r5, #0
	beq	.L3
	ldr	r6, .L29+4
	mov	r0, r5
	ldr	r1, [r6]
	bl	CvFilenameExists
	cmp	r0, #0
	strne	r4, [r0]
.L5:
	mov	r0, r4
	ldr	r1, [r6]
	bl	CvFilenameExists
	cmp	r0, #0
	cmpne	r5, #0
	beq	.L8
	mov	r0, r5
	ldr	r1, [r6]
	bl	CvFilenameExists
	cmp	r0, #0
	beq	.L1
	ldr	r3, [r0]
	cmp	r3, r4
	bcs	.L1
	ldr	r3, [r0, #20]
	str	r4, [r0]
	cmp	r3, #0
	beq	.L1
.L11:
	ldr	r2, [r3]
	cmp	r2, r4
	strcc	r4, [r3]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	bne	.L11
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L3:
	mov	r0, r4
	ldr	r1, [r6]
	bl	AcpiUtStricmp
	cmp	r0, #0
	beq	.L1
	ldr	r6, .L29+4
	mov	r0, r4
	ldr	r1, [r6]
	bl	CvFilenameExists
.L8:
	ldr	r3, .L29+8
	ldr	r7, [r6]
	ldr	r0, [r3]
	bl	AcpiOsAcquireObject
	mov	r2, #0
	mov	r5, r0
	ldr	r3, .L29+12
	str	r7, [r0, #24]
	ldr	r3, [r3]
	str	r4, [r0, #4]
	str	r3, [r0, #16]
	str	r4, [r0, #8]
	str	r2, [r0, #20]
	ldr	r1, .L29+16
	mov	r0, r4
	str	r5, [r6]
	bl	fopen
	ldr	r3, [r6]
	str	r0, [r5, #12]
	ldr	r5, [r3, #12]
	cmp	r5, #0
	beq	.L28
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r0, r4
	ldr	r1, [r6]
	bl	AcpiUtStricmp
	orrs	r3, r5, r0
	beq	.L1
	ldr	r6, .L29+4
	b	.L5
.L28:
	ldr	r3, .L29+20
	ldr	r6, .L29+24
	ldr	r0, [r3]
	bl	FlDeleteFile
	ldr	r3, .L29+28
	ldr	r7, [r6]
	ldr	r0, [r3]
	bl	strerror
	mov	r2, r4
	mov	r3, r0
	ldr	r1, .L29+32
	mov	r0, r7
	bl	sprintf
	ldr	r1, [r6]
	ldr	r2, .L29+36
	ldr	r3, .L29+40
	str	r1, [sp, #12]
	str	r5, [sp, #8]
	str	r5, [sp, #4]
	str	r5, [sp]
	ldr	r1, [r2]
	ldr	r0, [r3]
	mov	r2, r5
	mov	r3, r5
	bl	AslCommonError
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	AslAbort
.L30:
	.align	2
.L29:
	.word	AcpiGbl_RootFilename
	.word	AcpiGbl_FileTreeRoot
	.word	AcpiGbl_FileCache
	.word	FALSE
	.word	.LC0
	.word	ASL_FILE_AML_OUTPUT
	.word	AslGbl_MsgBuffer
	.word	errno
	.word	.LC1
	.word	ASL_MSG_OPEN
	.word	ASL_ERROR
	.size	CvAddToFileTree, .-CvAddToFileTree
	.comm	errno,4,4
	.comm	FALSE,4,4
	.comm	AslGbl_MsgBuffer,4,4
	.comm	AcpiGbl_RootFilename,4,4
	.comm	AcpiGbl_FileTreeRoot,4,4
	.comm	AcpiGbl_FileCache,4,4
	.comm	ASL_MSG_OPEN,4,4
	.comm	ASL_FILE_AML_OUTPUT,4,4
	.comm	ASL_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
