// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/MPU6050/MPU6050.cpp
// Function: MPU6050::PrintActiveOffsets()
void MPU6050::PrintActiveOffsets() {
	uint8_t AOffsetRegister = (getDeviceID() < 0x38 )? MPU6050_RA_XA_OFFS_H:0x77;
	int16_t Data[3];
	//Serial.print(F("Offset Register 0x"));
	//Serial.print(AOffsetRegister>>4,HEX);Serial.print(AOffsetRegister&0x0F,HEX);
	Serial.print(F("\n//           X Accel  Y Accel  Z Accel   X Gyro   Y Gyro   Z Gyro\n//OFFSETS   "));
	if(AOffsetRegister == 0x06)	I2Cdev::readWords(devAddr, AOffsetRegister, 3, (uint16_t *)Data);
	else {
		I2Cdev::readWords(devAddr, AOffsetRegister, 1, (uint16_t *)Data);
		I2Cdev::readWords(devAddr, AOffsetRegister+3, 1, (uint16_t *)Data+1);
		I2Cdev::readWords(devAddr, AOffsetRegister+6, 1, (uint16_t *)Data+2);
	}
	//	A_OFFSET_H_READ_A_OFFS(Data);
	printfloatx("", Data[0], 5, 0, ",  ");
	printfloatx("", Data[1], 5, 0, ",  ");
	printfloatx("", Data[2], 5, 0, ",  ");
	I2Cdev::readWords(devAddr, 0x13, 3, (uint16_t *)Data);
	//	XG_OFFSET_H_READ_OFFS_USR(Data);
	printfloatx("", Data[0], 5, 0, ",  ");
	printfloatx("", Data[1], 5, 0, ",  ");
	printfloatx("", Data[2], 5, 0, "\n");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
callq 0x1fec0
movl %eax, %ebx
movq 0x1a757(%rip), %rdi     # 0x48f90
leaq 0x58e0(%rip), %rsi      # 0x34120
callq 0x1f7c0
movb (%r14), %al
movq 0x1a6f9(%rip), %r15     # 0x48f48
movzwl (%r15), %ecx
cmpb $0x37, %bl
movq %r14, 0x10(%rsp)
movzbl %al, %edi
movzwl %cx, %r8d
ja 0x2e871
pushq $0x6
popq %rsi
pushq $0x3
popq %rdx
leaq 0x2(%rsp), %rcx
jmp 0x2e8ac
pushq $0x77
popq %rsi
pushq $0x1
popq %rbx
leaq 0x2(%rsp), %rcx
movl %ebx, %edx
callq 0x1f320
movzbl (%r14), %edi
leaq 0x4(%rsp), %rcx
movzwl (%r15), %r8d
pushq $0x7a
popq %rsi
movl %ebx, %edx
callq 0x1f320
movzbl (%r14), %edi
leaq 0x6(%rsp), %rcx
movzwl (%r15), %r8d
pushq $0x7d
popq %rsi
movl %ebx, %edx
callq 0x1f320
movq 0x1a6d8(%rip), %rbx     # 0x48f90
leaq 0x48ee(%rip), %r12      # 0x331ad
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1f7c0
leaq 0x589d(%rip), %rsi      # 0x3416e
movq %rbx, %rdi
callq 0x1f7c0
leaq 0x2(%rsp), %r15
movswl (%r15), %eax
cvtsi2sd %eax, %xmm0
pushq $0x5
popq %rbp
leaq 0x8(%rsp), %rdx
movl %ebp, %edi
xorl %esi, %esi
callq 0x1fe50
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1f7c0
leaq 0x5867(%rip), %r13      # 0x34170
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1f7c0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1f7c0
movq %rbx, %rdi
leaq 0x5845(%rip), %rsi      # 0x3416e
movq %rsi, %r14
callq 0x1f7c0
movswl 0x2(%r15), %eax
cvtsi2sd %eax, %xmm0
leaq 0x8(%rsp), %rdx
movl %ebp, %edi
xorl %esi, %esi
callq 0x1fe50
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1f7c0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1f7c0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1f7c0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1f7c0
movswl 0x4(%r15), %eax
cvtsi2sd %eax, %xmm0
leaq 0x8(%rsp), %rdx
movl %ebp, %edi
xorl %esi, %esi
callq 0x1fe50
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1f7c0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1f7c0
movq 0x10(%rsp), %rax
movzbl (%rax), %edi
movq 0x1a598(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0x13
popq %rsi
pushq $0x3
popq %rdx
movq %r15, %rcx
callq 0x1f320
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1f7c0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1f7c0
movswl (%r15), %eax
cvtsi2sd %eax, %xmm0
leaq 0x8(%rsp), %rdx
movl %ebp, %edi
xorl %esi, %esi
callq 0x1fe50
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1f7c0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1f7c0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1f7c0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1f7c0
movswl 0x2(%r15), %eax
cvtsi2sd %eax, %xmm0
leaq 0x8(%rsp), %rdx
movl %ebp, %edi
xorl %esi, %esi
callq 0x1fe50
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1f7c0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1f7c0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1f7c0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1f7c0
movswl 0x4(%r15), %eax
cvtsi2sd %eax, %xmm0
leaq 0x8(%rsp), %rdx
movl %ebp, %edi
xorl %esi, %esi
callq 0x1fe50
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1f7c0
leaq 0x4726(%rip), %rsi      # 0x331ac
movq %rbx, %rdi
callq 0x1f7c0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)