// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_C99APIArg_pushzeapizeargzx
static void mw_mirth_c99_C99APIArg_pushzeapizeargzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Branch* in_zaC99Branch_2, struct mirth_c99_C99APIArg* in_C99APIArg_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_c99_zaC99Branch* *out_zaC99Branch_5) {
	enum mirth_c99_C99APIArgMode v6;
	struct mirth_c99_C99APIArgSource v7;
	struct mirth_c99_C99ReprType v8;
	STR* v9;
	mtp_mirth_c99_C99APIArg_C99APIArg(in_C99APIArg_3, &v6, &v7, &v8, &v9);
	struct mirth_c99_zaC99Value* v10;
	mtw_mirth_c99_zaC99Value_zaC99Value(v8, v9, &v10);
	struct mirth_mirth_zaMirth* branch_zaMirth_11;
	struct mirth_c99_zaC99Branch* branch_zaC99Branch_12;
	switch ((v7).tag) {
		case mirth_c99_C99APIArgSource_Value: {
			struct mirth_mirth_zaMirth* v13;
			struct mirth_c99_zaC99Branch* v14;
			mw_mirth_c99_zaC99Value_pushzevaluezx(in_zaMirth_1, in_zaC99Branch_2, v10, &v13, &v14);
			branch_zaC99Branch_12 = v14;
			branch_zaMirth_11 = v13;
		} break;
		case mirth_c99_C99APIArgSource_ValueLabel: {
			uint64_t v15 = mtp_mirth_c99_C99APIArgSource_ValueLabel(v7);
			struct mirth_mirth_zaMirth* v16;
			struct mirth_c99_zaC99Branch* v17;
			mw_mirth_c99_pushzevaluezelabelzx(in_zaMirth_1, in_zaC99Branch_2, v15, v10, &v16, &v17);
			branch_zaC99Branch_12 = v17;
			branch_zaMirth_11 = v16;
		} break;
		case mirth_c99_C99APIArgSource_Resource: {
			struct mirth_c99_zaC99Resource* v18;
			mw_mirth_c99_zaC99Value_turnzeintozeresourcezx(v10, &v18);
			struct mirth_mirth_zaMirth* v19;
			struct mirth_c99_zaC99Branch* v20;
			mw_mirth_c99_zaC99Resource_pushzeresourcezx(in_zaMirth_1, in_zaC99Branch_2, v18, &v19, &v20);
			branch_zaC99Branch_12 = v20;
			branch_zaMirth_11 = v19;
		} break;
		case mirth_c99_C99APIArgSource_ResourceLabel: {
			uint64_t v21 = mtp_mirth_c99_C99APIArgSource_ResourceLabel(v7);
			struct mirth_c99_zaC99Resource* v22;
			mw_mirth_c99_zaC99Value_turnzeintozeresourcezx(v10, &v22);
			struct mirth_mirth_zaMirth* v23;
			struct mirth_c99_zaC99Branch* v24;
			mw_mirth_c99_pushzeresourcezelabelzx(in_zaMirth_1, in_zaC99Branch_2, v21, v22, &v23, &v24);
			branch_zaC99Branch_12 = v24;
			branch_zaMirth_11 = v23;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaC99Branch_5 = branch_zaC99Branch_12;
	*out_zaMirth_4 = branch_zaMirth_11;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, -0x40(%rbp)
movq %rcx, -0x48(%rbp)
movq %rsi, -0x30(%rbp)
movq %rdi, -0x38(%rbp)
movl 0x8(%rdx), %r12d
movq 0x10(%rdx), %r13
movl 0x18(%rdx), %ebx
movq 0x20(%rdx), %r14
movq 0x28(%rdx), %r15
decl (%rdx)
je 0xae454
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
movq %r13, %rcx
andq %rax, %rcx
sete %dl
testb $0x3, %r13b
setne %sil
orb %dl, %sil
jne 0xae427
incl (%rcx)
movq %r14, %rcx
andq %rax, %rcx
sete %dl
testb $0x3, %r14b
setne %sil
orb %dl, %sil
jne 0xae43f
incl (%rcx)
andq %r15, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0xae45c
incl (%rax)
jmp 0xae45c
movq %rdx, %rdi
callq 0x5030
leaq -0x50(%rbp), %rcx
movl %ebx, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0xae5e3
cmpl $0x3, %r12d
ja 0xae5b3
movl %r12d, %eax
leaq 0x31a43(%rip), %rcx     # 0xdfec4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x50(%rbp), %rdx
movq -0x30(%rbp), %r12
movl 0x8(%r12), %edi
movq 0x10(%r12), %rsi
leaq -0x60(%rbp), %rbx
movq %rbx, %rcx
callq 0xae64a
jmp 0xae550
movq -0x50(%rbp), %rdi
movl (%rdi), %ebx
movq 0x8(%rdi), %r14
movq 0x10(%rdi), %r15
callq 0x5030
leaq -0x60(%rbp), %r13
movl %ebx, %edi
movq %r14, %rsi
movq %r15, %rdx
movq %r13, %rcx
callq 0xae736
movq (%r13), %rdx
movq -0x30(%rbp), %r12
movl 0x8(%r12), %edi
movq 0x10(%r12), %rsi
leaq -0x60(%rbp), %rbx
movq %rbx, %rcx
callq 0xae79d
jmp 0xae550
movq 0x8(%r13), %rax
movq %rax, -0x68(%rbp)
decl (%r13)
movq -0x30(%rbp), %r12
jne 0xae50e
movq %r13, %rdi
callq 0x5030
movq -0x50(%rbp), %rdi
movl (%rdi), %r14d
movq 0x8(%rdi), %r15
movq 0x10(%rdi), %r13
callq 0x5030
leaq -0x60(%rbp), %rbx
movl %r14d, %edi
movq %r15, %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0xae736
movq (%rbx), %rdx
movl 0x8(%r12), %edi
movq 0x10(%r12), %rsi
movq -0x68(%rbp), %rcx
movq %rbx, %r8
callq 0xae80b
movups (%rbx), %xmm0
jmp 0xae58c
movq 0x8(%r13), %rbx
decl (%r13)
movq -0x30(%rbp), %r12
jne 0xae56b
movq %r13, %rdi
callq 0x5030
movq -0x50(%rbp), %rdx
movl 0x8(%r12), %edi
movq 0x10(%r12), %rsi
leaq -0x60(%rbp), %r14
movq %rbx, %rcx
movq %r14, %r8
callq 0xae6b8
movups (%r14), %xmm0
movups %xmm0, 0x8(%r12)
movq -0x48(%rbp), %rax
movq -0x40(%rbp), %rcx
movq -0x38(%rbp), %rdx
movq %r12, (%rcx)
movq %rdx, (%rax)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x32101(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x32106(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302