// File: /workspace/github_c_makefile_star2_O3/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 0x12e7f
movq %rax, %rbx
movq (%r14), %rax
movq %rax, -0x38(%rbp)
movq 0x10ee15c(%rip), %r14   # 0x11153c8
incq %r14
movq %r14, 0x10ee152(%rip)   # 0x11153c8
leaq 0x10edb83(%rip), %rdi   # 0x1114e00
movq %r14, %rsi
callq 0x13c85
leaq 0xea035(%rip), %rsi     # 0x1112c1
xorl %edi, %edi
movq %rax, %rdx
callq 0x14766
leaq 0x10edceb(%rip), %r15   # 0x1114f88
movq %r15, %rdi
movq %r14, %rsi
callq 0x13c85
leaq 0xea449(%rip), %rsi     # 0x1116f8
movq %rbx, %rdi
movq %rax, %rdx
callq 0x14766
leaq 0x10ee0e7(%rip), %rbx   # 0x11153a8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13c85
leaq 0xea156(%rip), %rsi     # 0x111429
movq $-0x1, %rdi
movq %rax, %rdx
callq 0x14766
leaq 0x10ee0cf(%rip), %rdi   # 0x11153b8
movq %r14, %rsi
callq 0x13c85
shlq $0x30, %r12
orq %r13, %r12
leaq 0xeab02(%rip), %rsi     # 0x111e01
movq %r12, %rdi
movq %rax, %rdx
callq 0x14766
movq %r15, %rdi
movq %r14, %rsi
callq 0x13c85
movq %rax, %rdi
callq 0x13d82
leaq 0x10ed1a4(%rip), %rdi   # 0x11144c8
movq %rax, %rsi
callq 0x13c85
movq %rax, %rdi
callq 0x13d82
movq %rax, %rdi
movq %rdx, %rsi
callq 0x9189
movq %rax, %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13c85
movq %rax, %rdi
callq 0x13d82
movq %rax, %rbx
movq %rax, %rdi
movq %rdx, %rsi
callq 0x1099d
leaq -0x40(%rbp), %rcx
movq -0x38(%rbp), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x1b868
movq %rax, %r15
movl $0x1, %edi
movl $0x10, %esi
callq 0x50c0
testq %rax, %rax
je 0x273fc
movq %rax, %rbx
movl $0x1, (%rax)
movq %r14, 0x8(%rax)
movq -0x40(%rbp), %r12
leaq 0xea39c(%rip), %rsi     # 0x111741
movq %r15, %rdi
callq 0x15b30
movl $0x19, %edi
movq %rbx, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x1f63a
movq %rax, %rbx
leaq 0x10ed837(%rip), %rdi   # 0x1114c00
movq %r14, %rsi
callq 0x13c85
leaq 0xea3f9(%rip), %rsi     # 0x1117d1
movq %rbx, %rdi
movq %rax, %rdx
callq 0x14766
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 0xbcb33(%rip), %rsi     # 0xe3f36
movl $0x31, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52b6
movl $0x1, %edi
callq 0x5130