	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mma9553_read_activity_stepcnt
_mma9553_read_activity_stepcnt:         ## @mma9553_read_activity_stepcnt
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r13
	movq	_MMA9551_APPID_PEDOMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_MMA9553_REG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	movq	%r15, %r8
	callq	_mma9551_read_status_words
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	-56(%rbp), %edi
	movq	_MMA9553_MASK_STATUS_ACTIVITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mma9553_get_bits
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	-52(%rbp), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %ebx
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MMA9551_APPID_PEDOMETER,4,2    ## @MMA9551_APPID_PEDOMETER
	.comm	_MMA9553_REG_STATUS,4,2         ## @MMA9553_REG_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error reading status and stepcnt\n"

	.comm	_MMA9553_MASK_STATUS_ACTIVITY,4,2 ## @MMA9553_MASK_STATUS_ACTIVITY
	.no_dead_strip	_mma9553_read_activity_stepcnt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mma9553_read_activity_stepcnt
_mma9553_read_activity_stepcnt:         ; @mma9553_read_activity_stepcnt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	x21, [x0]
Lloh3:
	adrp	x8, _MMA9551_APPID_PEDOMETER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMA9551_APPID_PEDOMETER@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x8, _MMA9553_REG_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMA9553_REG_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
	mov	x0, sp
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x4, sp
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	bl	_mma9551_read_status_words
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	w0, [sp]
Lloh9:
	adrp	x8, _MMA9553_MASK_STATUS_ACTIVITY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MMA9553_MASK_STATUS_ACTIVITY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_mma9553_get_bits
	mov	w21, #0
	str	w0, [x20]
	ldr	w8, [sp, #4]
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
	mov	x21, x0
	ldr	x0, [x22]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_3:
	ldr	x8, [sp, #8]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MMA9551_APPID_PEDOMETER,4,2    ; @MMA9551_APPID_PEDOMETER
	.comm	_MMA9553_REG_STATUS,4,2         ; @MMA9553_REG_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error reading status and stepcnt\n"

	.comm	_MMA9553_MASK_STATUS_ACTIVITY,4,2 ; @MMA9553_MASK_STATUS_ACTIVITY
	.no_dead_strip	_mma9553_read_activity_stepcnt
.subsections_via_symbols
