	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function PLATFORM_Sleep
LCPI0_0:
	.quad	0x4059000000000000              ## double 100
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_PLATFORM_Sleep
	.p2align	4, 0x90
_PLATFORM_Sleep:                        ## @PLATFORM_Sleep
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_UI_is_active@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.1:
	movapd	%xmm0, %xmm1
	mulsd	LCPI0_0(%rip), %xmm1
	xorpd	%xmm0, %xmm0
	movsd	%xmm1, -40(%rbp)                ## 8-byte Spill
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_5
## %bb.2:
	movl	$1, %r15d
	leaq	-64(%rbp), %r12
	leaq	-72(%rbp), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorpd	%xmm0, %xmm0
	movupd	%xmm0, (%r12)
	movq	$0, 16(%r12)
	movl	$1, -72(%rbp)
	movq	%r14, %rdi
	callq	_CreateSema
	testl	%eax, %eax
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_iSignalSema
	movl	%ebx, %edi
	callq	_WaitSema
	movl	%ebx, %edi
	callq	_DeleteSema
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r15d, %xmm0
	incl	%r15d
	movsd	-40(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	ja	LBB0_3
LBB0_5:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UI_is_active,8,3               ## @UI_is_active
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PLATFORM_Sleep                 ; -- Begin function PLATFORM_Sleep
	.p2align	2
_PLATFORM_Sleep:                        ; @PLATFORM_Sleep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
Lloh0:
	adrp	x8, _UI_is_active@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UI_is_active@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x8, #4636737291354636288
	fmov	d1, x8
	fmul	d8, d0, d1
	fcmp	d8, #0.0
	b.le	LBB0_5
; %bb.2:
	mov	x8, sp
	add	x20, x8, #8
	mov	w21, #1
	mov	w22, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	stp	xzr, xzr, [x20]
	str	xzr, [x20, #16]
	str	w21, [sp]
	mov	x0, sp
	bl	_CreateSema
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, x0
	bl	_iSignalSema
	mov	x0, x19
	bl	_WaitSema
	mov	x0, x19
	bl	_DeleteSema
	scvtf	d0, w22
	add	w22, w22, #1
	fcmp	d8, d0
	b.gt	LBB0_3
LBB0_5:
	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	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UI_is_active,8,3               ; @UI_is_active
.subsections_via_symbols
