	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inv_mpu6050_set_power_itg      ## -- Begin function inv_mpu6050_set_power_itg
	.p2align	4, 0x90
_inv_mpu6050_set_power_itg:             ## @inv_mpu6050_set_power_itg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	testl	%esi, %esi
	je	LBB0_5
## %bb.1:
	testl	%eax, %eax
	je	LBB0_2
LBB0_4:
	incl	%eax
	jmp	LBB0_9
LBB0_5:
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.6:
	movl	4(%rbx), %edi
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movq	_INV_MPU6050_BIT_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movl	(%rbx), %eax
LBB0_8:
	decl	%eax
LBB0_9:
	movl	%eax, (%rbx)
	movl	4(%rbx), %edi
	callq	_regmap_get_device
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%r14d, %edx
	callq	_dev_dbg
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movl	4(%rbx), %edi
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movq	_INV_MPU6050_REG_UP_TIME_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_INV_MPU6050_REG_UP_TIME_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usleep_range
	movl	(%rbx), %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_INV_MPU6050_REG_UP_TIME_MIN,4,2 ## @INV_MPU6050_REG_UP_TIME_MIN
	.comm	_INV_MPU6050_REG_UP_TIME_MAX,4,2 ## @INV_MPU6050_REG_UP_TIME_MAX
	.comm	_INV_MPU6050_BIT_SLEEP,4,2      ## @INV_MPU6050_BIT_SLEEP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set power %d, count=%u\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inv_mpu6050_set_power_itg      ; -- Begin function inv_mpu6050_set_power_itg
	.p2align	2
_inv_mpu6050_set_power_itg:             ; @inv_mpu6050_set_power_itg
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	cbz	w1, LBB0_3
; %bb.1:
	cbz	w8, LBB0_9
LBB0_2:
	add	w8, w8, #1
	b	LBB0_7
LBB0_3:
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x20, #4]
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
Lloh0:
	adrp	x8, _INV_MPU6050_BIT_SLEEP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INV_MPU6050_BIT_SLEEP@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_regmap_write
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	w8, [x20]
LBB0_6:
	sub	w8, w8, #1
LBB0_7:
	str	w8, [x20]
	ldr	w0, [x20, #4]
	bl	_regmap_get_device
	ldr	w3, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w0, [x20, #4]
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	mov	w2, #0
	bl	_regmap_write
	cbnz	w0, LBB0_8
; %bb.10:
Lloh5:
	adrp	x8, _INV_MPU6050_REG_UP_TIME_MIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INV_MPU6050_REG_UP_TIME_MIN@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _INV_MPU6050_REG_UP_TIME_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INV_MPU6050_REG_UP_TIME_MAX@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_usleep_range
	ldr	w8, [x20]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_INV_MPU6050_REG_UP_TIME_MIN,4,2 ; @INV_MPU6050_REG_UP_TIME_MIN
	.comm	_INV_MPU6050_REG_UP_TIME_MAX,4,2 ; @INV_MPU6050_REG_UP_TIME_MAX
	.comm	_INV_MPU6050_BIT_SLEEP,4,2      ; @INV_MPU6050_BIT_SLEEP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set power %d, count=%u\n"

.subsections_via_symbols
