	.file	"extr_window-helpers.c_next_window.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	next_window, @function
next_window:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, ecx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR [rdx]
	test	rbp, rbp
	je	.L8
	mov	QWORD PTR [rdx], 0
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	xor	eax, eax
	call	GetDesktopWindow@PLT
	mov	rsi, rbp
	xor	ecx, ecx
	xor	edx, edx
	mov	edi, eax
	call	FindWindowEx@PLT
	mov	rbp, rax
	test	rbp, rbp
	je	.L5
.L23:
	mov	esi, r12d
	mov	rdi, rbp
	call	check_window_valid@PLT
	test	rax, rax
	jne	.L5
.L6:
	test	ebx, ebx
	jne	.L22
	mov	esi, DWORD PTR GW_HWNDNEXT[rip]
	mov	rdi, rbp
	call	GetNextWindow@PLT
	mov	rbp, rax
	test	rbp, rbp
	jne	.L23
.L5:
	mov	rdi, rbp
	call	is_uwp_window@PLT
	test	rax, rax
	jne	.L24
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	rdi, rbp
	call	get_uwp_actual_window@PLT
	test	rax, rax
	je	.L1
	mov	QWORD PTR 0[r13], rbp
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rbp, rax
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	rax, rbp
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rbp, rdi
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	next_window, .-next_window
	.comm	GW_HWNDNEXT,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_window-helpers.c_next_window.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	next_window, %function
next_window:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r2]
	mov	r5, r3
	cmp	r4, #0
	movne	r3, #0
	mov	r8, r2
	mov	r6, r1
	moveq	r4, r0
	ldr	r7, .L25
	strne	r3, [r2]
	b	.L6
.L22:
	bl	GetDesktopWindow
	mov	r3, #0
	mov	r1, r4
	mov	r2, r3
	bl	FindWindowEx
	mov	r4, r0
	cmp	r4, #0
	beq	.L5
.L23:
	mov	r1, r6
	mov	r0, r4
	bl	check_window_valid
	cmp	r0, #0
	bne	.L5
.L6:
	cmp	r5, #0
	bne	.L22
	mov	r0, r4
	ldr	r1, [r7]
	bl	GetNextWindow
	mov	r4, r0
	cmp	r4, #0
	bne	.L23
.L5:
	mov	r0, r4
	bl	is_uwp_window
	cmp	r0, #0
	bne	.L24
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	mov	r0, r4
	bl	get_uwp_actual_window
	cmp	r0, #0
	strne	r4, [r8]
	movne	r4, r0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L26:
	.align	2
.L25:
	.word	GW_HWNDNEXT
	.size	next_window, .-next_window
	.comm	GW_HWNDNEXT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
