	.file	"extr_tbar.c_EnableCheckTBButtons.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	EnableCheckTBButtons
	.type	EnableCheckTBButtons, @function
EnableCheckTBButtons:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR hwndSearch[rip], rdi
	je	.L15
.L2:
	mov	esi, DWORD PTR GWL_VIEW[rip]
	mov	rdi, r12
	call	GetWindowLongPtr@PLT
	and	eax, 129
	cmp	eax, 128
	je	.L3
	cmp	eax, 129
	je	.L4
	mov	edi, DWORD PTR IDM_VOTHER[rip]
	call	CheckTBButton@PLT
.L6:
	mov	esi, DWORD PTR GWL_SORT[rip]
	mov	rdi, r12
	xor	ebp, ebp
	call	GetWindowLongPtr@PLT
	mov	esi, DWORD PTR GWL_TYPE[rip]
	mov	rdi, r12
	sub	eax, DWORD PTR IDD_NAME[rip]
	add	eax, DWORD PTR IDM_BYNAME[rip]
	mov	r13d, eax
	call	GetWindowLongPtr@PLT
	test	eax, eax
	js	.L7
	mov	rdi, r12
	xor	ebp, ebp
	call	HasDirWindow@PLT
	test	rax, rax
	setne	bpl
.L7:
	mov	edi, r13d
	call	CheckTBButton@PLT
	movsx	rbx, DWORD PTR IDM_BYNAME[rip]
	cmp	rbx, QWORD PTR IDM_BYDATE[rip]
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, DWORD PTR TB_ENABLEBUTTON[rip]
	mov	edi, DWORD PTR hwndToolbar[rip]
	mov	rdx, rbx
	mov	ecx, ebp
	add	rbx, 1
	call	SendMessage@PLT
	cmp	QWORD PTR IDM_BYDATE[rip], rbx
	jge	.L9
.L8:
	mov	edi, DWORD PTR hwndToolbar[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	jmp	UpdateWindow@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edi, DWORD PTR IDM_VNAME[rip]
	call	CheckTBButton@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR IDM_VDETAILS[rip]
	call	CheckTBButton@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	mov	esi, DWORD PTR TRUE[rip]
	call	SwitchDriveSelection@PLT
	mov	rdi, QWORD PTR hwndSearch[rip]
	call	UpdateStatus@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	EnableCheckTBButtons, .-EnableCheckTBButtons
	.comm	hwndToolbar,4,4
	.comm	hwndSearch,8,8
	.comm	TRUE,4,4
	.comm	TB_ENABLEBUTTON,4,4
	.comm	IDM_VOTHER,4,4
	.comm	IDM_VNAME,4,4
	.comm	IDM_VDETAILS,4,4
	.comm	IDM_BYNAME,4,4
	.comm	IDM_BYDATE,8,8
	.comm	IDD_NAME,4,4
	.comm	GWL_VIEW,4,4
	.comm	GWL_TYPE,4,4
	.comm	GWL_SORT,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_tbar.c_EnableCheckTBButtons.c"
	.text
	.align	2
	.global	EnableCheckTBButtons
	.syntax unified
	.arm
	.fpu softvfp
	.type	EnableCheckTBButtons, %function
EnableCheckTBButtons:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, .L18
	mov	r4, r0
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L17
.L2:
	ldr	r3, .L18+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	GetWindowLongPtr
	and	r0, r0, #129
	cmp	r0, #128
	beq	.L3
	cmp	r0, #129
	beq	.L4
	ldr	r3, .L18+8
	ldr	r0, [r3]
	bl	CheckTBButton
.L6:
	ldr	r3, .L18+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	GetWindowLongPtr
	ldr	r3, .L18+16
	ldr	r8, .L18+20
	ldr	r6, [r3]
	ldr	r2, .L18+24
	ldr	r3, [r8]
	sub	r6, r0, r6
	ldr	r1, [r2]
	mov	r0, r4
	add	r6, r6, r3
	bl	GetWindowLongPtr
	cmp	r0, #0
	movlt	r7, #0
	blt	.L7
	mov	r0, r4
	bl	HasDirWindow
	subs	r7, r0, #0
	movne	r7, #1
.L7:
	ldr	r5, .L18+28
	mov	r0, r6
	bl	CheckTBButton
	ldr	r4, [r8]
	ldr	r3, [r5]
	cmp	r4, r3
	ldrgt	r6, .L18+32
	bgt	.L8
	ldr	r8, .L18+36
	ldr	r6, .L18+32
.L9:
	mov	r3, r7
	mov	r2, r4
	ldr	r1, [r8]
	ldr	r0, [r6]
	bl	SendMessage
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bge	.L9
.L8:
	ldr	r0, [r6]
	pop	{r4, r5, r6, r7, r8, lr}
	b	UpdateWindow
.L3:
	ldr	r3, .L18+40
	ldr	r0, [r3]
	bl	CheckTBButton
	b	.L6
.L4:
	ldr	r3, .L18+44
	ldr	r0, [r3]
	bl	CheckTBButton
	b	.L6
.L17:
	ldr	r3, .L18+48
	ldr	r1, [r3]
	bl	SwitchDriveSelection
	ldr	r0, [r5]
	bl	UpdateStatus
	b	.L2
.L19:
	.align	2
.L18:
	.word	hwndSearch
	.word	GWL_VIEW
	.word	IDM_VOTHER
	.word	GWL_SORT
	.word	IDD_NAME
	.word	IDM_BYNAME
	.word	GWL_TYPE
	.word	IDM_BYDATE
	.word	hwndToolbar
	.word	TB_ENABLEBUTTON
	.word	IDM_VNAME
	.word	IDM_VDETAILS
	.word	TRUE
	.size	EnableCheckTBButtons, .-EnableCheckTBButtons
	.comm	hwndToolbar,4,4
	.comm	hwndSearch,4,4
	.comm	TRUE,4,4
	.comm	TB_ENABLEBUTTON,4,4
	.comm	IDM_VOTHER,4,4
	.comm	IDM_VNAME,4,4
	.comm	IDM_VDETAILS,4,4
	.comm	IDM_BYNAME,4,4
	.comm	IDM_BYDATE,4,4
	.comm	IDD_NAME,4,4
	.comm	GWL_VIEW,4,4
	.comm	GWL_TYPE,4,4
	.comm	GWL_SORT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
