	.file	"517305.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Too few arguments.\n"
	.align 8
.LC1:
	.string	"https://start.duckduckgo.com/?q="
.LC2:
	.string	""
.LC3:
	.string	"Malloc failure!\n"
.LC4:
	.string	"w3m"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	cmp	DWORD PTR -52[rbp], 1
	jg	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, -1
	call	exit@PLT
.L2:
	lea	rax, .LC1[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, -1
	call	exit@PLT
.L3:
	mov	DWORD PTR -44[rbp], 1
	jmp	.L4
.L8:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	cmp	DWORD PTR -44[rbp], 1
	jne	.L5
	mov	edx, 1
	jmp	.L6
.L5:
	mov	edx, 2
.L6:
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	DWORD PTR -44[rbp], 1
	je	.L7
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 43
.L7:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	add	DWORD PTR -44[rbp], 1
.L4:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L8
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	ecx, 0
	mov	rdx, rax
	lea	rsi, .LC4[rip]
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	execlp@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"517305.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Too few arguments.\012\000"
	.align	2
.LC1:
	.ascii	"https://start.duckduckgo.com/?q=\000"
	.align	2
.LC2:
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"Malloc failure!\012\000"
	.align	2
.LC4:
	.ascii	"+\000"
	.align	2
.LC5:
	.ascii	"w3m\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bgt	.L2
	ldr	r3, .L9
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L9+4
	bl	fwrite
	mvn	r0, #0
	bl	exit
.L2:
	ldr	r3, .L9+8
	str	r3, [fp, #-20]
	ldr	r3, .L9+12
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L9
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L9+16
	bl	fwrite
	mvn	r0, #0
	bl	exit
.L3:
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L4
.L8:
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r4, r0
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	ldr	r2, [fp, #-24]
	cmp	r2, #1
	bne	.L5
	mov	r2, #1
	b	.L6
.L5:
	mov	r2, #2
.L6:
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	realloc
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	beq	.L7
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	ldr	r2, .L9+20
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
.L7:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	strcat
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L4:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L8
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r4, r0
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	realloc
	str	r0, [fp, #-28]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-28]
	bl	strcat
	mov	r3, #0
	ldr	r2, [fp, #-28]
	ldr	r1, .L9+24
	ldr	r0, .L9+24
	bl	execlp
	ldr	r0, [fp, #-28]
	bl	free
	mov	r0, #0
	bl	exit
.L10:
	.align	2
.L9:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
