	.file	"extr_tbar.c_EnableDisconnectButton.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	EnableDisconnectButton
	.type	EnableDisconnectButton, @function
EnableDisconnectButton:
.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
	mov	rbx, QWORD PTR cDrives[rip]
	test	rbx, rbx
	je	.L7
	xor	ebx, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR cDrives[rip]
	add	rbx, 1
	cmp	rax, rbx
	jbe	.L2
.L4:
	mov	rax, QWORD PTR rgiDrive[rip]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	IsCDRomDrive@PLT
	test	eax, eax
	jne	.L3
	mov	rax, QWORD PTR rgiDrive[rip]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	IsRemoteDrive@PLT
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR cDrives[rip]
.L2:
	xor	ecx, ecx
	mov	edx, DWORD PTR IDM_DISCONNECT[rip]
	cmp	rbx, rax
	mov	esi, DWORD PTR TB_ENABLEBUTTON[rip]
	mov	edi, DWORD PTR hwndToolbar[rip]
	setb	cl
	call	SendMessage@PLT
	cmp	QWORD PTR cDrives[rip], rbx
	mov	r12d, DWORD PTR MF_BYCOMMAND[rip]
	ja	.L14
	or	r12d, DWORD PTR MF_GRAYED[rip]
.L6:
	mov	edi, DWORD PTR hwndFrame[rip]
	mov	ebp, DWORD PTR IDM_DISCONNECT[rip]
	call	GetMenu@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	edx, r12d
	mov	esi, ebp
	mov	edi, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	EnableMenuItem@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	or	r12d, DWORD PTR MF_ENABLED[rip]
	jmp	.L6
.L7:
	xor	eax, eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	EnableDisconnectButton, .-EnableDisconnectButton
	.comm	rgiDrive,8,8
	.comm	hwndToolbar,4,4
	.comm	hwndFrame,4,4
	.comm	cDrives,8,8
	.comm	TB_ENABLEBUTTON,4,4
	.comm	MF_GRAYED,4,4
	.comm	MF_ENABLED,4,4
	.comm	MF_BYCOMMAND,4,4
	.comm	IDM_DISCONNECT,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_EnableDisconnectButton.c"
	.text
	.align	2
	.global	EnableDisconnectButton
	.syntax unified
	.arm
	.fpu softvfp
	.type	EnableDisconnectButton, %function
EnableDisconnectButton:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L14
	ldr	r4, [r6]
	cmp	r4, #0
	beq	.L7
	mov	r4, #0
	ldr	r5, .L14+4
	b	.L4
.L3:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bls	.L2
.L4:
	ldr	r3, [r5]
	ldr	r0, [r3, r4, lsl #2]
	bl	IsCDRomDrive
	cmp	r0, #0
	bne	.L3
	ldr	r3, [r5]
	ldr	r0, [r3, r4, lsl #2]
	bl	IsRemoteDrive
	cmp	r0, #0
	beq	.L3
	ldr	r3, [r6]
.L2:
	ldr	r5, .L14+8
	ldr	r1, .L14+12
	ldr	r0, .L14+16
	cmp	r4, r3
	movcs	r3, #0
	movcc	r3, #1
	ldr	r2, [r5]
	ldr	r1, [r1]
	ldr	r0, [r0]
	bl	SendMessage
	ldr	r3, .L14+20
	ldr	r0, [r3]
	bl	GetMenu
	ldr	r3, [r6]
	ldr	r2, .L14+24
	cmp	r3, r4
	ldrhi	r3, .L14+28
	ldrls	r3, .L14+32
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r5]
	orr	r2, r2, r3
	pop	{r4, r5, r6, lr}
	b	EnableMenuItem
.L7:
	mov	r3, r4
	b	.L2
.L15:
	.align	2
.L14:
	.word	cDrives
	.word	rgiDrive
	.word	IDM_DISCONNECT
	.word	TB_ENABLEBUTTON
	.word	hwndToolbar
	.word	hwndFrame
	.word	MF_BYCOMMAND
	.word	MF_ENABLED
	.word	MF_GRAYED
	.size	EnableDisconnectButton, .-EnableDisconnectButton
	.comm	rgiDrive,4,4
	.comm	hwndToolbar,4,4
	.comm	hwndFrame,4,4
	.comm	cDrives,4,4
	.comm	TB_ENABLEBUTTON,4,4
	.comm	MF_GRAYED,4,4
	.comm	MF_ENABLED,4,4
	.comm	MF_BYCOMMAND,4,4
	.comm	IDM_DISCONNECT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
