	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remote_open
_remote_open:                           ## @remote_open
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	incq	%rax
	movq	%rax, %rdi
	callq	_atoi
	movl	%eax, %r15d
	movq	_PF_INET@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	_perror_with_name
LBB0_3:
	movl	$1, -44(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_SO_REUSEADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movl	%ebx, %edi
	movl	$4, %r8d
	callq	_setsockopt
	movl	(%r13), %eax
	movl	%eax, -48(%rbp)
	movl	%r15d, %edi
	callq	_htons
	movl	%eax, -52(%rbp)
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movl	%ebx, %edi
	movl	$12, %edx
	callq	_bind
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_listen
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	callq	_perror_with_name
LBB0_6:
	movl	$12, -44(%rbp)
	leaq	-56(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movl	%ebx, %edi
	callq	_accept
	movq	_remote_desc@GOTPCREL(%rip), %r13
	movl	%eax, (%r13)
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	callq	_perror_with_name
LBB0_8:
	movl	$1, -44(%rbp)
	movl	(%r12), %esi
	movq	_SO_KEEPALIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %r15
	movl	%ebx, %edi
	movq	%r15, %rcx
	movl	$4, %r8d
	callq	_setsockopt
	movl	$1, -44(%rbp)
	movl	(%r13), %edi
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TCP_NODELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rcx
	movl	$4, %r8d
	callq	_setsockopt
	movl	%ebx, %edi
	callq	_close
	movq	_SIGPIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIG_IGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movl	(%r13), %edi
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_fcntl
	movq	_stderr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdx
	callq	_fprintf
	movl	(%rbx), %edi
	callq	_fflush
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_fprintf
	movl	(%rbx), %edi
	callq	_fflush
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Must specify tcp connection as host:addr\n"

	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.1:                               ## @.str.1
	.asciz	"Can't open socket"

	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ## @SO_REUSEADDR
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
L_.str.2:                               ## @.str.2
	.asciz	"Can't bind address"

	.comm	_remote_desc,4,2                ## @remote_desc
L_.str.3:                               ## @.str.3
	.asciz	"Accept failed"

	.comm	_SO_KEEPALIVE,4,2               ## @SO_KEEPALIVE
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_TCP_NODELAY,4,2                ## @TCP_NODELAY
	.comm	_SIGPIPE,4,2                    ## @SIGPIPE
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_FASYNC,4,2                     ## @FASYNC
L_.str.4:                               ## @.str.4
	.asciz	"Replay logfile using %s\n"

	.no_dead_strip	_remote_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remote_open
_remote_open:                           ; @remote_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_9
; %bb.1:
	add	x0, x0, #1
	bl	_atoi
	mov	x21, x0
Lloh0:
	adrp	x23, _PF_INET@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PF_INET@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x20, x0
	tbz	w0, #31, LBB0_3
; %bb.2:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror_with_name
LBB0_3:
	mov	w8, #1
	str	w8, [sp, #12]
Lloh7:
	adrp	x22, _SOL_SOCKET@GOTPAGE
Lloh8:
	ldr	x22, [x22, _SOL_SOCKET@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh9:
	adrp	x8, _SO_REUSEADDR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SO_REUSEADDR@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x20
	mov	w4, #4
	bl	_setsockopt
	ldr	w8, [x23]
	str	w8, [sp, #24]
	mov	x0, x21
	bl	_htons
Lloh12:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #16]
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #12
	bl	_bind
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	w1, #1
	bl	_listen
	cbz	x0, LBB0_6
LBB0_5:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror_with_name
LBB0_6:
	mov	w8, #12
	str	w8, [sp, #12]
	add	x1, sp, #16
	add	x2, sp, #12
	mov	x0, x20
	bl	_accept
Lloh17:
	adrp	x21, _remote_desc@GOTPAGE
Lloh18:
	ldr	x21, [x21, _remote_desc@GOTPAGEOFF]
	str	w0, [x21]
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_perror_with_name
LBB0_8:
	mov	w23, #1
	str	w23, [sp, #12]
	ldr	w1, [x22]
Lloh21:
	adrp	x8, _SO_KEEPALIVE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SO_KEEPALIVE@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x20
	mov	w4, #4
	bl	_setsockopt
	str	w23, [sp, #12]
	ldr	w0, [x21]
Lloh24:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _TCP_NODELAY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TCP_NODELAY@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	w4, #4
	bl	_setsockopt
	mov	x0, x20
	bl	_close
Lloh30:
	adrp	x8, _SIGPIPE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SIGPIPE@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	bl	_signal
	ldr	w0, [x21]
Lloh36:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x8, _FASYNC@GOTPAGE
Lloh40:
	ldr	x8, [x8, _FASYNC@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	bl	_fcntl
Lloh42:
	adrp	x20, _stderr@GOTPAGE
Lloh43:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh44:
	adrp	x1, l_.str.4@PAGE
Lloh45:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	ldr	w0, [x20]
	bl	_fflush
	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	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
Lloh46:
	adrp	x20, _stderr@GOTPAGE
Lloh47:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh48:
	adrp	x1, l_.str@PAGE
Lloh49:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	ldr	w0, [x20]
	bl	_fflush
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Must specify tcp connection as host:addr\n"

	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.1:                               ; @.str.1
	.asciz	"Can't open socket"

	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ; @SO_REUSEADDR
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
l_.str.2:                               ; @.str.2
	.asciz	"Can't bind address"

	.comm	_remote_desc,4,2                ; @remote_desc
l_.str.3:                               ; @.str.3
	.asciz	"Accept failed"

	.comm	_SO_KEEPALIVE,4,2               ; @SO_KEEPALIVE
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_TCP_NODELAY,4,2                ; @TCP_NODELAY
	.comm	_SIGPIPE,4,2                    ; @SIGPIPE
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_FASYNC,4,2                     ; @FASYNC
l_.str.4:                               ; @.str.4
	.asciz	"Replay logfile using %s\n"

	.no_dead_strip	_remote_open
.subsections_via_symbols
