// File: /workspace/github_c_makefile_star2_O3/containers[P]conmon/src/ctr_logging.c
// Function: write_to_logs
bool write_to_logs(stdpipe_t pipe, char *buf, ssize_t num_read)
{
	if (use_k8s_logging && write_k8s_log(pipe, buf, num_read) < 0) {
		nwarn("write_k8s_log failed");
		return G_SOURCE_CONTINUE;
	}
	if (use_journald_logging && write_journald(pipe, buf, num_read) < 0) {
		nwarn("write_journald failed");
		return G_SOURCE_CONTINUE;
	}
	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x8a8, %rsp            # imm = 0x8A8
movq %rdx, %rbp
movq %rsi, (%rsp)
movl %edi, %ebx
cmpb $0x1, 0x1ca62(%rip)     # 0x25e74
jne 0x97c4
leaq 0xa0(%rsp), %rdi
movl $0x808, %edx            # imm = 0x808
xorl %esi, %esi
callq 0x40b0
movq %rbx, 0x68(%rsp)
leal -0x1(%rbx), %eax
cmpl $0x2, %eax
ja 0x944b
movl %eax, %eax
leaq 0x4a02(%rip), %rcx      # 0xde44
movslq (%rcx,%rax,4), %rbx
addq %rcx, %rbx
jmp 0x9452
leaq 0x4969(%rip), %rbx      # 0xddbb
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x40(%rsp)
xorl %edi, %edi
callq 0x4180
testl %eax, %eax
jns 0x9493
callq 0x45b0
cmpl $0x16, (%rax)
je 0x9493
movq $0x0, 0x58(%rsp)
cmpb $0x0, 0x20a1e(%rip)     # 0x29eb8
jne 0x94a8
callq 0x4320
movb $0x1, 0x20a10(%rip)     # 0x29eb8
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x4700
testq %rax, %rax
je 0x94fa
movq 0x38(%rsp), %rdx
movl 0x20(%rsp), %r8d
movl 0x1c(%rsp), %r9d
movl 0x18(%rsp), %r10d
movl 0x10(%rsp), %r11d
movl $0x76c, %ecx            # imm = 0x76C
addl 0x24(%rsp), %ecx
movl 0x14(%rsp), %r14d
incl %r8d
movl %edx, %eax
negl %eax
cmovsl %edx, %eax
shrl $0x1f, %edx
leal 0x2b(,%rdx,2), %r15d
jmp 0x9540
movabsq $0x4600000000, %rax     # imm = 0x4600000000
movq %rax, 0x20(%rsp)
movaps 0x4450(%rip), %xmm0     # 0xd960
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x38(%rsp)
movl $0x2b, %r15d
movl $0x1, %r8d
movl $0x7b2, %ecx            # imm = 0x7B2
xorl %eax, %eax
movl $0x1, %r9d
xorl %r10d, %r10d
xorl %r14d, %r14d
xorl %r11d, %r11d
movl %eax, %edx
movl $0x91a2b3c5, %r12d      # imm = 0x91A2B3C5
imulq %rdx, %r12
shrq $0x2b, %r12
imull $0xe10, %r12d, %edx     # imm = 0xE10
subl %edx, %eax
imull $0x889, %eax, %r13d     # imm = 0x889
shrl $0x11, %r13d
leaq 0x481f(%rip), %rdx      # 0xdd8a
leaq 0x70(%rsp), %rdi
movl $0x2c, %esi
xorl %eax, %eax
pushq %rbx
pushq %r13
pushq %r12
pushq %r15
pushq 0x78(%rsp)
pushq %r11
pushq %r14
pushq %r10
callq 0x40c0
addq $0x40, %rsp
cmpl $0x2c, %eax
jl 0x959e
movb $0x0, 0x9b(%rsp)
movq %rbp, 0x8(%rsp)
testq %rbp, %rbp
jle 0x9792
leaq 0xa0(%rsp), %r12
movq (%rsp), %rbx
movq 0x8(%rsp), %r14
movq %rbx, %rdi
movl $0xa, %esi
movq %r14, %rdx
callq 0x4150
movq %rax, %r15
xorl %eax, %eax
testq %r15, %r15
sete %cl
leaq -0x1(%rbx,%r14), %rbp
cmovneq %r15, %rbp
movq 0xbea0(%rip), %rdx      # 0x15488
testq %rdx, %rdx
jle 0x95fa
cmpq %rdx, 0x1c894(%rip)     # 0x25e88
jge 0x9792
subq %rbx, %rbp
movb %cl, %al
leaq (%rax,%rbp), %r13
addq $0x2e, %r13
movq 0xbe72(%rip), %rax      # 0x15480
testq %rax, %rax
jle 0x9655
movq 0x1c866(%rip), %rcx     # 0x25e80
addq %r13, %rcx
cmpq %rax, %rcx
jle 0x9655
movl 0xbe68(%rip), %edi      # 0x15490
movq %r12, %rsi
callq 0x9984
testq %rax, %rax
jns 0x9645
leaq 0xbe58(%rip), %rax      # 0x15494
cmpl $0x0, (%rax)
jne 0x9781
movl $0x0, 0xa0(%rsp)
callq 0x98da
incq %rbp
movl 0xbe32(%rip), %edi      # 0x15490
movl $0x2b, %ecx
movq %r12, %rsi
leaq 0x70(%rsp), %rdx
callq 0x9a20
testq %rax, %rax
js 0x96bb
movl 0xbe15(%rip), %edi      # 0x15490
movl $0x2, %ecx
movq %r12, %rsi
testq %r15, %r15
je 0x96d5
leaq 0x469f(%rip), %rdx      # 0xdd2e
callq 0x9a20
testq %rax, %rax
js 0x972e
movl 0xbded(%rip), %edi      # 0x15490
movq %r12, %rsi
movq %rbx, %rdx
movq %rbp, %rcx
callq 0x9a20
testq %rax, %rax
jns 0x971e
jmp 0x9741
leaq 0xbdd2(%rip), %rax      # 0x15494
cmpl $0x0, (%rax)
je 0x9773
callq 0x5c19
jmp 0x9773
leaq 0x462f(%rip), %rdx      # 0xdd0b
callq 0x9a20
testq %rax, %rax
js 0x9754
movl 0xbda4(%rip), %edi      # 0x15490
movq %r12, %rsi
movq %rbx, %rdx
movq %rbp, %rcx
callq 0x9a20
testq %rax, %rax
js 0x9741
movl 0xbd8b(%rip), %edi      # 0x15490
movl $0x1, %ecx
movq %r12, %rsi
leaq 0x72d2(%rip), %rdx      # 0x109e6
callq 0x9a20
testq %rax, %rax
js 0x9767
addq %r13, 0x1c75b(%rip)     # 0x25e80
addq %r13, 0x1c75c(%rip)     # 0x25e88
jmp 0x9773
leaq 0xbd5f(%rip), %rax      # 0x15494
cmpl $0x0, (%rax)
je 0x9773
callq 0x5ad9
jmp 0x9773
leaq 0xbd4c(%rip), %rax      # 0x15494
cmpl $0x0, (%rax)
je 0x9773
callq 0x5b79
jmp 0x9773
leaq 0xbd39(%rip), %rax      # 0x15494
cmpl $0x0, (%rax)
je 0x9773
callq 0x5bc9
jmp 0x9773
leaq 0xbd26(%rip), %rax      # 0x15494
cmpl $0x0, (%rax)
jne 0x978b
addq %rbp, %rbx
subq %rbp, %r14
jg 0x95bd
jmp 0x9792
callq 0x5a89
jmp 0x9645
callq 0x5b29
jmp 0x9773
movl 0xbcf8(%rip), %edi      # 0x15490
leaq 0xa0(%rsp), %rsi
callq 0x9984
testq %rax, %rax
jns 0x97ba
leaq 0xbce3(%rip), %rax      # 0x15494
cmpl $0x0, (%rax)
jne 0x98a5
movq 0x8(%rsp), %rbp
movq 0x68(%rsp), %rbx
cmpb $0x1, 0x1c6c5(%rip)     # 0x25e90
jne 0x9891
cmpl $0x3, %ebx
leaq 0x1e6d5(%rip), %rax     # 0x27eb0
leaq 0x1c6be(%rip), %rbx     # 0x25ea0
cmoveq %rax, %rbx
leaq 0x206c3(%rip), %rax     # 0x29eb0
leaq 0x1e6ac(%rip), %r12     # 0x27ea0
cmoveq %rax, %r12
testq %rbp, %rbp
setle %al
movq (%r12), %r15
testq %r15, %r15
sete %cl
testb %cl, %al
jne 0x9891
testq %rbp, %rbp
je 0x9868
movq (%rsp), %r13
movq %r13, %rdi
movl $0xa, %esi
movq %rbp, %rdx
callq 0x4150
testq %rax, %rax
leaq -0x1(%r13,%rbp), %r14
cmovneq %rax, %r14
subq %r13, %r14
incq %r14
testq %rax, %rax
jne 0x986b
movl $0x2000, %eax           # imm = 0x2000
subq %r15, %rax
cmpq %rax, %r14
jae 0x986b
addq %r15, %rbx
movq %rbx, %rdi
movq (%rsp), %rsi
movq %r14, %rdx
callq 0x48a0
addq %r15, %r14
movq %r14, (%r12)
jmp 0x9891
xorl %r14d, %r14d
leaq (%r15,%r14), %rdi
addq $0x8, %rdi
movb $0x0, (%rbx,%r15)
callq 0x42c0
leaq 0xbc10(%rip), %rcx      # 0x15494
cmpl $0x0, (%rcx)
jne 0x98af
movq %rax, %rdi
callq 0x48e8
movb $0x1, %al
addq $0x8a8, %rsp            # imm = 0x8A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x5c69
jmp 0x97ba
movq %rax, %rdi
callq 0x5cb9
jmp 0x9891