	.file	"extr_x11_common.c_vo_x11_setlayer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_NET_WM_STATE_ABOVE"
.LC1:
	.string	"_NET_WM_STATE_STAYS_ON_TOP"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"NET style stay on top (%d). Using state %s.\n"
	.align 8
.LC3:
	.string	"original window layer is %ld.\n"
	.align 8
.LC4:
	.string	"Layered style stay on top (layer %ld).\n"
	.section	.rodata.str1.1
.LC5:
	.string	"_WIN_LAYER"
	.text
	.p2align 4
	.type	vo_x11_setlayer, @function
vo_x11_setlayer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	rbp, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR 24[rbp], 0
	jne	.L1
	mov	ecx, DWORD PTR 16[rbp]
	test	ecx, ecx
	je	.L1
	mov	edx, DWORD PTR vo_wm_STAYS_ON_TOP[rip]
	mov	ecx, DWORD PTR vo_wm_ABOVE[rip]
	mov	ebx, esi
	mov	eax, DWORD PTR 0[rbp]
	or	ecx, edx
	test	ecx, eax
	je	.L3
	test	eax, edx
	lea	rcx, .LC1[rip]
	mov	edx, esi
	mov	rdi, rbp
	lea	r12, .LC0[rip]
	cmovne	r12, rcx
	mov	rsi, r12
	call	x11_set_ewmh_state@PLT
	movsx	rdx, ebx
	mov	rcx, r12
	mov	rdi, rbp
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	MP_VERBOSE@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 48
	.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
.L3:
	.cfi_restore_state
	test	DWORD PTR vo_wm_LAYER[rip], eax
	je	.L1
	cmp	QWORD PTR 8[rbp], 0
	je	.L16
.L5:
	pxor	xmm0, xmm0
	mov	rdx, QWORD PTR WIN_LAYER_ABOVE_DOCK[rip]
	mov	QWORD PTR 32[rsp], 0
	movaps	XMMWORD PTR [rsp], xmm0
	movaps	XMMWORD PTR 16[rsp], xmm0
	test	ebx, ebx
	jne	.L7
	mov	rdx, QWORD PTR 8[rbp]
.L7:
	mov	rax, QWORD PTR CurrentTime[rip]
	mov	rdi, rbp
	lea	rsi, .LC4[rip]
	mov	QWORD PTR [rsp], rdx
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	MP_VERBOSE@PLT
	mov	rdx, rsp
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	call	x11_send_ewmh_msg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rax, QWORD PTR WIN_LAYER_NORMAL[rip]
	mov	esi, DWORD PTR _WIN_LAYER[rip]
	mov	rdi, rbp
	mov	r12d, DWORD PTR XA_CARDINAL[rip]
	mov	QWORD PTR 8[rbp], rax
	call	XA@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	esi, DWORD PTR 16[rbp]
	lea	r9, 8[rbp]
	push	8
	.cfi_def_cfa_offset 96
	mov	edx, eax
	mov	r8d, 32
	mov	ecx, r12d
	mov	rdi, rbp
	call	x11_get_property_copy@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	rdi, rbp
	xor	eax, eax
	lea	rsi, .LC3[rip]
	call	MP_VERBOSE@PLT
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	jmp	.L5
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vo_x11_setlayer, .-vo_x11_setlayer
	.comm	vo_wm_STAYS_ON_TOP,4,4
	.comm	vo_wm_LAYER,4,4
	.comm	vo_wm_ABOVE,4,4
	.comm	_WIN_LAYER,4,4
	.comm	XA_CARDINAL,4,4
	.comm	WIN_LAYER_NORMAL,8,8
	.comm	WIN_LAYER_ABOVE_DOCK,8,8
	.comm	CurrentTime,8,8
	.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_x11_setlayer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"_NET_WM_STATE_ABOVE\000"
	.align	2
.LC1:
	.ascii	"_NET_WM_STATE_STAYS_ON_TOP\000"
	.align	2
.LC2:
	.ascii	"NET style stay on top (%d). Using state %s.\012\000"
	.align	2
.LC3:
	.ascii	"original window layer is %ld.\012\000"
	.align	2
.LC4:
	.ascii	"Layered style stay on top (layer %ld).\012\000"
	.align	2
.LC5:
	.ascii	"_WIN_LAYER\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vo_x11_setlayer, %function
vo_x11_setlayer:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, [r0]
	ldr	r2, .L20
	ldr	r3, [r4, #12]
	sub	sp, sp, #40
	cmp	r3, #0
	ldr	r2, [r2]
	str	r2, [sp, #36]
	mov	r2,#0
	bne	.L1
	ldr	r6, [r4, #8]
	cmp	r6, #0
	beq	.L1
	ldr	r2, .L20+4
	ldr	r3, .L20+8
	ldr	r0, [r2]
	ldr	r3, [r3]
	ldr	r2, [r4]
	orr	r3, r0, r3
	tst	r3, r2
	mov	r5, r1
	beq	.L3
	ldr	r3, .L20+12
	tst	r2, r0
	ldr	r6, .L20+16
	movne	r6, r3
	mov	r2, r1
	mov	r0, r4
	mov	r1, r6
	bl	x11_set_ewmh_state
	mov	r3, r6
	mov	r2, r5
	mov	r0, r4
	ldr	r1, .L20+20
	bl	MP_VERBOSE
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r3, .L20+24
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L1
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L19
.L5:
	mov	r3, #0
	cmp	r5, r3
	str	r3, [sp, #16]
	str	r3, [sp, #20]
	str	r3, [sp, #24]
	str	r3, [sp, #28]
	str	r3, [sp, #32]
	ldrne	r3, .L20+28
	ldreq	r2, [r4, #4]
	ldrne	r2, [r3]
	ldr	r3, .L20+32
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r1, .L20+36
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	bl	MP_VERBOSE
	mov	r0, r4
	ldr	r1, .L20+40
	add	r2, sp, #16
	bl	x11_send_ewmh_msg
	b	.L1
.L19:
	ldr	r3, .L20+44
	ldr	r2, .L20+48
	ldr	r3, [r3]
	ldr	r1, [r2]
	str	r3, [r4, #4]
	mov	r0, r4
	bl	XA
	mov	lr, #4
	mov	ip, #32
	ldr	r3, .L20+52
	mov	r2, r0
	str	lr, [sp, #8]
	add	r0, r4, lr
	str	ip, [sp]
	mov	r1, r6
	ldr	r3, [r3]
	str	r0, [sp, #4]
	mov	r0, r4
	bl	x11_get_property_copy
	mov	r0, r4
	ldr	r2, [r4, #4]
	ldr	r1, .L20+56
	bl	MP_VERBOSE
	b	.L5
.L18:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC6
	.word	vo_wm_STAYS_ON_TOP
	.word	vo_wm_ABOVE
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.word	vo_wm_LAYER
	.word	WIN_LAYER_ABOVE_DOCK
	.word	CurrentTime
	.word	.LC4
	.word	.LC5
	.word	WIN_LAYER_NORMAL
	.word	_WIN_LAYER
	.word	XA_CARDINAL
	.word	.LC3
	.size	vo_x11_setlayer, .-vo_x11_setlayer
	.comm	vo_wm_STAYS_ON_TOP,4,4
	.comm	vo_wm_LAYER,4,4
	.comm	vo_wm_ABOVE,4,4
	.comm	_WIN_LAYER,4,4
	.comm	XA_CARDINAL,4,4
	.comm	WIN_LAYER_NORMAL,4,4
	.comm	WIN_LAYER_ABOVE_DOCK,4,4
	.comm	CurrentTime,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
