	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_usleep                      ## -- Begin function pg_usleep
	.p2align	4, 0x90
_pg_usleep:                             ## @pg_usleep
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_pgwin32_signal_event@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	setne	%dil
	callq	_Assert
	movq	(%r14), %rdi
	movl	$1, %esi
	cmpq	$500, %rbx                      ## imm = 0x1F4
	jl	LBB0_2
## %bb.1:
	addq	$500, %rbx                      ## imm = 0x1F4
	shrq	$3, %rbx
	movabsq	$2361183241434822607, %rcx      ## imm = 0x20C49BA5E353F7CF
	movq	%rbx, %rax
	mulq	%rcx
	movq	%rdx, %rsi
	shrq	$4, %rsi
LBB0_2:
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_WaitForSingleObject
	movq	_WAIT_OBJECT_0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_pgwin32_dispatch_queued_signals
	movq	_EINTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pgwin32_signal_event,8,3       ## @pgwin32_signal_event
	.comm	_WAIT_OBJECT_0,8,3              ## @WAIT_OBJECT_0
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_usleep                      ; -- Begin function pg_usleep
	.p2align	2
_pg_usleep:                             ; @pg_usleep
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _pgwin32_signal_event@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pgwin32_signal_event@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
	ldr	x0, [x20]
	mov	w8, #1
	cmp	x19, #500
	add	x9, x19, #500
	lsr	x9, x9, #3
	mov	x10, #63439
	movk	x10, #58195, lsl #16
	movk	x10, #39845, lsl #32
	movk	x10, #8388, lsl #48
	umulh	x9, x9, x10
	lsr	x9, x9, #4
	csel	w1, w8, w9, lt
	bl	_WaitForSingleObject
Lloh2:
	adrp	x8, _WAIT_OBJECT_0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WAIT_OBJECT_0@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	bl	_pgwin32_dispatch_queued_signals
Lloh5:
	adrp	x8, _EINTR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _errno@GOTPAGE
Lloh9:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh10:
	str	w8, [x9]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_pgwin32_signal_event,8,3       ; @pgwin32_signal_event
	.comm	_WAIT_OBJECT_0,8,3              ; @WAIT_OBJECT_0
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
