	.file	"extr_st_accel_core.c_st_accel_common_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to apply ACPI orientation data: %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"registered accelerometer %s\n"
	.text
	.p2align 4
	.globl	st_accel_common_probe
	.type	st_accel_common_probe, @function
st_accel_common_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	iio_priv@PLT
	mov	rdi, rbp
	mov	rbx, rax
	mov	rax, QWORD PTR 40[rax]
	mov	r13, QWORD PTR [rax]
	mov	eax, DWORD PTR INDIO_DIRECT_MODE[rip]
	mov	DWORD PTR 32[rbp], eax
	lea	rax, accel_info[rip]
	mov	QWORD PTR 24[rbp], rax
	call	st_sensors_power_enable@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L20
.L1:
	add	rsp, 8
	.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
.L20:
	.cfi_restore_state
	mov	rdi, rbp
	call	st_sensors_verify_id@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L3
	mov	eax, DWORD PTR ST_ACCEL_NUMBER_DATA_CHANNELS[rip]
	movsx	rdx, DWORD PTR ST_SENSORS_NUMBER_ALL_CHANNELS[rip]
	lea	r14, 8[rbp]
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, r14
	mov	DWORD PTR 32[rbx], eax
	mov	rax, QWORD PTR 8[rbx]
	mov	DWORD PTR 0[rbp], edx
	sal	rdx, 2
	mov	esi, DWORD PTR 16[rax]
	call	devm_kmemdup@PLT
	mov	r15, rax
	test	rax, rax
	je	.L21
	mov	rsi, rax
	mov	rdi, rbp
	call	apply_acpi_orientation@PLT
	test	rax, rax
	jne	.L22
.L5:
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 16[rbp], r15
	test	r13, r13
	mov	rdi, rbp
	lea	rsi, default_accel_pdata[rip]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	cmovne	rsi, r13
	mov	eax, DWORD PTR [rax]
	mov	QWORD PTR 24[rbx], rdx
	mov	DWORD PTR 16[rbx], eax
	call	st_sensors_init_sensor@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L3
	mov	rdi, rbp
	call	st_accel_allocate_ring@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L3
	cmp	QWORD PTR [rbx], 0
	jle	.L11
	mov	esi, DWORD PTR ST_ACCEL_TRIGGER_OPS[rip]
	mov	rdi, rbp
	call	st_sensors_allocate_trigger@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L11
.L10:
	mov	rdi, rbp
	call	st_accel_deallocate_ring@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	call	st_sensors_power_disable@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, rbp
	call	iio_device_register@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L23
	cmp	QWORD PTR [rbx], 0
	jle	.L10
	mov	rdi, rbp
	call	st_sensors_deallocate_trigger@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	call	dev_warn@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edx, DWORD PTR 4[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, r14
	call	dev_info@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	st_accel_common_probe, .-st_accel_common_probe
	.comm	default_accel_pdata,4,4
	.comm	accel_info,4,4
	.comm	ST_SENSORS_NUMBER_ALL_CHANNELS,4,4
	.comm	ST_ACCEL_TRIGGER_OPS,4,4
	.comm	ST_ACCEL_NUMBER_DATA_CHANNELS,4,4
	.comm	INDIO_DIRECT_MODE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_st_accel_core.c_st_accel_common_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to apply ACPI orientation data: %d\012\000"
	.align	2
.LC1:
	.ascii	"registered accelerometer %s\012\000"
	.text
	.align	2
	.global	st_accel_common_probe
	.syntax unified
	.arm
	.fpu softvfp
	.type	st_accel_common_probe, %function
st_accel_common_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	bl	iio_priv
	ldr	r3, .L24
	ldr	r1, [r0, #20]
	ldr	r2, [r3]
	ldr	r3, .L24+4
	ldr	r7, [r1]
	mov	r6, r0
	str	r2, [r5, #20]
	mov	r0, r5
	str	r3, [r5, #16]
	bl	st_sensors_power_enable
	subs	r4, r0, #0
	beq	.L20
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L20:
	mov	r0, r5
	bl	st_sensors_verify_id
	subs	r4, r0, #0
	blt	.L3
	mov	r9, r5
	ldr	r2, .L24+8
	ldr	r3, .L24+12
	ldr	r0, [r2]
	ldr	r2, [r3]
	ldr	r1, [r6, #4]
	ldr	r3, .L24+16
	str	r0, [r6, #16]
	str	r2, [r9], #8
	mov	r0, r9
	ldr	r3, [r3]
	ldr	r1, [r1, #8]
	lsl	r2, r2, #2
	bl	devm_kmemdup
	subs	r8, r0, #0
	beq	.L21
	mov	r1, r8
	mov	r0, r5
	bl	apply_acpi_orientation
	cmp	r0, #0
	bne	.L22
.L5:
	ldr	r3, [r6, #4]
	cmp	r7, #0
	ldm	r3, {r2, r3}
	ldr	r2, [r2]
	ldr	r1, .L24+20
	str	r8, [r5, #12]
	movne	r1, r7
	mov	r0, r5
	str	r2, [r6, #8]
	str	r3, [r6, #12]
	bl	st_sensors_init_sensor
	subs	r4, r0, #0
	blt	.L3
	mov	r0, r5
	bl	st_accel_allocate_ring
	subs	r4, r0, #0
	blt	.L3
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L11
	ldr	r3, .L24+24
	mov	r0, r5
	ldr	r1, [r3]
	bl	st_sensors_allocate_trigger
	subs	r4, r0, #0
	bge	.L11
.L10:
	mov	r0, r5
	bl	st_accel_deallocate_ring
.L3:
	mov	r0, r5
	bl	st_sensors_power_disable
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	ldr	r3, .L24+28
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L3
.L11:
	mov	r0, r5
	bl	iio_device_register
	subs	r4, r0, #0
	beq	.L23
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L10
	mov	r0, r5
	bl	st_sensors_deallocate_trigger
	b	.L10
.L22:
	mov	r2, r4
	mov	r0, r9
	ldr	r1, .L24+32
	bl	dev_warn
	b	.L5
.L23:
	mov	r0, r9
	ldr	r2, [r5, #4]
	ldr	r1, .L24+36
	bl	dev_info
	b	.L1
.L25:
	.align	2
.L24:
	.word	INDIO_DIRECT_MODE
	.word	accel_info
	.word	ST_ACCEL_NUMBER_DATA_CHANNELS
	.word	ST_SENSORS_NUMBER_ALL_CHANNELS
	.word	GFP_KERNEL
	.word	default_accel_pdata
	.word	ST_ACCEL_TRIGGER_OPS
	.word	ENOMEM
	.word	.LC0
	.word	.LC1
	.size	st_accel_common_probe, .-st_accel_common_probe
	.comm	default_accel_pdata,4,4
	.comm	accel_info,4,4
	.comm	ST_SENSORS_NUMBER_ALL_CHANNELS,4,4
	.comm	ST_ACCEL_TRIGGER_OPS,4,4
	.comm	ST_ACCEL_NUMBER_DATA_CHANNELS,4,4
	.comm	INDIO_DIRECT_MODE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
