// File: /workspace/github_c_makefile_star2_O0/ccxvii[P]mujs/./jsrun.c
// Function: jsR_defproperty
static void jsR_defproperty(js_State *J, js_Object *obj, const char *name,
	int atts, js_Value *value, js_Object *getter, js_Object *setter,
	int throw)
{
	js_Property *ref;
	int k;

	if (obj->type == JS_CARRAY) {
		if (!strcmp(name, "length"))
			goto readonly;
		if (obj->u.a.simple)
			jsR_unflattenarray(J, obj);
	}

	else if (obj->type == JS_CSTRING) {
		if (!strcmp(name, "length"))
			goto readonly;
		if (js_isarrayindex(J, name, &k))
			if (k >= 0 && k < obj->u.s.length)
				goto readonly;
	}

	else if (obj->type == JS_CREGEXP) {
		if (!strcmp(name, "source")) goto readonly;
		if (!strcmp(name, "global")) goto readonly;
		if (!strcmp(name, "ignoreCase")) goto readonly;
		if (!strcmp(name, "multiline")) goto readonly;
		if (!strcmp(name, "lastIndex")) goto readonly;
	}

	else if (obj->type == JS_CUSERDATA) {
		if (obj->u.user.put && obj->u.user.put(J, obj->u.user.data, name))
			return;
	}

	ref = jsV_setproperty(J, obj, name);
	if (ref) {
		if (value) {
			if (!(ref->atts & JS_READONLY))
				ref->value = *value;
			else if (J->strict)
				js_typeerror(J, "'%s' is read-only", name);
		}
		if (getter) {
			if (!(ref->atts & JS_DONTCONF))
				ref->getter = getter;
			else if (J->strict)
				js_typeerror(J, "'%s' is non-configurable", name);
		}
		if (setter) {
			if (!(ref->atts & JS_DONTCONF))
				ref->setter = setter;
			else if (J->strict)
				js_typeerror(J, "'%s' is non-configurable", name);
		}
		ref->atts |= atts;
	}

	return;

readonly:
	if (J->strict || throw)
		js_typeerror(J, "'%s' is read-only or non-configurable", name);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl 0x18(%rbp), %eax
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x1, (%rax)
jne 0x172f5
movq -0x18(%rbp), %rdi
leaq 0x24b32(%rip), %rsi     # 0x3bdfc
callq 0x32d0
cmpl $0x0, %eax
jne 0x172d9
jmp 0x1752f
movq -0x10(%rbp), %rax
cmpl $0x0, 0x24(%rax)
je 0x172f0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x168a0
jmp 0x1741d
movq -0x10(%rbp), %rax
cmpl $0x8, (%rax)
jne 0x1734c
movq -0x18(%rbp), %rdi
leaq 0x24af3(%rip), %rsi     # 0x3bdfc
callq 0x32d0
cmpl $0x0, %eax
jne 0x17318
jmp 0x1752f
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0x3c(%rbp), %rdx
callq 0x167c0
cmpl $0x0, %eax
je 0x17347
cmpl $0x0, -0x3c(%rbp)
jl 0x17345
movl -0x3c(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x20(%rcx), %eax
jge 0x17345
jmp 0x1752f
jmp 0x17347
jmp 0x1741b
movq -0x10(%rbp), %rax
cmpl $0x9, (%rax)
jne 0x173dd
movq -0x18(%rbp), %rdi
leaq 0x25e8f(%rip), %rsi     # 0x3d1f3
callq 0x32d0
cmpl $0x0, %eax
jne 0x17373
jmp 0x1752f
movq -0x18(%rbp), %rdi
leaq 0x25e7c(%rip), %rsi     # 0x3d1fa
callq 0x32d0
cmpl $0x0, %eax
jne 0x1738d
jmp 0x1752f
movq -0x18(%rbp), %rdi
leaq 0x25e69(%rip), %rsi     # 0x3d201
callq 0x32d0
cmpl $0x0, %eax
jne 0x173a7
jmp 0x1752f
movq -0x18(%rbp), %rdi
leaq 0x25e5a(%rip), %rsi     # 0x3d20c
callq 0x32d0
cmpl $0x0, %eax
jne 0x173c1
jmp 0x1752f
movq -0x18(%rbp), %rdi
leaq 0x25e4a(%rip), %rsi     # 0x3d216
callq 0x32d0
cmpl $0x0, %eax
jne 0x173db
jmp 0x1752f
jmp 0x17419
movq -0x10(%rbp), %rax
cmpl $0xf, (%rax)
jne 0x17417
movq -0x10(%rbp), %rax
cmpq $0x0, 0x38(%rax)
je 0x17415
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rax
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rcx
movq 0x28(%rcx), %rsi
movq -0x18(%rbp), %rdx
callq *%rax
cmpl $0x0, %eax
je 0x17415
jmp 0x17555
jmp 0x17417
jmp 0x17419
jmp 0x1741b
jmp 0x1741d
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x125d0
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x1752d
cmpq $0x0, -0x28(%rbp)
je 0x17490
movq -0x38(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x1746c
movq -0x38(%rbp), %rax
movq -0x28(%rbp), %rcx
movq (%rcx), %rdx
movq %rdx, 0x18(%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x20(%rax)
jmp 0x1748e
movq -0x8(%rbp), %rax
cmpl $0x0, 0x34(%rax)
je 0x1748c
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq 0x26217(%rip), %rsi     # 0x3d69c
movb $0x0, %al
callq 0xbfe0
jmp 0x1748e
jmp 0x17490
cmpq $0x0, -0x30(%rbp)
je 0x174d8
movq -0x38(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
jne 0x174b4
movq -0x30(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x28(%rax)
jmp 0x174d6
movq -0x8(%rbp), %rax
cmpl $0x0, 0x34(%rax)
je 0x174d4
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq 0x26256(%rip), %rsi     # 0x3d723
movb $0x0, %al
callq 0xbfe0
jmp 0x174d6
jmp 0x174d8
cmpq $0x0, 0x10(%rbp)
je 0x17520
movq -0x38(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
jne 0x174fc
movq 0x10(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x30(%rax)
jmp 0x1751e
movq -0x8(%rbp), %rax
cmpl $0x0, 0x34(%rax)
je 0x1751c
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq 0x2620e(%rip), %rsi     # 0x3d723
movb $0x0, %al
callq 0xbfe0
jmp 0x1751e
jmp 0x17520
movl -0x1c(%rbp), %ecx
movq -0x38(%rbp), %rax
orl 0x14(%rax), %ecx
movl %ecx, 0x14(%rax)
jmp 0x17555
movq -0x8(%rbp), %rax
cmpl $0x0, 0x34(%rax)
jne 0x1753f
cmpl $0x0, 0x18(%rbp)
je 0x17555
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq 0x261ee(%rip), %rsi     # 0x3d73c
movb $0x0, %al
callq 0xbfe0
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)