// File: /workspace/github_c_makefile_star2_O0/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_target_s_expand_phase1
er_t xoico_target_s_expand_phase1( xoico_target_s* o, bl_t* p_modified )
{
    // xoico_target.x:536:1
    BLM_INIT_LEVEL(0);
    st_s_attach( &(o->target_h ),  NULL);
    st_s_attach( &(o->target_c ),  NULL);
    st_s_attach( &(o->target_state ),  NULL);
    o->modified = false;
    
    if( xoico_target_s_to_be_modified(o) )
    {
        o->target_h = st_s_create();
        o->target_c = st_s_create();
        o->target_state = st_s_create();
        if( !o->compiler->dry_run )
        {
            BLM_TRY(xoico_target_s_expand_h(o,0,((x_sink*)( o->target_h)), (&(o->body_signature_h)) ))
            BLM_TRY(xoico_target_s_expand_c(o,0,((x_sink*)( o->target_c)), (&(o->body_signature_c)) ))
            BLM_TRY(xoico_target_s_expand_state(o,((x_sink*)(o->target_state ))))
        }
        else
        {
            st_s* buf = ((st_s*)BLM_LEVEL_T_PUSH(0,st_s,st_s_create()));
            BLM_TRY(xoico_target_s_expand_h(o,0,((x_sink*)( buf)), (&(o->body_signature_h)) ))
            BLM_TRY(xoico_target_s_expand_c(o,0,((x_sink*)( buf)), (&(o->body_signature_c)) ))
            BLM_TRY(xoico_target_s_expand_state(o,((x_sink*)(buf ))))
        }
        o->modified = true;
    }
    
    if( p_modified ) (*(p_modified)) = o->modified;
    
    BLM_RETURNV(er_t, 0)
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
leaq 0x1925d6(%rip), %rax    # 0x1b2330
movq (%rax), %rax
movq %rax, -0x20(%rbp)
leaq -0x50(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0xbfe80
movq -0x58(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq $0x0, 0x10(%rax)
movq -0x10(%rbp), %rdi
addq $0x100, %rdi            # imm = 0x100
xorl %eax, %eax
movl %eax, %esi
callq 0x1aea0
movq -0x10(%rbp), %rdi
addq $0x108, %rdi            # imm = 0x108
xorl %eax, %eax
movl %eax, %esi
callq 0x1aea0
movq -0x10(%rbp), %rdi
addq $0x110, %rdi            # imm = 0x110
xorl %eax, %eax
movl %eax, %esi
callq 0x1aea0
movq -0x10(%rbp), %rax
movb $0x0, 0xf9(%rax)
movq -0x10(%rbp), %rdi
callq 0x1fb10
testb $0x1, %al
jne 0x1fde3
jmp 0x20050
movb $0x0, %al
callq 0xff2e0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x100(%rax)
movb $0x0, %al
callq 0xff2e0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x108(%rax)
movb $0x0, %al
callq 0xff2e0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x110(%rax)
movq -0x10(%rbp), %rax
movq 0x138(%rax), %rax
testb $0x1, 0x184(%rax)
jne 0x1ff1a
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x100(%rax), %rdx
movq -0x10(%rbp), %rcx
addq $0x118, %rcx            # imm = 0x118
xorl %eax, %eax
movl %eax, %esi
callq 0x1e7b0
movq %rax, -0x60(%rbp)
cmpq $0x0, -0x60(%rbp)
je 0x1fe86
movq -0x60(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x58(%rbp), %rdi
callq 0xc0720
movq -0x68(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x20089
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x108(%rax), %rdx
movq -0x10(%rbp), %rcx
addq $0x120, %rcx            # imm = 0x120
xorl %eax, %eax
movl %eax, %esi
callq 0x1ee40
movq %rax, -0x70(%rbp)
cmpq $0x0, -0x70(%rbp)
je 0x1fed2
movq -0x70(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x58(%rbp), %rdi
callq 0xc0720
movq -0x78(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x20089
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x110(%rax), %rsi
callq 0x1fac0
movq %rax, -0x80(%rbp)
cmpq $0x0, -0x80(%rbp)
je 0x1ff15
movq -0x80(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x58(%rbp), %rdi
callq 0xc0720
movq -0x88(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x20089
jmp 0x20045
movq -0x20(%rbp), %rax
movq %rax, -0xd0(%rbp)
movb $0x0, %al
callq 0xff2e0
movq -0xd0(%rbp), %rdi
movq %rax, %rcx
xorl %eax, %eax
movl %eax, %esi
movabsq $-0x503db0e6e1c2e704, %rdx # imm = 0xAFC24F191E3D18FC
callq 0xc01a0
movq %rax, -0x90(%rbp)
movq -0x10(%rbp), %rdi
movq -0x90(%rbp), %rdx
movq -0x10(%rbp), %rcx
addq $0x118, %rcx            # imm = 0x118
xorl %eax, %eax
movl %eax, %esi
callq 0x1e7b0
movq %rax, -0x98(%rbp)
cmpq $0x0, -0x98(%rbp)
je 0x1ffa7
movq -0x98(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x58(%rbp), %rdi
callq 0xc0720
movq -0xa0(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x20089
movq -0x10(%rbp), %rdi
movq -0x90(%rbp), %rdx
movq -0x10(%rbp), %rcx
addq $0x120, %rcx            # imm = 0x120
xorl %eax, %eax
movl %eax, %esi
callq 0x1ee40
movq %rax, -0xa8(%rbp)
cmpq $0x0, -0xa8(%rbp)
je 0x1fffe
movq -0xa8(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x58(%rbp), %rdi
callq 0xc0720
movq -0xb0(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x20089
movq -0x10(%rbp), %rdi
movq -0x90(%rbp), %rsi
callq 0x1fac0
movq %rax, -0xb8(%rbp)
cmpq $0x0, -0xb8(%rbp)
je 0x20043
movq -0xb8(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x58(%rbp), %rdi
callq 0xc0720
movq -0xc0(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x20089
jmp 0x20045
movq -0x10(%rbp), %rax
movb $0x1, 0xf9(%rax)
cmpq $0x0, -0x18(%rbp)
je 0x2006a
movq -0x10(%rbp), %rax
movb 0xf9(%rax), %cl
movq -0x18(%rbp), %rax
andb $0x1, %cl
movb %cl, (%rax)
movq $0x0, -0xc8(%rbp)
movq -0x58(%rbp), %rdi
callq 0xc0720
movq -0xc8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xd0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)