// File: /workspace/github_cpp_makefile_star2_O1/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
movzbl (%rdi), %edi
leaq 0x1(%r14), %r8
movq 0x16a87(%rip), %r12     # 0x46f48
movzwl (%r12), %r9d
movl $0x6, %ebp
movl $0x75, %esi
movl $0x6, %edx
movl $0x6, %ecx
callq 0x1f930
movb 0x1(%r14), %r15b
cmpb $0x38, %r15b
movl $0x77, %ebx
cmovbl %ebp, %ebx
movq 0x16a9a(%rip), %rdi     # 0x46f90
leaq 0x5c23(%rip), %rsi      # 0x36120
movl $0x4f, %edx
callq 0x1f680
movb (%r14), %cl
movzwl (%r12), %eax
movzbl %cl, %edi
cmpb $0x37, %r15b
ja 0x3052b
movzbl %bl, %esi
movzwl %ax, %r8d
leaq 0xa(%rsp), %rcx
movl $0x3, %edx
jmp 0x3057a
movzbl %bl, %ebx
movzwl %ax, %r8d
leaq 0xa(%rsp), %rcx
movl %ebx, %esi
movl $0x1, %edx
callq 0x1f230
movzbl (%r14), %edi
leal 0x3(%rbx), %eax
leaq 0xc(%rsp), %rcx
movzwl (%r12), %r8d
movzbl %al, %esi
movl $0x1, %edx
callq 0x1f230
movzbl (%r14), %edi
addb $0x6, %bl
leaq 0xe(%rsp), %rcx
movzwl (%r12), %r8d
movzbl %bl, %esi
movl $0x1, %edx
callq 0x1f230
movq 0x16a0a(%rip), %rbx     # 0x46f90
leaq 0x4c20(%rip), %r12      # 0x351ad
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x1f680
leaq 0x5bcd(%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 0x169ab(%rip), %rdi     # 0x46f80
movq %rax, %rsi
callq 0x1fad0
leaq 0x5b8c(%rip), %r15      # 0x36170
movl $0x3, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1f680
movq %rbx, %rdi
movq %r12, %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 0x16946(%rip), %rdi     # 0x46f80
movq %rax, %rsi
callq 0x1fad0
movl $0x3, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1f680
movq %rbx, %rdi
movq %r12, %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 0x168ed(%rip), %rdi     # 0x46f80
movq %rdi, %rbp
movq %rax, %rsi
callq 0x1fad0
movl $0x3, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1f680
movzbl (%r14), %edi
movq 0x1688f(%rip), %rax     # 0x46f48
movzwl (%rax), %r8d
movl $0x13, %esi
movl $0x3, %edx
movq %r13, %rcx
callq 0x1f230
movq %rbx, %rdi
movq %r12, %rsi
movq %r12, %r14
xorl %edx, %edx
callq 0x1f680
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x5a80(%rip), %r12      # 0x3616e
movq %r12, %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 %r15, %rsi
callq 0x1f680
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x1f680
movl $0x1, %edx
movq %rbx, %rdi
movq %r12, %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 %r15, %rsi
callq 0x1f680
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x1f680
movl $0x1, %edx
movq %rbx, %rdi
movq %r12, %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 0x49dd(%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
nop