	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eprt                           ## -- Begin function eprt
	.p2align	4, 0x90
_eprt:                                  ## @eprt
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_usedefault@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_pdata@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	testl	%edi, %edi
	js	LBB0_2
## %bb.1:
	callq	_close
	movl	$-1, (%r14)
LBB0_2:
	movb	(%rbx), %r13b
	testb	%r13b, %r13b
	je	LBB0_3
## %bb.6:
	incq	%rbx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_strtol
	testl	%eax, %eax
	je	LBB0_3
## %bb.7:
	movq	-48(%rbp), %rbx
	cmpb	%r13b, (%rbx)
	jne	LBB0_3
## %bb.8:
	cmpl	$1, %eax
	jne	LBB0_22
## %bb.9:
	incq	%rbx
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_data_dest@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	%rax, (%rcx)
	movsbl	%r13b, %esi
	movq	%rbx, %rdi
	callq	_strchr
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:
	movq	%rax, %r14
	movb	$0, (%rax)
	movq	(%r12), %rdi
	movq	(%rdi), %r15
	callq	_socket_get_address
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_inet_pton
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.12:
	incq	%r14
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_strtol
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movq	-48(%rbp), %rcx
	cmpb	%r13b, (%rcx)
	jne	LBB0_14
## %bb.15:
	movq	_IPPORT_RESERVED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_17
## %bb.16:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rsi
LBB0_4:
	movl	$500, %edi                      ## imm = 0x1F4
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reply                          ## TAILCALL
LBB0_22:
	leaq	L_.str.1(%rip), %rsi
	movl	$522, %edi                      ## imm = 0x20A
	movl	%eax, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reply                          ## TAILCALL
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
LBB0_14:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_4
LBB0_17:
	movq	(%r12), %rbx
	movl	%eax, %edi
	callq	_htons
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_socket_set_port
	movq	_paranoid@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_21
## %bb.18:
	movq	(%r12), %rdi
	movq	(%rdi), %rax
	movq	_his_addr@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.19:
	callq	_socket_get_address
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	callq	_socket_get_address
	movl	%eax, %ebx
	movq	(%r12), %rdi
	callq	_socket_sockaddr_size
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_21
LBB0_20:
	leaq	L_.str.5(%rip), %rsi
	movl	$500, %edi                      ## imm = 0x1F4
	xorl	%eax, %eax
	callq	_reply
LBB0_21:
	leaq	L_.str.6(%rip), %rsi
	movl	$200, %edi
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_usedefault,8,3                 ## @usedefault
	.comm	_pdata,4,2                      ## @pdata
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad syntax in EPRT"

	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_data_dest,8,3                  ## @data_dest
L_.str.1:                               ## @.str.1
	.asciz	"Network protocol %d not supported, use (1)"

L_.str.2:                               ## @.str.2
	.asciz	"Bad address syntax in EPRT"

L_.str.3:                               ## @.str.3
	.asciz	"Bad port syntax in EPRT"

	.comm	_IPPORT_RESERVED,4,2            ## @IPPORT_RESERVED
L_.str.4:                               ## @.str.4
	.asciz	"Bad port in invalid range in EPRT"

	.comm	_paranoid,8,3                   ## @paranoid
	.comm	_his_addr,8,3                   ## @his_addr
L_.str.5:                               ## @.str.5
	.asciz	"Bad address in EPRT"

L_.str.6:                               ## @.str.6
	.asciz	"EPRT command successful."

	.comm	_AF_INET6,8,3                   ## @AF_INET6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eprt                           ; -- Begin function eprt
	.p2align	2
