// File: /workspace/github_c_makefile_star2_O1/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 $0x8b8, %rsp            # imm = 0x8B8
movq %rdx, %r15
movq %rsi, 0x10(%rsp)
movl %edi, %r14d
cmpb $0x1, 0x1ca56(%rip)     # 0x25e74
jne 0x97ce
leaq 0xb0(%rsp), %rdi
movl $0x808, %edx            # imm = 0x808
xorl %esi, %esi
callq 0x40b0
leal -0x1(%r14), %eax
cmpl $0x2, %eax
ja 0x9453
movl %eax, %eax
leaq 0x4a1a(%rip), %rcx      # 0xde64
movslq (%rcx,%rax,4), %rbx
addq %rcx, %rbx
jmp 0x945a
leaq 0x4980(%rip), %rbx      # 0xddda
xorps %xmm0, %xmm0
leaq 0x60(%rsp), %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x50(%rsp)
xorl %edi, %edi
callq 0x4180
testl %eax, %eax
jns 0x949b
callq 0x45b0
cmpl $0x16, (%rax)
je 0x949b
movq $0x0, 0x68(%rsp)
cmpb $0x0, 0x20a16(%rip)     # 0x29eb8
jne 0x94b0
callq 0x4320
movb $0x1, 0x20a08(%rip)     # 0x29eb8
movq %r14, 0x78(%rsp)
movq %r15, 0x8(%rsp)
leaq 0x60(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x4700
testq %rax, %rax
jne 0x94f9
movl $0x46, 0x34(%rsp)
movl $0x0, 0x30(%rsp)
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, 0x28(%rsp)
xorl %eax, %eax
movq %rax, 0x20(%rsp)
movq %rax, 0x48(%rsp)
movl 0x48(%rsp), %eax
movl %eax, %edx
negl %edx
cmovsl %eax, %edx
shrl $0x1f, %eax
leal 0x2b(,%rax,2), %r11d
movl $0x76c, %ecx            # imm = 0x76C
addl 0x34(%rsp), %ecx
movl 0x30(%rsp), %r8d
incl %r8d
movl 0x2c(%rsp), %r9d
movl 0x28(%rsp), %r10d
movl 0x20(%rsp), %r15d
movl 0x24(%rsp), %r14d
movl $0x91a2b3c5, %r12d      # imm = 0x91A2B3C5
imulq %rdx, %r12
shrq $0x2b, %r12
imull $0xe10, %r12d, %eax     # imm = 0xE10
subl %eax, %edx
imulq $0x4444445, %rdx, %r13  # imm = 0x4444445
shrq $0x20, %r13
leaq 0x484c(%rip), %rdx      # 0xdda9
leaq 0x80(%rsp), %rdi
movl $0x2c, %esi
xorl %eax, %eax
pushq %rbx
pushq %r13
pushq %r12
pushq %r11
pushq 0x88(%rsp)
pushq %r15
pushq %r14
pushq %r10
callq 0x40c0
addq $0x40, %rsp
cmpl $0x2c, %eax
jl 0x9596
movb $0x0, 0xab(%rsp)
movq 0x8(%rsp), %r14
movq 0x10(%rsp), %rbp
testq %r14, %r14
jle 0x979c
movq %rbp, %rdi
movl $0xa, %esi
movq %r14, %rdx
callq 0x4150
movq %rax, %rbx
xorl %eax, %eax
testq %rbx, %rbx
sete %cl
leaq -0x1(%rbp,%r14), %r15
cmovneq %rbx, %r15
movq 0xbeb4(%rip), %rdx      # 0x15488
testq %rdx, %rdx
setle %sil
cmpq %rdx, 0x1c8a6(%rip)     # 0x25e88
setl %r13b
orb %sil, %r13b
cmpb $0x1, %r13b
jne 0x9780
subq %rbp, %r15
movb %cl, %al
leaq (%r15,%rax), %r12
addq $0x2e, %r12
movq 0xbe79(%rip), %rax      # 0x15480
testq %rax, %rax
jle 0x9653
movq 0x1c86d(%rip), %rcx     # 0x25e80
addq %r12, %rcx
cmpq %rax, %rcx
jle 0x9653
movl 0xbe6f(%rip), %edi      # 0x15490
leaq 0xb0(%rsp), %rsi
callq 0x9aee
testq %rax, %rax
jns 0x9643
leaq 0xbe5a(%rip), %rax      # 0x15494
cmpl $0x0, (%rax)
jne 0x978b
movl $0x0, 0xb0(%rsp)
callq 0x9a44
incq %r15
movl 0xbe34(%rip), %edi      # 0x15490
movl $0x2b, %ecx
leaq 0xb0(%rsp), %rsi
leaq 0x80(%rsp), %rdx
callq 0x9bd5
testq %rax, %rax
js 0x96c6
movq %r12, 0x18(%rsp)
movl 0xbe0a(%rip), %edi      # 0x15490
movl $0x2, %ecx
leaq 0xb0(%rsp), %r12
movq %r12, %rsi
testq %rbx, %rbx
je 0x96e0
leaq 0x46ab(%rip), %rdx      # 0xdd4d
callq 0x9bd5
testq %rax, %rax
jns 0x96f1
leaq 0xbde1(%rip), %rax      # 0x15494
cmpl $0x0, (%rax)
je 0x977a
callq 0x5b42
jmp 0x977a
leaq 0xbdc7(%rip), %rax      # 0x15494
cmpl $0x0, (%rax)
je 0x977a
callq 0x5c82
jmp 0x977a
leaq 0x4643(%rip), %rdx      # 0xdd2a
callq 0x9bd5
testq %rax, %rax
js 0x975b
movl 0xbd99(%rip), %edi      # 0x15490
movq %r12, %rsi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x9bd5
testq %rax, %rax
js 0x9748
testq %rbx, %rbx
jne 0x9733
movl 0xbd7b(%rip), %edi      # 0x15490
movl $0x1, %ecx
leaq 0xb0(%rsp), %rsi
leaq 0x72dd(%rip), %rdx      # 0x10a06
callq 0x9bd5
testq %rax, %rax
js 0x976e
movq 0x18(%rsp), %rax
addq %rax, 0x1c741(%rip)     # 0x25e80
addq %rax, 0x1c742(%rip)     # 0x25e88
jmp 0x977a
leaq 0xbd45(%rip), %rax      # 0x15494
cmpl $0x0, (%rax)
je 0x977a
callq 0x5be2
jmp 0x977a
leaq 0xbd32(%rip), %rax      # 0x15494
cmpl $0x0, (%rax)
je 0x977a
callq 0x5c32
jmp 0x977a
leaq 0xbd1f(%rip), %rax      # 0x15494
cmpl $0x0, (%rax)
jne 0x9795
addq %r15, %rbp
subq %r15, %r14
testb %r13b, %r13b
jne 0x95a0
jmp 0x979c
callq 0x5af2
jmp 0x9643
callq 0x5b92
jmp 0x977a
movl 0xbcee(%rip), %edi      # 0x15490
leaq 0xb0(%rsp), %rsi
callq 0x9aee
testq %rax, %rax
jns 0x97c4
leaq 0xbcd9(%rip), %rax      # 0x15494
cmpl $0x0, (%rax)
jne 0x9a0b
movq 0x8(%rsp), %r15
movq 0x78(%rsp), %r14
cmpb $0x1, 0x1c6bb(%rip)     # 0x25e90
jne 0x99f7
cmpl $0x3, %r14d
leaq 0x1e6ca(%rip), %rax     # 0x27eb0
leaq 0x1c6b3(%rip), %rbx     # 0x25ea0
cmoveq %rax, %rbx
leaq 0x206b8(%rip), %rax     # 0x29eb0
leaq 0x1e6a1(%rip), %r13     # 0x27ea0
cmoveq %rax, %r13
leaq 0x445e(%rip), %rax      # 0xdc68
leaq 0x444c(%rip), %rdx      # 0xdc5d
cmoveq %rax, %rdx
testq %r15, %r15
setle %al
movq (%r13), %r12
testq %r12, %r12
sete %cl
movb $0x1, %bpl
testb %cl, %al
jne 0x99e6
movq %rdx, 0x18(%rsp)
leaq 0xb0(%rsp), %rdi
xorl %r14d, %r14d
movl $0x808, %edx            # imm = 0x808
xorl %esi, %esi
callq 0x40b0
testq %r15, %r15
je 0x9881
movq 0x10(%rsp), %rbp
movq %rbp, %rdi
movl $0xa, %esi
movq %r15, %rdx
callq 0x4150
testq %rax, %rax
leaq -0x1(%rbp,%r15), %r15
cmovneq %rax, %r15
sete %r14b
subq %rbp, %r15
incq %r15
movl %r14d, %ecx
jmp 0x9886
movb $0x1, %cl
xorl %r15d, %r15d
movl $0x2000, %eax           # imm = 0x2000
subq %r12, %rax
cmpq %rax, %r15
setb %bpl
andb %r14b, %bpl
cmpb $0x1, %bpl
jne 0x98bd
addq %r12, %rbx
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
movq %r15, %rdx
callq 0x48a0
addq %r12, %r15
movq %r15, (%r13)
jmp 0x99e6
movb %cl, 0x8(%rsp)
leaq (%r12,%r15), %r14
addq $0x8, %r14
movb $0x0, (%rbx,%r12)
movq %r14, %rdi
callq 0x42c0
movq %rax, %r12
movabsq $0x3d4547415353454d, %rax # imm = 0x3D4547415353454D
movq %rax, (%r12)
leaq 0x8(%r12), %rdi
movq (%r13), %r13
movq %rbx, %rsi
movq %r13, %rdx
callq 0x48a0
leaq (%r12,%r13), %rdi
addq $0x8, %rdi
movq 0x10(%rsp), %rsi
movq %r15, %rdx
callq 0x48a0
movslq 0xb0(%rsp), %rax
cmpq $0x80, %rax
sete %cl
testq %r14, %r14
setle %dl
orb %cl, %dl
jne 0x994c
movq %rax, %rcx
shlq $0x4, %rcx
movq %r12, 0xb8(%rsp,%rcx)
movq %r14, 0xc0(%rsp,%rcx)
leal 0x1(%rax), %ecx
movl %ecx, 0xb0(%rsp)
cmpl $0x80, %eax
movq 0x18(%rsp), %rdx
je 0x99de
movslq 0xb0(%rsp), %rax
cmpq $0x80, %rax
je 0x99de
movq %rax, %rcx
shlq $0x4, %rcx
movq %rdx, 0xb8(%rsp,%rcx)
movq $0xa, 0xc0(%rsp,%rcx)
leaq 0x1(%rax), %rcx
movl %ecx, 0xb0(%rsp)
cmpb $0x0, 0x8(%rsp)
je 0x99d2
cmpl $0x80, %ecx
je 0x99ca
leaq 0xb8(%rsp), %rdx
movq %rcx, %rsi
shlq $0x4, %rsi
leaq 0x42bc(%rip), %rdi      # 0xdc73
movq %rdi, (%rdx,%rsi)
movq $0x1e, 0x8(%rdx,%rsi)
addl $0x2, %eax
movl %eax, -0x8(%rdx)
cmpl $0x80, %ecx
je 0x99de
leaq 0xbabb(%rip), %rax      # 0x15494
cmpl $0x0, (%rax)
jne 0x9a1c
movq %r12, %rdi
callq 0x48e8
testb %bpl, %bpl
jne 0x99f7
leaq 0xbaa2(%rip), %rax      # 0x15494
cmpl $0x0, (%rax)
jne 0x9a15
movb $0x1, %al
addq $0x8b8, %rsp            # imm = 0x8B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x5cd2
jmp 0x97c4
callq 0x5d80
jmp 0x99f7
callq 0x5d22
jmp 0x99de