// File: /workspace/github_c_makefile_star2_O0/aremmell[P]libsir/src/sirinternal.c
// Function: sir_syslogid
bool _sir_syslogid(sirinit* si, const sir_update_config_data* data) {
    bool retval = _sir_validptr(si) && _sir_validptr(data);

    if (retval) {
        bool cur_ok = _sir_validstrnofail(si->d_syslog.identity);
        if (!cur_ok || 0 != strncmp(si->d_syslog.identity, data->sl_identity, SIR_MAX_SYSLOG_ID)) {
            _sir_selflog("updating %s identity from '%s' to '%s'", SIR_DESTNAME_SYSLOG,
                si->d_syslog.identity, data->sl_identity);
            (void)_sir_strncpy(si->d_syslog.identity, SIR_MAX_SYSLOG_ID, data->sl_identity,
                strnlen(data->sl_identity, SIR_MAX_SYSLOG_ID));
            _sir_setbitshigh(&si->d_syslog._state.mask, SIRSL_UPDATED | SIRSL_IDENTITY);
            retval = _sir_syslog_updated(si, data);
            _sir_setbitslow(&si->d_syslog._state.mask, SIRSL_UPDATED | SIRSL_IDENTITY);
        } else {
            _sir_selflog("skipped superfluous update of %s identity: '%s'", SIR_DESTNAME_SYSLOG,
                si->d_syslog.identity);
        }
    }

    return retval;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rdi
movl $0x1, %esi
leaq 0x6c5b(%rip), %rdx      # 0x111ca
leaq 0x6b20(%rip), %rcx      # 0x11096
movl $0x184, %r8d            # imm = 0x184
callq 0x8f70
movb %al, %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, 0x15(%rsp)
jne 0xa590
jmp 0xa5b7
movq 0x18(%rsp), %rdi
movl $0x1, %esi
leaq 0x6c29(%rip), %rdx      # 0x111ca
leaq 0x6aee(%rip), %rcx      # 0x11096
movl $0x184, %r8d            # imm = 0x184
callq 0x8f70
movb %al, 0x15(%rsp)
movb 0x15(%rsp), %al
andb $0x1, %al
movb %al, 0x17(%rsp)
testb $0x1, 0x17(%rsp)
je 0xa709
movq 0x20(%rsp), %rdi
addq $0x10, %rdi
addq $0x18, %rdi
xorl %esi, %esi
leaq 0x6be8(%rip), %rdx      # 0x111ca
leaq 0x6aad(%rip), %rcx      # 0x11096
movl $0x187, %r8d            # imm = 0x187
callq 0xa720
andb $0x1, %al
movb %al, 0x16(%rsp)
testb $0x1, 0x16(%rsp)
je 0xa62d
movq 0x20(%rsp), %rdi
addq $0x10, %rdi
addq $0x18, %rdi
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rsi
movl $0x80, %edx
callq 0x2090
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
je 0xa6e5
movq 0x20(%rsp), %rdx
addq $0x10, %rdx
addq $0x18, %rdx
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rcx
leaq 0x6b8e(%rip), %rdi      # 0x111d8
leaq 0x6b72(%rip), %rsi      # 0x111c3
movb $0x0, %al
callq 0x9730
movq 0x20(%rsp), %rax
addq $0x10, %rax
addq $0x18, %rax
movq %rax, (%rsp)
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rdi
movl $0x80, %esi
callq 0x21d0
movq (%rsp), %rdi
movq 0x8(%rsp), %rdx
movq %rax, %rcx
movl $0x80, %esi
callq 0x83d0
movq 0x20(%rsp), %rdi
addq $0x10, %rdi
addq $0x8, %rdi
movl $0x30, %esi
callq 0xa200
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0xa220
andb $0x1, %al
movb %al, 0x17(%rsp)
movq 0x20(%rsp), %rdi
addq $0x10, %rdi
addq $0x8, %rdi
movl $0x30, %esi
callq 0xa490
jmp 0xa707
movq 0x20(%rsp), %rdx
addq $0x10, %rdx
addq $0x18, %rdx
leaq 0x6b06(%rip), %rdi      # 0x111ff
leaq 0x6ac3(%rip), %rsi      # 0x111c3
movb $0x0, %al
callq 0x9730
jmp 0xa709
movb 0x17(%rsp), %al
andb $0x1, %al
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)