	.file	"extr_container.c_container_set_floating.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"floating"
	.text
	.p2align 4
	.globl	container_set_floating
	.type	container_set_floating, @function
container_set_floating:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	container_is_floating@PLT
	cmp	eax, ebx
	je	.L1
	xor	eax, eax
	call	input_manager_current_seat@PLT
	mov	r13, QWORD PTR 56[rbp]
	mov	r12, rax
	test	ebx, ebx
	jne	.L19
	cmp	QWORD PTR 40[rbp], 0
	jne	.L20
.L8:
	mov	rdi, rbp
	call	container_detach@PLT
	mov	rsi, r13
	mov	rdi, r12
	call	seat_get_focus_inactive_tiling@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L9
	mov	edx, 1
	mov	rsi, rbp
	mov	rdi, rax
	call	container_add_sibling@PLT
	mov	eax, DWORD PTR 36[rbx]
	mov	DWORD PTR 36[rbp], eax
	mov	eax, DWORD PTR 32[rbx]
	mov	DWORD PTR 32[rbp], eax
.L10:
	mov	rdi, QWORD PTR 24[rbp]
	test	rdi, rdi
	je	.L12
	mov	esi, 1
	call	view_set_tiled@PLT
	mov	rax, QWORD PTR 24[rbp]
	cmp	QWORD PTR [rax], 0
	jne	.L21
.L12:
	mov	QWORD PTR 8[rbp], 0
	mov	QWORD PTR 0[rbp], 0
.L7:
	mov	rdi, rbp
	call	container_end_mouse_operation@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	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
	jmp	ipc_event_window@PLT
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rdi, rbp
	mov	r12, QWORD PTR 48[rbp]
	call	container_detach@PLT
	mov	rdi, r13
	mov	rsi, rbp
	call	workspace_add_floating@PLT
	mov	rdi, QWORD PTR 24[rbp]
	test	rdi, rdi
	je	.L5
	xor	esi, esi
	call	view_set_tiled@PLT
	mov	rax, QWORD PTR 24[rbp]
	cmp	QWORD PTR [rax], 0
	je	.L5
	mov	eax, DWORD PTR B_CSD[rip]
	mov	DWORD PTR 20[rbp], eax
.L5:
	mov	rdi, rbp
	call	container_floating_set_default_size@PLT
	mov	rdi, rbp
	call	container_floating_resize_and_center@PLT
	test	r12, r12
	je	.L7
	mov	rdi, r12
	call	container_reap_empty@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L21:
	.cfi_restore_state
	mov	eax, DWORD PTR 16[rbp]
	mov	DWORD PTR 20[rbp], eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, rbp
	call	root_scratchpad_remove_container@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rsi, rbp
	mov	rdi, r13
	call	workspace_add_tiling@PLT
	mov	eax, DWORD PTR 4[r13]
	mov	DWORD PTR 36[rbp], eax
	mov	eax, DWORD PTR 0[r13]
	mov	DWORD PTR 32[rbp], eax
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	container_set_floating, .-container_set_floating
	.comm	B_CSD,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_container.c_container_set_floating.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"floating\000"
	.text
	.align	2
	.global	container_set_floating
	.syntax unified
	.arm
	.fpu softvfp
	.type	container_set_floating, %function
container_set_floating:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r4, r0
	bl	container_is_floating
	cmp	r0, r5
	popeq	{r4, r5, r6, pc}
	bl	input_manager_current_seat
	cmp	r5, #0
	ldr	r6, [r4, #36]
	mov	r5, r0
	bne	.L28
	ldr	r3, [r4, #28]
	cmp	r3, #0
	bne	.L29
.L8:
	mov	r0, r4
	bl	container_detach
	mov	r0, r5
	mov	r1, r6
	bl	seat_get_focus_inactive_tiling
	subs	r5, r0, #0
	beq	.L9
	mov	r2, #1
	mov	r1, r4
	bl	container_add_sibling
	ldr	r2, [r5, #24]
	ldr	r3, [r5, #20]
	str	r2, [r4, #24]
	str	r3, [r4, #20]
.L10:
	ldr	r0, [r4, #16]
	cmp	r0, #0
	beq	.L12
	mov	r1, #1
	bl	view_set_tiled
	ldr	r3, [r4, #16]
	ldr	r3, [r3]
	cmp	r3, #0
	ldrne	r3, [r4, #8]
	strne	r3, [r4, #12]
.L12:
	mov	r3, #0
	str	r3, [r4, #4]
	str	r3, [r4]
.L7:
	mov	r0, r4
	bl	container_end_mouse_operation
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	ldr	r1, .L30
	b	ipc_event_window
.L28:
	mov	r0, r4
	ldr	r5, [r4, #32]
	bl	container_detach
	mov	r1, r4
	mov	r0, r6
	bl	workspace_add_floating
	ldr	r0, [r4, #16]
	cmp	r0, #0
	beq	.L5
	mov	r1, #0
	bl	view_set_tiled
	ldr	r3, [r4, #16]
	ldr	r3, [r3]
	cmp	r3, #0
	ldrne	r3, .L30+4
	ldrne	r3, [r3]
	strne	r3, [r4, #12]
.L5:
	mov	r0, r4
	bl	container_floating_set_default_size
	mov	r0, r4
	bl	container_floating_resize_and_center
	cmp	r5, #0
	beq	.L7
	mov	r0, r5
	bl	container_reap_empty
	b	.L7
.L29:
	mov	r0, r4
	bl	root_scratchpad_remove_container
	b	.L8
.L9:
	mov	r1, r4
	mov	r0, r6
	bl	workspace_add_tiling
	ldr	r2, [r6, #4]
	ldr	r3, [r6]
	str	r2, [r4, #24]
	str	r3, [r4, #20]
	b	.L10
.L31:
	.align	2
.L30:
	.word	.LC0
	.word	B_CSD
	.size	container_set_floating, .-container_set_floating
	.comm	B_CSD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
