	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UpdateButtonStatus             ## -- Begin function UpdateButtonStatus
	.p2align	4, 0x90
_UpdateButtonStatus:                    ## @UpdateButtonStatus
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movslq	%esi, %r12
	movq	_IDC_CONNECTEDDRIVELIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdx, %rdi
	callq	_GetDlgItem
	movq	%rax, %r15
	movq	_ID_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_GetDlgItem
	cmpq	%r15, (%r12)
	jne	LBB0_6
## %bb.1:
	cmpl	$128, 8(%r12)
	jne	LBB0_6
## %bb.2:
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_ListView_GetSelectedCount
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_EnableWindow
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_CONNECTEDDRIVELIST,4,2     ## @IDC_CONNECTEDDRIVELIST
	.comm	_ID_OK,4,2                      ## @ID_OK
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UpdateButtonStatus             ; -- Begin function UpdateButtonStatus
	.p2align	2
_UpdateButtonStatus:                    ; @UpdateButtonStatus
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
                                        ; kill: def $w1 killed $w1 def $x1
	sxtw	x21, w1
Lloh0:
	adrp	x8, _IDC_CONNECTEDDRIVELIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDC_CONNECTEDDRIVELIST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x2
	bl	_GetDlgItem
	mov	x20, x0
Lloh3:
	adrp	x8, _ID_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ID_OK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	ldr	x8, [x21]
	cmp	x8, x20
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x21, #8]
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.2:
	mov	x19, x0
	mov	x0, x20
	bl	_ListView_GetSelectedCount
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh8:
	adrp	x9, _TRUE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_EnableWindow
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_CONNECTEDDRIVELIST,4,2     ; @IDC_CONNECTEDDRIVELIST
	.comm	_ID_OK,4,2                      ; @ID_OK
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
