	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function OnTrayInitDialog
_OnTrayInitDialog:                      ## @OnTrayInitDialog
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$96, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	leaq	-32(%rbp), %rdi
	callq	_GetCursorPos
	leaq	-64(%rbp), %rsi
	movl	%ebx, %edi
	callq	_GetWindowRect
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_GetDesktopWindow
	leaq	-96(%rbp), %rsi
	movl	%eax, %edi
	callq	_GetWindowRect
	movq	-64(%rbp), %rax
	movq	-48(%rbp), %rsi
	subq	-56(%rbp), %rax
	subq	-40(%rbp), %rsi
	movq	-32(%rbp), %rcx
	movq	-24(%rbp), %rdx
	leaq	(%rcx,%rsi), %rdi
	cmpq	-80(%rbp), %rdi
	cmovleq	%r14, %rsi
	subq	%rsi, %rcx
	leaq	(%rdx,%rax), %rsi
	cmpq	-96(%rbp), %rsi
	cmovleq	%r14, %rax
	subq	%rax, %rdx
	movq	_HWND_TOPMOST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SWP_NOSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movl	%ebx, %edi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_SetWindowPos
	addq	$96, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HWND_TOPMOST,4,2               ## @HWND_TOPMOST
	.comm	_SWP_NOSIZE,4,2                 ## @SWP_NOSIZE
	.no_dead_strip	_OnTrayInitDialog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function OnTrayInitDialog
_OnTrayInitDialog:                      ; @OnTrayInitDialog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
	sub	x0, x29, #32
	bl	_GetCursorPos
	add	x1, sp, #32
	mov	x0, x19
	bl	_GetWindowRect
	bl	_GetDesktopWindow
	mov	x1, sp
	bl	_GetWindowRect
	ldp	x8, x9, [sp, #48]
	ldp	x10, x11, [x29, #-32]
	sub	x8, x8, x9
	add	x9, x10, x8
	ldr	x12, [sp, #16]
	ldr	x13, [sp]
	cmp	x9, x12
	csel	x8, x8, xzr, gt
	sub	x3, x10, x8
	ldp	x8, x9, [sp, #32]
	sub	x8, x8, x9
	add	x9, x11, x8
	cmp	x9, x13
	csel	x8, x8, xzr, gt
	sub	x2, x11, x8
Lloh0:
	adrp	x8, _HWND_TOPMOST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HWND_TOPMOST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SWP_NOSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SWP_NOSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w6, [x8]
	mov	x0, x19
	mov	w4, #0
	mov	w5, #0
	bl	_SetWindowPos
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HWND_TOPMOST,4,2               ; @HWND_TOPMOST
	.comm	_SWP_NOSIZE,4,2                 ; @SWP_NOSIZE
	.no_dead_strip	_OnTrayInitDialog
.subsections_via_symbols
