// File: /workspace/github_c_makefile_star2_O3/nimble-code[P]gh_cpp/Src/gh_cpp1.c
// Function: closemacro
static void
closemacro(void)
{	MD *m;
	TS *w;
	int cnt_s = 0, cnt_p = 0;

	if (md)
	{	md->arg = ca;
		md->body = cb;

		for (m = md->nxt; m; m = m->nxt)
			if (strcmp(m->nm, md->nm) == 0)
			{	conflict(m, md);
				break;
			}

		if (misra_rules)
		{	if (ca) m_rule(19, 7, "function-like macro iso function");

			if (misra_rules) check_body_type(cb);

			for (w = cb; w; w = w->nxt)
				if (w->tok == CHAR
				&&  w->val == '#')
				{	if (w->nxt
					&&  w->nxt->tok == CHAR
					&&  w->nxt->val == '#')
					{	cnt_p++;
						w = w->nxt;
						if (w->nxt)
							w = w->nxt;
					} else
						cnt_s++;
				}
			if (cnt_s > 1) m_rule(19, 12, "more than one # in macro");
			else if (cnt_s > 0) m_rule(19, 13, "# in macro");
			if (cnt_p > 1) m_rule(19, 12, "more than one ## in macro");
			else if (cnt_p > 0) m_rule(19, 13, "## in macro");
		}
	}
	ca = (ARGS *) 0;
	cb = (TS *) 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0xd677(%rip), %r15      # 0x14318
testq %r15, %r15
je 0x6ff9
movq 0xd677(%rip), %rax      # 0x14328
movq %rax, 0x18(%r15)
movq 0xd674(%rip), %r12      # 0x14330
movq %r12, 0x20(%r15)
movq %r15, %rbx
movq 0x28(%rbx), %rbx
testq %rbx, %rbx
je 0x6d54
movq (%rbx), %r14
movq (%r15), %rsi
movq %r14, %rdi
callq 0x4140
testl %eax, %eax
jne 0x6cc3
movq 0x20(%rbx), %r13
testq %r13, %r13
setne %al
testq %r12, %r12
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x6d49
movl (%r13), %eax
cmpl (%r12), %eax
jne 0x7018
movq 0x8(%r13), %rdi
testq %rdi, %rdi
je 0x6d27
movq 0x8(%r12), %rsi
testq %rsi, %rsi
je 0x6d27
callq 0x4140
testl %eax, %eax
jne 0x7018
movl 0x4(%r13), %eax
cmpl 0x4(%r12), %eax
jne 0x7018
movq 0x28(%r13), %r13
testq %r13, %r13
je 0x6d49
movq 0x28(%r12), %r12
testq %r12, %r12
jne 0x6cf9
movq 0x28(%r15), %rax
movq %rax, 0xd5c4(%rip)      # 0x14318
cmpl $0x0, 0xc139(%rip)      # 0x12e94
je 0x6ff9
cmpq $0x0, 0xd5bf(%rip)      # 0x14328
je 0x6d8e
leaq 0x7e3c(%rip), %rdx      # 0xebae
movl $0x13, %edi
movl $0x7, %esi
callq 0xa2f8
cmpl $0x0, 0xc10c(%rip)      # 0x12e94
je 0x6f46
movq 0xd59b(%rip), %r14      # 0x14330
testq %r14, %r14
je 0x6ff9
xorl %ecx, %ecx
xorl %eax, %eax
xorl %edx, %edx
movq %r14, %rsi
movq %rsi, %rbx
cmpl $0x2, (%rsi)
jne 0x6deb
movl 0x4(%rbx), %esi
cmpl $0x5c, %esi
jg 0x6dca
cmpl $0x28, %esi
je 0x6ddd
cmpl $0x29, %esi
je 0x6de5
cmpl $0x5b, %esi
jne 0x6deb
incl %ecx
jmp 0x6deb
cmpl $0x5d, %esi
je 0x6de1
cmpl $0x7b, %esi
je 0x6de9
cmpl $0x7d, %esi
jne 0x6deb
decl %eax
jmp 0x6deb
incl %edx
jmp 0x6deb
decl %ecx
jmp 0x6deb
decl %edx
jmp 0x6deb
incl %eax
movq 0x28(%rbx), %rsi
testq %rsi, %rsi
jne 0x6da7
testl %edx, %edx
jne 0x6e00
testl %ecx, %ecx
jne 0x6e00
testl %eax, %eax
je 0x6e16
leaq 0x7e3c(%rip), %rdx      # 0xec43
movl $0x13, %edi
movl $0x28, %esi
callq 0xa2f8
movl (%r14), %edx
cmpl $0x2, %edx
jne 0x6e3e
cmpl $0x3b, 0x4(%r14)
jne 0x6e6c
leaq 0x7e3e(%rip), %rdx      # 0xec6a
movl $0x13, %edi
movl $0x4, %esi
callq 0xa2f8
movl (%r14), %edx
movq 0x28(%r14), %rax
testq %rax, %rax
je 0x6e50
xorl %ecx, %ecx
cmpl $0x2, %edx
je 0x6e76
jmp 0x6e9c
cmpl $0x1, %edx
je 0x6f46
movb $0x1, %cl
xorl %eax, %eax
cmpl $0x2, %edx
je 0x6e76
cmpl $0x4, %edx
jne 0x6e9c
jmp 0x6f46
movq 0x28(%r14), %rax
testq %rax, %rax
sete %cl
movl 0x4(%r14), %esi
cmpl $0x7d, %esi
je 0x6f0a
movl $0x2, %edx
cmpl $0x29, %esi
jne 0x6e9c
cmpl $0x2, (%rbx)
jne 0x6e9c
cmpl $0x28, 0x4(%rbx)
je 0x6f46
movl (%rbx), %esi
cmpl $0x29, %edx
setne %dl
cmpl $0x1, %esi
jne 0x6f19
movq 0x8(%rbx), %rsi
cmpb $0x64, (%rsi)
jne 0x6f19
cmpb $0x6f, 0x1(%rsi)
jne 0x6f19
cmpb $0x0, 0x2(%rsi)
setne %sil
orb %dl, %cl
orb %sil, %cl
jne 0x6f19
cmpl $0x4, (%rax)
jne 0x6f19
cmpl $0x0, 0x4(%rax)
jne 0x6f19
movq 0x28(%rax), %rax
testq %rax, %rax
je 0x6f19
cmpl $0x2, (%rax)
jne 0x6f19
cmpl $0x28, 0x4(%rax)
jne 0x6f19
movq 0x28(%rax), %rax
testq %rax, %rax
je 0x6f19
cmpl $0x1, (%rax)
jne 0x6f19
movq 0x8(%rax), %rdi
leaq 0x7d8b(%rip), %rsi      # 0xec8a
callq 0x4140
testl %eax, %eax
jne 0x6f19
jmp 0x6f46
movl (%rbx), %esi
movb $0x1, %dl
cmpl $0x2, %esi
jne 0x6ea4
cmpl $0x7b, 0x4(%rbx)
je 0x6f46
movq 0xb1f0(%rip), %rdi      # 0x12110
leaq 0x42f5(%rip), %rsi      # 0xb21c
callq 0x4140
testl %eax, %eax
je 0x6f46
leaq 0x7d59(%rip), %rdx      # 0xec90
movl $0x13, %edi
movl $0x4, %esi
callq 0xa2f8
movq 0xd3e3(%rip), %rcx      # 0x14330
testq %rcx, %rcx
je 0x6ff9
xorl %ebx, %ebx
xorl %eax, %eax
cmpl $0x2, (%rcx)
jne 0x6f8a
cmpl $0x23, 0x4(%rcx)
jne 0x6f8a
movq 0x28(%rcx), %rdx
testq %rdx, %rdx
je 0x6f88
cmpl $0x2, (%rdx)
jne 0x6f88
cmpl $0x23, 0x4(%rdx)
jne 0x6f88
incl %ebx
movq 0x28(%rdx), %rcx
testq %rcx, %rcx
cmoveq %rdx, %rcx
jmp 0x6f8a
incl %eax
movq 0x28(%rcx), %rcx
testq %rcx, %rcx
jne 0x6f5a
cmpl $0x2, %eax
jl 0x6fab
leaq 0x7c30(%rip), %rdx      # 0xebcf
movl $0x13, %edi
movl $0xc, %esi
jmp 0x6fc1
cmpl $0x1, %eax
jne 0x6fc6
leaq 0x7c26(%rip), %rdx      # 0xebdd
movl $0x13, %edi
movl $0xd, %esi
callq 0xa2f8
cmpl $0x2, %ebx
jl 0x6fde
leaq 0x7c16(%rip), %rdx      # 0xebe8
movl $0x13, %edi
movl $0xc, %esi
jmp 0x6ff4
cmpl $0x1, %ebx
jne 0x6ff9
leaq 0x7c0c(%rip), %rdx      # 0xebf6
movl $0x13, %edi
movl $0xd, %esi
callq 0xa2f8
xorl %eax, %eax
movq %rax, 0xd326(%rip)      # 0x14328
movq %rax, 0xd327(%rip)      # 0x14330
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
movq %rbx, %rsi
callq 0x43bf
jmp 0x6d54