	.file	"extr_x11_common.c_vo_wm_detect.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Detected wm supports layers.\n"
.LC1:
	.string	"Detected wm supports NetWM.\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"NetWM usage disabled by user.\n"
	.section	.rodata.str1.1
.LC3:
	.string	"Unknown wm type...\n"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Forcing NetWM FULLSCREEN support.\n"
	.text
	.p2align 4
	.type	vo_wm_detect, @function
vo_wm_detect:
.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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rbp, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR 0[rbp], 0
	je	.L2
.L14:
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L29
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r14d, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR _WIN_PROTOCOLS[rip]
	mov	rbx, rdi
	mov	rdi, rbp
	mov	r12d, DWORD PTR XA_ATOM[rip]
	mov	DWORD PTR 4[rsp], r14d
	call	XA@PLT
	mov	esi, r14d
	mov	ecx, r12d
	mov	rdi, rbp
	mov	rdx, rax
	lea	rax, 20[rsp]
	mov	r8d, 32
	mov	r9, rax
	mov	QWORD PTR 8[rsp], rax
	call	x11_get_property@PLT
	mov	r14, rax
	test	rax, rax
	je	.L27
	mov	edx, DWORD PTR 20[rsp]
	test	edx, edx
	jle	.L5
	xor	r15d, r15d
	xor	r12d, r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	add	r15, 1
	cmp	DWORD PTR 20[rsp], r15d
	jle	.L30
.L7:
	mov	esi, DWORD PTR _WIN_LAYER[rip]
	mov	r13, QWORD PTR [r14+r15*8]
	mov	rdi, rbp
	call	XA@PLT
	cmp	r13, rax
	jne	.L6
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	add	r15, 1
	call	MP_DBG@PLT
	or	r12d, DWORD PTR vo_wm_LAYER[rip]
	cmp	DWORD PTR 20[rsp], r15d
	jg	.L7
.L30:
	mov	rdi, r14
	call	XFree@PLT
	mov	esi, DWORD PTR _NET_SUPPORTED[rip]
	mov	r13d, DWORD PTR XA_ATOM[rip]
	mov	rdi, rbp
	call	XA@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	ecx, r13d
	mov	rdi, rbp
	mov	esi, DWORD PTR 4[rsp]
	mov	rdx, rax
	mov	r8d, 32
	call	x11_get_property@PLT
	mov	r14, rax
	test	rax, rax
	je	.L8
.L15:
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	MP_DBG@PLT
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR [rax], 0
	js	.L9
	mov	eax, DWORD PTR 20[rsp]
	test	eax, eax
	jle	.L10
	xor	r13d, r13d
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rsi, QWORD PTR [r14+r13*8]
	mov	rdi, QWORD PTR 8[rbx]
	add	r13, 1
	call	net_wm_support_state_test@PLT
	or	r12d, eax
	cmp	DWORD PTR 20[rsp], r13d
	jg	.L11
.L10:
	mov	rdi, r14
	call	XFree@PLT
.L8:
	test	r12d, r12d
	je	.L16
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR [rax], 0
	jle	.L1
	test	DWORD PTR vo_wm_FULLSCREEN[rip], r12d
	jne	.L1
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	MP_DBG@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rax
	call	XFree@PLT
.L27:
	mov	esi, DWORD PTR _NET_SUPPORTED[rip]
	mov	r12d, DWORD PTR XA_ATOM[rip]
	mov	rdi, rbp
	call	XA@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	ecx, r12d
	mov	rdi, rbp
	mov	esi, DWORD PTR 4[rsp]
	mov	rdx, rax
	mov	r8d, 32
	xor	r12d, r12d
	call	x11_get_property@PLT
	mov	r14, rax
	test	rax, rax
	jne	.L15
.L16:
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	xor	r12d, r12d
	call	MP_DBG@PLT
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR [rax], 0
	jle	.L14
.L13:
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	call	MP_WARN@PLT
	or	r12d, DWORD PTR vo_wm_FULLSCREEN[rip]
	jmp	.L1
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vo_wm_detect, .-vo_wm_detect
	.comm	vo_wm_LAYER,4,4
	.comm	vo_wm_FULLSCREEN,4,4
	.comm	_WIN_PROTOCOLS,4,4
	.comm	_WIN_LAYER,4,4
	.comm	_NET_SUPPORTED,4,4
	.comm	XA_ATOM,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_x11_common.c_vo_wm_detect.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Detected wm supports layers.\012\000"
	.align	2
.LC1:
	.ascii	"Detected wm supports NetWM.\012\000"
	.align	2
.LC2:
	.ascii	"NetWM usage disabled by user.\012\000"
	.align	2
.LC3:
	.ascii	"Unknown wm type...\012\000"
	.align	2
.LC4:
	.ascii	"Forcing NetWM FULLSCREEN support.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vo_wm_detect, %function
