	.file	"extr_scriplib.c_AddScriptToStack.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"script file exceeded MAX_INCLUDES"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"entering %s\n"
	.text
	.p2align 4
	.globl	AddScriptToStack
	.type	AddScriptToStack, @function
AddScriptToStack:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdx, QWORD PTR MAX_INCLUDES[rip]
	mov	rax, QWORD PTR script[rip]
	lea	rcx, [rdx+rdx*4]
	mov	rdx, QWORD PTR scriptstack[rip]
	add	rax, 40
	mov	QWORD PTR script[rip], rax
	lea	rdx, [rdx+rcx*8]
	cmp	rax, rdx
	je	.L5
.L2:
	mov	rdi, rbp
	call	ExpandPath@PLT
	mov	esi, eax
	mov	rax, QWORD PTR script[rip]
	mov	rdi, QWORD PTR [rax]
	call	strcpy@PLT
	mov	rax, QWORD PTR script[rip]
	mov	rdi, QWORD PTR [rax]
	lea	rsi, 16[rax]
	call	LoadFile@PLT
	lea	rdi, .LC1[rip]
	movsx	rbx, eax
	mov	rax, QWORD PTR script[rip]
	mov	rsi, QWORD PTR [rax]
	call	printf@PLT
	mov	rax, QWORD PTR script[rip]
	mov	rdx, QWORD PTR 16[rax]
	mov	DWORD PTR 8[rax], 1
	add	rbx, rdx
	mov	QWORD PTR 32[rax], rdx
	mov	QWORD PTR 24[rax], rbx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	Error@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	AddScriptToStack, .-AddScriptToStack
	.comm	scriptstack,8,8
	.comm	script,8,8
	.comm	MAX_INCLUDES,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_scriplib.c_AddScriptToStack.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"script file exceeded MAX_INCLUDES\000"
	.align	2
.LC1:
	.ascii	"entering %s\012\000"
	.text
	.align	2
	.global	AddScriptToStack
	.syntax unified
	.arm
	.fpu softvfp
	.type	AddScriptToStack, %function
AddScriptToStack:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L6
	push	{r4, r5, r6, lr}
	ldr	r3, .L6+4
	ldr	r4, .L6+8
	ldr	r2, [r2]
	ldr	r1, [r3]
	ldr	r3, [r4]
	add	r2, r2, r2, lsl #2
	add	r3, r3, #20
	add	r2, r1, r2, lsl #2
	cmp	r3, r2
	mov	r5, r0
	str	r3, [r4]
	beq	.L5
.L2:
	mov	r0, r5
	ldr	r6, [r3]
	bl	ExpandPath
	mov	r1, r0
	mov	r0, r6
	bl	strcpy
	ldr	r1, [r4]
	ldr	r0, [r1], #8
	bl	LoadFile
	ldr	r3, [r4]
	mov	r5, r0
	ldr	r1, [r3]
	ldr	r0, .L6+12
	bl	printf
	mov	r1, #1
	ldr	r3, [r4]
	ldr	r2, [r3, #8]
	str	r1, [r3, #4]
	add	r5, r2, r5
	str	r5, [r3, #12]
	str	r2, [r3, #16]
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r0, .L6+16
	bl	Error
	ldr	r3, [r4]
	b	.L2
.L7:
	.align	2
.L6:
	.word	MAX_INCLUDES
	.word	scriptstack
	.word	script
	.word	.LC1
	.word	.LC0
	.size	AddScriptToStack, .-AddScriptToStack
	.comm	scriptstack,4,4
	.comm	script,4,4
	.comm	MAX_INCLUDES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
