// File: /workspace/github_c_makefile_star2_O0/ccxvii[P]mujs/./jsbuiltin.c
// Function: Decode
static void Decode(js_State *J, const char *str_, const char *reserved)
{
	/* NOTE: volatile to silence GCC warning about longjmp clobbering a variable */
	const char * volatile str = str_;
	js_Buffer *sb = NULL;
	int a, b;

	if (js_try(J)) {
		js_free(J, sb);
		js_throw(J);
	}

	while (*str) {
		int c = (unsigned char) *str++;
		if (c != '%')
			js_putc(J, &sb, c);
		else {
			if (!str[0] || !str[1])
				js_urierror(J, "truncated escape sequence");
			a = *str++;
			b = *str++;
			if (!jsY_ishex(a) || !jsY_ishex(b))
				js_urierror(J, "invalid escape sequence");
			c = jsY_tohex(a) << 4 | jsY_tohex(b);
			if (!strchr(reserved, c))
				js_putc(J, &sb, c);
			else {
				js_putc(J, &sb, '%');
				js_putc(J, &sb, a);
				js_putc(J, &sb, b);
			}
		}
	}
	js_putc(J, &sb, 0);

	js_pushstring(J, sb ? sb->s : "");
	js_endtry(J);
	js_free(J, sb);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq $0x0, -0x28(%rbp)
movq -0x8(%rbp), %rdi
callq 0x14270
movq %rax, %rdi
callq 0x30e0
cmpl $0x0, %eax
je 0x1e680
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0xd710
movq -0x8(%rbp), %rdi
callq 0x8cb0
jmp 0x1e682
movq -0x20(%rbp), %rax
cmpb $0x0, (%rax)
je 0x1e7b7
movq -0x20(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x20(%rbp)
movzbl (%rax), %eax
movl %eax, -0x34(%rbp)
cmpl $0x25, -0x34(%rbp)
je 0x1e6bf
movq -0x8(%rbp), %rdi
movl -0x34(%rbp), %edx
leaq -0x28(%rbp), %rsi
callq 0xd910
jmp 0x1e7b2
movq -0x20(%rbp), %rax
cmpb $0x0, (%rax)
je 0x1e6d2
movq -0x20(%rbp), %rax
cmpb $0x0, 0x1(%rax)
jne 0x1e6e4
movq -0x8(%rbp), %rdi
leaq 0x1dc9a(%rip), %rsi     # 0x3c377
movb $0x0, %al
callq 0xc0e0
movq -0x20(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x20(%rbp)
movsbl (%rax), %eax
movl %eax, -0x2c(%rbp)
movq -0x20(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x20(%rbp)
movsbl (%rax), %eax
movl %eax, -0x30(%rbp)
movl -0x2c(%rbp), %edi
callq 0xdf80
cmpl $0x0, %eax
je 0x1e728
movl -0x30(%rbp), %edi
callq 0xdf80
cmpl $0x0, %eax
jne 0x1e73a
movq -0x8(%rbp), %rdi
leaq 0x1dc5e(%rip), %rsi     # 0x3c391
movb $0x0, %al
callq 0xc0e0
movl -0x2c(%rbp), %edi
callq 0xdfe0
shll $0x4, %eax
movl %eax, -0x38(%rbp)
movl -0x30(%rbp), %edi
callq 0xdfe0
movl %eax, %ecx
movl -0x38(%rbp), %eax
orl %ecx, %eax
movl %eax, -0x34(%rbp)
movq -0x18(%rbp), %rdi
movl -0x34(%rbp), %esi
callq 0x3280
cmpq $0x0, %rax
jne 0x1e77e
movq -0x8(%rbp), %rdi
movl -0x34(%rbp), %edx
leaq -0x28(%rbp), %rsi
callq 0xd910
jmp 0x1e7b0
movq -0x8(%rbp), %rdi
leaq -0x28(%rbp), %rsi
movl $0x25, %edx
callq 0xd910
movq -0x8(%rbp), %rdi
movl -0x2c(%rbp), %edx
leaq -0x28(%rbp), %rsi
callq 0xd910
movq -0x8(%rbp), %rdi
movl -0x30(%rbp), %edx
leaq -0x28(%rbp), %rsi
callq 0xd910
jmp 0x1e7b2
jmp 0x1e682
movq -0x8(%rbp), %rdi
leaq -0x28(%rbp), %rsi
xorl %edx, %edx
callq 0xd910
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x1e7e3
movq -0x28(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x48(%rbp)
jmp 0x1e7f0
leaq 0x1e252(%rip), %rax     # 0x3ca3c
movq %rax, -0x48(%rbp)
jmp 0x1e7f0
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x13880
movq -0x8(%rbp), %rdi
callq 0x14a10
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0xd710
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)