	.file	"extr_var.c_mklocal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mklocal
	.type	mklocal, @function
mklocal:
.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	r12, rdi
	mov	edi, 32
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	ckmalloc@PLT
	cmp	BYTE PTR [r12], 45
	mov	rbx, rax
	jne	.L2
	cmp	BYTE PTR 1[r12], 0
	je	.L10
.L2:
	mov	rsi, rsp
	xor	edx, edx
	mov	rdi, r12
	call	find_var@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L11
	mov	rax, QWORD PTR 16[rax]
	mov	edx, DWORD PTR 0[rbp]
	mov	QWORD PTR 24[rbx], rax
	mov	eax, DWORD PTR VSTRFIXED[rip]
	or	eax, DWORD PTR VTEXTFIXED[rip]
	mov	DWORD PTR [rbx], edx
	or	eax, edx
	mov	DWORD PTR 0[rbp], eax
	mov	rax, QWORD PTR 8[rbp]
	cmp	BYTE PTR [r12+rax], 61
	je	.L12
.L3:
	mov	rax, QWORD PTR localvars[rip]
	mov	QWORD PTR 16[rbx], rbp
	mov	QWORD PTR localvars[rip], rbx
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 24
	.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
.L10:
	.cfi_restore_state
	mov	edi, 4
	xor	ebp, ebp
	call	ckmalloc@PLT
	mov	esi, DWORD PTR optval[rip]
	mov	edx, 4
	mov	QWORD PTR 24[rbx], rax
	mov	rdi, rax
	call	memcpy@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, 61
	mov	rdi, r12
	call	strchr@PLT
	test	rax, rax
	je	.L5
	mov	rdi, r12
	mov	ebp, DWORD PTR VSTRFIXED[rip]
	or	ebp, DWORD PTR VNOLOCAL[rip]
	call	savestr@PLT
	mov	esi, ebp
	mov	edi, eax
	call	setvareq@PLT
.L6:
	mov	rax, QWORD PTR [rsp]
	mov	rbp, QWORD PTR [rax]
	mov	eax, DWORD PTR VUNSET[rip]
	mov	QWORD PTR 24[rbx], 0
	mov	DWORD PTR [rbx], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r13d, DWORD PTR VNOLOCAL[rip]
	mov	rdi, r12
	call	savestr@PLT
	mov	edi, eax
	mov	esi, r13d
	call	setvareq@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, DWORD PTR VSTRFIXED[rip]
	xor	esi, esi
	mov	rdi, r12
	or	edx, DWORD PTR VNOLOCAL[rip]
	call	setvar@PLT
	jmp	.L6
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mklocal, .-mklocal
	.comm	optval,4,4
	.comm	localvars,8,8
	.comm	VUNSET,4,4
	.comm	VTEXTFIXED,4,4
	.comm	VSTRFIXED,4,4
	.comm	VNOLOCAL,4,4
	.comm	INTON,4,4
	.comm	INTOFF,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_var.c_mklocal.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mklocal
	.syntax unified
	.arm
	.fpu softvfp
	.type	mklocal, %function
mklocal:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	ldr	r3, .L14
	sub	sp, sp, #8
	mov	r0, #16
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	ckmalloc
	ldrb	r3, [r6]	@ zero_extendqisi2
	mov	r5, r0
	cmp	r3, #45
	bne	.L2
	ldrb	r4, [r6, #1]	@ zero_extendqisi2
	cmp	r4, #0
	beq	.L10
.L2:
	mov	r2, #0
	mov	r1, sp
	mov	r0, r6
	bl	find_var
	subs	r4, r0, #0
	beq	.L11
	ldr	r2, .L14+4
	ldr	r3, .L14+8
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r4]
	ldr	r0, [r4, #8]
	orr	r3, r3, r1
	orr	r3, r3, r2
	ldr	r1, [r4, #4]
	str	r2, [r5]
	str	r0, [r5, #12]
	str	r3, [r4]
	ldrb	r3, [r6, r1]	@ zero_extendqisi2
	cmp	r3, #61
	beq	.L12
.L3:
	ldr	r3, .L14+12
	str	r4, [r5, #8]
	ldr	r2, [r3]
	str	r5, [r3]
	ldr	r3, .L14
	str	r2, [r5, #4]
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	mov	r0, #4
	bl	ckmalloc
	ldr	r3, .L14+16
	mov	r2, #4
	ldr	r1, [r3]
	str	r0, [r5, #12]
	bl	memcpy
	b	.L3
.L11:
	mov	r1, #61
	mov	r0, r6
	bl	strchr
	subs	r1, r0, #0
	beq	.L5
	mov	r0, r6
	bl	savestr
	ldr	r2, .L14+8
	ldr	r3, .L14+20
	ldr	r1, [r2]
	ldr	r3, [r3]
	orr	r1, r1, r3
	bl	setvareq
.L6:
	mov	r3, #0
	ldr	r2, .L14+24
	ldr	r1, [sp]
	ldr	r2, [r2]
	ldr	r4, [r1]
	str	r2, [r5]
	str	r3, [r5, #12]
	b	.L3
.L12:
	mov	r0, r6
	bl	savestr
	ldr	r3, .L14+20
	ldr	r1, [r3]
	bl	setvareq
	b	.L3
.L5:
	ldr	r2, .L14+8
	ldr	r3, .L14+20
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r0, r6
	orr	r2, r2, r3
	bl	setvar
	b	.L6
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	VTEXTFIXED
	.word	VSTRFIXED
	.word	localvars
	.word	optval
	.word	VNOLOCAL
	.word	VUNSET
	.size	mklocal, .-mklocal
	.comm	optval,4,4
	.comm	localvars,4,4
	.comm	VUNSET,4,4
	.comm	VTEXTFIXED,4,4
	.comm	VSTRFIXED,4,4
	.comm	VNOLOCAL,4,4
	.comm	INTON,4,4
	.comm	INTOFF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
