	.file	"176706153.c"
	.intel_syntax noprefix
	.text
	.type	swap_value, @function
swap_value:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	swap_value, .-swap_value
	.section	.rodata
	.align 8
.LC0:
	.string	"First variable should be allocated one word below the frame.  Got variable's address %p, frame at %p instead.\n"
	.text
	.type	bad_layout, @function
bad_layout:
.LFB7:
	.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	abort@PLT
	.cfi_endproc
.LFE7:
	.size	bad_layout, .-bad_layout
	.type	corrupt_frame_inner, @function
corrupt_frame_inner:
.LFB8:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, rbp
	mov	rax, rbp
	mov	rsi, rdx
	mov	rdi, rax
	call	swap_value
	mov	QWORD PTR -16[rbp], rax
	lea	rax, -16[rbp]
	add	rax, 8
	mov	rdx, rbp
	cmp	rax, rdx
	je	.L5
	mov	rdx, rbp
	lea	rax, -16[rbp]
	add	rax, 8
	mov	rsi, rdx
	mov	rdi, rax
	call	bad_layout
.L5:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, rbp
	mov	rsi, rax
	mov	rdi, rdx
	call	swap_value
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	corrupt_frame_inner, .-corrupt_frame_inner
	.type	corrupt_frame_outer, @function
corrupt_frame_outer:
.LFB9:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, rbp
	mov	rax, rbp
	mov	rsi, rdx
	mov	rdi, rax
	call	swap_value
	mov	QWORD PTR -16[rbp], rax
	lea	rax, -16[rbp]
	add	rax, 8
	mov	rdx, rbp
	cmp	rax, rdx
	je	.L8
	mov	rdx, rbp
	lea	rax, -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	bad_layout
.L8:
	call	corrupt_frame_inner
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, rbp
	mov	rsi, rax
	mov	rdi, rdx
	call	swap_value
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	corrupt_frame_outer, .-corrupt_frame_outer
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	corrupt_frame_outer
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.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	"176706153.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	swap_value, %function
swap_value:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	swap_value, .-swap_value
	.section	.rodata
	.align	2
.LC0:
	.ascii	"First variable should be allocated one word below t"
	.ascii	"he frame.  Got variable's address %p, frame at %p i"
	.ascii	"nstead.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bad_layout, %function
bad_layout:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, .L4
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r1, .L4+4
	bl	fprintf
	bl	abort
.L5:
	.align	2
.L4:
	.word	stderr
	.word	.LC0
	.size	bad_layout, .-bad_layout
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	corrupt_frame_inner, %function
corrupt_frame_inner:
	@ 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, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, fp
	mov	r2, fp
	mov	r1, r2
	mov	r0, r3
	bl	swap_value
	mov	r3, r0
	str	r3, [fp, #-12]
	sub	r3, fp, #12
	add	r3, r3, #4
	mov	r2, fp
	cmp	r3, r2
	beq	.L7
	sub	r3, fp, #12
	add	r3, r3, #4
	mov	r2, fp
	mov	r1, r2
	mov	r0, r3
	bl	bad_layout
.L7:
	mov	r2, fp
	ldr	r3, [fp, #-12]
	mov	r1, r3
	mov	r0, r2
	bl	swap_value
	nop
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC1
	.size	corrupt_frame_inner, .-corrupt_frame_inner
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	corrupt_frame_outer, %function
corrupt_frame_outer:
	@ 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, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, fp
	mov	r2, fp
	mov	r1, r2
	mov	r0, r3
	bl	swap_value
	mov	r3, r0
	str	r3, [fp, #-12]
	sub	r3, fp, #12
	add	r3, r3, #4
	mov	r2, fp
	cmp	r3, r2
	beq	.L12
	mov	r2, fp
	sub	r3, fp, #12
	mov	r1, r2
	mov	r0, r3
	bl	bad_layout
.L12:
	bl	corrupt_frame_inner
	mov	r2, fp
	ldr	r3, [fp, #-12]
	mov	r1, r3
	mov	r0, r2
	bl	swap_value
	nop
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC2
	.size	corrupt_frame_outer, .-corrupt_frame_outer
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	corrupt_frame_outer
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
