	.file	"extr_move.c_cmd_move_to_scratchpad.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Can't move an empty workspace to the scratchpad"
	.text
	.p2align 4
	.type	cmd_move_to_scratchpad, @function
cmd_move_to_scratchpad:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR config[rip]
	mov	rcx, QWORD PTR N_WORKSPACE[rip]
	mov	rdx, QWORD PTR 16[rax]
	cmp	QWORD PTR [rdx], rcx
	je	.L2
	mov	rbp, QWORD PTR 8[rax]
.L3:
	mov	rdi, rbp
	call	container_is_floating_or_child@PLT
	test	rax, rax
	jne	.L6
	mov	eax, DWORD PTR 8[rbp]
	test	eax, eax
	je	.L15
.L7:
	cmp	QWORD PTR 0[rbp], 0
	jne	.L16
.L8:
	mov	edi, DWORD PTR CMD_SUCCESS[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	esi, esi
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	cmd_results_new@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rax, rbp
	mov	rbp, QWORD PTR 16[rbp]
	test	rbp, rbp
	jne	.L6
	mov	rbp, rax
	mov	eax, DWORD PTR 8[rbp]
	test	eax, eax
	jne	.L7
.L15:
	xor	esi, esi
	mov	rdi, rbp
	call	root_scratchpad_add_container@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, rbp
	call	root_scratchpad_hide@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rbx, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rbx]
	cmp	QWORD PTR [rax], 0
	je	.L17
	mov	rdi, rbx
	call	workspace_wrap_children@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR L_HORIZ[rip]
	mov	DWORD PTR [rbx], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, DWORD PTR CMD_INVALID[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	lea	rsi, .LC0[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	cmd_results_new@PLT
	.cfi_endproc
.LFE0:
	.size	cmd_move_to_scratchpad, .-cmd_move_to_scratchpad
	.comm	config,8,8
	.comm	N_WORKSPACE,8,8
	.comm	L_HORIZ,4,4
	.comm	CMD_SUCCESS,4,4
	.comm	CMD_INVALID,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_move.c_cmd_move_to_scratchpad.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Can't move an empty workspace to the scratchpad\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmd_move_to_scratchpad, %function
cmd_move_to_scratchpad:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L21
	ldr	r2, .L21+4
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r3, #8]
	push	{r4, r5, r6, lr}
	ldr	r1, [r1]
	cmp	r1, r2
	beq	.L2
	ldr	r4, [r3, #4]
.L3:
	mov	r0, r4
	bl	container_is_floating_or_child
	cmp	r0, #0
	bne	.L6
	ldr	r1, [r4, #4]
	cmp	r1, #0
	beq	.L18
.L7:
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L19
.L8:
	pop	{r4, r5, r6, lr}
	ldr	r3, .L21+8
	mov	r1, #0
	ldr	r0, [r3]
	b	cmd_results_new
.L6:
	mov	r3, r4
	ldr	r4, [r4, #8]
	cmp	r4, #0
	bne	.L6
	mov	r4, r3
	ldr	r1, [r4, #4]
	cmp	r1, #0
	bne	.L7
.L18:
	mov	r0, r4
	bl	root_scratchpad_add_container
	b	.L8
.L19:
	mov	r0, r4
	bl	root_scratchpad_hide
	b	.L8
.L2:
	ldr	r5, [r3]
	ldr	r3, [r5, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L20
	mov	r0, r5
	bl	workspace_wrap_children
	ldr	r3, .L21+12
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [r5]
	b	.L3
.L20:
	ldr	r3, .L21+16
	ldr	r1, .L21+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, lr}
	b	cmd_results_new
.L22:
	.align	2
.L21:
	.word	config
	.word	N_WORKSPACE
	.word	CMD_SUCCESS
	.word	L_HORIZ
	.word	CMD_INVALID
	.word	.LC0
	.size	cmd_move_to_scratchpad, .-cmd_move_to_scratchpad
	.comm	config,4,4
	.comm	N_WORKSPACE,4,4
	.comm	L_HORIZ,4,4
	.comm	CMD_SUCCESS,4,4
	.comm	CMD_INVALID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
