	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AddTrayIcon
_AddTrayIcon:                           ## @AddTrayIcon
	.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
	movl	%edi, %r14d
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CCH_LAYOUT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	L_.str(%rip), %r12
	movq	%r12, %rdi
	callq	__T
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_ARRAYSIZE
	movl	%ebx, %edi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_GetLayoutID
	movq	%r12, %rdi
	callq	__T
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_ARRAYSIZE
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_GetLayoutName
	leaq	-96(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movabsq	$4294967336, %rax               ## imm = 0x100000028
	movq	%rax, -96(%rbp)
	movq	_NIF_ICON@GOTPCREL(%rip), %rax
	movq	_NIF_MESSAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%r14d, -64(%rbp)
	movq	_NIF_TIP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -88(%rbp)
	movq	_WM_NOTIFYICONMSG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	%r13, %rdi
	callq	_CreateTrayIcon
	movl	%eax, -72(%rbp)
	movq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAYSIZE
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_StringCchCopy
	movq	_NIM_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_Shell_NotifyIcon
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CCH_LAYOUT_ID,4,2              ## @CCH_LAYOUT_ID
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"1"

	.comm	_NIF_ICON,4,2                   ## @NIF_ICON
	.comm	_NIF_MESSAGE,4,2                ## @NIF_MESSAGE
	.comm	_NIF_TIP,4,2                    ## @NIF_TIP
	.comm	_WM_NOTIFYICONMSG,4,2           ## @WM_NOTIFYICONMSG
	.comm	_NIM_ADD,4,2                    ## @NIM_ADD
	.no_dead_strip	_AddTrayIcon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function AddTrayIcon
lCPI0_0:
	.long	40                              ; 0x28
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_AddTrayIcon:                           ; @AddTrayIcon
	.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
	sub	sp, sp, #48
	mov	x21, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _CCH_LAYOUT_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CCH_LAYOUT_ID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w8, w8, #1
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh13:
	adrp	x22, l_.str@PAGE
Lloh14:
	add	x22, x22, l_.str@PAGEOFF
	mov	x0, x22
	bl	__T
	mov	x23, x0
	mov	x0, x20
	bl	_ARRAYSIZE
	mov	x2, x0
	mov	x0, x23
	mov	x1, x20
	bl	_GetLayoutID
	mov	x0, x22
	bl	__T
	mov	x22, x0
	mov	x0, x19
	bl	_ARRAYSIZE
	mov	x2, x0
	mov	x0, x22
	mov	x1, x19
	bl	_GetLayoutName
	sub	x0, x29, #96
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	stur	w21, [x29, #-64]
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x29, #-96]
Lloh17:
	adrp	x8, _NIF_ICON@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NIF_ICON@GOTPAGEOFF]
Lloh19:
	adrp	x9, _NIF_MESSAGE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _NIF_MESSAGE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _NIF_TIP@GOTPAGE
Lloh24:
	ldr	x9, [x9, _NIF_TIP@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _WM_NOTIFYICONMSG@GOTPAGE
Lloh27:
	ldr	x9, [x9, _WM_NOTIFYICONMSG@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stur	w8, [x29, #-88]
	stur	w9, [x29, #-68]
	mov	x0, x20
	bl	_CreateTrayIcon
	stur	w0, [x29, #-72]
	ldur	x20, [x29, #-80]
	mov	x0, x20
	bl	_ARRAYSIZE
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_StringCchCopy
Lloh29:
	adrp	x8, _NIM_ADD@GOTPAGE
Lloh30:
	ldr	x8, [x8, _NIM_ADD@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	sub	x1, x29, #96
	bl	_Shell_NotifyIcon
	mov	sp, x24
	ldur	x8, [x29, #-56]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	sub	sp, x29, #48
	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
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpAdrp	Lloh15, Lloh17
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CCH_LAYOUT_ID,4,2              ; @CCH_LAYOUT_ID
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"1"

	.comm	_NIF_ICON,4,2                   ; @NIF_ICON
	.comm	_NIF_MESSAGE,4,2                ; @NIF_MESSAGE
	.comm	_NIF_TIP,4,2                    ; @NIF_TIP
	.comm	_WM_NOTIFYICONMSG,4,2           ; @WM_NOTIFYICONMSG
	.comm	_NIM_ADD,4,2                    ; @NIM_ADD
	.no_dead_strip	_AddTrayIcon
.subsections_via_symbols
