// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/parser_call.c
// Function: prv_call_parameters
static subtilis_parser_param_t *
prv_call_parameters(subtilis_parser_t *p, subtilis_exp_t **args,
		    size_t num_args, subtilis_check_args_t **check_args,
		    subtilis_error_t *err)
{
	size_t nop;
	size_t i;
	subtilis_parser_param_t *params = NULL;
	subtilis_exp_t *e = NULL;
	subtilis_check_args_t *an = NULL;

	params = malloc(num_args * sizeof(*params));
	if (!params) {
		subtilis_error_set_oom(err);
		return NULL;
	}
	for (i = 0; i < num_args; i++)
		params[i].type.type = SUBTILIS_TYPE_VOID;

	for (i = 0; i < num_args; i++) {
		if (args[i]->partial_name) {
			if (!an) {
				an = calloc(num_args, sizeof(*an));
				if (!an) {
					subtilis_error_set_oom(err);
					goto on_error;
				}
			}
			an[i].arg_name =
			    malloc(strlen(args[i]->partial_name) + 1);
			if (!an[i].arg_name) {
				subtilis_error_set_oom(err);
				goto on_error;
			}
			strcpy(an[i].arg_name, args[i]->partial_name);
			an[i].call_site = args[i]->call_site;
		}
		e = subtilis_type_if_exp_to_var(p, args[i], err);
		args[i] = NULL;
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		subtilis_type_init_copy(&params[i].type, &e->type, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		nop = subtilis_ir_section_add_nop(p->current, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		params[i].reg = e->exp.ir_op.reg;
		params[i].nop = nop;
		subtilis_exp_delete(e);
		e = NULL;
	}

	*check_args = an;

	return params;

on_error:

	if (an) {
		for (i = 0; i < num_args; i++)
			free(an[i].arg_name);
		free(an);
	}

	subtilis_exp_delete(e);
	prv_delete_params(params, num_args);
	return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r14
movq %rsi, %rbp
movq %rdi, 0x30(%rsp)
imulq $0x158, %rdx, %rdi      # imm = 0x158
callq 0x121d0
testq %rax, %rax
je 0x1acc0
movq %rax, %rbx
testq %r14, %r14
movq %rax, 0x20(%rsp)
movq %r12, 0x38(%rsp)
je 0x1acef
leaq 0x3(%r14), %rax
andq $-0x4, %rax
leaq -0x1(%r14), %rcx
movq %rcx, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
movdqa 0x58b7a(%rip), %xmm1    # 0x73610
movdqa 0x58b82(%rip), %xmm2    # 0x73620
movdqa 0x58b8a(%rip), %xmm3    # 0x73630
pxor %xmm3, %xmm0
pcmpeqd %xmm4, %xmm4
movdqa 0x58b8a(%rip), %xmm5    # 0x73640
movq %rbx, %rcx
movdqa %xmm2, %xmm6
pxor %xmm3, %xmm6
movdqa %xmm6, %xmm7
pcmpgtd %xmm0, %xmm7
pcmpeqd %xmm0, %xmm6
pshufd $0xf5, %xmm6, %xmm8     # xmm8 = xmm6[1,1,3,3]
pand %xmm7, %xmm8
pshufd $0xf5, %xmm7, %xmm6     # xmm6 = xmm7[1,1,3,3]
por %xmm8, %xmm6
movd %xmm6, %edx
notl %edx
testb $0x1, %dl
je 0x1aaf3
movl $0x8, (%rcx)
pxor %xmm4, %xmm6
pextrw $0x4, %xmm6, %edx
testb $0x1, %dl
je 0x1ab0b
movl $0x8, 0x158(%rcx)
movdqa %xmm1, %xmm6
pxor %xmm3, %xmm6
movdqa %xmm6, %xmm7
pcmpgtd %xmm0, %xmm7
pcmpeqd %xmm0, %xmm6
pshufd $0xf5, %xmm6, %xmm8     # xmm8 = xmm6[1,1,3,3]
pand %xmm7, %xmm8
pshufd $0xf5, %xmm7, %xmm6     # xmm6 = xmm7[1,1,3,3]
por %xmm8, %xmm6
pxor %xmm4, %xmm6
pextrw $0x0, %xmm6, %edx
testb $0x1, %dl
je 0x1ab4c
movl $0x8, 0x2b0(%rcx)
pextrw $0x4, %xmm6, %edx
testb $0x1, %dl
je 0x1ab60
movl $0x8, 0x408(%rcx)
paddq %xmm5, %xmm2
paddq %xmm5, %xmm1
addq $0x560, %rcx            # imm = 0x560
addq $-0x4, %rax
jne 0x1aab9
movq %r14, 0x8(%rsp)
movl $0x8, %r13d
movq $0x0, 0x10(%rsp)
xorl %r12d, %r12d
movq %r15, 0x18(%rsp)
movq %rbp, 0x28(%rsp)
movq (%rbp,%r12,8), %rbp
movq 0x160(%rbp), %r14
testq %r14, %r14
movq %r13, 0x40(%rsp)
je 0x1ac25
movq 0x10(%rsp), %rbp
testq %rbp, %rbp
jne 0x1abd5
movl $0x10, %esi
movq 0x8(%rsp), %rdi
callq 0x12150
movq %rax, %rbp
testq %rax, %rax
je 0x1ad74
movq %r14, %rdi
callq 0x120f0
leaq 0x1(%rax), %rdi
callq 0x121d0
movq %rax, -0x8(%rbp,%r13)
testq %rax, %rax
je 0x1ad0c
movq %r13, %r15
movq 0x28(%rsp), %r13
movq %rbp, %r14
movq (%r13,%r12,8), %rbp
movq 0x160(%rbp), %rsi
movq %rax, %rdi
callq 0x12070
movq 0x168(%rbp), %rax
movq %r14, 0x10(%rsp)
movq %rax, (%r14,%r15)
jmp 0x1ac2a
movq 0x28(%rsp), %r13
movq 0x30(%rsp), %rdi
movq %rbp, %rsi
movq 0x18(%rsp), %r15
movq %r15, %rdx
callq 0x36119
movq %rax, %r14
movq $0x0, (%r13,%r12,8)
cmpl $0x0, (%r15)
jne 0x1acde
movq %r13, %rbp
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2f457
cmpl $0x0, (%r15)
jne 0x1acde
movq 0x30(%rsp), %rax
movq 0x48(%rax), %rdi
movq %r15, %rsi
callq 0x2bf78
cmpl $0x0, (%r15)
jne 0x1acde
movq 0x148(%r14), %rcx
movq %rcx, 0x148(%rbx)
movq %rax, 0x150(%rbx)
movq %r14, %rdi
callq 0x2b166
incq %r12
addq $0x158, %rbx            # imm = 0x158
movq 0x40(%rsp), %r13
addq $0x10, %r13
cmpq %r12, 0x8(%rsp)
jne 0x1ab9a
jmp 0x1acf8
leaq 0x5898c(%rip), %rdx     # 0x73653
movq %r15, %rdi
movl $0x1, %esi
movl $0x7a, %ecx
callq 0x145a4
jmp 0x1ad63
movq 0x10(%rsp), %rbp
testq %rbp, %rbp
movq 0x8(%rsp), %r12
jne 0x1ad2f
jmp 0x1ad4e
movq $0x0, 0x10(%rsp)
movq 0x38(%rsp), %rax
movq 0x10(%rsp), %rcx
movq %rcx, (%rax)
movq 0x20(%rsp), %rax
jmp 0x1ad65
leaq 0x58940(%rip), %rdx     # 0x73653
movq 0x18(%rsp), %rdi
movl $0x1, %esi
movl $0x8c, %ecx
callq 0x145a4
xorl %r14d, %r14d
movq 0x8(%rsp), %r12
movq %rbp, %rbx
movq %r12, %r15
movq (%rbx), %rdi
callq 0x122c0
addq $0x10, %rbx
decq %r15
jne 0x1ad35
movq %rbp, %rdi
callq 0x122c0
movq %r14, %rdi
callq 0x2b166
movq 0x20(%rsp), %rdi
movq %r12, %rsi
callq 0x1aea2
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x588d8(%rip), %rdx     # 0x73653
movq 0x18(%rsp), %rdi
movl $0x1, %esi
movl $0x85, %ecx
callq 0x145a4
xorl %r14d, %r14d
movq 0x8(%rsp), %r12
jmp 0x1ad4e