// File: /workspace/github_c_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r15
movq %r8, %r12
movl %ecx, %ebp
movq %rdx, %rbx
movq %rsi, %r13
movq %rdi, %r14
movl (%rsi), %eax
cmpl $0x8, %eax
jg 0x164ce
cmpl $0x1, %eax
je 0x164fb
cmpl $0x8, %eax
jne 0x16524
leaq 0x1d2c3(%rip), %rsi     # 0x33751
movq %rbx, %rdi
callq 0x32f0
testl %eax, %eax
je 0x165bc
leaq 0x4(%rsp), %rdx
movq %rbx, %rsi
callq 0x15b35
testl %eax, %eax
setne %cl
leaq 0x4(%rsp), %rax
movl (%rax), %eax
testl %eax, %eax
setns %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x16524
cmpl 0x20(%r13), %eax
jge 0x16524
jmp 0x165bc
cmpl $0x9, %eax
je 0x16559
cmpl $0xf, %eax
jne 0x16524
movq 0x38(%r13), %rax
testq %rax, %rax
je 0x16524
movq 0x28(%r13), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq *%rax
testl %eax, %eax
jne 0x1660e
jmp 0x16524
leaq 0x1d24f(%rip), %rsi     # 0x33751
movq %rbx, %rdi
callq 0x32f0
testl %eax, %eax
je 0x165bc
cmpl $0x0, 0x24(%r13)
je 0x16524
movq %r14, %rdi
movq %r13, %rsi
callq 0x15b88
movq %r14, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x127de
testq %rax, %rax
je 0x1660e
testq %r12, %r12
je 0x165d6
testb $0x1, 0x14(%rax)
jne 0x165cf
movups (%r12), %xmm0
movups %xmm0, 0x18(%rax)
jmp 0x165d6
leaq 0x1e5dd(%rip), %rsi     # 0x34b3d
movq %rbx, %rdi
callq 0x32f0
testl %eax, %eax
je 0x165bc
leaq 0x1e5d1(%rip), %rsi     # 0x34b44
movq %rbx, %rdi
callq 0x32f0
testl %eax, %eax
je 0x165bc
leaq 0x1e5c5(%rip), %rsi     # 0x34b4b
movq %rbx, %rdi
callq 0x32f0
testl %eax, %eax
je 0x165bc
leaq 0x1e5bd(%rip), %rsi     # 0x34b56
movq %rbx, %rdi
callq 0x32f0
testl %eax, %eax
je 0x165bc
leaq 0x1e5b4(%rip), %rsi     # 0x34b60
movq %rbx, %rdi
callq 0x32f0
testl %eax, %eax
jne 0x16524
movl 0x48(%rsp), %eax
orl 0x34(%r14), %eax
je 0x1660e
leaq 0x1eaae(%rip), %rsi     # 0x3507b
jmp 0x1662d
cmpl $0x0, 0x34(%r14)
jne 0x16626
testq %r15, %r15
je 0x165ee
testb $0x4, 0x14(%rax)
jne 0x165e7
movq %r15, 0x28(%rax)
jmp 0x165ee
cmpl $0x0, 0x34(%r14)
jne 0x1661d
movq 0x40(%rsp), %rcx
testq %rcx, %rcx
je 0x1660b
testb $0x4, 0x14(%rax)
jne 0x16604
movq %rcx, 0x30(%rax)
jmp 0x1660b
cmpl $0x0, 0x34(%r14)
jne 0x1661d
orl %ebp, 0x14(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1ea3e(%rip), %rsi     # 0x35062
jmp 0x1662d
leaq 0x1e9b5(%rip), %rsi     # 0x34fe2
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xcce3