	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mma8450_poll
_mma8450_poll:                          ## @mma8450_poll
	.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	$40, %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)
	movq	8(%rdi), %rbx
	movq	_MMA8450_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mma8450_read
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	_MMA8450_STATUS_ZXYDR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	_MMA8450_OUT_X_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$24, %ecx
	callq	_mma8450_read_block
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movl	-64(%rbp), %edx
	movl	-60(%rbp), %eax
	shll	$4, %eax
	andl	$15, %edx
	orl	%eax, %edx
	movl	-52(%rbp), %eax
	shll	$4, %eax
	movl	-56(%rbp), %ebx
	andl	$15, %ebx
	orl	%eax, %ebx
	movl	-44(%rbp), %eax
	shll	$4, %eax
	movl	-48(%rbp), %r15d
	andl	$15, %r15d
	orl	%eax, %r15d
	movl	(%r14), %edi
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_input_report_abs
	movl	(%r14), %edi
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_input_report_abs
	movl	(%r14), %edi
	movq	_ABS_Z@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_input_report_abs
	movl	(%r14), %edi
	callq	_input_sync
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MMA8450_STATUS,4,2             ## @MMA8450_STATUS
	.comm	_MMA8450_STATUS_ZXYDR,4,2       ## @MMA8450_STATUS_ZXYDR
	.comm	_MMA8450_OUT_X_LSB,4,2          ## @MMA8450_OUT_X_LSB
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_Z,4,2                      ## @ABS_Z
	.no_dead_strip	_mma8450_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mma8450_poll
_mma8450_poll:                          ; @mma8450_poll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	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	x20, [x0, #8]
Lloh3:
	adrp	x8, _MMA8450_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMA8450_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mma8450_read
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _MMA8450_STATUS_ZXYDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMA8450_STATUS_ZXYDR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _MMA8450_OUT_X_LSB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MMA8450_OUT_X_LSB@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x20
	mov	w3, #24
	bl	_mma8450_read_block
	tbnz	w0, #31, LBB0_4
; %bb.3:
	ldp	w2, w8, [sp]
	bfi	w2, w8, #4, #28
	ldp	w20, w8, [sp, #8]
	bfi	w20, w8, #4, #28
	ldp	w21, w8, [sp, #16]
	bfi	w21, w8, #4, #28
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _ABS_X@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_input_report_abs
	ldr	w0, [x19]
Lloh15:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_input_report_abs
	ldr	w0, [x19]
Lloh18:
	adrp	x8, _ABS_Z@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ABS_Z@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_input_report_abs
	ldr	w0, [x19]
	bl	_input_sync
LBB0_4:
	ldr	x8, [sp, #24]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	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
	add	sp, sp, #80
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MMA8450_STATUS,4,2             ; @MMA8450_STATUS
	.comm	_MMA8450_STATUS_ZXYDR,4,2       ; @MMA8450_STATUS_ZXYDR
	.comm	_MMA8450_OUT_X_LSB,4,2          ; @MMA8450_OUT_X_LSB
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_Z,4,2                      ; @ABS_Z
	.no_dead_strip	_mma8450_poll
.subsections_via_symbols
