	.file	"extr_protection_keys.c_setup_sigsegv_handler.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	setup_sigsegv_handler
	.type	setup_sigsegv_handler, @function
setup_sigsegv_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	esi, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 80
	.cfi_def_cfa_offset 112
	mov	edi, DWORD PTR SIG_SETMASK[rip]
	mov	r13d, DWORD PTR SIGSEGV[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR signal_handler[rip]
	lea	rdx, 12[rsp]
	mov	rbp, rsp
	mov	QWORD PTR 24[rsp], 0
	lea	r12, 32[rsp]
	mov	DWORD PTR 16[rsp], eax
	call	sigprocmask@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	pkey_assert@PLT
	mov	rdx, r12
	mov	rsi, rbp
	mov	edi, r13d
	mov	eax, DWORD PTR SA_SIGINFO[rip]
	mov	QWORD PTR [rsp], 0
	mov	DWORD PTR 8[rsp], eax
	call	sigaction@PLT
	mov	edi, DWORD PTR SIGALRM[rip]
	mov	rdx, r12
	mov	rsi, rbp
	call	sigaction@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	pkey_assert@PLT
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 80
	.cfi_remember_state
	.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
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	setup_sigsegv_handler, .-setup_sigsegv_handler
	.comm	signal_handler,4,4
	.comm	SIG_SETMASK,4,4
	.comm	SIGSEGV,4,4
	.comm	SIGALRM,4,4
	.comm	SA_SIGINFO,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_protection_keys.c_setup_sigsegv_handler.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	setup_sigsegv_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_sigsegv_handler, %function
setup_sigsegv_handler:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, #0
	ldr	r3, .L6
	ldr	r2, .L6+4
	sub	sp, sp, #52
	ldr	ip, [r3]
	ldr	lr, .L6+8
	ldr	r3, .L6+12
	mov	r1, r4
	ldr	r0, [r2]
	add	r2, sp, #12
	ldr	lr, [lr]
	str	lr, [sp, #44]
	mov	lr,#0
	ldr	r5, [r3]
	str	ip, [sp, #16]
	str	r4, [sp, #20]
	bl	sigprocmask
	clz	r0, r0
	lsr	r0, r0, #5
	bl	pkey_assert
	ldr	r3, .L6+16
	add	r1, sp, #4
	ldr	r3, [r3]
	add	r2, sp, #24
	mov	r0, r5
	str	r3, [sp, #8]
	str	r4, [sp, #4]
	bl	sigaction
	ldr	r3, .L6+20
	add	r2, sp, #24
	ldr	r0, [r3]
	add	r1, sp, #4
	bl	sigaction
	clz	r0, r0
	lsr	r0, r0, #5
	bl	pkey_assert
	ldr	r3, .L6+8
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	signal_handler
	.word	SIG_SETMASK
	.word	.LC0
	.word	SIGSEGV
	.word	SA_SIGINFO
	.word	SIGALRM
	.size	setup_sigsegv_handler, .-setup_sigsegv_handler
	.comm	signal_handler,4,4
	.comm	SIG_SETMASK,4,4
	.comm	SIGSEGV,4,4
	.comm	SIGALRM,4,4
	.comm	SA_SIGINFO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
