// File: /workspace/github_c_makefile_star2_O2/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, -0x38(%rbp)
movq %rdi, -0x30(%rbp)
movl 0x8(%rdx), %r12d
movq 0x10(%rdx), %r13
movl 0x18(%rdx), %ebx
movq 0x20(%rdx), %r14
movq 0x28(%rdx), %r15
decl (%rdx)
je 0xa4839
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
movq %r13, %rcx
andq %rax, %rcx
sete %dl
testb $0x3, %r13b
setne %sil
orb %dl, %sil
jne 0xa480c
incl (%rcx)
movq %r14, %rcx
andq %rax, %rcx
sete %dl
testb $0x3, %r14b
setne %sil
orb %dl, %sil
jne 0xa4824
incl (%rcx)
andq %r15, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0xa4841
incl (%rax)
jmp 0xa4841
movq %rdx, %rdi
callq 0x5030
leaq -0x50(%rbp), %rcx
movl %ebx, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0xa496b
cmpl $0x3, %r12d
ja 0xa4954
movl %r12d, %eax
leaq 0x2f67e(%rip), %rcx     # 0xd3ee4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x50(%rbp), %rdx
leaq -0x60(%rbp), %rbx
leaq -0x58(%rbp), %r14
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq %rbx, %rcx
movq %r14, %r8
callq 0xa49c8
jmp 0xa4931
movq -0x50(%rbp), %rdi
leaq -0x60(%rbp), %rbx
movq %rbx, %rsi
callq 0xa4a6f
movq (%rbx), %rdx
leaq -0x58(%rbp), %rbx
leaq -0x68(%rbp), %r14
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq %rbx, %rcx
movq %r14, %r8
callq 0xa4ab9
jmp 0xa4931
movq %r13, %rdi
callq 0xa4b08
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x60(%rbp), %r14
movq %r14, %rsi
callq 0xa4a6f
movq (%r14), %rcx
leaq -0x58(%rbp), %r14
leaq -0x68(%rbp), %r15
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq %rbx, %rdx
movq %r14, %r8
movq %r15, %r9
callq 0xa4b25
movq (%r15), %rax
movq (%r14), %rcx
jmp 0xa4937
movq %r13, %rdi
callq 0xa2f51
movq -0x50(%rbp), %rcx
leaq -0x60(%rbp), %rbx
leaq -0x58(%rbp), %r14
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq %rax, %rdx
movq %rbx, %r8
movq %r14, %r9
callq 0xa4a17
movq (%r14), %rax
movq (%rbx), %rcx
movq -0x48(%rbp), %rdx
movq -0x40(%rbp), %rsi
movq %rax, (%rsi)
movq %rcx, (%rdx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2feb2(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6