_eprt:                                  ; @eprt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _usedefault@GOTPAGE
Lloh1:
	ldr	x8, [x8, _usedefault@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x20, _pdata@GOTPAGE
Lloh4:
	ldr	x20, [x20, _pdata@GOTPAGEOFF]
	ldr	w0, [x20]
	tbnz	w0, #31, LBB0_2
; %bb.1:
	bl	_close
	mov	w8, #-1
	str	w8, [x20]
LBB0_2:
	ldrb	w23, [x19]
	cbz	w23, LBB0_12
; %bb.3:
	add	x0, x19, #1
	add	x1, sp, #8
	mov	w2, #0
	bl	_strtol
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_12
; %bb.4:
	ldr	x8, [sp, #8]
	ldrb	w9, [x8]
	cmp	w9, w23
	b.ne	LBB0_12
; %bb.5:
	cmp	w0, #1
	b.ne	LBB0_15
; %bb.6:
Lloh5:
	adrp	x9, _AF_INET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
	add	x19, x8, #1
Lloh7:
	ldr	x8, [x9]
Lloh8:
	adrp	x22, _data_dest@GOTPAGE
Lloh9:
	ldr	x22, [x22, _data_dest@GOTPAGEOFF]
	ldr	x9, [x22]
	str	x8, [x9]
	sxtb	w1, w23
	mov	x0, x19
	bl	_strchr
	str	x0, [sp, #8]
	cbz	x0, LBB0_12
; %bb.7:
	mov	x20, x0
	strb	wzr, [x0]
	ldr	x0, [x22]
	ldr	x21, [x0]
	bl	_socket_get_address
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_inet_pton
	cmp	w0, #1
	b.ne	LBB0_16
; %bb.8:
	add	x0, x20, #1
	add	x1, sp, #8
	mov	w2, #0
	bl	_strtol
	cbz	w0, LBB0_17
; %bb.9:
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_17
; %bb.10:
Lloh10:
	adrp	x8, _IPPORT_RESERVED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IPPORT_RESERVED@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_18
; %bb.11:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
LBB0_13:
	mov	w0, #500
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_reply
LBB0_15:
	str	x0, [sp]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #522
	bl	_reply
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_16:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_17:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_18:
	ldr	x19, [x22]
	bl	_htons
	mov	x1, x0
	mov	x0, x19
	bl	_socket_set_port
Lloh23:
	adrp	x8, _paranoid@GOTPAGE
Lloh24:
	ldr	x8, [x8, _paranoid@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cbz	x8, LBB0_22
; %bb.19:
	ldr	x0, [x22]
	ldr	x8, [x0]
Lloh26:
	adrp	x20, _his_addr@GOTPAGE
Lloh27:
	ldr	x20, [x20, _his_addr@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.20:
	bl	_socket_get_address
	mov	x19, x0
	ldr	x0, [x20]
	bl	_socket_get_address
	mov	x20, x0
	ldr	x0, [x22]
	bl	_socket_sockaddr_size
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_memcmp
	cbz	x0, LBB0_22
LBB0_21:
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #500
	bl	_reply
LBB0_22:
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #200
	b	LBB0_14
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_usedefault,8,3                 ; @usedefault
	.comm	_pdata,4,2                      ; @pdata
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad syntax in EPRT"

	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_data_dest,8,3                  ; @data_dest
l_.str.1:                               ; @.str.1
	.asciz	"Network protocol %d not supported, use (1)"

l_.str.2:                               ; @.str.2
	.asciz	"Bad address syntax in EPRT"

l_.str.3:                               ; @.str.3
	.asciz	"Bad port syntax in EPRT"

	.comm	_IPPORT_RESERVED,4,2            ; @IPPORT_RESERVED
l_.str.4:                               ; @.str.4
	.asciz	"Bad port in invalid range in EPRT"

	.comm	_paranoid,8,3                   ; @paranoid
	.comm	_his_addr,8,3                   ; @his_addr
l_.str.5:                               ; @.str.5
	.asciz	"Bad address in EPRT"

l_.str.6:                               ; @.str.6
	.asciz	"EPRT command successful."

	.comm	_AF_INET6,8,3                   ; @AF_INET6
.subsections_via_symbols
