	.file	"extr_adxl345_core.c_adxl345_core_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Error reading device ID: %d\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Invalid device ID: %x, expected %x\n"
	.section	.rodata.str1.1
.LC2:
	.string	"Failed to set data range: %d\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"Failed to enable measurement mode: %d\n"
	.align 8
.LC4:
	.string	"iio_device_register failed: %d\n"
	.text
	.p2align 4
	.globl	adxl345_core_probe
	.type	adxl345_core_probe, @function
adxl345_core_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	rdi, r15
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	esi, DWORD PTR ADXL345_REG_DEVID[rip]
	mov	QWORD PTR 8[rsp], rcx
	lea	rdx, 20[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	regmap_read@PLT
	test	eax, eax
	js	.L11
	mov	edx, DWORD PTR 20[rsp]
	mov	ecx, DWORD PTR ADXL345_DEVID[rip]
	cmp	edx, ecx
	je	.L4
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	esi, 24
	mov	rdi, rbp
	call	devm_iio_device_alloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	r13, rax
	neg	r12d
	test	rax, rax
	je	.L1
	mov	rdi, rax
	call	iio_priv@PLT
	mov	rsi, r13
	mov	rdi, rbp
	mov	rbx, rax
	call	dev_set_drvdata@PLT
	mov	edx, DWORD PTR ADXL345_DATA_FORMAT_FULL_RES[rip]
	mov	QWORD PTR 8[rbx], r15
	mov	rdi, r15
	mov	DWORD PTR [rbx], r14d
	mov	esi, DWORD PTR ADXL345_REG_DATA_FORMAT[rip]
	mov	DWORD PTR 16[rbx], edx
	call	regmap_write@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L13
	mov	rax, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR adxl345_channels[rip]
	mov	QWORD PTR 32[r13], rbp
	mov	QWORD PTR 0[r13], rax
	lea	rax, adxl345_info[rip]
	mov	QWORD PTR 24[r13], rax
	mov	eax, DWORD PTR INDIO_DIRECT_MODE[rip]
	mov	DWORD PTR 12[r13], edi
	mov	DWORD PTR 16[r13], eax
	call	ARRAY_SIZE@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR ADXL345_POWER_CTL_MEASURE[rip]
	mov	DWORD PTR 8[r13], eax
	mov	esi, DWORD PTR ADXL345_REG_POWER_CTL[rip]
	call	regmap_write@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L14
	mov	rdi, r13
	call	iio_device_register@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L1
	mov	edx, eax
	mov	rdi, rbp
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR ADXL345_POWER_CTL_STANDBY[rip]
	mov	esi, DWORD PTR ADXL345_REG_POWER_CTL[rip]
	call	regmap_write@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edx, eax
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r12d, eax
	mov	edx, eax
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edx, eax
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	adxl345_core_probe, .-adxl345_core_probe
	.comm	adxl345_info,4,4
	.comm	adxl345_channels,4,4
	.comm	INDIO_DIRECT_MODE,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	ADXL345_REG_POWER_CTL,4,4
	.comm	ADXL345_REG_DEVID,4,4
	.comm	ADXL345_REG_DATA_FORMAT,4,4
	.comm	ADXL345_POWER_CTL_STANDBY,4,4
	.comm	ADXL345_POWER_CTL_MEASURE,4,4
	.comm	ADXL345_DEVID,4,4
	.comm	ADXL345_DATA_FORMAT_FULL_RES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_adxl345_core.c_adxl345_core_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error reading device ID: %d\012\000"
	.align	2
.LC1:
	.ascii	"Invalid device ID: %x, expected %x\012\000"
	.align	2
.LC2:
	.ascii	"Failed to set data range: %d\012\000"
	.align	2
.LC3:
	.ascii	"Failed to enable measurement mode: %d\012\000"
	.align	2
.LC4:
	.ascii	"iio_device_register failed: %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	adxl345_core_probe
	.syntax unified
	.arm
	.fpu softvfp
	.type	adxl345_core_probe, %function
adxl345_core_probe:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r10, r2
	ldr	r2, .L16
	sub	sp, sp, #8
	mov	r9, r3
	ldr	r3, .L16+4
	mov	r6, r1
	mov	r5, r0
	mov	r0, r1
	ldr	r1, [r2]
	mov	r2, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	regmap_read
	subs	r4, r0, #0
	blt	.L11
	ldr	r3, .L16+8
	ldr	r2, [sp]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L4
	mov	r0, r5
	ldr	r1, .L16+12
	bl	dev_err
	ldr	r3, .L16+16
	ldr	r0, [r3]
	rsb	r4, r0, #0
.L1:
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	mov	r1, #12
	mov	r0, r5
	bl	devm_iio_device_alloc
	subs	r7, r0, #0
	beq	.L13
	bl	iio_priv
	mov	r8, r0
	mov	r1, r7
	mov	r0, r5
	bl	dev_set_drvdata
	ldr	r2, .L16+20
	ldr	r3, .L16+24
	ldr	r2, [r2]
	mov	r0, r6
	ldr	r1, [r3]
	str	r10, [r8]
	str	r6, [r8, #4]
	str	r2, [r8, #8]
	bl	regmap_write
	subs	r4, r0, #0
	blt	.L14
	ldr	r3, .L16+28
	ldr	r2, .L16+32
	ldr	r0, [r3]
	ldr	r2, [r2]
	ldr	r3, .L16+36
	str	r2, [r7, #12]
	str	r3, [r7, #16]
	str	r5, [r7, #20]
	str	r9, [r7]
	str	r0, [r7, #8]
	bl	ARRAY_SIZE
	ldr	r6, .L16+40
	ldr	r3, .L16+44
	str	r0, [r7, #4]
	ldr	r2, [r3]
	ldr	r1, [r6]
	ldr	r0, [r8, #4]
	bl	regmap_write
	subs	r4, r0, #0
	blt	.L15
	mov	r0, r7
	bl	iio_device_register
	subs	r4, r0, #0
	bge	.L1
	mov	r2, r4
	mov	r0, r5
	ldr	r1, .L16+48
	bl	dev_err
	ldr	r3, .L16+52
	ldr	r1, [r6]
	ldr	r0, [r8, #4]
	ldr	r2, [r3]
	bl	regmap_write
	b	.L1
.L15:
	mov	r0, r5
	mov	r2, r4
	ldr	r1, .L16+56
	bl	dev_err
	b	.L1
.L11:
	mov	r0, r5
	mov	r2, r4
	ldr	r1, .L16+60
	bl	dev_err
	b	.L1
.L13:
	ldr	r3, .L16+64
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L14:
	mov	r0, r5
	mov	r2, r4
	ldr	r1, .L16+68
	bl	dev_err
	b	.L1
.L12:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	ADXL345_REG_DEVID
	.word	.LC5
	.word	ADXL345_DEVID
	.word	.LC1
	.word	ENODEV
	.word	ADXL345_DATA_FORMAT_FULL_RES
	.word	ADXL345_REG_DATA_FORMAT
	.word	adxl345_channels
	.word	INDIO_DIRECT_MODE
	.word	adxl345_info
	.word	ADXL345_REG_POWER_CTL
	.word	ADXL345_POWER_CTL_MEASURE
	.word	.LC4
	.word	ADXL345_POWER_CTL_STANDBY
	.word	.LC3
	.word	.LC0
	.word	ENOMEM
	.word	.LC2
	.size	adxl345_core_probe, .-adxl345_core_probe
	.comm	adxl345_info,4,4
	.comm	adxl345_channels,4,4
	.comm	INDIO_DIRECT_MODE,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	ADXL345_REG_POWER_CTL,4,4
	.comm	ADXL345_REG_DEVID,4,4
	.comm	ADXL345_REG_DATA_FORMAT,4,4
	.comm	ADXL345_POWER_CTL_STANDBY,4,4
	.comm	ADXL345_POWER_CTL_MEASURE,4,4
	.comm	ADXL345_DEVID,4,4
	.comm	ADXL345_DATA_FORMAT_FULL_RES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
