	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpu3050_start_sampling
_mpu3050_start_sampling:                ## @mpu3050_start_sampling
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	12(%rdi), %edi
	movq	_MPU3050_PWR_MGM@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_MPU3050_PWR_MGM_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movl	12(%r14), %edi
	movl	(%r15), %esi
	movq	_MPU3050_PWR_MGM_CLKSEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MPU3050_PWR_MGM_PLL_Z@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_regmap_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movq	16(%r14), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	movl	%eax, -44(%rbp)
	movq	16(%r14), %rax
	movl	4(%rax), %edi
	callq	_cpu_to_be16
	movl	%eax, -40(%rbp)
	movq	16(%r14), %rax
	movl	8(%rax), %edi
	callq	_cpu_to_be16
	movl	%eax, -36(%rbp)
	movl	12(%r14), %edi
	movq	_MPU3050_X_OFFS_USR_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movl	$12, %ecx
	callq	_regmap_bulk_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movl	12(%r14), %edi
	movq	_MPU3050_EXT_SYNC_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MPU3050_EXT_SYNC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_MPU3050_DLPF_FS_SYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MPU3050_FS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	(%r14), %ebx
	shll	%cl, %ebx
	movl	4(%r14), %edx
	orl	%eax, %ebx
	movq	_MPU3050_DLPF_CFG_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	orl	%ebx, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movl	8(%r14), %edx
	movl	12(%r14), %edi
	movq	_MPU3050_SMPLRT_DIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_mpu3050_get_freq
	movl	%eax, %ecx
	xorl	%ebx, %ebx
	movl	$1000, %eax                     ## imm = 0x3E8
	xorl	%edx, %edx
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	leal	50(%rax), %edi
	callq	_msleep
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MPU3050_PWR_MGM,4,2            ## @MPU3050_PWR_MGM
	.comm	_MPU3050_PWR_MGM_RESET,4,2      ## @MPU3050_PWR_MGM_RESET
	.comm	_MPU3050_PWR_MGM_CLKSEL_MASK,4,2 ## @MPU3050_PWR_MGM_CLKSEL_MASK
	.comm	_MPU3050_PWR_MGM_PLL_Z,4,2      ## @MPU3050_PWR_MGM_PLL_Z
	.comm	_MPU3050_X_OFFS_USR_H,4,2       ## @MPU3050_X_OFFS_USR_H
	.comm	_MPU3050_DLPF_FS_SYNC,4,2       ## @MPU3050_DLPF_FS_SYNC
	.comm	_MPU3050_EXT_SYNC_NONE,4,2      ## @MPU3050_EXT_SYNC_NONE
	.comm	_MPU3050_EXT_SYNC_SHIFT,4,2     ## @MPU3050_EXT_SYNC_SHIFT
	.comm	_MPU3050_FS_SHIFT,4,2           ## @MPU3050_FS_SHIFT
	.comm	_MPU3050_DLPF_CFG_SHIFT,4,2     ## @MPU3050_DLPF_CFG_SHIFT
	.comm	_MPU3050_SMPLRT_DIV,4,2         ## @MPU3050_SMPLRT_DIV
	.no_dead_strip	_mpu3050_start_sampling
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpu3050_start_sampling
_mpu3050_start_sampling:                ; @mpu3050_start_sampling
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w0, [x0, #12]
Lloh3:
	adrp	x20, _MPU3050_PWR_MGM@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MPU3050_PWR_MGM@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _MPU3050_PWR_MGM_RESET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MPU3050_PWR_MGM_RESET@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	w0, [x19, #12]
	ldr	w1, [x20]
Lloh8:
	adrp	x8, _MPU3050_PWR_MGM_CLKSEL_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MPU3050_PWR_MGM_CLKSEL_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _MPU3050_PWR_MGM_PLL_Z@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MPU3050_PWR_MGM_PLL_Z@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	bl	_regmap_update_bits
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_cpu_to_be16
	str	w0, [sp, #12]
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	bl	_cpu_to_be16
	str	w0, [sp, #16]
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #8]
	bl	_cpu_to_be16
	str	w0, [sp, #20]
	ldr	w0, [x19, #12]
Lloh14:
	adrp	x8, _MPU3050_X_OFFS_USR_H@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MPU3050_X_OFFS_USR_H@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	w3, #12
	bl	_regmap_bulk_write
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	w0, [x19, #12]
Lloh17:
	adrp	x8, _MPU3050_EXT_SYNC_NONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MPU3050_EXT_SYNC_NONE@GOTPAGEOFF]
Lloh19:
	adrp	x9, _MPU3050_EXT_SYNC_SHIFT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MPU3050_EXT_SYNC_SHIFT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh23:
	adrp	x9, _MPU3050_FS_SHIFT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MPU3050_FS_SHIFT@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	ldp	w10, w11, [x19]
	lsl	w9, w10, w9
Lloh26:
	adrp	x10, _MPU3050_DLPF_FS_SYNC@GOTPAGE
Lloh27:
	ldr	x10, [x10, _MPU3050_DLPF_FS_SYNC@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x10]
	orr	w8, w9, w8
Lloh29:
	adrp	x9, _MPU3050_DLPF_CFG_SHIFT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MPU3050_DLPF_CFG_SHIFT@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	lsl	w9, w11, w9
	orr	w2, w8, w9
	bl	_regmap_write
	cbnz	w0, LBB0_6
; %bb.4:
Lloh32:
	adrp	x8, _MPU3050_SMPLRT_DIV@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MPU3050_SMPLRT_DIV@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldp	w2, w0, [x19, #8]
	bl	_regmap_write
	cbnz	w0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_mpu3050_get_freq
	mov	w8, #1000
	sdiv	w8, w8, w0
	add	w0, w8, #50
	bl	_msleep
	mov	w0, #0
LBB0_6:
	ldr	x8, [sp, #24]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_MPU3050_PWR_MGM,4,2            ; @MPU3050_PWR_MGM
	.comm	_MPU3050_PWR_MGM_RESET,4,2      ; @MPU3050_PWR_MGM_RESET
	.comm	_MPU3050_PWR_MGM_CLKSEL_MASK,4,2 ; @MPU3050_PWR_MGM_CLKSEL_MASK
	.comm	_MPU3050_PWR_MGM_PLL_Z,4,2      ; @MPU3050_PWR_MGM_PLL_Z
	.comm	_MPU3050_X_OFFS_USR_H,4,2       ; @MPU3050_X_OFFS_USR_H
	.comm	_MPU3050_DLPF_FS_SYNC,4,2       ; @MPU3050_DLPF_FS_SYNC
	.comm	_MPU3050_EXT_SYNC_NONE,4,2      ; @MPU3050_EXT_SYNC_NONE
	.comm	_MPU3050_EXT_SYNC_SHIFT,4,2     ; @MPU3050_EXT_SYNC_SHIFT
	.comm	_MPU3050_FS_SHIFT,4,2           ; @MPU3050_FS_SHIFT
	.comm	_MPU3050_DLPF_CFG_SHIFT,4,2     ; @MPU3050_DLPF_CFG_SHIFT
	.comm	_MPU3050_SMPLRT_DIV,4,2         ; @MPU3050_SMPLRT_DIV
	.no_dead_strip	_mpu3050_start_sampling
.subsections_via_symbols
