	.file	"extr_rtr.c_rtrcmd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"http://%s:%s/%s%s"
.LC1:
	.string	"\n\n"
	.text
	.p2align 4
	.type	rtrcmd, @function
rtrcmd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdx
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	QWORD PTR [rsp], rdi
	mov	rdi, rdx
	mov	DWORD PTR 8[rsp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	r_str_uri_encode@PLT
	mov	r8, rbp
	mov	ecx, DWORD PTR [rsp]
	mov	edx, DWORD PTR 4[rsp]
	test	rax, rax
	mov	esi, DWORD PTR 8[rsp]
	lea	rdi, .LC0[rip]
	mov	r12, rax
	cmovne	r8, rax
	call	r_str_newf@PLT
	mov	rdi, r12
	mov	rbp, rax
	call	free@PLT
	xor	esi, esi
	mov	rdi, rbp
	lea	rdx, 20[rsp]
	call	r_socket_http_get@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	free@PLT
	test	r12, r12
	je	.L1
	movsx	rax, DWORD PTR 20[rsp]
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	mov	BYTE PTR [r12+rax], 0
	call	strstr@PLT
	test	rax, rax
	je	.L1
	lea	rdi, 1[rax]
	lea	rsi, .LC1[rip]
	call	strstr@PLT
	test	rax, rax
	je	.L1
	lea	r12, 2[rax]
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rtrcmd, .-rtrcmd
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_rtr.c_rtrcmd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"http://%s:%s/%s%s\000"
	.align	2
.LC1:
	.ascii	"\012\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtrcmd, %function
rtrcmd:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r3
	sub	sp, sp, #32
	add	r3, sp, #12
	stm	r3, {r0, r1, r2}
	ldr	r3, .L18
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	r_str_uri_encode
	subs	r5, r0, #0
	movne	r4, r5
	ldr	r3, [sp, #12]
	ldr	r2, [sp, #16]
	ldr	r1, [sp, #20]
	str	r4, [sp]
	ldr	r0, .L18+4
	bl	r_str_newf
	mov	r6, r0
	mov	r0, r5
	bl	free
	mov	r1, #0
	add	r2, sp, #24
	mov	r0, r6
	bl	r_socket_http_get
	mov	r4, r0
	mov	r0, r6
	bl	free
	cmp	r4, #0
	beq	.L1
	mov	r2, #0
	ldr	r3, [sp, #24]
	mov	r0, r4
	ldr	r1, .L18+8
	strb	r2, [r4, r3]
	bl	strstr
	cmp	r0, #0
	beq	.L1
	ldr	r1, .L18+8
	add	r0, r0, #1
	bl	strstr
	cmp	r0, #0
	addne	r4, r0, #2
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r4
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	rtrcmd, .-rtrcmd
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
