	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TrayIcon_GetProcessorUsageIcon ## -- Begin function TrayIcon_GetProcessorUsageIcon
	.p2align	4, 0x90
_TrayIcon_GetProcessorUsageIcon:        ## @TrayIcon_GetProcessorUsageIcon
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_GetDC
	testq	%rax, %rax
	je	LBB0_18
## %bb.1:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_CreateCompatibleDC
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r14
	movq	_hInst@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movq	_IDB_TRAYICON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAKEINTRESOURCEW
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_LoadBitmapW
	movq	%rax, %r13
	movl	(%r15), %ebx
	movq	_IDB_TRAYMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAKEINTRESOURCEW
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_LoadBitmapW
	xorl	%r15d, %r15d
	testq	%r13, %r13
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_11
## %bb.3:
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movl	$255, %esi
	xorl	%edx, %edx
	callq	_RGB
	movl	%eax, %edi
	callq	_CreateSolidBrush
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_SelectObject
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_PerfDataGetProcessorUsage
	cltq
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	leal	(%rcx,%rax), %edx
	movslq	%edx, %rdx
	imulq	$-780903145, %rdx, %rdx         ## imm = 0xD1745D17
	movq	%rdx, %rsi
	sarq	$33, %rsi
	shrq	$63, %rdx
	movl	$3, -64(%rbp)
	addl	%esi, %edx
	addl	$12, %edx
	movl	%edx, -60(%rbp)
	movabsq	$55834574861, %rdx              ## imm = 0xD0000000D
	movq	%rdx, -56(%rbp)
	addl	%ecx, %eax
	addl	$10, %eax
	cmpl	$21, %eax
	jb	LBB0_7
## %bb.6:
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_FillRect
LBB0_7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_SelectObject
	movq	%rax, %r13
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -80(%rbp)
	movq	%r13, -88(%rbp)
	leaq	-88(%rbp), %rdi
	callq	_CreateIconIndirect
	movq	%rax, %r15
	jmp	LBB0_12
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_ReleaseDC
	movq	%r14, %rdi
	callq	_DeleteDC
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_DeleteObject
LBB0_14:
	testq	%r13, %r13
	je	LBB0_16
## %bb.15:
	movq	%r13, %rdi
	callq	_DeleteObject
LBB0_16:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_DeleteObject
	jmp	LBB0_18
LBB0_8:
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_ReleaseDC
LBB0_18:
	movq	%r15, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hInst,4,2                      ## @hInst
	.comm	_IDB_TRAYICON,4,2               ## @IDB_TRAYICON
	.comm	_IDB_TRAYMASK,4,2               ## @IDB_TRAYMASK
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TrayIcon_GetProcessorUsageIcon ; -- Begin function TrayIcon_GetProcessorUsageIcon
	.p2align	2
_TrayIcon_GetProcessorUsageIcon:        ; @TrayIcon_GetProcessorUsageIcon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x0, #0
	bl	_GetDC
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_CreateCompatibleDC
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x23, _hInst@GOTPAGE
Lloh1:
	ldr	x23, [x23, _hInst@GOTPAGEOFF]
	ldr	w21, [x23]
Lloh2:
	adrp	x8, _IDB_TRAYICON@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IDB_TRAYICON@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_MAKEINTRESOURCEW
	mov	x1, x0
	mov	x0, x21
	bl	_LoadBitmapW
	mov	x22, x0
	ldr	w21, [x23]
Lloh5:
	adrp	x8, _IDB_TRAYMASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IDB_TRAYMASK@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_MAKEINTRESOURCEW
	mov	x1, x0
	mov	x0, x21
	bl	_LoadBitmapW
	mov	x21, x0
	cmp	x22, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_6
; %bb.3:
	mov	x24, #0
	mov	x23, #0
	b	LBB0_11
LBB0_4:
	mov	x24, #0
	b	LBB0_17
LBB0_5:
	mov	x1, x19
	bl	_ReleaseDC
	mov	x24, #0
	b	LBB0_17
LBB0_6:
	mov	w0, #0
	mov	w1, #255
	mov	w2, #0
	bl	_RGB
	bl	_CreateSolidBrush
	mov	x23, x0
	cbz	x0, LBB0_10
; %bb.7:
	mov	x0, x20
	mov	x1, x22
	bl	_SelectObject
	mov	x22, x0
	bl	_PerfDataGetProcessorUsage
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	add	w8, w8, w0
	mov	w9, #23831
	movk	w9, #53620, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #33
	add	w9, w9, w10
	mov	w10, #3
	add	w9, w9, #12
	stp	w10, w9, [sp, #8]
	movi.2s	v0, #13
	str	d0, [sp, #16]
	add	w8, w8, #10
	cmp	w8, #21
	b.lo	LBB0_9
; %bb.8:
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x23
	bl	_FillRect
LBB0_9:
	mov	x0, x20
	mov	x1, x22
	bl	_SelectObject
	mov	x22, x0
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	stp	x0, x21, [sp, #24]
	add	x0, sp, #24
	bl	_CreateIconIndirect
	mov	x24, x0
	b	LBB0_11
LBB0_10:
	mov	x24, #0
LBB0_11:
	mov	x0, #0
	mov	x1, x19
	bl	_ReleaseDC
	mov	x0, x20
	bl	_DeleteDC
	cbz	x23, LBB0_13
; %bb.12:
	mov	x0, x23
	bl	_DeleteObject
LBB0_13:
	cbz	x22, LBB0_15
; %bb.14:
	mov	x0, x22
	bl	_DeleteObject
LBB0_15:
	cbz	x21, LBB0_17
; %bb.16:
	mov	x0, x21
	bl	_DeleteObject
LBB0_17:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_hInst,4,2                      ; @hInst
	.comm	_IDB_TRAYICON,4,2               ; @IDB_TRAYICON
	.comm	_IDB_TRAYMASK,4,2               ; @IDB_TRAYMASK
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
