	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UpdateButtons
_UpdateButtons:                         ## @UpdateButtons
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	_IDC_HRDPROFPROP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	cmpq	$-1, (%r15)
	movq	_TRUE@GOTPCREL(%rip), %r12
	movq	_FALSE@GOTPCREL(%rip), %rbx
	movq	%r12, %rcx
	cmoveq	%rbx, %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_EnableWindow
	movq	_IDC_HRDPROFCOPY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	cmpq	$-1, (%r15)
	movq	%r12, %rcx
	cmoveq	%rbx, %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_EnableWindow
	movq	_IDC_HRDPROFRENAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	cmpq	$-1, (%r15)
	movq	%r12, %rcx
	cmoveq	%rbx, %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_EnableWindow
	movq	_IDC_HRDPROFDEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	cmpq	$-1, (%r15)
	movq	%r12, %rcx
	cmoveq	%rbx, %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_EnableWindow
	movl	8(%r15), %r13d
	movq	_IDC_HRDPROFUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	cmpl	$1, %r13d
	jg	LBB0_2
## %bb.1:
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_EnableWindow
	movq	_IDC_HRDPROFDWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	jmp	LBB0_3
LBB0_2:
	cmpq	$0, (%r15)
	movq	%rbx, %rcx
	cmovgq	%r12, %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_EnableWindow
	movq	_IDC_HRDPROFDWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	movslq	8(%r15), %rcx
	decq	%rcx
	cmpq	%rcx, (%r15)
	cmovlq	%r12, %rbx
LBB0_3:
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_EnableWindow
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_HRDPROFPROP,4,2            ## @IDC_HRDPROFPROP
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_IDC_HRDPROFCOPY,4,2            ## @IDC_HRDPROFCOPY
	.comm	_IDC_HRDPROFRENAME,4,2          ## @IDC_HRDPROFRENAME
	.comm	_IDC_HRDPROFDEL,4,2             ## @IDC_HRDPROFDEL
	.comm	_IDC_HRDPROFUP,4,2              ## @IDC_HRDPROFUP
	.comm	_IDC_HRDPROFDWN,4,2             ## @IDC_HRDPROFDWN
	.no_dead_strip	_UpdateButtons
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UpdateButtons
_UpdateButtons:                         ; @UpdateButtons
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _IDC_HRDPROFPROP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDC_HRDPROFPROP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetDlgItem
Lloh3:
	adrp	x22, _TRUE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh5:
	adrp	x21, _FALSE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _FALSE@GOTPAGEOFF]
	cmn	x8, #1
	csel	x8, x21, x22, eq
	ldr	w1, [x8]
	bl	_EnableWindow
Lloh7:
	adrp	x8, _IDC_HRDPROFCOPY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IDC_HRDPROFCOPY@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	ldr	x8, [x20]
	cmn	x8, #1
	csel	x8, x21, x22, eq
	ldr	w1, [x8]
	bl	_EnableWindow
Lloh10:
	adrp	x8, _IDC_HRDPROFRENAME@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IDC_HRDPROFRENAME@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	ldr	x8, [x20]
	cmn	x8, #1
	csel	x8, x21, x22, eq
	ldr	w1, [x8]
	bl	_EnableWindow
Lloh13:
	adrp	x8, _IDC_HRDPROFDEL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IDC_HRDPROFDEL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	ldr	x8, [x20]
	cmn	x8, #1
	csel	x8, x21, x22, eq
	ldr	w1, [x8]
	bl	_EnableWindow
	ldr	w23, [x20, #8]
Lloh16:
	adrp	x8, _IDC_HRDPROFUP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IDC_HRDPROFUP@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	cmp	w23, #1
	b.gt	LBB0_2
; %bb.1:
	ldr	w1, [x21]
	bl	_EnableWindow
Lloh19:
	adrp	x8, _IDC_HRDPROFDWN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IDC_HRDPROFDWN@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	ldr	w1, [x21]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x20]
	cmp	x8, #0
	csel	x8, x22, x21, gt
	ldr	w1, [x8]
	bl	_EnableWindow
Lloh22:
	adrp	x8, _IDC_HRDPROFDWN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IDC_HRDPROFDWN@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	ldr	x8, [x20]
	ldrsw	x9, [x20, #8]
	sub	x9, x9, #1
	cmp	x8, x9
	csel	x8, x22, x21, lt
	ldr	w1, [x8]
LBB0_3:
	bl	_EnableWindow
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_HRDPROFPROP,4,2            ; @IDC_HRDPROFPROP
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_IDC_HRDPROFCOPY,4,2            ; @IDC_HRDPROFCOPY
	.comm	_IDC_HRDPROFRENAME,4,2          ; @IDC_HRDPROFRENAME
	.comm	_IDC_HRDPROFDEL,4,2             ; @IDC_HRDPROFDEL
	.comm	_IDC_HRDPROFUP,4,2              ; @IDC_HRDPROFUP
	.comm	_IDC_HRDPROFDWN,4,2             ; @IDC_HRDPROFDWN
	.no_dead_strip	_UpdateButtons
.subsections_via_symbols
