	.file	"extr_focus.c_focus_mode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"floating"
.LC1:
	.string	"tiling"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Failed to find a %s container in workspace"
	.text
	.p2align 4
	.type	focus_mode, @function
focus_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	mov	rsi, rdi
	mov	rdi, rbp
	test	edx, edx
	je	.L2
	call	seat_get_focus_inactive_floating@PLT
	lea	rdx, .LC0[rip]
	mov	rsi, rax
	test	rax, rax
	je	.L4
.L3:
	mov	rdi, rbp
	call	seat_set_focus_container@PLT
	mov	rdi, rbp
	call	seat_consider_warp_to_focus@PLT
	mov	edi, DWORD PTR CMD_SUCCESS[rip]
	xor	esi, esi
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	cmd_results_new@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	call	seat_get_focus_inactive_tiling@PLT
	mov	rsi, rax
	test	rax, rax
	jne	.L3
	lea	rdx, .LC1[rip]
.L4:
	mov	edi, DWORD PTR CMD_FAILURE[rip]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	cmd_results_new@PLT
	.cfi_endproc
.LFE0:
	.size	focus_mode, .-focus_mode
	.comm	CMD_SUCCESS,4,4
	.comm	CMD_FAILURE,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_focus.c_focus_mode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"tiling\000"
	.align	2
.LC1:
	.ascii	"floating\000"
	.align	2
.LC2:
	.ascii	"Failed to find a %s container in workspace\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	focus_mode, %function
focus_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r1
	cmp	r2, #0
	mov	r1, r0
	mov	r0, r4
	beq	.L2
	bl	seat_get_focus_inactive_floating
	subs	r1, r0, #0
	beq	.L10
.L3:
	mov	r0, r4
	bl	seat_set_focus_container
	mov	r0, r4
	bl	seat_consider_warp_to_focus
	pop	{r4, lr}
	ldr	r3, .L11
	mov	r1, #0
	ldr	r0, [r3]
	b	cmd_results_new
.L2:
	bl	seat_get_focus_inactive_tiling
	subs	r1, r0, #0
	bne	.L3
	pop	{r4, lr}
	ldr	r3, .L11+4
	ldr	r2, .L11+8
	ldr	r0, [r3]
	ldr	r1, .L11+12
	b	cmd_results_new
.L10:
	ldr	r3, .L11+4
	ldr	r2, .L11+16
	ldr	r0, [r3]
	ldr	r1, .L11+12
	pop	{r4, lr}
	b	cmd_results_new
.L12:
	.align	2
.L11:
	.word	CMD_SUCCESS
	.word	CMD_FAILURE
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.size	focus_mode, .-focus_mode
	.comm	CMD_SUCCESS,4,4
	.comm	CMD_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
