// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mtp_mirth_elab_ModuleHeader_ModuleHeader
static void mtp_mirth_elab_ModuleHeader_ModuleHeader (struct mirth_elab_ModuleHeader* in_ModuleHeader_1, struct std_maybe_Maybe_1 *out_Maybe_2, uint64_t *out_Package_3, uint64_t *out_Name_4, uint64_t *out_Token_5, struct std_list_List_1 *out_List_6) {
	struct mirth_elab_ModuleHeader v7 = *in_ModuleHeader_1;
	if (!--(in_ModuleHeader_1->refs)) {
		free(in_ModuleHeader_1);
	} else {
		incref(MK_std_maybe_Maybe_1(v7.mdoc));
		incref(MK_std_list_List_1(v7.mimports));
	}
	*out_List_6 = v7.mimports;
	*out_Token_5 = v7.mhead;
	*out_Name_4 = v7.mname;
	*out_Package_3 = v7.mpackage;
	*out_Maybe_2 = v7.mdoc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x8(%rbp), %rsi
leaq -0x70(%rbp), %rdi
movl $0x40, %edx
callq 0x50e0
movq -0x8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x1e92b3
movq -0x8(%rbp), %rdi
callq 0x5030
jmp 0x1e942e
jmp 0x1e92b5
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x133a0
movq %rax, -0x80(%rbp)
movq %rdx, -0x78(%rbp)
movq -0x78(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1e9369
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x133a0
movq %rax, -0x90(%rbp)
movq %rdx, -0x88(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x90(%rbp), %rax
cmpq $0x0, %rax
je 0x1e9369
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x133a0
movq %rax, -0xa0(%rbp)
movq %rdx, -0x98(%rbp)
movq -0xa0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1e9369
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x133a0
movq %rax, -0xb0(%rbp)
movq %rdx, -0xa8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xb0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1e936b
jmp 0x1e936d
movl -0x40(%rbp), %edi
movq -0x38(%rbp), %rsi
callq 0x12780
movq %rax, -0xc0(%rbp)
movq %rdx, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1e942a
movl -0x40(%rbp), %edi
movq -0x38(%rbp), %rsi
callq 0x12780
movq %rax, -0xd0(%rbp)
movq %rdx, -0xc8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xd0(%rbp), %rax
cmpq $0x0, %rax
je 0x1e942a
movl -0x40(%rbp), %edi
movq -0x38(%rbp), %rsi
callq 0x12780
movq %rax, -0xe0(%rbp)
movq %rdx, -0xd8(%rbp)
movq -0xe0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1e942a
movl -0x40(%rbp), %edi
movq -0x38(%rbp), %rsi
callq 0x12780
movq %rax, -0xf0(%rbp)
movq %rdx, -0xe8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xf0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1e942c
jmp 0x1e942e
movq -0x30(%rbp), %rax
movq -0x40(%rbp), %rcx
movq %rcx, (%rax)
movq -0x38(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x48(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x50(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x58(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq -0x68(%rbp), %rcx
movq %rcx, (%rax)
movq -0x60(%rbp), %rcx
movq %rcx, 0x8(%rax)
addq $0xf0, %rsp
popq %rbp
retq
nop