	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtrcmd
_rtrcmd:                                ## @rtrcmd
	.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	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	%rdi, %r12
	shrq	$32, %r12
	movq	%rdx, %rdi
	callq	_r_str_uri_encode
	movq	%rax, %r13
	testq	%rax, %rax
	cmovneq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movq	%rbx, %r8
	callq	_r_str_newf
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_free
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_r_socket_http_get
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_free
	testq	%r14, %r14
	je	LBB0_5
## %bb.1:
	movslq	-44(%rbp), %rax
	movb	$0, (%r14,%rax)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	incq	%rax
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_strstr
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
LBB0_4:
	leaq	2(%rax), %rbx
	testq	%rax, %rax
	cmoveq	%r14, %rbx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"http://%s:%s/%s%s"

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

	.no_dead_strip	_rtrcmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtrcmd
_rtrcmd:                                ; @rtrcmd
	.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, x2
	mov	x20, x1
	mov	x21, x0
	lsr	x22, x0, #32
	mov	x0, x2
	bl	_r_str_uri_encode
	mov	x23, x0
	cmp	x0, #0
	csel	x4, x19, x0, eq
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	bl	_r_str_newf
	mov	x20, x0
	mov	x0, x23
	bl	_free
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, #0
	bl	_r_socket_http_get
	mov	x19, x0
	mov	x0, x20
	bl	_free
	cbz	x19, LBB0_4
; %bb.1:
	ldrsw	x8, [sp, #12]
	strb	wzr, [x19, x8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbz	x0, LBB0_3
; %bb.2:
	add	x0, x0, #1
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strstr
LBB0_3:
	add	x8, x0, #2
	cmp	x0, #0
	csel	x0, x19, x8, eq
	b	LBB0_5
LBB0_4:
	mov	x0, #0
LBB0_5:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"http://%s:%s/%s%s"

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

	.no_dead_strip	_rtrcmd
.subsections_via_symbols
