// File: /workspace/github_c_makefile_star2_O2/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 $0xf, %eax
je 0x10a94
cmpl $0x8, %eax
je 0x109d0
cmpl $0x9, %eax
je 0x10a1b
cmpl $0x1, %eax
jne 0x10aad
leaq 0x17dac(%rip), %rsi     # 0x28751
movq %rbx, %rdi
callq 0x32f0
testl %eax, %eax
je 0x10a7a
cmpl $0x0, 0x24(%r13)
je 0x10aad
movq %r14, %rdi
movq %r13, %rsi
callq 0x10280
jmp 0x10aad
leaq 0x17d7a(%rip), %rsi     # 0x28751
movq %rbx, %rdi
callq 0x32f0
testl %eax, %eax
je 0x10a7a
leaq 0x4(%rsp), %rdx
movq %rbx, %rsi
callq 0x1022f
testl %eax, %eax
setne %cl
leaq 0x4(%rsp), %rax
movl (%rax), %eax
testl %eax, %eax
setns %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x10aad
cmpl 0x20(%r13), %eax
jl 0x10a7a
jmp 0x10aad
leaq 0x19126(%rip), %rsi     # 0x29b48
movq %rbx, %rdi
callq 0x32f0
testl %eax, %eax
je 0x10a7a
leaq 0x1911a(%rip), %rsi     # 0x29b4f
movq %rbx, %rdi
callq 0x32f0
testl %eax, %eax
je 0x10a7a
leaq 0x1910e(%rip), %rsi     # 0x29b56
movq %rbx, %rdi
callq 0x32f0
testl %eax, %eax
je 0x10a7a
leaq 0x19106(%rip), %rsi     # 0x29b61
movq %rbx, %rdi
callq 0x32f0
testl %eax, %eax
je 0x10a7a
leaq 0x190fd(%rip), %rsi     # 0x29b6b
movq %rbx, %rdi
callq 0x32f0
testl %eax, %eax
jne 0x10aad
movl 0x48(%rsp), %eax
orl 0x34(%r14), %eax
je 0x10b19
leaq 0x195f7(%rip), %rsi     # 0x2a086
jmp 0x10b38
movq 0x38(%r13), %rax
testq %rax, %rax
je 0x10aad
movq 0x28(%r13), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq *%rax
testl %eax, %eax
jne 0x10b19
movq %r14, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0xdcd0
testq %rax, %rax
je 0x10b19
testq %r12, %r12
je 0x10add
testb $0x1, 0x14(%rax)
jne 0x10ad6
movups (%r12), %xmm0
movups %xmm0, 0x18(%rax)
jmp 0x10add
cmpl $0x0, 0x34(%r14)
jne 0x10b31
testq %r15, %r15
je 0x10af5
testb $0x4, 0x14(%rax)
jne 0x10aee
movq %r15, 0x28(%rax)
jmp 0x10af5
cmpl $0x0, 0x34(%r14)
jne 0x10b28
movq 0x40(%rsp), %rdx
movl 0x14(%rax), %ecx
testq %rdx, %rdx
je 0x10b14
testb $0x4, %cl
jne 0x10b0d
movq %rdx, 0x30(%rax)
jmp 0x10b14
cmpl $0x0, 0x34(%r14)
jne 0x10b28
orl %ebp, %ecx
movl %ecx, 0x14(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1953e(%rip), %rsi     # 0x2a06d
jmp 0x10b38
leaq 0x194b5(%rip), %rsi     # 0x29fed
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x99a6