// File: /workspace/github_c_makefile_star2_O2/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 %rsi, %r13
movl %edi, %ebx
cmpb $0x1, 0x1e2d8(%rip)     # 0x24e84
jne 0x70e9
movq %rdx, (%rsp)
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 0x6be9
movl %eax, %eax
leaq 0x7264(%rip), %rcx      # 0xde44
movslq (%rcx,%rax,4), %rbx
addq %rcx, %rbx
jmp 0x6bf0
leaq 0x71cb(%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)
andq $0x0, 0x40(%rsp)
xorl %edi, %edi
callq 0x4180
testl %eax, %eax
jns 0x6c2b
callq 0x45c0
cmpl $0x16, (%rax)
je 0x6c2b
andq $0x0, 0x58(%rsp)
cmpb $0x0, 0x22296(%rip)     # 0x28ec8
jne 0x6c40
callq 0x4320
movb $0x1, 0x22288(%rip)     # 0x28ec8
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x4710
testq %rax, %rax
movq %r13, 0x8(%rsp)
je 0x6c97
movq 0x38(%rsp), %rdx
movl 0x20(%rsp), %r8d
movl 0x1c(%rsp), %r9d
movl 0x18(%rsp), %r11d
movl 0x10(%rsp), %r14d
movl $0x76c, %ecx            # imm = 0x76C
addl 0x24(%rsp), %ecx
movl 0x14(%rsp), %r15d
incl %r8d
movl %edx, %eax
negl %eax
cmovsl %edx, %eax
shrl $0x1f, %edx
leal 0x2b(,%rdx,2), %r12d
jmp 0x6cd3
movabsq $0x4600000000, %rax     # imm = 0x4600000000
movq %rax, 0x20(%rsp)
movaps 0x6cb3(%rip), %xmm0     # 0xd960
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x38(%rsp)
pushq $0x1
popq %r8
pushq $0x2b
popq %r12
movl $0x7b2, %ecx            # imm = 0x7B2
xorl %eax, %eax
movl %r8d, %r9d
xorl %r11d, %r11d
xorl %r15d, %r15d
xorl %r14d, %r14d
movq 0x58(%rsp), %r13
movl $0xe10, %esi            # imm = 0xE10
xorl %edx, %edx
divl %esi
movl %eax, %r10d
movl %edx, %eax
movw $0x3c, %si
xorl %edx, %edx
divw %si
movzwl %ax, %ebp
leaq 0x7091(%rip), %rdx      # 0xdd8a
leaq 0x70(%rsp), %rdi
pushq $0x2c
popq %rsi
movl $0x0, %eax
pushq %rbx
pushq %rbp
pushq %r10
pushq %r12
pushq %r13
pushq %r14
pushq %r15
pushq %r11
callq 0x40c0
addq $0x40, %rsp
cmpl $0x2c, %eax
jl 0x6d2a
movb $0x0, 0x9b(%rsp)
leaq 0x10(%rsp), %rax
andq $0x0, (%rax)
leaq 0xa0(%rsp), %r13
movq (%rsp), %r15
movq 0x8(%rsp), %r14
testq %r15, %r15
jle 0x70b3
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x746f
movl %eax, %ebx
movq 0x10(%rsp), %rbp
movq 0xd72d(%rip), %rax      # 0x14498
testq %rax, %rax
jle 0x6d7d
cmpq %rax, 0x1e121(%rip)     # 0x24e98
jge 0x70b3
movzbl %bl, %eax
leaq (%rax,%rbp), %r12
addq $0x2d, %r12
movq 0xd701(%rip), %rax      # 0x14490
testq %rax, %rax
jle 0x6dd3
movq 0x1e0f5(%rip), %rcx     # 0x24e90
addq %r12, %rcx
cmpq %rax, %rcx
jle 0x6dd3
movl 0xd6f7(%rip), %edi      # 0x144a0
movq %r13, %rsi
callq 0x74a8
testq %rax, %rax
jns 0x6dc6
leaq 0xd6e7(%rip), %rax      # 0x144a4
cmpl $0x0, (%rax)
jne 0x705d
andl $0x0, 0xa0(%rsp)
callq 0x7302
movl 0xd6c7(%rip), %edi      # 0x144a0
movq %r13, %rsi
leaq 0x70(%rsp), %rdx
pushq $0x2b
popq %rcx
callq 0x752e
testq %rax, %rax
js 0x6e7a
movl 0xd6a8(%rip), %edi      # 0x144a0
movq %r13, %rsi
testb %bl, %bl
je 0x6ed9
leaq 0x6f01(%rip), %rdx      # 0xdd0b
pushq $0x2
popq %rcx
callq 0x752e
testq %rax, %rax
jns 0x6ef1
leaq 0xd682(%rip), %rax      # 0x144a4
cmpl $0x0, (%rax)
je 0x7052
movq 0xd1be(%rip), %rax      # 0x13ff0
movq (%rax), %rdi
leaq 0x635b(%rip), %rsi      # 0xd197
leaq 0x6ecb(%rip), %rdx      # 0xdd0e
xorl %eax, %eax
callq 0x4830
leaq 0x22087(%rip), %rax     # 0x28ed8
cmpl $0x0, (%rax)
je 0x7052
leaq 0x2206f(%rip), %rax     # 0x28ed0
movq (%rax), %rdx
pushq $0x6
popq %rdi
leaq 0x6364(%rip), %rsi      # 0xd1d2
leaq 0x6e99(%rip), %rcx      # 0xdd0e
jmp 0x704b
leaq 0xd623(%rip), %rax      # 0x144a4
cmpl $0x0, (%rax)
je 0x7052
movq 0xd15f(%rip), %rax      # 0x13ff0
movq (%rax), %rdi
leaq 0x62fc(%rip), %rsi      # 0xd197
leaq 0x6e3e(%rip), %rdx      # 0xdce0
xorl %eax, %eax
callq 0x4830
leaq 0x22028(%rip), %rax     # 0x28ed8
cmpl $0x0, (%rax)
je 0x7052
leaq 0x22010(%rip), %rax     # 0x28ed0
movq (%rax), %rdx
pushq $0x6
popq %rdi
leaq 0x6305(%rip), %rsi      # 0xd1d2
leaq 0x6e0c(%rip), %rcx      # 0xdce0
jmp 0x704b
leaq 0x6e4e(%rip), %rdx      # 0xdd2e
pushq $0x2
popq %rcx
callq 0x752e
testq %rax, %rax
js 0x6fa1
movl 0xd5a9(%rip), %edi      # 0x144a0
movq %r13, %rsi
movq %r14, %rdx
movq %rbp, %rcx
callq 0x752e
testq %rax, %rax
js 0x6f42
testb %bl, %bl
je 0x6f2f
movl 0xd58c(%rip), %edi      # 0x144a0
movq %r13, %rsi
leaq 0x9ac8(%rip), %rdx      # 0x109e6
pushq $0x1
popq %rcx
callq 0x752e
testq %rax, %rax
js 0x6ff9
addq %r12, 0x1df5a(%rip)     # 0x24e90
addq %r12, 0x1df5b(%rip)     # 0x24e98
jmp 0x7052
leaq 0xd55b(%rip), %rax      # 0x144a4
cmpl $0x0, (%rax)
je 0x7052
movq 0xd097(%rip), %rax      # 0x13ff0
movq (%rax), %rdi
leaq 0x6234(%rip), %rsi      # 0xd197
leaq 0x6de3(%rip), %rdx      # 0xdd4d
xorl %eax, %eax
callq 0x4830
leaq 0x21f60(%rip), %rax     # 0x28ed8
cmpl $0x0, (%rax)
je 0x7052
leaq 0x21f48(%rip), %rax     # 0x28ed0
movq (%rax), %rdx
pushq $0x6
popq %rdi
leaq 0x623d(%rip), %rsi      # 0xd1d2
leaq 0x6db1(%rip), %rcx      # 0xdd4d
jmp 0x704b
leaq 0xd4fc(%rip), %rax      # 0x144a4
cmpl $0x0, (%rax)
je 0x7052
movq 0xd038(%rip), %rax      # 0x13ff0
movq (%rax), %rdi
leaq 0x61d5(%rip), %rsi      # 0xd197
leaq 0x6d68(%rip), %rdx      # 0xdd31
xorl %eax, %eax
callq 0x4830
leaq 0x21f01(%rip), %rax     # 0x28ed8
cmpl $0x0, (%rax)
je 0x7052
leaq 0x21eed(%rip), %rax     # 0x28ed0
movq (%rax), %rdx
pushq $0x6
popq %rdi
leaq 0x61e2(%rip), %rsi      # 0xd1d2
leaq 0x6d3a(%rip), %rcx      # 0xdd31
jmp 0x704b
leaq 0xd4a4(%rip), %rax      # 0x144a4
cmpl $0x0, (%rax)
je 0x7052
movq 0xcfe4(%rip), %rax      # 0x13ff0
movq (%rax), %rdi
leaq 0x6181(%rip), %rsi      # 0xd197
leaq 0x6d4e(%rip), %rdx      # 0xdd6b
xorl %eax, %eax
callq 0x4830
leaq 0x21ead(%rip), %rax     # 0x28ed8
cmpl $0x0, (%rax)
je 0x7052
leaq 0x21e99(%rip), %rax     # 0x28ed0
movq (%rax), %rdx
pushq $0x6
popq %rdi
leaq 0x618e(%rip), %rsi      # 0xd1d2
leaq 0x6d20(%rip), %rcx      # 0xdd6b
xorl %eax, %eax
callq 0x4120
addq %rbp, %r14
subq %rbp, %r15
jmp 0x6d44
movq 0xcf8c(%rip), %rax      # 0x13ff0
movq (%rax), %rdi
leaq 0x6129(%rip), %rsi      # 0xd197
leaq 0x6c4d(%rip), %rdx      # 0xdcc2
xorl %eax, %eax
callq 0x4830
leaq 0x21e55(%rip), %rax     # 0x28ed8
cmpl $0x0, (%rax)
je 0x6dc6
leaq 0x21e3d(%rip), %rax     # 0x28ed0
movq (%rax), %rdx
pushq $0x6
popq %rdi
leaq 0x6132(%rip), %rsi      # 0xd1d2
leaq 0x6c1b(%rip), %rcx      # 0xdcc2
xorl %eax, %eax
callq 0x4120
jmp 0x6dc6
movl 0xd3e7(%rip), %edi      # 0x144a0
leaq 0xa0(%rsp), %rsi
callq 0x74a8
testq %rax, %rax
jns 0x70db
leaq 0xd3d2(%rip), %rax      # 0x144a4
cmpl $0x0, (%rax)
jne 0x71d4
movq 0x8(%rsp), %r13
movq (%rsp), %rdx
movq 0x68(%rsp), %rbx
cmpb $0x1, 0x1ddb0(%rip)     # 0x24ea0
jne 0x71c0
cmpl $0x3, %ebx
leaq 0x1fdc0(%rip), %rax     # 0x26ec0
leaq 0x1dda9(%rip), %rbx     # 0x24eb0
cmoveq %rax, %rbx
leaq 0x21dae(%rip), %rax     # 0x28ec0
leaq 0x1fd97(%rip), %r15     # 0x26eb0
cmoveq %rax, %r15
andq $0x0, 0xa0(%rsp)
testq %rdx, %rdx
setle %al
movq (%r15), %r12
testq %r12, %r12
sete %cl
testb %cl, %al
jne 0x71c0
testq %rdx, %rdx
je 0x7189
leaq 0xa0(%rsp), %r14
movq %r14, %rdi
movq %r13, %rsi
callq 0x746f
movq (%r14), %r14
movq (%r15), %r12
movl $0x2000, %ecx           # imm = 0x2000
subq %r12, %rcx
cmpq %rcx, %r14
setb %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x718c
addq %r12, %rbx
movq %rbx, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x48b0
addq %r12, %r14
movq %r14, (%r15)
jmp 0x71c0
xorl %r14d, %r14d
leaq (%r12,%r14), %rdi
addq $0x8, %rdi
movb $0x0, (%rbx,%r12)
callq 0x42c0
movq %rax, %rbx
leaq 0xd2fc(%rip), %r15      # 0x144a4
cmpl $0x0, (%r15)
jne 0x722a
movq %rbx, %rdi
callq 0x48f8
cmpl $0x0, (%r15)
jne 0x728e
movb $0x1, %al
addq $0x8a8, %rsp            # imm = 0x8A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xce15(%rip), %rax      # 0x13ff0
movq (%rax), %rdi
leaq 0x5fb2(%rip), %rsi      # 0xd197
leaq 0x6ad6(%rip), %rdx      # 0xdcc2
xorl %eax, %eax
callq 0x4830
leaq 0x21cde(%rip), %rax     # 0x28ed8
cmpl $0x0, (%rax)
je 0x70db
leaq 0x21cc6(%rip), %rax     # 0x28ed0
movq (%rax), %rdx
leaq 0x5fbe(%rip), %rsi      # 0xd1d2
leaq 0x6aa7(%rip), %rcx      # 0xdcc2
pushq $0x6
popq %rdi
xorl %eax, %eax
callq 0x4120
jmp 0x70db
movq 0xcdbf(%rip), %rax      # 0x13ff0
movq (%rax), %r14
pushq $0x1
popq %rdi
callq 0x44a0
leaq 0x6a30(%rip), %rsi      # 0xdc73
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x4830
leaq 0x21c81(%rip), %rax     # 0x28ed8
cmpl $0x0, (%rax)
je 0x71ae
leaq 0x21c69(%rip), %rax     # 0x28ed0
movq (%rax), %r14
pushq $0x1
popq %rdi
callq 0x44a0
leaq 0x6a1c(%rip), %rsi      # 0xdc95
pushq $0x6
popq %rdi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x4120
jmp 0x71ae
movq 0xcd5b(%rip), %rax      # 0x13ff0
movq (%rax), %rdi
leaq 0x5ef8(%rip), %rsi      # 0xd197
leaq 0x680e(%rip), %rdx      # 0xdab4
xorl %eax, %eax
callq 0x4830
leaq 0x21c24(%rip), %rax     # 0x28ed8
cmpl $0x0, (%rax)
je 0x71c0
leaq 0x21c0c(%rip), %rax     # 0x28ed0
movq (%rax), %rdx
leaq 0x5f04(%rip), %rsi      # 0xd1d2
leaq 0x67df(%rip), %rcx      # 0xdab4
pushq $0x6
popq %rdi
xorl %eax, %eax
callq 0x4120
jmp 0x71c0