	.file	"extr_selection.c_paste_selection.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	paste_selection
	.type	paste_selection, @function
paste_selection:
.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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	lea	r13, 12[r12]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR current[rip]
	mov	r15, QWORD PTR 16[rdi]
	mov	edi, DWORD PTR wait[rip]
	call	DECLARE_WAITQUEUE@PLT
	xor	eax, eax
	call	acquire_console_sem@PLT
	xor	eax, eax
	call	poke_blanked_console@PLT
	xor	eax, eax
	call	release_console_sem@PLT
	mov	rdi, r12
	call	tty_ldisc_ref_wait@PLT
	lea	rsi, wait[rip]
	mov	rdi, r15
	mov	r14, rax
	call	add_wait_queue@PLT
	cmp	QWORD PTR sel_buffer[rip], 0
	jne	.L2
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR sel_buffer_lth[rip]
	mov	esi, DWORD PTR 8[r12]
	sub	edi, ebx
	call	min@PLT
	movsx	rsi, ebx
	xor	edx, edx
	mov	rdi, r12
	mov	ebp, eax
	mov	rax, QWORD PTR [r12]
	add	rsi, QWORD PTR sel_buffer[rip]
	mov	ecx, ebp
	add	ebx, ebp
	mov	rax, QWORD PTR [rax]
	call	[QWORD PTR [rax]]
	cmp	QWORD PTR sel_buffer[rip], 0
	je	.L5
.L2:
	cmp	DWORD PTR sel_buffer_lth[rip], ebx
	jle	.L5
	mov	edi, DWORD PTR TASK_INTERRUPTIBLE[rip]
	call	set_current_state@PLT
	mov	edi, DWORD PTR TTY_THROTTLED[rip]
	mov	rsi, r13
	call	test_bit@PLT
	test	rax, rax
	je	.L3
	xor	eax, eax
	call	schedule@PLT
	cmp	QWORD PTR sel_buffer[rip], 0
	jne	.L2
.L5:
	lea	rsi, wait[rip]
	mov	rdi, r15
	call	remove_wait_queue@PLT
	mov	edi, DWORD PTR TASK_RUNNING[rip]
	call	__set_current_state@PLT
	mov	rdi, r14
	call	tty_ldisc_deref@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	.cfi_endproc
.LFE0:
	.size	paste_selection, .-paste_selection
	.comm	wait,4,4
	.comm	sel_buffer_lth,4,4
	.comm	sel_buffer,8,8
	.comm	current,4,4
	.comm	TTY_THROTTLED,4,4
	.comm	TASK_RUNNING,4,4
	.comm	TASK_INTERRUPTIBLE,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_selection.c_paste_selection.c"
	.text
	.align	2
	.global	paste_selection
	.syntax unified
	.arm
	.fpu softvfp
	.type	paste_selection, %function
paste_selection:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	ldr	r3, .L14
	ldr	r4, .L14+4
	ldr	r1, [r3]
	ldr	r3, [r5, #12]
	sub	sp, sp, #12
	ldr	r0, [r4]
	mov	r7, r3
	str	r3, [sp]
	bl	DECLARE_WAITQUEUE
	bl	acquire_console_sem
	bl	poke_blanked_console
	bl	release_console_sem
	mov	r0, r5
	bl	tty_ldisc_ref_wait
	mov	r3, r0
	ldr	r6, .L14+8
	mov	r1, r4
	mov	r0, r7
	str	r3, [sp, #4]
	bl	add_wait_queue
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L5
	mov	r4, #0
	ldr	r7, .L14+12
	ldr	fp, .L14+16
	add	r9, r5, #8
	b	.L2
.L3:
	ldr	r0, [r7]
	ldr	r1, [r5, #4]
	sub	r0, r0, r4
	bl	min
	mov	r10, r0
	ldr	r3, [r5]
	ldr	r1, [r6]
	ldr	r0, [r3]
	mov	r2, r8
	mov	r3, r10
	ldr	r8, [r0]
	add	r1, r4, r1
	mov	r0, r5
	blx	r8
	ldr	r3, [r6]
	add	r4, r4, r10
	cmp	r3, #0
	beq	.L5
.L2:
	ldr	r3, [r7]
	cmp	r3, r4
	ble	.L5
	ldr	r0, [fp]
	bl	set_current_state
	ldr	r3, .L14+20
	mov	r1, r9
	ldr	r0, [r3]
	bl	test_bit
	subs	r8, r0, #0
	beq	.L3
	bl	schedule
	ldr	r3, [r6]
	cmp	r3, #0
	bne	.L2
.L5:
	ldr	r1, .L14+4
	ldr	r0, [sp]
	bl	remove_wait_queue
	ldr	r3, .L14+24
	ldr	r0, [r3]
	bl	__set_current_state
	ldr	r0, [sp, #4]
	bl	tty_ldisc_deref
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	.align	2
.L14:
	.word	current
	.word	wait
	.word	sel_buffer
	.word	sel_buffer_lth
	.word	TASK_INTERRUPTIBLE
	.word	TTY_THROTTLED
	.word	TASK_RUNNING
	.size	paste_selection, .-paste_selection
	.comm	wait,4,4
	.comm	sel_buffer_lth,4,4
	.comm	sel_buffer,4,4
	.comm	current,4,4
	.comm	TTY_THROTTLED,4,4
	.comm	TASK_RUNNING,4,4
	.comm	TASK_INTERRUPTIBLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
