// File: /workspace/github_c_makefile_star2_O1/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1778d7(%rip), %rax    # 0x1a8dd0
movq (%rax), %rsi
movq %rsp, %r15
movq %r15, %rdi
callq 0xe0431
xorl %r12d, %r12d
movq %r12, 0x10(%r15)
movq 0x100(%r14), %rdi
callq 0x114f61
movq %r12, 0x100(%r14)
movq 0x108(%r14), %rdi
callq 0x114f61
movq %r12, 0x108(%r14)
movq 0x110(%r14), %rdi
callq 0x114f61
movq %r12, 0x110(%r14)
movb $0x0, 0xf9(%r14)
movq %r14, %rdi
callq 0x310f3
testb %al, %al
je 0x316a1
xorl %eax, %eax
callq 0x114bbb
movq %rax, 0x100(%r14)
xorl %eax, %eax
callq 0x114bbb
movq %rax, 0x108(%r14)
xorl %eax, %eax
callq 0x114bbb
movq %rax, 0x110(%r14)
movq 0x138(%r14), %rax
cmpb $0x0, 0x184(%rax)
je 0x315e7
xorl %eax, %eax
callq 0x114bbb
movq %rsp, %rdi
movabsq $-0x503db0e6e1c2e704, %rdx # imm = 0xAFC24F191E3D18FC
xorl %esi, %esi
movq %rax, %rcx
callq 0xe0676
movq %rax, %r12
leaq 0x118(%r14), %rcx
movq %r14, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x3023a
movq %rax, %r15
testq %rax, %rax
je 0x31667
movq %rsp, %rdi
callq 0xe0b30
jmp 0x31693
movq 0x100(%r14), %rdx
leaq 0x118(%r14), %rcx
movq %r14, %rdi
xorl %esi, %esi
callq 0x3023a
movq %rax, %r15
testq %rax, %rax
jne 0x316b2
movq 0x108(%r14), %rdx
leaq 0x120(%r14), %rcx
movq %r14, %rdi
xorl %esi, %esi
callq 0x306e9
movq %rax, %r12
testq %rax, %rax
je 0x31636
movq %rsp, %rdi
callq 0xe0b30
movq %r12, %r15
testq %r12, %r12
jne 0x316ba
movq 0x10(%r14), %r15
movq 0x110(%r14), %r12
movq %r14, %rdi
callq 0x2f6ec
leaq 0x10969b(%rip), %rsi    # 0x13acf0
movq %r12, %rdi
movq %r15, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xee2a
jmp 0x31699
leaq 0x120(%r14), %rcx
movq %r14, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x306e9
movq %rax, %r13
testq %rax, %rax
je 0x3168e
movq %rsp, %rdi
callq 0xe0b30
movq %r13, %r15
testq %r13, %r13
je 0x316cb
xorl %eax, %eax
testb %al, %al
je 0x316ba
movb $0x1, 0xf9(%r14)
testq %rbx, %rbx
je 0x316af
movb 0xf9(%r14), %al
movb %al, (%rbx)
xorl %r15d, %r15d
movq %rsp, %rdi
callq 0xe0b30
movq %r15, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x10(%r14), %r13
movq %r14, %rdi
callq 0x2f6ec
leaq 0x109612(%rip), %rsi    # 0x13acf0
movq %r12, %rdi
movq %r13, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xee2a
movb $0x1, %al
jmp 0x31695