	.file	"43173.c"
	.intel_syntax noprefix
	.text
	.globl	Stack
	.bss
	.align 32
	.type	Stack, @object
	.size	Stack, 8192
Stack:
	.zero	8192
	.section	.rodata
	.align 8
.LC0:
	.string	"Unable to set alternate stack\n"
.LC1:
	.string	"Alternate stack is %p - %p\n"
	.align 8
.LC2:
	.string	"Unable to set up USR1 handler\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, Stack[rip]
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -176[rbp], 8192
	mov	DWORD PTR -184[rbp], 0
	lea	rax, -192[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	sigaltstack@PLT
	test	eax, eax
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L5
.L2:
	lea	rdx, Stack[rip+8192]
	lea	rsi, Stack[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, Handle[rip]
	mov	QWORD PTR -160[rbp], rax
	mov	DWORD PTR -24[rbp], 134217728
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 10
	call	sigaction@PLT
	test	eax, eax
	je	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L5
.L4:
	mov	edi, 10
	call	raise@PLT
	mov	eax, 0
.L5:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC3:
	.string	"Got signal %d with SP=%p\n"
	.align 8
.LC4:
	.string	"Handler not running on alternate stack\n"
	.text
	.type	Handle, @function
Handle:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	lea	rax, -20[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -20[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, Stack[rip]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L8
	lea	rax, Stack[rip+8192]
	cmp	QWORD PTR -8[rbp], rax
	jbe	.L10
.L8:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 39
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Handle, .-Handle
	.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	"43173.c"
	.text
	.comm	Stack,8192,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Unable to set alternate stack\012\000"
	.align	2
.LC1:
	.ascii	"Alternate stack is %p - %p\012\000"
	.align	2
.LC2:
	.ascii	"Unable to set up USR1 handler\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #160
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L7+4
	str	r3, [fp, #-160]
	mov	r3, #8192
	str	r3, [fp, #-152]
	mov	r3, #0
	str	r3, [fp, #-156]
	sub	r3, fp, #160
	mov	r1, #0
	mov	r0, r3
	bl	sigaltstack
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L7+8
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L7+12
	bl	fwrite
	mov	r3, #1
	b	.L5
.L2:
	ldr	r2, .L7+16
	ldr	r1, .L7+4
	ldr	r0, .L7+20
	bl	printf
	ldr	r3, .L7+24
	str	r3, [fp, #-148]
	mov	r3, #134217728
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #10
	bl	sigaction
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L7+8
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L7+28
	bl	fwrite
	mov	r3, #1
	b	.L5
.L4:
	mov	r0, #10
	bl	raise
	mov	r3, #0
.L5:
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC3
	.word	Stack
	.word	stderr
	.word	.LC0
	.word	Stack+8192
	.word	.LC1
	.word	Handle
	.word	.LC2
	.size	main, .-main
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Got signal %d with SP=%p\012\000"
	.align	2
.LC5:
	.ascii	"Handler not running on alternate stack\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Handle, %function
Handle:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	sub	r3, fp, #16
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	mov	r1, r3
	ldr	r0, .L13
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r2, .L13+4
	cmp	r3, r2
	bcc	.L10
	ldr	r3, [fp, #-8]
	ldr	r2, .L13+8
	cmp	r3, r2
	bls	.L12
.L10:
	ldr	r3, .L13+12
	ldr	r3, [r3]
	mov	r2, #39
	mov	r1, #1
	ldr	r0, .L13+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L12:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC4
	.word	Stack
	.word	Stack+8192
	.word	stderr
	.word	.LC5
	.size	Handle, .-Handle
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
