	.file	"extr_kern_sig.c___pthread_testcancel.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	__pthread_testcancel
	.type	__pthread_testcancel, @function
__pthread_testcancel:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	eax, eax
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	current_thread@PLT
	mov	edi, eax
	mov	ebp, eax
	call	get_bsdthread_info@PLT
	mov	edx, DWORD PTR UT_NOTCANCELPT[rip]
	not	edx
	and	edx, DWORD PTR [rax]
	mov	DWORD PTR [rax], edx
	mov	ecx, DWORD PTR UT_CANCEL[rip]
	mov	eax, DWORD PTR UT_CANCELDISABLE[rip]
	or	eax, ecx
	or	eax, DWORD PTR UT_CANCELED[rip]
	and	edx, eax
	cmp	ecx, edx
	je	.L6
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	test	ebx, ebx
	je	.L3
	mov	edi, DWORD PTR EINTR[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	unix_syscall_return@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	edi, ebp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	thread_abort_safely@PLT
	.cfi_endproc
.LFE0:
	.size	__pthread_testcancel, .-__pthread_testcancel
	.comm	UT_NOTCANCELPT,4,4
	.comm	UT_CANCELED,4,4
	.comm	UT_CANCELDISABLE,4,4
	.comm	UT_CANCEL,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_kern_sig.c___pthread_testcancel.c"
	.text
	.align	2
	.global	__pthread_testcancel
	.syntax unified
	.arm
	.fpu softvfp
	.type	__pthread_testcancel, %function
__pthread_testcancel:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	current_thread
	mov	r5, r0
	bl	get_bsdthread_info
	ldr	r2, .L6
	ldr	r3, [r0]
	ldr	r2, [r2]
	ldr	r1, .L6+4
	bic	r2, r3, r2
	ldr	r3, .L6+8
	str	r2, [r0]
	ldr	r0, .L6+12
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r0, [r0]
	orr	r3, r1, r3
	orr	r3, r3, r0
	and	r3, r3, r2
	cmp	r1, r3
	popne	{r4, r5, r6, pc}
	cmp	r4, #0
	beq	.L3
	pop	{r4, r5, r6, lr}
	ldr	r3, .L6+16
	ldr	r0, [r3]
	b	unix_syscall_return
.L3:
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	thread_abort_safely
.L7:
	.align	2
.L6:
	.word	UT_NOTCANCELPT
	.word	UT_CANCEL
	.word	UT_CANCELDISABLE
	.word	UT_CANCELED
	.word	EINTR
	.size	__pthread_testcancel, .-__pthread_testcancel
	.comm	UT_NOTCANCELPT,4,4
	.comm	UT_CANCELED,4,4
	.comm	UT_CANCELDISABLE,4,4
	.comm	UT_CANCEL,4,4
	.comm	EINTR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
