	.file	"141342.c"
	.intel_syntax noprefix
	.text
	.local	ctx
	.comm	ctx,200,32
	.local	locked
	.comm	locked,4,4
	.section	.rodata
.LC0:
	.string	"Catch a SIGTRAP\n"
	.text
	.type	handle_sig, @function
handle_sig:
.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, 32
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	cmp	DWORD PTR -4[rbp], 5
	jne	.L3
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	DWORD PTR locked[rip], 0
	mov	esi, 2
	lea	rdi, ctx[rip]
	call	longjmp@PLT
.L3:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	handle_sig, .-handle_sig
	.section	.rodata
.LC1:
	.string	"sigaction error: "
	.text
	.globl	register_sig
	.type	register_sig, @function
register_sig:
.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	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 5
	call	sigaction@PLT
	test	eax, eax
	jns	.L5
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L6
.L5:
	mov	eax, 1
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	register_sig, .-register_sig
	.section	.rodata
.LC2:
	.string	"Continue ..."
	.text
	.globl	testing
	.type	testing, @function
testing:
.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	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR locked[rip], 1
	lea	rdi, ctx[rip]
	call	_setjmp@PLT
	endbr64
	test	eax, eax
	jne	.L9
	mov	edi, 5
	call	raise@PLT
	jmp	.L13
.L9:
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L13:
	nop
.L11:
	mov	eax, DWORD PTR locked[rip]
	test	eax, eax
	jne	.L11
	mov	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	testing, .-testing
	.section	.rodata
.LC3:
	.string	"\nPID = %d\n"
.LC4:
	.string	"Exit"
	.text
	.globl	main
	.type	main, @function
main:
.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, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -160[rbp]
	mov	edx, 152
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -24[rbp], 4
	lea	rax, handle_sig[rip]
	mov	QWORD PTR -160[rbp], rax
	call	getpid@PLT
	mov	DWORD PTR -164[rbp], eax
	mov	eax, DWORD PTR -164[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -160[rbp]
	mov	rdi, rax
	call	register_sig
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -164[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	testing
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"141342.c"
	.text
	.local	ctx
	.comm	ctx,392,8
	.local	locked
	.comm	locked,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Catch a SIGTRAP\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_sig, %function
handle_sig:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	bne	.L3
	ldr	r3, .L4
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L4+4
	bl	fwrite
	ldr	r3, .L4+8
	mov	r2, #0
	str	r2, [r3]
	mov	r1, #2
	ldr	r0, .L4+12
	bl	longjmp
.L3:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	stdout
	.word	.LC0
	.word	locked
	.word	ctx
	.size	handle_sig, .-handle_sig
	.section	.rodata
	.align	2
.LC1:
	.ascii	"sigaction error: \000"
	.text
	.align	2
	.global	register_sig
	.syntax unified
	.arm
	.fpu softvfp
	.type	register_sig, %function
register_sig:
	@ 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]
	mov	r2, #0
	ldr	r1, [fp, #-8]
	mov	r0, #5
	bl	sigaction
	mov	r3, r0
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L9
	bl	perror
	mvn	r3, #0
	b	.L8
.L7:
	mov	r3, #1
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC1
	.size	register_sig, .-register_sig
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Continue ...\000"
	.text
	.align	2
	.global	testing
	.syntax unified
	.arm
	.fpu softvfp
	.type	testing, %function
testing:
	@ 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, .L18
	mov	r2, #1
	str	r2, [r3]
	ldr	r0, .L18+4
	bl	_setjmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	mov	r0, #5
	bl	raise
	b	.L17
.L13:
	ldr	r0, .L18+8
	bl	puts
.L17:
	nop
.L15:
	ldr	r3, .L18
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L15
	mov	r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	locked
	.word	ctx
	.word	.LC2
	.size	testing, .-testing
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\012PID = %d\012\000"
	.align	2
.LC4:
	.ascii	"Exit\000"
	.align	2
.LC5:
	.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
	str	r0, [fp, #-160]
	str	r1, [fp, #-164]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #148
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #4
	str	r3, [fp, #-16]
	ldr	r3, .L23+4
	str	r3, [fp, #-148]
	bl	getpid
	str	r0, [fp, #-152]
	ldr	r1, [fp, #-152]
	ldr	r0, .L23+8
	bl	printf
	sub	r3, fp, #148
	mov	r0, r3
	bl	register_sig
	sub	r3, fp, #148
	mov	r1, r3
	ldr	r0, [fp, #-152]
	bl	testing
	ldr	r0, .L23+12
	bl	puts
	mov	r3, #0
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC5
	.word	handle_sig
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
