	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __rtr_shell
___rtr_shell:                           ## @__rtr_shell
	.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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -188(%rbp)                ## 4-byte Spill
	movq	%rdi, -184(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str.1(%rip), %r12
	movq	%r12, -216(%rbp)
	movq	%r12, -208(%rbp)
	movq	%r12, -200(%rbp)
	movq	%r12, (%rsp)
	leaq	L_.str.2(%rip), %rdx
	leaq	L_.str(%rip), %rcx
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$64, %esi
	movq	%r12, %r8
	movq	%r12, %r9
	xorl	%eax, %eax
	callq	_snprintf
	leaq	L_.str.3(%rip), %rdx
	leaq	-176(%rbp), %rdi
	movl	$64, %esi
	movq	%r12, %rcx
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_r_line_set_prompt
	xorl	%eax, %eax
	callq	_r_line_readline
	testq	%rax, %rax
	je	LBB0_26
## %bb.1:
	movq	%rax, %r15
	leaq	L_.str.7(%rip), %r13
	jmp	LBB0_5
LBB0_2:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-200(%rbp), %rax
	movq	%rax, 16(%rsp)
	movups	-216(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	xorl	%esi, %esi
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	callq	_rtr_visual
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	leaq	-112(%rbp), %rdi
	callq	_r_line_set_prompt
	xorl	%eax, %eax
	callq	_r_line_readline
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_26
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movb	(%r15), %bl
	testb	%bl, %bl
	je	LBB0_26
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$113, %bl
	je	LBB0_26
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	orb	$32, %bl
	cmpb	$118, %bl
	jne	LBB0_23
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$32, 1(%r15)
	jne	LBB0_2
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movq	-200(%rbp), %rax
	movq	%rax, 16(%rsp)
	movups	-216(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rsi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	-176(%rbp), %rdi
	callq	_r_line_set_prompt
	xorl	%eax, %eax
	callq	_r_line_readline
	testq	%rax, %rax
	je	LBB0_4
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_15 Depth=2
	leaq	L_.str.9(%rip), %rdi
	movq	%r13, %rsi
	callq	_printf
	movq	%r14, %rdi
	callq	_r_line_hist_add
	movq	%r14, %rdi
	callq	_free
	leaq	L_.str.7(%rip), %r13
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	%r15, %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_free
	leaq	-176(%rbp), %rdi
	callq	_r_line_set_prompt
	xorl	%eax, %eax
	callq	_r_line_readline
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
LBB0_15:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$0, (%rbx)
	je	LBB0_4
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	%rbx, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	%rbx, %rdi
	callq	_r_str_uri_encode
	movq	%rax, %r15
	leaq	L_.str.6(%rip), %rdi
	movq	%r12, %rsi
	movq	%r12, %rdx
	movq	%r12, %rcx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_r_str_newf
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	leaq	-192(%rbp), %rdx
	callq	_r_socket_http_get
	testq	%rax, %rax
	je	LBB0_14
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	%rax, %r14
	movslq	-192(%rbp), %rax
	movb	$0, (%r14,%rax)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=2
	incq	%rax
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_strstr
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=2
	xorl	%eax, %eax
LBB0_21:                                ##   in Loop: Header=BB0_15 Depth=2
	leaq	2(%rax), %r13
	testq	%rax, %rax
	cmoveq	%r14, %r13
	movq	%r13, %rdi
	callq	_strlen
	cltq
	cmpb	$10, -1(%rax,%r13)
	movq	%r12, %rdx
	je	LBB0_13
## %bb.22:                              ##   in Loop: Header=BB0_15 Depth=2
	leaq	L_.str.8(%rip), %rdx
	jmp	LBB0_13
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.11(%rip), %rdi
	movl	-188(%rbp), %esi                ## 4-byte Reload
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_r_str_newf
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	movq	%rax, %rsi
	callq	_r_core_rtr_cmd
	xorl	%eax, %eax
	callq	_r_cons_flush
	movq	%r15, %rdi
	callq	_r_line_hist_add
	jmp	LBB0_4
LBB0_25:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-200(%rbp), %rax
	movq	%rax, 16(%rsp)
	movups	-216(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	callq	_rtr_textlog_chat
	jmp	LBB0_4
LBB0_26:
	xorl	%edi, %edi
	callq	_r_socket_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"http"

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"[%s://%s:%s/%s]> "

L_.str.3:                               ## @.str.3
	.asciz	"[%s:%s]$ "

L_.str.4:                               ## @.str.4
	.asciz	"!sh"

L_.str.5:                               ## @.str.5
	.asciz	"exit"

L_.str.6:                               ## @.str.6
	.asciz	"http://%s:%s/%s!%s"

L_.str.7:                               ## @.str.7
	.asciz	"\n\n"

L_.str.8:                               ## @.str.8
	.asciz	"\n"

L_.str.9:                               ## @.str.9
	.asciz	"%s%s"

L_.str.10:                              ## @.str.10
	.asciz	"TT"

L_.str.11:                              ## @.str.11
	.asciz	"%d %s"

	.no_dead_strip	___rtr_shell
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __rtr_shell
___rtr_shell:                           ; @__rtr_shell
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x28, x27, [sp, #224]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #240]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #256]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.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
	stp	x1, x0, [sp, #32]               ; 16-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x21, l_.str.1@PAGE
Lloh4:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh5:
	adrp	x2, l_.str.2@PAGE
Lloh6:
	add	x2, x2, l_.str.2@PAGEOFF
Lloh7:
	adrp	x3, l_.str@PAGE
Lloh8:
	add	x3, x3, l_.str@PAGEOFF
	stp	x21, x21, [sp]
	add	x0, sp, #144
	mov	w1, #64
	mov	x4, x21
	bl	_snprintf
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #80
	mov	w1, #64
	mov	x3, x21
	mov	x4, x21
	bl	_snprintf
	add	x0, sp, #144
	bl	_r_line_set_prompt
	bl	_r_line_readline
	cbz	x0, LBB0_23
; %bb.1:
	mov	x28, x0
Lloh11:
	adrp	x23, l_.str.5@PAGE
Lloh12:
	add	x23, x23, l_.str.5@PAGEOFF
Lloh13:
	adrp	x24, l_.str.6@PAGE
Lloh14:
	add	x24, x24, l_.str.6@PAGEOFF
Lloh15:
	adrp	x25, l_.str.7@PAGE
Lloh16:
	add	x25, x25, l_.str.7@PAGEOFF
Lloh17:
	adrp	x20, l_.str.8@PAGE
Lloh18:
	add	x20, x20, l_.str.8@PAGEOFF
Lloh19:
	adrp	x26, l_.str.9@PAGE
Lloh20:
	add	x26, x26, l_.str.9@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	stp	x21, x21, [sp, #48]
	str	x21, [sp, #64]
	add	x1, sp, #48
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	mov	x2, #0
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_rtr_visual
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #144
	bl	_r_line_set_prompt
	bl	_r_line_readline
	mov	x28, x0
	cbz	x0, LBB0_23
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldrb	w19, [x28]
	cbz	w19, LBB0_23
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w19, #113
	b.eq	LBB0_23
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x28
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	orr	w8, w19, #0x20
	cmp	w8, #118
	b.ne	LBB0_20
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x28, #1]!
	cmp	w8, #32
	b.ne	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	stp	x21, x21, [sp, #48]
	str	x21, [sp, #64]
	add	x1, sp, #48
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	mov	x2, x28
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #80
	bl	_r_line_set_prompt
	bl	_r_line_readline
	cbz	x0, LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x19, x0
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=2
	add	x8, x0, #2
	cmp	x0, #0
	csel	x22, x19, x8, eq
	mov	x0, x22
	bl	_strlen
	add	x8, x22, w0, sxtw
	ldurb	w8, [x8, #-1]
	cmp	w8, #10
	csel	x2, x21, x20, eq
	mov	x0, x26
	mov	x1, x22
	bl	_printf
	mov	x0, x19
	bl	_r_line_hist_add
	mov	x0, x19
	bl	_free
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	mov	x0, x28
	bl	_free
	mov	x0, x27
	bl	_free
	add	x0, sp, #80
	bl	_r_line_set_prompt
	bl	_r_line_readline
	mov	x19, x0
	cbz	x0, LBB0_4
LBB0_15:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x19]
	cbz	w8, LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	x0, x19
	mov	x1, x23
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	x0, x19
	bl	_r_str_uri_encode
	mov	x28, x0
	stp	x21, x19, [sp, #16]
	stp	x21, x21, [sp]
	mov	x0, x24
	bl	_r_str_newf
	mov	x27, x0
	add	x2, sp, #76
	mov	x1, #0
	bl	_r_socket_http_get
	cbz	x0, LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	x19, x0
	ldrsw	x8, [sp, #76]
	strb	wzr, [x0, x8]
	mov	x1, x25
	bl	_strstr
	cbz	x0, LBB0_13
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=2
	add	x0, x0, #1
	mov	x1, x25
	bl	_strstr
	b	LBB0_13
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x28
Lloh23:
	adrp	x1, l_.str.10@PAGE
Lloh24:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	stp	x8, x28, [sp]
Lloh25:
	adrp	x0, l_.str.11@PAGE
Lloh26:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_r_str_newf
	mov	x1, x0
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	bl	_r_core_rtr_cmd
	bl	_r_cons_flush
	mov	x0, x28
	bl	_r_line_hist_add
	b	LBB0_4
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
	stp	x21, x21, [sp, #48]
	str	x21, [sp, #64]
	add	x1, sp, #48
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	bl	_rtr_textlog_chat
	b	LBB0_4
LBB0_23:
	mov	x0, #0
	bl	_r_socket_free
	ldur	x8, [x29, #-96]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #256]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #240]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #224]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"http"

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"[%s://%s:%s/%s]> "

l_.str.3:                               ; @.str.3
	.asciz	"[%s:%s]$ "

l_.str.4:                               ; @.str.4
	.asciz	"!sh"

l_.str.5:                               ; @.str.5
	.asciz	"exit"

l_.str.6:                               ; @.str.6
	.asciz	"http://%s:%s/%s!%s"

l_.str.7:                               ; @.str.7
	.asciz	"\n\n"

l_.str.8:                               ; @.str.8
	.asciz	"\n"

l_.str.9:                               ; @.str.9
	.asciz	"%s%s"

l_.str.10:                              ; @.str.10
	.asciz	"TT"

l_.str.11:                              ; @.str.11
	.asciz	"%d %s"

	.no_dead_strip	___rtr_shell
.subsections_via_symbols
