// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_macro_Macro_Prim
static uint64_t mw_mirth_macro_Macro_Prim (struct mirth_mirth_zaMirth* in_zaMirth_1, STR* in_Str_2, INT in_Int_3, struct mirth_macro_MacroAction in_MacroAction_4, struct mirth_mirth_zaMirth* *out_zaMirth_5) {
	struct mirth_mirth_zaMirth* v7;
	uint64_t v8 = mw_mirth_name_Name_Name(in_zaMirth_1, in_Str_2, &v7);
	struct std_maybe_Maybe_1 v9 = { .tag=std_maybe_Maybe_1_None };
	struct mirth_mirth_zaMirth* v10;
	uint64_t v11 = mw_mirth_macro_Macro_Makezx(v7, v9, v8, in_Int_3, in_MacroAction_4, &v10);
	struct mirth_mirth_zaMirth* v12;
	uint64_t v13 = mw_mirth_macro_Macro_name(v10, v11, &v12);
	struct mirth_mirth_zaMirth* v14;
	STR* v15 = mw_mirth_name_Name_zgStr(v12, v13, &v14);
	struct mirth_mirth_zaMirth* v16;
	INT v17 = mw_mirth_macro_Macro_arity(v14, v11, &v16);
	struct mirth_mirth_zaMirth* v18;
	struct mirth_name_QName* v19 = mw_mirth_name_QName_Prim(v16, v15, v17, &v18);
	struct mirth_mirth_PropLabel v20 = mtw_mirth_mirth_PropLabel_MacroQName(v11);
	struct mirth_mirth_zaMirth* v21;
	struct mirth_mirth_Prop_1* v22 = mw_mirth_mirth_PropLabel_prop(v18, MK_mirth_name_QName(v19), v20, &v21);
	void* v23 = field_mut(&mfld_mirth_macro_Macro_ztqname, v11);
	mut_set(MK_mirth_mirth_Prop_1(v22), v23);
	*out_zaMirth_5 = v21;
	return v11;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, -0x30(%rbp)
movq %rcx, %r13
movl %edx, %r12d
leaq -0x48(%rbp), %r14
movq %r14, %rdx
callq 0x13236
movq %rax, %rbx
movq (%r14), %rax
movq %rax, -0x38(%rbp)
movq 0x10f1b53(%rip), %r14   # 0x11193c8
incq %r14
movq %r14, 0x10f1b49(%rip)   # 0x11193c8
leaq 0x10f157a(%rip), %rdi   # 0x1118e00
movq %r14, %rsi
callq 0x13ff0
leaq 0xeda2c(%rip), %rsi     # 0x1152c1
xorl %edi, %edi
movq %rax, %rdx
callq 0x14ab5
leaq 0x10f16e2(%rip), %r15   # 0x1118f88
movq %r15, %rdi
movq %r14, %rsi
callq 0x13ff0
leaq 0xede40(%rip), %rsi     # 0x1156f8
movq %rbx, %rdi
movq %rax, %rdx
callq 0x14ab5
leaq 0x10f1ade(%rip), %rbx   # 0x11193a8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13ff0
leaq 0xedb4d(%rip), %rsi     # 0x115429
movq $-0x1, %rdi
movq %rax, %rdx
callq 0x14ab5
leaq 0x10f1ac6(%rip), %rdi   # 0x11193b8
movq %r14, %rsi
callq 0x13ff0
shlq $0x30, %r12
orq %r13, %r12
leaq 0xee4f9(%rip), %rsi     # 0x115e01
movq %r12, %rdi
movq %rax, %rdx
callq 0x14ab5
movq %r15, %rdi
movq %r14, %rsi
callq 0x13ff0
movq %rax, %rdi
callq 0x140f0
leaq 0x10f0b9b(%rip), %rdi   # 0x11184c8
movq %rax, %rsi
callq 0x13ff0
movq %rax, %rdi
callq 0x140f0
movq %rax, %rdi
movq %rdx, %rsi
callq 0x942c
movq %rax, %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13ff0
movq %rax, %rdi
callq 0x140f0
movq %rax, %rbx
movq %rax, %rdi
movq %rdx, %rsi
callq 0x10db8
leaq -0x40(%rbp), %rcx
movq -0x38(%rbp), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x1bb30
movq %rax, %r15
movl $0x1, %edi
movl $0x10, %esi
callq 0x50c0
testq %rax, %rax
je 0x27a05
movq %rax, %rbx
movl $0x1, (%rax)
movq %r14, 0x8(%rax)
movq -0x40(%rbp), %r12
leaq 0xedd93(%rip), %rsi     # 0x115741
movq %r15, %rdi
callq 0x15e68
movl $0x19, %edi
movq %rbx, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x1faa2
movq %rax, %rbx
leaq 0x10f122e(%rip), %rdi   # 0x1118c00
movq %r14, %rsi
callq 0x13ff0
leaq 0xeddf0(%rip), %rsi     # 0x1157d1
movq %rbx, %rdi
movq %rax, %rdx
callq 0x14ab5
movq -0x30(%rbp), %rax
movq %r12, (%rax)
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc0629(%rip), %rsi     # 0xe8035
movl $0x31, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52be
movl $0x1, %edi
callq 0x5130