	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function UpdateButtonColor
LCPI0_0:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	22                              ## 0x16
	.long	13                              ## 0xd
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_UpdateButtonColor:                     ## @UpdateButtonColor
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movl	%edx, %r8d
	movl	%edi, %ebx
	cmpl	$-1, %r13d
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	%r8d, %esi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	callq	_GetDlgItem
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_GetDC
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_CreateCompatibleDC
	movl	%eax, %r12d
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_ReleaseDC
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movslq	-44(%rbp), %r15                 ## 4-byte Folded Reload
	movq	(%rax,%r15,8), %rsi
	movl	%r12d, %edi
	callq	_SelectObject
	movq	%rax, %r14
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [2,2,22,13]
	movaps	%xmm0, -80(%rbp)
	movq	8(%rbx), %rax
	movslq	%r13d, %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_CreateSolidBrush
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	%eax, %ebx
	leaq	-80(%rbp), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	callq	_FillRect
	movl	%ebx, %edi
	callq	_DeleteObject
	movl	%r12d, %edi
	movq	%r14, %rsi
	callq	_SelectObject
	movl	%r12d, %edi
	callq	_DeleteDC
	movq	_BM_SETIMAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IMAGE_BITMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r15,8), %r8d
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_SendDlgItemMessage
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_GetDlgItem
	movq	_TRUE@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	_BM_SETIMAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IMAGE_BITMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	movl	%r8d, %r14d
	movl	%r8d, %esi
	xorl	%r8d, %r8d
	callq	_SendDlgItemMessage
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_GetDlgItem
	movq	_FALSE@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_EnableWindow
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BM_SETIMAGE,4,2                ## @BM_SETIMAGE
	.comm	_IMAGE_BITMAP,8,3               ## @IMAGE_BITMAP
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_UpdateButtonColor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function UpdateButtonColor
lCPI0_0:
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	22                              ; 0x16
	.long	13                              ; 0xd
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_UpdateButtonColor:                     ; @UpdateButtonColor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x0
	cmn	w4, #1
	b.eq	LBB0_2
; %bb.1:
	mov	x22, x4
	mov	x23, x3
	mov	x21, x1
	mov	x0, x20
	mov	x1, x19
	bl	_GetDlgItem
	mov	x24, x0
	bl	_GetDC
	mov	x25, x0
	bl	_CreateCompatibleDC
	mov	x26, x0
	mov	x0, x24
	mov	x1, x25
	bl	_ReleaseDC
	ldr	x8, [x21]
	sbfiz	x24, x23, #3, #32
	ldr	x1, [x8, x24]
	mov	x0, x26
	bl	_SelectObject
	mov	x23, x0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp]
	ldr	x8, [x21, #8]
	ldr	w0, [x8, w22, sxtw #2]
	bl	_CreateSolidBrush
	mov	x22, x0
	mov	x1, sp
	mov	x0, x26
	mov	x2, x22
	bl	_FillRect
	mov	x0, x22
	bl	_DeleteObject
	mov	x0, x26
	mov	x1, x23
	bl	_SelectObject
	mov	x0, x26
	bl	_DeleteDC
Lloh2:
	adrp	x8, _BM_SETIMAGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BM_SETIMAGE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _IMAGE_BITMAP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IMAGE_BITMAP@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	ldr	x8, [x21]
	ldr	w4, [x8, x24]
	mov	x0, x20
	mov	x1, x19
	bl	_SendDlgItemMessage
	mov	x0, x20
	mov	x1, x19
	bl	_GetDlgItem
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _BM_SETIMAGE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BM_SETIMAGE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x8, _IMAGE_BITMAP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IMAGE_BITMAP@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_SendDlgItemMessage
	mov	x0, x20
	mov	x1, x19
	bl	_GetDlgItem
Lloh16:
	adrp	x8, _FALSE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x8]
	bl	_EnableWindow
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BM_SETIMAGE,4,2                ; @BM_SETIMAGE
	.comm	_IMAGE_BITMAP,8,3               ; @IMAGE_BITMAP
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_UpdateButtonColor
.subsections_via_symbols
