// File: /workspace/github_c_makefile_star2_O0/aremmell[P]libsir/src/sirinternal.c
// Function: sir_syslogcat
bool _sir_syslogcat(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.category);
        if (!cur_ok || 0 != strncmp(si->d_syslog.category, data->sl_category, SIR_MAX_SYSLOG_CAT)) {
            _sir_selflog("updating %s category from '%s' to '%s'", SIR_DESTNAME_SYSLOG,
                si->d_syslog.category, data->sl_category);
            (void)_sir_strncpy(si->d_syslog.category, SIR_MAX_SYSLOG_CAT, data->sl_category,
                strnlen(data->sl_category, SIR_MAX_SYSLOG_CAT));
            _sir_setbitshigh(&si->d_syslog._state.mask, SIRSL_UPDATED | SIRSL_CATEGORY);
            retval = _sir_syslog_updated(si, data);
            _sir_setbitslow(&si->d_syslog._state.mask, SIRSL_UPDATED | SIRSL_CATEGORY);
        } else {
            _sir_selflog("skipped superfluous update of %s category: '%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 0x6a70(%rip), %rdx      # 0x1122f
leaq 0x68d0(%rip), %rcx      # 0x11096
movl $0x19a, %r8d            # imm = 0x19A
callq 0x8f70
movb %al, %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, 0x15(%rsp)
jne 0xa7e0
jmp 0xa807
movq 0x18(%rsp), %rdi
movl $0x1, %esi
leaq 0x6a3e(%rip), %rdx      # 0x1122f
leaq 0x689e(%rip), %rcx      # 0x11096
movl $0x19a, %r8d            # imm = 0x19A
callq 0x8f70
movb %al, 0x15(%rsp)
movb 0x15(%rsp), %al
andb $0x1, %al
movb %al, 0x17(%rsp)
testb $0x1, 0x17(%rsp)
je 0xa964
movq 0x20(%rsp), %rdi
addq $0x10, %rdi
addq $0x98, %rdi
xorl %esi, %esi
leaq 0x69fa(%rip), %rdx      # 0x1122f
leaq 0x685a(%rip), %rcx      # 0x11096
movl $0x19d, %r8d            # imm = 0x19D
callq 0xa720
andb $0x1, %al
movb %al, 0x16(%rsp)
testb $0x1, 0x16(%rsp)
je 0xa883
movq 0x20(%rsp), %rdi
addq $0x10, %rdi
addq $0x98, %rdi
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rsi
movl $0x40, %edx
callq 0x2090
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
je 0xa940
movq 0x20(%rsp), %rdx
addq $0x10, %rdx
addq $0x98, %rdx
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rcx
leaq 0x699b(%rip), %rdi      # 0x1123e
leaq 0x6919(%rip), %rsi      # 0x111c3
movb $0x0, %al
callq 0x9730
movq 0x20(%rsp), %rax
addq $0x10, %rax
addq $0x98, %rax
movq %rax, (%rsp)
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rdi
movl $0x40, %esi
callq 0x21d0
movq (%rsp), %rdi
movq 0x8(%rsp), %rdx
movq %rax, %rcx
movl $0x40, %esi
callq 0x83d0
movq 0x20(%rsp), %rdi
addq $0x10, %rdi
addq $0x8, %rdi
movl $0x28, %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 $0x28, %esi
callq 0xa490
jmp 0xa962
movq 0x20(%rsp), %rdx
addq $0x10, %rdx
addq $0x18, %rdx
leaq 0x6911(%rip), %rdi      # 0x11265
leaq 0x6868(%rip), %rsi      # 0x111c3
movb $0x0, %al
callq 0x9730
jmp 0xa964
movb 0x17(%rsp), %al
andb $0x1, %al
addq $0x28, %rsp
retq
nop