// File: /workspace/github_c_makefile_star2_O3/ArtifexSoftware[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 0x16007
cmpl $0x1, %eax
je 0x16034
cmpl $0x8, %eax
jne 0x1605d
leaq 0x1d7ba(%rip), %rsi     # 0x33781
movq %rbx, %rdi
callq 0x32f0
testl %eax, %eax
je 0x160f5
leaq 0x4(%rsp), %rdx
movq %rbx, %rsi
callq 0x15659
testl %eax, %eax
setne %cl
leaq 0x4(%rsp), %rax
movl (%rax), %eax
testl %eax, %eax
setns %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x1605d
cmpl 0x20(%r13), %eax
jge 0x1605d
jmp 0x160f5
cmpl $0x9, %eax
je 0x16092
cmpl $0xf, %eax
jne 0x1605d
movq 0x38(%r13), %rax
testq %rax, %rax
je 0x1605d
movq 0x28(%r13), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq *%rax
testl %eax, %eax
jne 0x1614b
jmp 0x1605d
leaq 0x1d746(%rip), %rsi     # 0x33781
movq %rbx, %rdi
callq 0x32f0
testl %eax, %eax
je 0x160f5
cmpl $0x0, 0x24(%r13)
je 0x1605d
movq %r14, %rdi
movq %r13, %rsi
callq 0x156ab
movq %r14, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x123f8
testq %rax, %rax
je 0x1614b
testq %r12, %r12
je 0x1610f
testb $0x1, 0x14(%rax)
jne 0x16108
movups (%r12), %xmm0
movups %xmm0, 0x18(%rax)
jmp 0x1610f
leaq 0x1ead4(%rip), %rsi     # 0x34b6d
movq %rbx, %rdi
callq 0x32f0
testl %eax, %eax
je 0x160f5
leaq 0x1eac8(%rip), %rsi     # 0x34b74
movq %rbx, %rdi
callq 0x32f0
testl %eax, %eax
je 0x160f5
leaq 0x1eabc(%rip), %rsi     # 0x34b7b
movq %rbx, %rdi
callq 0x32f0
testl %eax, %eax
je 0x160f5
leaq 0x1eab4(%rip), %rsi     # 0x34b86
movq %rbx, %rdi
callq 0x32f0
testl %eax, %eax
je 0x160f5
leaq 0x1eaab(%rip), %rsi     # 0x34b90
movq %rbx, %rdi
callq 0x32f0
testl %eax, %eax
jne 0x1605d
movl 0x48(%rsp), %eax
orl 0x34(%r14), %eax
je 0x1614b
leaq 0x1efa5(%rip), %rsi     # 0x350ab
jmp 0x1616a
cmpl $0x0, 0x34(%r14)
jne 0x16163
testq %r15, %r15
je 0x16127
testb $0x4, 0x14(%rax)
jne 0x16120
movq %r15, 0x28(%rax)
jmp 0x16127
cmpl $0x0, 0x34(%r14)
jne 0x1615a
movq 0x40(%rsp), %rdx
movl 0x14(%rax), %ecx
testq %rdx, %rdx
je 0x16146
testb $0x4, %cl
jne 0x1613f
movq %rdx, 0x30(%rax)
jmp 0x16146
cmpl $0x0, 0x34(%r14)
jne 0x1615a
orl %ebp, %ecx
movl %ecx, 0x14(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1ef31(%rip), %rsi     # 0x35092
jmp 0x1616a
leaq 0x1eea8(%rip), %rsi     # 0x35012
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xca10