	.file	"extr_names.c_check_window_name.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"automatic-rename"
.LC1:
	.string	"@%u active pane not changed"
.LC2:
	.string	"@%u active pane changed"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"@%u name timer queued (%d left)"
	.align 8
.LC4:
	.string	"@%u name timer already queued (%d left)"
	.section	.rodata.str1.1
.LC5:
	.string	"@%u new name %s (was %s)"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"@%u name not changed (still %s)"
	.text
	.p2align 4
	.globl	check_window_name
	.type	check_window_name, @function
check_window_name:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR 8[rdi], 0
	je	.L1
	mov	rbp, rdi
	mov	edi, DWORD PTR 24[rdi]
	lea	rsi, .LC0[rip]
	call	options_get_number@PLT
	test	eax, eax
	je	.L1
	mov	rax, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR 4[rbp]
	mov	eax, DWORD PTR [rax]
	not	eax
	test	DWORD PTR PANE_CHANGED[rip], eax
	jne	.L21
	lea	rdi, .LC2[rip]
	mov	r13, rsp
	lea	r14, 16[rbp]
	xor	eax, eax
	call	log_debug@PLT
	xor	esi, esi
	mov	rdi, r13
	call	gettimeofday@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	name_time_expired@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L22
	lea	rdi, 20[rbp]
	mov	edx, 4
	mov	rsi, r13
	call	memcpy@PLT
	mov	rdi, r14
	call	event_initialized@PLT
	test	rax, rax
	jne	.L23
.L8:
	mov	rdx, QWORD PTR 8[rbp]
	mov	eax, DWORD PTR PANE_CHANGED[rip]
	mov	rdi, rbp
	not	eax
	and	DWORD PTR [rdx], eax
	call	format_window_name@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, rax
	mov	r12, rax
	call	strcmp@PLT
	mov	esi, DWORD PTR 4[rbp]
	test	rax, rax
	je	.L9
	mov	ecx, DWORD PTR 0[rbp]
	mov	rdx, r12
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	log_debug@PLT
	mov	rdi, rbp
	mov	rsi, r12
	call	window_set_name@PLT
	mov	rdi, rbp
	call	server_status_window@PLT
.L10:
	mov	rdi, r12
	call	free@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rdi, r14
	call	event_initialized@PLT
	test	rax, rax
	je	.L25
.L6:
	xor	esi, esi
	mov	rdi, r14
	call	evtimer_pending@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	edx, r12d
	test	eax, eax
	jne	.L7
	lea	rbp, 4[rsp]
	lea	rdi, .LC3[rip]
	call	log_debug@PLT
	mov	rdi, rbp
	call	timerclear@PLT
	mov	rsi, rbp
	mov	rdi, r14
	mov	DWORD PTR 4[rsp], r12d
	call	event_add@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	log_debug@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edx, DWORD PTR 0[rbp]
	lea	rdi, .LC6[rip]
	xor	eax, eax
	call	log_debug@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, r14
	call	evtimer_del@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	log_debug@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	mov	esi, DWORD PTR name_time_callback[rip]
	mov	rdx, rbp
	mov	rdi, r14
	call	evtimer_set@PLT
	jmp	.L6
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	check_window_name, .-check_window_name
	.comm	name_time_callback,4,4
	.comm	PANE_CHANGED,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_names.c_check_window_name.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"automatic-rename\000"
	.align	2
.LC1:
	.ascii	"@%u active pane not changed\000"
	.align	2
.LC2:
	.ascii	"@%u active pane changed\000"
	.align	2
.LC3:
	.ascii	"@%u name timer queued (%d left)\000"
	.align	2
.LC4:
	.ascii	"@%u name timer already queued (%d left)\000"
	.align	2
.LC5:
	.ascii	"@%u new name %s (was %s)\000"
	.align	2
.LC6:
	.ascii	"@%u name not changed (still %s)\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	check_window_name
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_window_name, %function
check_window_name:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r0, #8]
	ldr	r2, .L29
	sub	sp, sp, #20
	cmp	r3, #0
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	beq	.L1
	mov	r4, r0
	ldr	r1, .L29+4
	ldr	r0, [r0, #20]
	bl	options_get_number
	cmp	r0, #0
	beq	.L1
	ldr	r3, [r4, #8]
	ldr	r6, .L29+8
	ldr	r5, [r3]
	ldr	r3, [r6]
	ldr	r1, [r4, #4]
	bics	r5, r3, r5
	bne	.L24
	ldr	r0, .L29+12
	bl	log_debug
	mov	r1, r5
	add	r0, sp, #4
	bl	gettimeofday
	mov	r0, r4
	add	r1, sp, #4
	bl	name_time_expired
	subs	r5, r0, #0
	add	r7, r4, #12
	bne	.L25
	mov	r2, #4
	add	r1, sp, #4
	add	r0, r4, #16
	bl	memcpy
	mov	r0, r7
	bl	event_initialized
	cmp	r0, #0
	bne	.L26
.L8:
	ldr	r2, [r4, #8]
	ldr	r1, [r6]
	ldr	r3, [r2]
	mov	r0, r4
	bic	r3, r3, r1
	str	r3, [r2]
	bl	format_window_name
	ldr	r1, [r4]
	mov	r5, r0
	bl	strcmp
	cmp	r0, #0
	beq	.L9
	mov	r2, r5
	ldr	r3, [r4]
	ldr	r1, [r4, #4]
	ldr	r0, .L29+16
	bl	log_debug
	mov	r1, r5
	mov	r0, r4
	bl	window_set_name
	mov	r0, r4
	bl	server_status_window
.L10:
	mov	r0, r5
	bl	free
.L1:
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L25:
	mov	r0, r7
	bl	event_initialized
	cmp	r0, #0
	beq	.L28
.L6:
	mov	r1, #0
	mov	r0, r7
	bl	evtimer_pending
	cmp	r0, #0
	bne	.L7
	ldr	r1, [r4, #4]
	mov	r2, r5
	ldr	r0, .L29+20
	bl	log_debug
	add	r0, sp, #8
	bl	timerclear
	mov	r0, r7
	add	r1, sp, #8
	str	r5, [sp, #8]
	bl	event_add
	b	.L1
.L24:
	ldr	r0, .L29+24
	bl	log_debug
	b	.L1
.L9:
	ldr	r2, [r4]
	ldr	r1, [r4, #4]
	ldr	r0, .L29+28
	bl	log_debug
	b	.L10
.L26:
	mov	r0, r7
	bl	evtimer_del
	b	.L8
.L7:
	mov	r2, r5
	ldr	r1, [r4, #4]
	ldr	r0, .L29+32
	bl	log_debug
	b	.L1
.L28:
	ldr	r3, .L29+36
	mov	r2, r4
	mov	r0, r7
	ldr	r1, [r3]
	bl	evtimer_set
	b	.L6
.L27:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	.LC7
	.word	.LC0
	.word	PANE_CHANGED
	.word	.LC2
	.word	.LC5
	.word	.LC3
	.word	.LC1
	.word	.LC6
	.word	.LC4
	.word	name_time_callback
	.size	check_window_name, .-check_window_name
	.comm	name_time_callback,4,4
	.comm	PANE_CHANGED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
