	.file	"extr_hardprof.c_UpdateButtons.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	UpdateButtons, @function
UpdateButtons:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, DWORD PTR FALSE[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmp	QWORD PTR [rsi], -1
	mov	rbx, rsi
	je	.L3
	mov	r12d, DWORD PTR TRUE[rip]
.L3:
	mov	esi, DWORD PTR IDC_HRDPROFPROP[rip]
	mov	edi, ebp
	call	GetDlgItem@PLT
	mov	esi, r12d
	mov	edi, eax
	call	EnableWindow@PLT
	cmp	QWORD PTR [rbx], -1
	mov	r12d, DWORD PTR FALSE[rip]
	je	.L5
	mov	r12d, DWORD PTR TRUE[rip]
.L5:
	mov	esi, DWORD PTR IDC_HRDPROFCOPY[rip]
	mov	edi, ebp
	call	GetDlgItem@PLT
	mov	esi, r12d
	mov	edi, eax
	call	EnableWindow@PLT
	cmp	QWORD PTR [rbx], -1
	mov	r12d, DWORD PTR FALSE[rip]
	je	.L7
	mov	r12d, DWORD PTR TRUE[rip]
.L7:
	mov	esi, DWORD PTR IDC_HRDPROFRENAME[rip]
	mov	edi, ebp
	call	GetDlgItem@PLT
	mov	esi, r12d
	mov	edi, eax
	call	EnableWindow@PLT
	cmp	QWORD PTR [rbx], -1
	mov	r12d, DWORD PTR FALSE[rip]
	je	.L9
	mov	r12d, DWORD PTR TRUE[rip]
.L9:
	mov	esi, DWORD PTR IDC_HRDPROFDEL[rip]
	mov	edi, ebp
	call	GetDlgItem@PLT
	mov	esi, r12d
	mov	edi, eax
	call	EnableWindow@PLT
	cmp	DWORD PTR 8[rbx], 1
	mov	r12d, DWORD PTR FALSE[rip]
	jle	.L17
	cmp	QWORD PTR [rbx], 0
	jle	.L12
	mov	r12d, DWORD PTR TRUE[rip]
.L12:
	mov	esi, DWORD PTR IDC_HRDPROFUP[rip]
	mov	edi, ebp
	call	GetDlgItem@PLT
	mov	esi, r12d
	mov	edi, eax
	call	EnableWindow@PLT
	mov	eax, DWORD PTR 8[rbx]
	mov	r12d, DWORD PTR FALSE[rip]
	sub	eax, 1
	cdqe
	cmp	QWORD PTR [rbx], rax
	jge	.L14
	mov	r12d, DWORD PTR TRUE[rip]
.L14:
	mov	esi, DWORD PTR IDC_HRDPROFDWN[rip]
	mov	edi, ebp
	call	GetDlgItem@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	esi, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	edi, eax
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	EnableWindow@PLT
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	esi, DWORD PTR IDC_HRDPROFUP[rip]
	mov	edi, ebp
	call	GetDlgItem@PLT
	mov	esi, r12d
	mov	edi, eax
	call	EnableWindow@PLT
	mov	r12d, DWORD PTR FALSE[rip]
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	UpdateButtons, .-UpdateButtons
	.comm	TRUE,4,4
	.comm	IDC_HRDPROFUP,4,4
	.comm	IDC_HRDPROFRENAME,4,4
	.comm	IDC_HRDPROFPROP,4,4
	.comm	IDC_HRDPROFDWN,4,4
	.comm	IDC_HRDPROFDEL,4,4
	.comm	IDC_HRDPROFCOPY,4,4
	.comm	FALSE,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_hardprof.c_UpdateButtons.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	UpdateButtons, %function
UpdateButtons:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	ldr	r3, .L18
	ldr	r1, [r3]
	bl	GetDlgItem
	ldr	r3, [r4]
	cmn	r3, #1
	ldrne	r3, .L18+4
	ldreq	r3, .L18+8
	ldr	r1, [r3]
	bl	EnableWindow
	ldr	r3, .L18+12
	mov	r0, r5
	ldr	r1, [r3]
	bl	GetDlgItem
	ldr	r3, [r4]
	cmn	r3, #1
	ldrne	r3, .L18+4
	ldreq	r3, .L18+8
	ldr	r1, [r3]
	bl	EnableWindow
	ldr	r3, .L18+16
	mov	r0, r5
	ldr	r1, [r3]
	bl	GetDlgItem
	ldr	r3, [r4]
	cmn	r3, #1
	ldrne	r3, .L18+4
	ldreq	r3, .L18+8
	ldr	r1, [r3]
	bl	EnableWindow
	ldr	r3, .L18+20
	mov	r0, r5
	ldr	r1, [r3]
	bl	GetDlgItem
	ldr	r3, [r4]
	cmn	r3, #1
	ldrne	r3, .L18+4
	ldreq	r3, .L18+8
	ldr	r1, [r3]
	bl	EnableWindow
	ldr	r3, [r4, #4]
	cmp	r3, #1
	ldr	r3, .L18+24
	ble	.L17
	ldr	r1, [r3]
	mov	r0, r5
	bl	GetDlgItem
	ldr	r3, [r4]
	cmp	r3, #0
	ldrgt	r3, .L18+4
	ldrle	r3, .L18+8
	ldr	r1, [r3]
	bl	EnableWindow
	ldr	r3, .L18+28
	mov	r0, r5
	ldr	r1, [r3]
	bl	GetDlgItem
	ldm	r4, {r2, r3}
	pop	{r4, r5, r6, lr}
	sub	r3, r3, #1
	cmp	r2, r3
	ldrlt	r3, .L18+4
	ldrge	r3, .L18+8
	ldr	r1, [r3]
	b	EnableWindow
.L17:
	ldr	r4, .L18+8
	ldr	r1, [r3]
	mov	r0, r5
	bl	GetDlgItem
	ldr	r1, [r4]
	bl	EnableWindow
	ldr	r3, .L18+28
	mov	r0, r5
	ldr	r1, [r3]
	bl	GetDlgItem
	ldr	r1, [r4]
	pop	{r4, r5, r6, lr}
	b	EnableWindow
.L19:
	.align	2
.L18:
	.word	IDC_HRDPROFPROP
	.word	TRUE
	.word	FALSE
	.word	IDC_HRDPROFCOPY
	.word	IDC_HRDPROFRENAME
	.word	IDC_HRDPROFDEL
	.word	IDC_HRDPROFUP
	.word	IDC_HRDPROFDWN
	.size	UpdateButtons, .-UpdateButtons
	.comm	TRUE,4,4
	.comm	IDC_HRDPROFUP,4,4
	.comm	IDC_HRDPROFRENAME,4,4
	.comm	IDC_HRDPROFPROP,4,4
	.comm	IDC_HRDPROFDWN,4,4
	.comm	IDC_HRDPROFDEL,4,4
	.comm	IDC_HRDPROFCOPY,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
