	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtime                          ## -- Begin function rtime
	.p2align	4, 0x90
_rtime:                                 ## @rtime
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	testq	%rdx, %rdx
	jne	LBB0_2
## %bb.1:
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	movq	_AF_INET@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	__socket
	movl	%eax, %r12d
	movl	$-1, %eax
	testl	%r12d, %r12d
	js	LBB0_22
## %bb.4:
	movl	(%r15), %eax
	movl	%eax, 4(%r13)
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_getservbyname
	testq	%rax, %rax
	je	LBB0_21
## %bb.5:
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_12
## %bb.6:
	leaq	-48(%rbp), %rsi
	movl	%r12d, %edi
	movl	$8, %edx
	xorl	%ecx, %ecx
	movq	%r13, %r8
	movl	$8, %r9d
	callq	__sendto
	testl	%eax, %eax
	js	LBB0_20
## %bb.7:
	leaq	-68(%rbp), %rbx
	movq	_errno@GOTPCREL(%rip), %r13
	movq	_EINTR@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_FD_ZERO
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_FD_SET
	xorl	%eax, %eax
	callq	__rpc_dtablesize
	movl	%eax, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	__select
	testl	%eax, %eax
	jns	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r15), %rcx
	cmpq	%rcx, (%r13)
	je	LBB0_8
LBB0_10:
	testl	%eax, %eax
	jle	LBB0_18
## %bb.11:
	movl	$8, -52(%rbp)
	leaq	-48(%rbp), %rsi
	leaq	-80(%rbp), %r8
	leaq	-52(%rbp), %r9
	movl	%r12d, %edi
	movl	$8, %edx
	xorl	%ecx, %ecx
	callq	__recvfrom
	jmp	LBB0_14
LBB0_12:
	movl	%r12d, %edi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	__connect
	testq	%rax, %rax
	js	LBB0_20
## %bb.13:
	leaq	-48(%rbp), %rsi
	movl	%r12d, %edi
	movl	$8, %edx
	callq	__read
LBB0_14:
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_do_close
	testl	%ebx, %ebx
	js	LBB0_21
## %bb.15:
	cmpl	$8, %ebx
	jne	LBB0_17
## %bb.16:
	movq	-48(%rbp), %rdi
	callq	_ntohl
	movq	%rax, -48(%rbp)
	movq	_TOFFSET@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	movq	$0, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_17:
	movq	_EIO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_21
LBB0_18:
	jne	LBB0_20
## %bb.19:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
LBB0_20:
	movl	%r12d, %edi
	callq	_do_close
LBB0_21:
	movl	$-1, %eax
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_AF_INET,4,2                    ## @AF_INET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"time"

L_.str.1:                               ## @.str.1
	.asciz	"tcp"

	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_ETIMEDOUT,8,3                  ## @ETIMEDOUT
	.comm	_EIO,8,3                        ## @EIO
	.comm	_TOFFSET,8,3                    ## @TOFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtime                          ; -- Begin function rtime
	.p2align	2
_rtime:                                 ; @rtime
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh2:
	adrp	x24, _SOCK_DGRAM@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SOCK_DGRAM@GOTPAGEOFF]
	cmp	x2, #0
	csel	x8, x8, x24, eq
	ldr	w23, [x8]
Lloh4:
	adrp	x25, _AF_INET@GOTPAGE
Lloh5:
	ldr	x25, [x25, _AF_INET@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	x1, x23
	mov	w2, #0
	bl	__socket
	tbnz	w0, #31, LBB0_18
; %bb.1:
	mov	x20, x0
	ldr	w8, [x25]
	str	w8, [x22, #4]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_getservbyname
	cbz	x0, LBB0_18
; %bb.2:
	ldr	w8, [x0]
	str	w8, [x22]
	ldr	w8, [x24]
	cmp	w23, w8
	b.ne	LBB0_9
; %bb.3:
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #8
	mov	w3, #0
	mov	x4, x22
	mov	w5, #8
	bl	__sendto
	tbnz	w0, #31, LBB0_17
; %bb.4:
Lloh10:
	adrp	x22, _errno@GOTPAGE
Lloh11:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
Lloh12:
	adrp	x23, _EINTR@GOTPAGE
Lloh13:
	ldr	x23, [x23, _EINTR@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #28
	bl	_FD_ZERO
	add	x1, sp, #28
	mov	x0, x20
	bl	_FD_SET
	bl	__rpc_dtablesize
	add	x1, sp, #28
	mov	x2, #0
	mov	x3, #0
	mov	x4, x21
	bl	__select
	tbz	w0, #31, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_5
LBB0_7:
	cmp	w0, #0
	b.le	LBB0_15
; %bb.8:
	mov	w8, #8
	str	w8, [sp, #4]
	add	x1, sp, #16
	add	x4, sp, #8
	add	x5, sp, #4
	mov	x0, x20
	mov	w2, #8
	mov	w3, #0
	bl	__recvfrom
	b	LBB0_11
LBB0_9:
	mov	x0, x20
	mov	x1, x22
	mov	w2, #8
	bl	__connect
	tbnz	x0, #63, LBB0_17
; %bb.10:
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #8
	bl	__read
LBB0_11:
	mov	x21, x0
	mov	x0, x20
	bl	_do_close
	tbnz	w21, #31, LBB0_18
; %bb.12:
	cmp	w21, #8
	b.ne	LBB0_14
; %bb.13:
	ldr	x0, [sp, #16]
	bl	_ntohl
	mov	x8, x0
	mov	w0, #0
	str	x8, [sp, #16]
Lloh14:
	adrp	x9, _TOFFSET@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TOFFSET@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	sub	x8, x8, x9
	stp	xzr, x8, [x19]
	b	LBB0_19
LBB0_14:
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _errno@GOTPAGE
Lloh21:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh22:
	str	x8, [x9]
	b	LBB0_18
LBB0_15:
	cbnz	w0, LBB0_17
; %bb.16:
Lloh23:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	x8, [x22]
LBB0_17:
	mov	x0, x20
	bl	_do_close
LBB0_18:
	mov	w0, #-1
LBB0_19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_AF_INET,4,2                    ; @AF_INET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"time"

l_.str.1:                               ; @.str.1
	.asciz	"tcp"

	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_ETIMEDOUT,8,3                  ; @ETIMEDOUT
	.comm	_EIO,8,3                        ; @EIO
	.comm	_TOFFSET,8,3                    ; @TOFFSET
.subsections_via_symbols
