// File: /workspace/github_c_makefile_star2_O2/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 $0x38, %rsp
movq %r8, -0x30(%rbp)
movq %rcx, %r12
movl %edx, %r15d
leaq -0x60(%rbp), %r14
movq %r14, %rdx
callq 0x12215
movq %rax, %rbx
movq (%r14), %r13
movq 0x10e7c00(%rip), %r14   # 0x110c3c8
incq %r14
movq %r14, 0x10e7bf6(%rip)   # 0x110c3c8
leaq 0x10e7627(%rip), %rdi   # 0x110be00
movq %r14, %rsi
callq 0x12f88
leaq 0xe3ad9(%rip), %rsi     # 0x1082c1
xorl %edi, %edi
movq %rax, %rdx
callq 0x1393b
leaq 0x10e778f(%rip), %rdi   # 0x110bf88
movq %r14, %rsi
callq 0x12f88
leaq 0xe3ef0(%rip), %rsi     # 0x1086f8
movq %rbx, %rdi
movq %rax, %rdx
callq 0x1393b
leaq 0x10e7b8e(%rip), %rdi   # 0x110c3a8
movq %r14, %rsi
callq 0x12f88
leaq 0xe3c00(%rip), %rsi     # 0x108429
pushq $-0x1
popq %rdi
movq %rax, %rdx
callq 0x1393b
leaq 0x10e7b7d(%rip), %rdi   # 0x110c3b8
movq %r14, %rsi
callq 0x12f88
shlq $0x30, %r15
orq %r12, %r15
leaq 0xe45b0(%rip), %rsi     # 0x108e01
movq %r15, %rdi
movq %rax, %rdx
callq 0x1393b
leaq -0x58(%rbp), %rbx
movq %r13, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1a134
movq (%rbx), %rdi
leaq -0x50(%rbp), %rbx
movq %rax, %rsi
movq %rbx, %rdx
callq 0x1c901
movq %rax, %r15
movq (%rbx), %rdi
leaq -0x48(%rbp), %rbx
movq %r14, %rsi
movq %rbx, %rdx
callq 0x2498c
movq (%rbx), %rdi
leaq -0x38(%rbp), %rcx
movq %r15, %rsi
movq %rax, %rdx
callq 0x195fd
movq %rax, %rbx
pushq $0x1
popq %rdi
pushq $0x10
popq %rsi
callq 0x50c0
testq %rax, %rax
je 0x24924
movl $0x1, (%rax)
movq %r14, 0x8(%rax)
movq -0x38(%rbp), %rdi
leaq 0xe3e72(%rip), %rdx     # 0x108741
pushq $0x19
popq %rcx
leaq -0x40(%rbp), %r15
movq %rbx, %rsi
movq %rax, %r8
movq %r15, %r9
callq 0x1d218
movq %rax, %rbx
leaq 0x10e7312(%rip), %rdi   # 0x110bc00
movq %r14, %rsi
callq 0x12f88
leaq 0xe3ed4(%rip), %rsi     # 0x1087d1
movq %rbx, %rdi
movq %rax, %rdx
callq 0x1393b
movq (%r15), %rax
movq -0x30(%rbp), %rcx
movq %rax, (%rcx)
movq %r14, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb37a8(%rip), %rsi     # 0xd80d3
pushq $0x2
popq %rdi
pushq $0x31
popq %rdx
callq 0x5060
callq 0x52ae
pushq $0x1
popq %rdi
callq 0x5130