	.file	"450425.c"
	.intel_syntax noprefix
	.text
	.globl	global_var
	.data
	.align 4
	.type	global_var, @object
	.size	global_var, 4
global_var:
	.long	1
	.section	.rodata
.LC0:
	.string	"static var: %d\n"
.LC1:
	.string	"non static var: %d\n"
	.text
	.globl	LocalStaticVar
	.type	LocalStaticVar, @function
LocalStaticVar:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	eax, DWORD PTR static_var.0[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR static_var.0[rip], edx
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4[rbp], edx
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	LocalStaticVar, .-LocalStaticVar
	.globl	CleanMemory
	.type	CleanMemory, @function
CleanMemory:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], -1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	CleanMemory, .-CleanMemory
	.section	.rodata
.LC2:
	.string	"%d\n"
	.text
	.globl	PassByMemory
	.type	PassByMemory, @function
PassByMemory:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	PassByMemory, .-PassByMemory
	.globl	PassByRegister
	.type	PassByRegister, @function
PassByRegister:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	esi, edi
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	PassByRegister, .-PassByRegister
	.globl	main
	.type	main, @function
main:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -12[rbp], 0
	jle	.L6
	mov	DWORD PTR -4[rbp], 0
	jmp	.L7
.L6:
	mov	DWORD PTR global_var[rip], 2
.L7:
	call	LocalStaticVar
	mov	eax, 0
	call	CleanMemory
	call	LocalStaticVar
	mov	eax, 0
	call	CleanMemory
	call	LocalStaticVar
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	main, .-main
	.local	static_var.0
	.comm	static_var.0,4,4
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"450425.c"
	.text
	.global	global_var
	.data
	.align	2
	.type	global_var, %object
	.size	global_var, 4
global_var:
	.word	1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"static var: %d\012\000"
	.align	2
.LC1:
	.ascii	"non static var: %d\012\000"
	.text
	.align	2
	.global	LocalStaticVar
	.syntax unified
	.arm
	.fpu softvfp
	.type	LocalStaticVar, %function
LocalStaticVar:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L2
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L2
	str	r2, [r1]
	mov	r1, r3
	ldr	r0, .L2+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	str	r2, [fp, #-8]
	mov	r1, r3
	ldr	r0, .L2+8
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	static_var.4602
	.word	.LC0
	.word	.LC1
	.size	LocalStaticVar, .-LocalStaticVar
	.align	2
	.global	CleanMemory
	.syntax unified
	.arm
	.fpu softvfp
	.type	CleanMemory, %function
CleanMemory:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mvn	r3, #0
	str	r3, [fp, #-8]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	CleanMemory, .-CleanMemory
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	PassByMemory
	.syntax unified
	.arm
	.fpu softvfp
	.type	PassByMemory, %function
PassByMemory:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L6
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC2
	.size	PassByMemory, .-PassByMemory
	.align	2
	.global	PassByRegister
	.syntax unified
	.arm
	.fpu softvfp
	.type	PassByRegister, %function
PassByRegister:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L9
	bl	printf
	nop
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC2
	.size	PassByRegister, .-PassByRegister
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L15
	bl	printf
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L12
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L13
.L12:
	ldr	r3, .L15+4
	mov	r2, #2
	str	r2, [r3]
.L13:
	bl	LocalStaticVar
	bl	CleanMemory
	bl	LocalStaticVar
	bl	CleanMemory
	bl	LocalStaticVar
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC2
	.word	global_var
	.size	main, .-main
	.local	static_var.4602
	.comm	static_var.4602,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
