	.file	"extr_xcb.c_monitor_active.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"primary"
.LC1:
	.string	"wid:"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Failed to find selected monitor."
	.text
	.p2align 4
	.globl	monitor_active
	.type	monitor_active, @function
monitor_active:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rdi, QWORD PTR config[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L2
	mov	rax, QWORD PTR xcb[rip]
	mov	rbx, QWORD PTR [rax]
	test	rbx, rbx
	jne	.L5
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rbx, QWORD PTR 16[rbx]
	mov	rdi, QWORD PTR config[rip]
	test	rbx, rbx
	je	.L2
.L5:
	mov	rsi, QWORD PTR [rbx]
	call	g_strcmp0@PLT
	test	rax, rax
	jne	.L3
	movdqu	xmm0, XMMWORD PTR [rbx]
	movups	XMMWORD PTR [r12], xmm0
	mov	rax, QWORD PTR 16[rbx]
	mov	QWORD PTR 16[r12], rax
	mov	eax, DWORD PTR TRUE[rip]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L31
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	call	g_strcmp0@PLT
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR xcb[rip]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L8
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L6
.L8:
	cmp	QWORD PTR 8[rax], 0
	je	.L7
	movdqu	xmm1, XMMWORD PTR [rax]
	movups	XMMWORD PTR [r12], xmm1
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR 16[r12], rax
	mov	eax, DWORD PTR TRUE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, QWORD PTR config[rip]
	lea	rsi, .LC1[rip]
	call	g_str_has_prefix@PLT
	test	rax, rax
	jne	.L9
	mov	rdi, QWORD PTR config[rip]
	mov	rbp, rsp
.L10:
	xor	edx, edx
	mov	rsi, rbp
	mov	QWORD PTR [rsp], 0
	call	g_ascii_strtoll@PLT
	mov	rdi, rax
	mov	rax, QWORD PTR [rsp]
	cmp	QWORD PTR config[rip], rax
	je	.L13
	mov	rsi, r12
	test	rdi, rdi
	js	.L14
	call	monitor_get_dimension@PLT
	test	rax, rax
	je	.L15
	mov	eax, DWORD PTR TRUE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR config[rip]
	mov	rbp, rsp
	xor	edx, edx
	mov	QWORD PTR [rsp], 0
	mov	rsi, rbp
	lea	rdi, 4[rax]
	call	g_ascii_strtoll@PLT
	mov	rdi, QWORD PTR [rsp]
	cmp	QWORD PTR config[rip], rdi
	je	.L10
	mov	rsi, r12
	mov	rdi, rax
	call	monitor_active_from_winid@PLT
	mov	r8, rax
	mov	eax, DWORD PTR TRUE[rip]
	test	r8, r8
	jne	.L1
	mov	rdi, QWORD PTR config[rip]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rdi, .LC2[rip]
	call	g_warning@PLT
.L13:
	mov	rdx, r12
	xor	esi, esi
	xor	edi, edi
	call	monitor_dimensions@PLT
	mov	eax, DWORD PTR FALSE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	call	monitor_active_from_id@PLT
	jmp	.L1
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	monitor_active, .-monitor_active
	.comm	xcb,8,8
	.comm	config,8,8
	.comm	TRUE,4,4
	.comm	FALSE,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_xcb.c_monitor_active.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"primary\000"
	.align	2
.LC1:
	.ascii	"wid:\000"
	.align	2
.LC2:
	.ascii	"Failed to find selected monitor.\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	monitor_active
	.syntax unified
	.arm
	.fpu softvfp
	.type	monitor_active, %function
monitor_active:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L33
	mov	r6, r0
	ldr	r0, [r5]
	ldr	r3, .L33+4
	sub	sp, sp, #8
	cmp	r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	beq	.L2
	ldr	r3, .L33+8
	ldr	r3, [r3]
	ldr	r4, [r3]
	cmp	r4, #0
	bne	.L5
	b	.L2
.L3:
	ldr	r4, [r4, #8]
	ldr	r0, [r5]
	cmp	r4, #0
	beq	.L2
.L5:
	ldr	r1, [r4]
	bl	g_strcmp0
	cmp	r0, #0
	bne	.L3
	ldr	r3, .L33+12
	ldm	r4, {r0, r1, r2}
	ldr	r3, [r3]
	stm	r6, {r0, r1, r2}
.L1:
	ldr	r2, .L33+4
	ldr	r1, [r2]
	ldr	r2, [sp, #4]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L32
	mov	r0, r3
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r1, .L33+16
	bl	g_strcmp0
	cmp	r0, #0
	bne	.L6
	ldr	r3, .L33+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L8
	b	.L6
.L7:
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L6
.L8:
	ldr	r2, [r3, #4]
	cmp	r2, #0
	beq	.L7
	ldr	ip, .L33+12
	ldm	r3, {r0, r1, r2}
	ldr	r3, [ip]
	stm	r6, {r0, r1, r2}
	b	.L1
.L6:
	ldr	r1, .L33+20
	ldr	r0, [r5]
	bl	g_str_has_prefix
	cmp	r0, #0
	bne	.L9
	mov	r4, sp
	ldr	r3, [r5]
.L10:
	mov	r2, #0
	mov	r1, r4
	mov	r0, r3
	str	r2, [sp]
	bl	g_ascii_strtoll
	ldr	r1, [r5]
	ldr	r2, [sp]
	cmp	r1, r2
	beq	.L13
	cmp	r0, #0
	mov	r1, r6
	blt	.L14
	bl	monitor_get_dimension
	cmp	r0, #0
	beq	.L15
.L30:
	ldr	r3, .L33+12
	ldr	r3, [r3]
	b	.L1
.L9:
	mov	r4, sp
	mov	r2, #0
	ldr	r0, [r5]
	mov	r1, r4
	add	r0, r0, #4
	str	r2, [sp]
	bl	g_ascii_strtoll
	ldr	r3, [sp]
	ldr	r2, [r5]
	cmp	r2, r3
	beq	.L10
	mov	r1, r6
	bl	monitor_active_from_winid
	cmp	r0, #0
	bne	.L30
	ldr	r3, [r5]
	b	.L10
.L15:
	ldr	r0, .L33+24
	bl	g_warning
.L13:
	mov	r1, #0
	mov	r2, r6
	mov	r0, r1
	bl	monitor_dimensions
	ldr	r3, .L33+28
	ldr	r3, [r3]
	b	.L1
.L14:
	bl	monitor_active_from_id
	mov	r3, r0
	b	.L1
.L32:
	bl	__stack_chk_fail
.L34:
	.align	2
.L33:
	.word	config
	.word	.LC3
	.word	xcb
	.word	TRUE
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	FALSE
	.size	monitor_active, .-monitor_active
	.comm	xcb,4,4
	.comm	config,4,4
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
