	.file	"extr_signal.c_ia64_do_signal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ia64_do_signal
	.type	ia64_do_signal, @function
ia64_do_signal:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r13, QWORD PTR [rdi]
	mov	QWORD PTR 8[rsp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	user_mode@PLT
	test	eax, eax
	jne	.L52
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L53
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L52:
	.cfi_restore_state
	xor	eax, eax
	call	current_thread_info@PLT
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR TS_RESTORE_SIGMASK[rip], eax
	mov	rax, QWORD PTR current[rip]
	jne	.L47
	add	rax, 4
.L47:
	mov	QWORD PTR [rsp], rax
	mov	r12, QWORD PTR 8[rsp]
	lea	r15, 16[rsp]
	lea	r14, 20[rsp]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L56:
	cmp	QWORD PTR 8[rsp], 0
	je	.L6
	test	r13, r13
	js	.L54
	xor	r12d, r12d
.L6:
	test	ebp, ebp
	jle	.L7
.L57:
	mov	rdi, r12
	call	unlikely@PLT
	test	rax, rax
	je	.L8
	cmp	r13, 130
	je	.L9
	jg	.L10
	cmp	r13, 128
	je	.L50
	cmp	r13, 129
	jne	.L8
	mov	eax, DWORD PTR 16[rsp]
	test	DWORD PTR SA_RESTART[rip], eax
	je	.L50
.L9:
	mov	rdi, rbx
	call	IS_IA32_PROCESS@PLT
	mov	r12, rax
	test	rax, rax
	je	.L17
	mov	rax, QWORD PTR 8[rbx]
	sub	DWORD PTR 16[rbx], 2
	xor	r12d, r12d
	mov	QWORD PTR [rbx], rax
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rcx, QWORD PTR [rsp]
	mov	r8, rbx
	mov	rdx, r14
	mov	rsi, r15
	mov	edi, ebp
	call	handle_signal@PLT
	test	rax, rax
	jne	.L55
.L18:
	xor	ecx, ecx
	mov	rdi, r14
	mov	rdx, rbx
	mov	rsi, r15
	call	get_signal_to_deliver@PLT
	mov	rdi, rbx
	mov	ebp, eax
	call	IS_IA32_PROCESS@PLT
	test	rax, rax
	jne	.L56
	cmp	QWORD PTR 24[rbx], -1
	cmovne	r12, rax
	test	ebp, ebp
	jg	.L57
.L7:
	test	r12, r12
	je	.L21
	lea	rax, -128[r13]
	cmp	rax, 3
	ja	.L21
	mov	rdi, rbx
	call	IS_IA32_PROCESS@PLT
	test	rax, rax
	je	.L23
	sub	DWORD PTR 16[rbx], 2
	mov	eax, 0
	cmp	r13, 128
	cmovne	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR [rbx], rax
.L21:
	xor	eax, eax
	call	current_thread_info@PLT
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR TS_RESTORE_SIGMASK[rip], eax
	je	.L1
	xor	eax, eax
	call	current_thread_info@PLT
	mov	rsi, QWORD PTR current[rip]
	xor	edx, edx
	mov	r8, rax
	mov	eax, DWORD PTR TS_RESTORE_SIGMASK[rip]
	not	eax
	and	DWORD PTR [r8], eax
	mov	edi, DWORD PTR SIG_SETMASK[rip]
	call	sigprocmask@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	cmp	r13, 131
	jne	.L8
.L50:
	mov	rdi, rbx
	call	IS_IA32_PROCESS@PLT
	test	rax, rax
	je	.L15
	mov	eax, DWORD PTR EINTR[rip]
	neg	eax
	cdqe
.L16:
	mov	QWORD PTR [rbx], rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L54:
	neg	r13
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	movsx	rax, DWORD PTR EINTR[rip]
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, rbx
	call	ia64_decrement_ip@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L55:
	xor	eax, eax
	call	current_thread_info@PLT
	mov	r8, rax
	mov	eax, DWORD PTR TS_RESTORE_SIGMASK[rip]
	not	eax
	and	DWORD PTR [r8], eax
	jmp	.L1
.L23:
	mov	rdi, rbx
	call	ia64_decrement_ip@PLT
	cmp	r13, 128
	jne	.L21
	mov	eax, DWORD PTR __NR_restart_syscall[rip]
	mov	DWORD PTR 20[rbx], eax
	jmp	.L21
.L53:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ia64_do_signal, .-ia64_do_signal
	.comm	current,8,8
	.comm	__NR_restart_syscall,4,4
	.comm	TS_RESTORE_SIGMASK,4,4
	.comm	SIG_SETMASK,4,4
	.comm	SA_RESTART,4,4
	.comm	EINTR,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_signal.c_ia64_do_signal.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ia64_do_signal
	.syntax unified
	.arm
	.fpu softvfp
	.type	ia64_do_signal, %function
ia64_do_signal:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L53
	sub	sp, sp, #36
	mov	r4, r0
	mov	r8, r1
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r7, [r0]
	bl	user_mode
	cmp	r0, #0
	bne	.L47
.L1:
	ldr	r3, .L53
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L48
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L47:
	bl	current_thread_info
	ldr	r10, .L53+4
	ldr	r2, [r0]
	ldr	r3, [r10]
	mov	r6, r8
	tst	r2, r3
	ldr	r3, .L53+8
	ldr	fp, .L53+12
	ldr	r9, [r3]
	str	r3, [sp, #12]
	addeq	r9, r9, #4
	b	.L18
.L51:
	cmp	r8, #0
	beq	.L6
	cmp	r7, #0
	rsblt	r7, r7, #0
	movge	r6, #0
.L6:
	cmp	r5, #0
	ble	.L7
.L52:
	mov	r0, r6
	bl	unlikely
	cmp	r0, #0
	bne	.L49
.L8:
	mov	r0, r5
	mov	r3, r9
	str	r4, [sp]
	add	r2, sp, #24
	add	r1, sp, #20
	bl	handle_signal
	cmp	r0, #0
	bne	.L50
.L18:
	mov	r3, #0
	mov	r2, r4
	add	r1, sp, #20
	add	r0, sp, #24
	bl	get_signal_to_deliver
	mov	r5, r0
	mov	r0, r4
	bl	IS_IA32_PROCESS
	cmp	r0, #0
	bne	.L51
	ldr	r3, [r4, #16]
	cmn	r3, #1
	movne	r6, #0
	cmp	r5, #0
	bgt	.L52
.L7:
	cmp	r6, #0
	beq	.L21
	sub	r3, r7, #128
	cmp	r3, #3
	bhi	.L21
	mov	r0, r4
	bl	IS_IA32_PROCESS
	cmp	r0, #0
	beq	.L23
	ldmib	r4, {r2, r3}
	cmp	r7, #128
	sub	r3, r3, #2
	str	r3, [r4, #8]
	moveq	r3, #0
	str	r2, [r4]
	streq	r3, [r4]
.L21:
	bl	current_thread_info
	ldr	r3, [r10]
	ldr	r2, [r0]
	tst	r2, r3
	beq	.L1
	bl	current_thread_info
	ldr	r1, [r10]
	ldr	r3, [r0]
	ldr	r2, .L53+16
	bic	r3, r3, r1
	str	r3, [r0]
	ldr	r3, [sp, #12]
	ldr	r0, [r2]
	ldr	r1, [r3]
	mov	r2, #0
	bl	sigprocmask
	b	.L1
.L49:
	sub	r3, r7, #128
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L8
.L10:
	.word	.L45
	.word	.L12
	.word	.L11
	.word	.L45
.L12:
	ldr	r2, [sp, #20]
	ldr	r3, [fp]
	tst	r2, r3
	beq	.L45
.L11:
	mov	r0, r4
	bl	IS_IA32_PROCESS
	subs	r6, r0, #0
	beq	.L17
	ldmib	r4, {r2, r3}
	sub	r3, r3, #2
	mov	r6, #0
	str	r3, [r4, #8]
	str	r2, [r4]
	b	.L8
.L45:
	mov	r0, r4
	bl	IS_IA32_PROCESS
	ldr	r3, .L53+20
	cmp	r0, #0
	ldr	r3, [r3]
	rsbne	r3, r3, #0
	str	r3, [r4]
	b	.L8
.L17:
	mov	r0, r4
	bl	ia64_decrement_ip
	b	.L8
.L50:
	bl	current_thread_info
	ldr	r2, [r10]
	ldr	r3, [r0]
	bic	r3, r3, r2
	str	r3, [r0]
	b	.L1
.L23:
	mov	r0, r4
	bl	ia64_decrement_ip
	cmp	r7, #128
	ldreq	r3, .L53+24
	ldreq	r3, [r3]
	streq	r3, [r4, #12]
	b	.L21
.L48:
	bl	__stack_chk_fail
.L54:
	.align	2
.L53:
	.word	.LC0
	.word	TS_RESTORE_SIGMASK
	.word	current
	.word	SA_RESTART
	.word	SIG_SETMASK
	.word	EINTR
	.word	__NR_restart_syscall
	.size	ia64_do_signal, .-ia64_do_signal
	.comm	current,4,4
	.comm	__NR_restart_syscall,4,4
	.comm	TS_RESTORE_SIGMASK,4,4
	.comm	SIG_SETMASK,4,4
	.comm	SA_RESTART,4,4
	.comm	EINTR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
