// File: /workspace/github_cpp_makefile_star2_O3/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, %r12
movzbl (%rdi), %edi
leaq 0x1(%r12), %r8
movq 0x16b44(%rip), %r14     # 0x46f48
movzwl (%r14), %r9d
movl $0x75, %esi
movl $0x6, %edx
movl $0x6, %ecx
callq 0x1f930
movb 0x1(%r12), %bl
movq 0x16b68(%rip), %rdi     # 0x46f90
leaq 0x5cf1(%rip), %rsi      # 0x36120
movl $0x4f, %edx
callq 0x1f680
movb (%r12), %cl
movzwl (%r14), %eax
movzbl %cl, %edi
movzwl %ax, %r8d
leaq 0xa(%rsp), %rcx
cmpb $0x37, %bl
ja 0x3045e
movl $0x6, %esi
movl $0x3, %edx
jmp 0x304a2
movl $0x77, %esi
movl $0x1, %edx
callq 0x1f230
movzbl (%r12), %edi
leaq 0xc(%rsp), %rcx
movzwl (%r14), %r8d
movl $0x7a, %esi
movl $0x1, %edx
callq 0x1f230
movzbl (%r12), %edi
leaq 0xe(%rsp), %rcx
movzwl (%r14), %r8d
movl $0x7d, %esi
movl $0x1, %edx
callq 0x1f230
movq 0x16ae2(%rip), %rbx     # 0x46f90
leaq 0x4cf8(%rip), %r15      # 0x351ad
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x1f680
leaq 0x5ca5(%rip), %rbp      # 0x3616e
movl $0x1, %edx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x1f680
leaq 0xa(%rsp), %rax
movswl (%rax), %eax
cvtsi2sd %eax, %xmm0
leaq 0x10(%rsp), %rdx
movl $0x5, %edi
xorl %esi, %esi
callq 0x1f9d0
movq 0x16a83(%rip), %rdi     # 0x46f80
movq %rax, %rsi
callq 0x1fad0
leaq 0x5c64(%rip), %r14      # 0x36170
movl $0x3, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1f680
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x1f680
movl $0x1, %edx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x1f680
leaq 0xa(%rsp), %r13
movswl 0x2(%r13), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
leaq 0x10(%rsp), %rdx
movl $0x5, %edi
xorl %esi, %esi
callq 0x1f9d0
movq 0x16a1e(%rip), %rdi     # 0x46f80
movq %rax, %rsi
callq 0x1fad0
movl $0x3, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1f680
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x1f680
movl $0x1, %edx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x1f680
movswl 0x4(%r13), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
leaq 0x10(%rsp), %rdx
movl $0x5, %edi
xorl %esi, %esi
callq 0x1f9d0
movq 0x169c5(%rip), %rdi     # 0x46f80
movq %rdi, %rbp
movq %rax, %rsi
callq 0x1fad0
movl $0x3, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1f680
movzbl (%r12), %edi
movq 0x16966(%rip), %rax     # 0x46f48
movzwl (%rax), %r8d
movl $0x13, %esi
movl $0x3, %edx
movq %r13, %rcx
callq 0x1f230
movq %rbx, %rdi
movq %r15, %rsi
movq %r15, %r12
xorl %edx, %edx
callq 0x1f680
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x5b57(%rip), %r15      # 0x3616e
movq %r15, %rsi
callq 0x1f680
movswl (%r13), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
leaq 0x10(%rsp), %rdx
movl $0x5, %edi
xorl %esi, %esi
callq 0x1f9d0
movq %rbp, %rdi
movq %rax, %rsi
callq 0x1fad0
movl $0x3, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1f680
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x1f680
movl $0x1, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1f680
movswl 0x2(%r13), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
leaq 0x10(%rsp), %rdx
movl $0x5, %edi
xorl %esi, %esi
callq 0x1f9d0
movq %rbp, %rdi
movq %rax, %rsi
callq 0x1fad0
movl $0x3, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1f680
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x1f680
movl $0x1, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1f680
movswl 0x4(%r13), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
leaq 0x10(%rsp), %rdx
movl $0x5, %edi
xorl %esi, %esi
callq 0x1f9d0
movq %rbp, %rdi
movq %rax, %rsi
callq 0x1fad0
leaq 0x4ab4(%rip), %rsi      # 0x351ac
movl $0x1, %edx
movq %rbx, %rdi
callq 0x1f680
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq