	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adxl345_read_raw
_adxl345_read_raw:                      ## @adxl345_read_raw
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	callq	_iio_priv
	addq	$-128, %rbx
	cmpq	$3, %rbx
	ja	LBB0_7
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_2:
	movl	$0, (%r14)
	movl	4(%rax), %eax
	cmpl	$133, %eax
	je	LBB0_13
## %bb.3:
	cmpl	$132, %eax
	jne	LBB0_15
## %bb.4:
	movq	_adxl375_uscale@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_5:
	movl	(%rax), %ebx
	movl	(%r12), %edi
	callq	_ADXL345_REG_DATA_AXIS
	leaq	-40(%rbp), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$4, %ecx
	callq	_regmap_bulk_read
	testl	%eax, %eax
	js	LBB0_17
## %bb.6:
	movl	-40(%rbp), %edi
	callq	_le16_to_cpu
	movl	%eax, %edi
	movl	$12, %esi
	callq	_sign_extend32
	jmp	LBB0_12
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_8:
	movl	(%rax), %edi
	movq	_ADXL345_REG_BW_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_17
## %bb.9:
	movq	_ADXL345_BASE_RATE_NANO_HZ@GOTPCREL(%rip), %rax
	movq	_ADXL345_BW_RATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	-36(%rbp), %ecx
	movl	(%rax), %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	movq	_NHZ_PER_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_div_s64_rem
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT_PLUS_NANO@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_10:
	movl	(%rax), %ebx
	movl	(%r12), %edi
	callq	_ADXL345_REG_OFS_AXIS
	leaq	-36(%rbp), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_17
## %bb.11:
	movl	-36(%rbp), %edi
	movl	$7, %esi
	callq	_sign_extend32
	shll	$2, %eax
LBB0_12:
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_13:
	movq	_adxl345_uscale@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_15:
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
LBB0_17:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_adxl345_uscale,4,2             ## @adxl345_uscale
	.comm	_adxl375_uscale,4,2             ## @adxl375_uscale
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_ADXL345_REG_BW_RATE,4,2        ## @ADXL345_REG_BW_RATE
	.comm	_ADXL345_BASE_RATE_NANO_HZ,4,2  ## @ADXL345_BASE_RATE_NANO_HZ
	.comm	_ADXL345_BW_RATE,4,2            ## @ADXL345_BW_RATE
	.comm	_NHZ_PER_HZ,4,2                 ## @NHZ_PER_HZ
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ## @IIO_VAL_INT_PLUS_NANO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_adxl345_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adxl345_read_raw
_adxl345_read_raw:                      ; @adxl345_read_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x4
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	bl	_iio_priv
	sub	x8, x22, #128
	cmp	x8, #3
	b.hi	LBB0_7
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	str	wzr, [x19]
	ldr	w8, [x0, #4]
	cmp	w8, #133
	b.eq	LBB0_13
; %bb.3:
	cmp	w8, #132
	b.ne	LBB0_15
; %bb.4:
Lloh2:
	adrp	x8, _adxl375_uscale@GOTPAGE
Lloh3:
	ldr	x8, [x8, _adxl375_uscale@GOTPAGEOFF]
	b	LBB0_14
LBB0_5:
	ldr	w20, [x0]
	ldr	w0, [x21]
	bl	_ADXL345_REG_DATA_AXIS
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x20
	mov	w3, #4
	bl	_regmap_bulk_read
	tbnz	w0, #31, LBB0_17
; %bb.6:
	ldr	w0, [sp, #12]
	bl	_le16_to_cpu
	mov	w1, #12
	bl	_sign_extend32
	str	w0, [x19]
	b	LBB0_12
LBB0_7:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_8:
	ldr	w0, [x0]
Lloh7:
	adrp	x8, _ADXL345_REG_BW_RATE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ADXL345_REG_BW_RATE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_regmap_read
	tbnz	w0, #31, LBB0_17
; %bb.9:
Lloh10:
	adrp	x8, _ADXL345_BASE_RATE_NANO_HZ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ADXL345_BASE_RATE_NANO_HZ@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
Lloh13:
	adrp	x10, _ADXL345_BW_RATE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _ADXL345_BW_RATE@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	and	w9, w10, w9
	lsl	w0, w8, w9
Lloh16:
	adrp	x8, _NHZ_PER_HZ@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NHZ_PER_HZ@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_div_s64_rem
	str	w0, [x19]
Lloh19:
	adrp	x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGEOFF]
	b	LBB0_16
LBB0_10:
	ldr	w20, [x0]
	ldr	w0, [x21]
	bl	_ADXL345_REG_OFS_AXIS
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x20
	bl	_regmap_read
	tbnz	w0, #31, LBB0_17
; %bb.11:
	ldr	w0, [sp, #8]
	mov	w1, #7
	bl	_sign_extend32
	lsl	w8, w0, #2
	str	w8, [x19]
LBB0_12:
Lloh21:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
Lloh23:
	adrp	x8, _adxl345_uscale@GOTPAGE
Lloh24:
	ldr	x8, [x8, _adxl345_uscale@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_15:
Lloh25:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
LBB0_17:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_adxl345_uscale,4,2             ; @adxl345_uscale
	.comm	_adxl375_uscale,4,2             ; @adxl375_uscale
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_ADXL345_REG_BW_RATE,4,2        ; @ADXL345_REG_BW_RATE
	.comm	_ADXL345_BASE_RATE_NANO_HZ,4,2  ; @ADXL345_BASE_RATE_NANO_HZ
	.comm	_ADXL345_BW_RATE,4,2            ; @ADXL345_BW_RATE
	.comm	_NHZ_PER_HZ,4,2                 ; @NHZ_PER_HZ
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ; @IIO_VAL_INT_PLUS_NANO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_adxl345_read_raw
.subsections_via_symbols
