	.file	"extr_spu_task_sync.c_process_context_switch.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	process_context_switch, @function
process_context_switch:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 12[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	call	prepare_cached_spu_info@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L11
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.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
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rcx, r13
	lea	rdx, 16[rsp]
	lea	rsi, 12[rsp]
	mov	rdi, rbx
	call	get_exec_dcookie_and_offset@PLT
	mov	r13, rax
	test	rax, rax
	je	.L3
	cmp	QWORD PTR 16[rsp], 0
	jne	.L4
.L3:
	mov	r12d, DWORD PTR ENOENT[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
.L2:
	endbr64
	xor	ebp, ebp
	lea	rdi, buffer_lock[rip]
	mov	rsi, rbp
	call	spin_lock_irqsave@PLT
	mov	esi, DWORD PTR [rbx]
	mov	edi, DWORD PTR ESCAPE_CODE[rip]
	call	spu_buff_add@PLT
	mov	esi, DWORD PTR [rbx]
	mov	edi, DWORD PTR SPU_CTX_SWITCH_CODE[rip]
	call	spu_buff_add@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, edi
	call	spu_buff_add@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR [rbx]
	call	spu_buff_add@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR [rbx]
	call	spu_buff_add@PLT
	mov	esi, DWORD PTR [rbx]
	mov	edi, r13d
	call	spu_buff_add@PLT
	mov	esi, DWORD PTR [rbx]
	mov	edi, DWORD PTR 16[rsp]
	call	spu_buff_add@PLT
	mov	esi, DWORD PTR [rbx]
	mov	edi, DWORD PTR 12[rsp]
	call	spu_buff_add@PLT
	mov	edx, DWORD PTR [rbx]
	mov	rsi, rbp
	mov	rax, QWORD PTR spu_buff[rip]
	lea	rdi, buffer_lock[rip]
	mov	DWORD PTR [rax+rdx*4], 1
	call	spin_unlock_irqrestore@PLT
	xor	eax, eax
	call	smp_wmb@PLT
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	process_context_switch, .-process_context_switch
	.comm	spu_buff,8,8
	.comm	buffer_lock,4,4
	.comm	SPU_CTX_SWITCH_CODE,4,4
	.comm	ESCAPE_CODE,4,4
	.comm	ENOENT,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_spu_task_sync.c_process_context_switch.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_context_switch, %function
process_context_switch:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, lr}
	ldr	r2, .L13
	sub	sp, sp, #20
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	mov	r6, r0
	mov	r4, r1
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	bl	prepare_cached_spu_info
	subs	r5, r0, #0
	beq	.L11
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L11:
	mov	r3, r4
	mov	r0, r6
	add	r2, sp, #8
	add	r1, sp, #4
	bl	get_exec_dcookie_and_offset
	subs	r4, r0, #0
	beq	.L3
	ldr	r3, [sp, #8]
	cmp	r3, #0
	bne	.L4
.L3:
	ldr	r3, .L13+4
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L1
.L4:
.L2:
	mov	r7, #0
	ldr	r0, .L13+8
	mov	r1, r7
	bl	spin_lock_irqsave
	ldr	r3, .L13+12
	ldr	r1, [r6]
	ldr	r0, [r3]
	bl	spu_buff_add
	ldr	r3, .L13+16
	ldr	r1, [r6]
	ldr	r0, [r3]
	bl	spu_buff_add
	ldr	r1, [r6]
	mov	r0, r1
	bl	spu_buff_add
	ldr	r1, [r6]
	ldr	r0, [r6, #4]
	bl	spu_buff_add
	ldr	r1, [r6]
	ldr	r0, [r6, #8]
	bl	spu_buff_add
	ldr	r1, [r6]
	mov	r0, r4
	bl	spu_buff_add
	ldr	r1, [r6]
	ldr	r0, [sp, #8]
	bl	spu_buff_add
	ldr	r1, [r6]
	ldr	r0, [sp, #4]
	bl	spu_buff_add
	mov	r0, #1
	ldr	r3, .L13+20
	ldr	r2, [r6]
	ldr	r3, [r3]
	mov	r1, r7
	str	r0, [r3, r2, lsl #2]
	ldr	r0, .L13+8
	bl	spin_unlock_irqrestore
	bl	smp_wmb
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	ENOENT
	.word	buffer_lock
	.word	ESCAPE_CODE
	.word	SPU_CTX_SWITCH_CODE
	.word	spu_buff
	.size	process_context_switch, .-process_context_switch
	.comm	spu_buff,4,4
	.comm	buffer_lock,4,4
	.comm	SPU_CTX_SWITCH_CODE,4,4
	.comm	ESCAPE_CODE,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
