// File: /workspace/github_c_makefile_star2_O0/aerospike[P]aerospike-common/src/main/citrusleaf/cf_crypto.c
// Function: cf_SHA1PadMessage
static void
cf_SHA1PadMessage(cf_SHA1Context *context)
{
	if (context->Message_Block_Index > 55) {
		context->Message_Block[context->Message_Block_Index++] = 0x80;

		while(context->Message_Block_Index < 64) {
			context->Message_Block[context->Message_Block_Index++] = 0;
		}

		cf_SHA1ProcessMessageBlock(context);

		while(context->Message_Block_Index < 56) {
			context->Message_Block[context->Message_Block_Index++] = 0;
		}
	}
	else {
		context->Message_Block[context->Message_Block_Index++] = 0x80;

		while(context->Message_Block_Index < 56) {
			context->Message_Block[context->Message_Block_Index++] = 0;
		}
	}

	context->Message_Block[56] = context->Length_High >> 24;
	context->Message_Block[57] = context->Length_High >> 16;
	context->Message_Block[58] = context->Length_High >> 8;
	context->Message_Block[59] = context->Length_High;
	context->Message_Block[60] = context->Length_Low >> 24;
	context->Message_Block[61] = context->Length_Low >> 16;
	context->Message_Block[62] = context->Length_Low >> 8;
	context->Message_Block[63] = context->Length_Low;

	cf_SHA1ProcessMessageBlock(context);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movswl 0x1c(%rax), %eax
cmpl $0x37, %eax
jle 0x24306
movq -0x8(%rbp), %rax
movq -0x8(%rbp), %rdx
movw 0x1c(%rdx), %cx
movw %cx, %si
addw $0x1, %si
movw %si, 0x1c(%rdx)
movswq %cx, %rcx
movb $-0x80, 0x1e(%rax,%rcx)
movq -0x8(%rbp), %rax
movswl 0x1c(%rax), %eax
cmpl $0x40, %eax
jge 0x242cc
movq -0x8(%rbp), %rax
movq -0x8(%rbp), %rdx
movw 0x1c(%rdx), %cx
movw %cx, %si
addw $0x1, %si
movw %si, 0x1c(%rdx)
movswq %cx, %rcx
movb $0x0, 0x1e(%rax,%rcx)
jmp 0x2429d
movq -0x8(%rbp), %rdi
callq 0x23d70
movq -0x8(%rbp), %rax
movswl 0x1c(%rax), %eax
cmpl $0x38, %eax
jge 0x24304
movq -0x8(%rbp), %rax
movq -0x8(%rbp), %rdx
movw 0x1c(%rdx), %cx
movw %cx, %si
addw $0x1, %si
movw %si, 0x1c(%rdx)
movswq %cx, %rcx
movb $0x0, 0x1e(%rax,%rcx)
jmp 0x242d5
jmp 0x24357
movq -0x8(%rbp), %rax
movq -0x8(%rbp), %rdx
movw 0x1c(%rdx), %cx
movw %cx, %si
addw $0x1, %si
movw %si, 0x1c(%rdx)
movswq %cx, %rcx
movb $-0x80, 0x1e(%rax,%rcx)
movq -0x8(%rbp), %rax
movswl 0x1c(%rax), %eax
cmpl $0x38, %eax
jge 0x24355
movq -0x8(%rbp), %rax
movq -0x8(%rbp), %rdx
movw 0x1c(%rdx), %cx
movw %cx, %si
addw $0x1, %si
movw %si, 0x1c(%rdx)
movswq %cx, %rcx
movb $0x0, 0x1e(%rax,%rcx)
jmp 0x24326
jmp 0x24357
movq -0x8(%rbp), %rax
movl 0x18(%rax), %eax
shrl $0x18, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movb %cl, 0x56(%rax)
movq -0x8(%rbp), %rax
movl 0x18(%rax), %eax
shrl $0x10, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movb %cl, 0x57(%rax)
movq -0x8(%rbp), %rax
movl 0x18(%rax), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movb %cl, 0x58(%rax)
movq -0x8(%rbp), %rax
movl 0x18(%rax), %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movb %cl, 0x59(%rax)
movq -0x8(%rbp), %rax
movl 0x14(%rax), %eax
shrl $0x18, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movb %cl, 0x5a(%rax)
movq -0x8(%rbp), %rax
movl 0x14(%rax), %eax
shrl $0x10, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movb %cl, 0x5b(%rax)
movq -0x8(%rbp), %rax
movl 0x14(%rax), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movb %cl, 0x5c(%rax)
movq -0x8(%rbp), %rax
movl 0x14(%rax), %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movb %cl, 0x5d(%rax)
movq -0x8(%rbp), %rdi
callq 0x23d70
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)