	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NET_Sleep                      ## -- Begin function NET_Sleep
	.p2align	4, 0x90
_NET_Sleep:                             ## @NET_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ip_socket@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.1:
	movq	_com_dedicated@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.2:
	movl	%edi, %ebx
	leaq	-28(%rbp), %rdi
	callq	_FD_ZERO
	movq	_stdin_active@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	-28(%rbp), %rsi
	xorl	%edi, %edi
	callq	_FD_SET
LBB0_4:
	movq	(%r15), %rdi
	leaq	-28(%rbp), %r14
	movq	%r14, %rsi
	callq	_FD_SET
	movslq	%ebx, %rax
	imulq	$274877907, %rax, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movl	%ecx, -40(%rbp)
	imull	$1000, %ecx, %ecx               ## imm = 0x3E8
	subl	%ecx, %eax
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, -36(%rbp)
	movq	(%r15), %rdi
	incq	%rdi
	leaq	-40(%rbp), %r8
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_select
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ip_socket,8,3                  ## @ip_socket
	.comm	_com_dedicated,8,3              ## @com_dedicated
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NET_Sleep                      ; -- Begin function NET_Sleep
	.p2align	2
_NET_Sleep:                             ; @NET_Sleep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _ip_socket@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ip_socket@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _com_dedicated@GOTPAGE
Lloh3:
	ldr	x8, [x8, _com_dedicated@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x19, x0
	add	x0, sp, #4
	bl	_FD_ZERO
Lloh5:
	adrp	x8, _stdin_active@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stdin_active@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	add	x1, sp, #4
	mov	x0, #0
	bl	_FD_SET
LBB0_4:
	ldr	x0, [x20]
	add	x1, sp, #4
	bl	_FD_SET
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w19, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	mov	w9, #1000
	msub	w10, w8, w9, w19
	mul	w9, w10, w9
	stp	w8, w9, [sp, #8]
	ldr	x8, [x20]
	add	x0, x8, #1
	add	x1, sp, #4
	add	x4, sp, #8
	mov	x2, #0
	mov	x3, #0
	bl	_select
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ip_socket,8,3                  ; @ip_socket
	.comm	_com_dedicated,8,3              ; @com_dedicated
.subsections_via_symbols
