	.file	"extr_process.c_ssbs_thread_switch.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ssbs_thread_switch, @function
ssbs_thread_switch:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	task_pt_regs@PLT
	mov	edi, DWORD PTR 0[rbp]
	and	edi, DWORD PTR PF_KTHREAD[rip]
	mov	r12, rax
	call	unlikely@PLT
	test	rax, rax
	je	.L11
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	call	arm64_get_ssbd_state@PLT
	cmp	rax, QWORD PTR ARM64_SSBD_FORCE_ENABLE[rip]
	je	.L1
	mov	esi, DWORD PTR TIF_SSBD[rip]
	mov	rdi, rbp
	call	test_tsk_thread_flag@PLT
	test	rax, rax
	jne	.L1
	mov	rdi, r12
	call	compat_user_mode@PLT
	mov	rdi, r12
	test	rax, rax
	je	.L5
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	set_compat_ssbs_bit@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	call	user_mode@PLT
	test	rax, rax
	je	.L1
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	set_ssbs_bit@PLT
	.cfi_endproc
.LFE0:
	.size	ssbs_thread_switch, .-ssbs_thread_switch
	.comm	TIF_SSBD,4,4
	.comm	PF_KTHREAD,4,4
	.comm	ARM64_SSBD_FORCE_ENABLE,8,8
	.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_process.c_ssbs_thread_switch.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssbs_thread_switch, %function
ssbs_thread_switch:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	task_pt_regs
	ldr	r3, .L11
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r5, r0
	and	r0, r2, r3
	bl	unlikely
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	bl	arm64_get_ssbd_state
	ldr	r3, .L11+4
	ldr	r3, [r3]
	cmp	r0, r3
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L11+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	test_tsk_thread_flag
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	mov	r0, r5
	bl	compat_user_mode
	cmp	r0, #0
	mov	r0, r5
	beq	.L5
	pop	{r4, r5, r6, lr}
	b	set_compat_ssbs_bit
.L5:
	bl	user_mode
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	set_ssbs_bit
.L12:
	.align	2
.L11:
	.word	PF_KTHREAD
	.word	ARM64_SSBD_FORCE_ENABLE
	.word	TIF_SSBD
	.size	ssbs_thread_switch, .-ssbs_thread_switch
	.comm	TIF_SSBD,4,4
	.comm	PF_KTHREAD,4,4
	.comm	ARM64_SSBD_FORCE_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