vo_wm_detect:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, [r0, #4]
	ldr	r3, .L31
	ldr	r9, [r4]
	sub	sp, sp, #28
	cmp	r9, #0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	beq	.L2
.L14:
	mov	r5, #0
.L1:
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L31+4
	mov	r6, r0
	ldr	r1, [r3]
	ldr	r3, [r4, #4]
	mov	r0, r4
	mov	r7, r3
	str	r3, [sp, #8]
	mov	r5, #32
	bl	XA
	ldr	r3, .L31+8
	mov	r2, r0
	str	r5, [sp]
	add	r0, sp, #16
	ldr	r3, [r3]
	mov	r1, r7
	str	r0, [sp, #4]
	mov	r0, r4
	bl	x11_get_property
	subs	r2, r0, #0
	str	r2, [sp, #12]
	beq	.L27
	ldr	r3, [sp, #16]
	cmp	r3, #0
	ble	.L5
	mov	r5, r9
	mov	fp, r9
	ldr	r8, .L31+12
	sub	r7, r2, #4
	b	.L7
.L6:
	ldr	r3, [sp, #16]
	add	fp, fp, #1
	cmp	r3, fp
	ble	.L30
.L7:
	mov	r0, r4
	ldr	r1, [r8]
	ldr	r10, [r7, #4]!
	bl	XA
	cmp	r10, r0
	bne	.L6
	mov	r0, r4
	ldr	r1, .L31+16
	bl	MP_DBG
	ldr	r3, .L31+20
	add	fp, fp, #1
	ldr	r3, [r3]
	orr	r5, r5, r3
	ldr	r3, [sp, #16]
	cmp	r3, fp
	bgt	.L7
.L30:
	ldr	r0, [sp, #12]
	bl	XFree
	ldr	r3, .L31+24
	mov	r0, r4
	ldr	r1, [r3]
	bl	XA
	mov	ip, #32
	add	r3, sp, #16
	str	r3, [sp, #4]
	ldr	r3, .L31+8
	mov	r2, r0
	ldr	r3, [r3]
	mov	r0, r4
	ldr	r1, [sp, #8]
	str	ip, [sp]
	bl	x11_get_property
	subs	r10, r0, #0
	beq	.L8
.L15:
	mov	r0, r4
	ldr	r1, .L31+28
	bl	MP_DBG
	ldr	r3, [r6]
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L9
	ldr	r3, [sp, #16]
	cmp	r3, #0
	ble	.L10
	mov	r7, #0
	sub	r8, r10, #4
.L11:
	ldr	r1, [r8, #4]!
	ldr	r0, [r6, #4]
	bl	net_wm_support_state_test
	ldr	r3, [sp, #16]
	add	r7, r7, #1
	cmp	r3, r7
	orr	r5, r5, r0
	bgt	.L11
.L10:
	mov	r0, r10
	bl	XFree
.L8:
	cmp	r5, #0
	beq	.L16
	ldr	r3, [r6]
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L1
	ldr	r6, .L31+32
	ldr	r3, [r6]
	tst	r5, r3
	bne	.L1
	mov	r9, r5
	b	.L13
.L9:
	mov	r0, r4
	ldr	r1, .L31+36
	bl	MP_DBG
	b	.L10
.L5:
	bl	XFree
.L27:
	ldr	r3, .L31+24
	mov	r0, r4
	ldr	r1, [r3]
	bl	XA
	add	r3, sp, #16
	str	r3, [sp, #4]
	ldr	r3, .L31+8
	str	r5, [sp]
	mov	r2, r0
	ldr	r3, [r3]
	mov	r0, r4
	ldr	r1, [sp, #8]
	bl	x11_get_property
	subs	r10, r0, #0
	movne	r5, r9
	bne	.L15
.L16:
	mov	r0, r4
	ldr	r1, .L31+40
	bl	MP_DBG
	ldr	r3, [r6]
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L14
	ldr	r6, .L31+32
.L13:
	mov	r0, r4
	ldr	r1, .L31+44
	bl	MP_WARN
	ldr	r5, [r6]
	orr	r5, r9, r5
	b	.L1
.L29:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	.LC5
	.word	_WIN_PROTOCOLS
	.word	XA_ATOM
	.word	_WIN_LAYER
	.word	.LC0
	.word	vo_wm_LAYER
	.word	_NET_SUPPORTED
	.word	.LC1
	.word	vo_wm_FULLSCREEN
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	vo_wm_detect, .-vo_wm_detect
	.comm	vo_wm_LAYER,4,4
	.comm	vo_wm_FULLSCREEN,4,4
	.comm	_WIN_PROTOCOLS,4,4
	.comm	_WIN_LAYER,4,4
	.comm	_NET_SUPPORTED,4,4
	.comm	XA_ATOM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
