	.file	"extr_bma220_spi.c_bma220_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"iio allocation failed!\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"iio triggered buffer setup failed\n"
	.section	.rodata.str1.1
.LC2:
	.string	"iio_device_register failed\n"
	.text
	.p2align 4
	.type	bma220_probe, @function
bma220_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, 16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	devm_iio_device_alloc@PLT
	test	rax, rax
	je	.L9
	mov	rdi, rax
	mov	rbp, rax
	call	iio_priv@PLT
	mov	rsi, rbp
	mov	rdi, r12
	mov	QWORD PTR [rax], r12
	mov	rbx, rax
	call	spi_set_drvdata@PLT
	lea	rdi, 8[rbx]
	call	mutex_init@PLT
	lea	rax, bma220_info[rip]
	mov	edi, DWORD PTR bma220_channels[rip]
	mov	QWORD PTR 32[rbp], r12
	mov	QWORD PTR 24[rbp], rax
	mov	eax, DWORD PTR BMA220_DEVICE_NAME[rip]
	mov	DWORD PTR 8[rbp], edi
	mov	DWORD PTR 16[rbp], eax
	mov	eax, DWORD PTR INDIO_DIRECT_MODE[rip]
	mov	DWORD PTR 12[rbp], eax
	call	ARRAY_SIZE@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	DWORD PTR 4[rbp], eax
	mov	eax, DWORD PTR bma220_accel_scan_masks[rip]
	mov	DWORD PTR 0[rbp], eax
	call	bma220_init@PLT
	test	eax, eax
	js	.L1
	mov	edx, DWORD PTR bma220_trigger_handler[rip]
	mov	esi, DWORD PTR iio_pollfunc_store_time[rip]
	xor	ecx, ecx
	mov	rdi, rbp
	call	iio_triggered_buffer_setup@PLT
	test	eax, eax
	js	.L10
	mov	rdi, rbp
	call	iio_device_register@PLT
	mov	r8d, eax
	xor	eax, eax
	test	r8d, r8d
	js	.L11
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
.L5:
	endbr64
	mov	rdi, r12
	lea	rsi, .LC2[rip]
	call	dev_err@PLT
	mov	rdi, rbp
	call	iio_triggered_buffer_cleanup@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	bma220_deinit@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, r12
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	bma220_deinit@PLT
	.cfi_endproc
.LFE0:
	.size	bma220_probe, .-bma220_probe
	.comm	iio_pollfunc_store_time,4,4
	.comm	bma220_trigger_handler,4,4
	.comm	bma220_info,4,4
	.comm	bma220_channels,4,4
	.comm	bma220_accel_scan_masks,4,4
	.comm	INDIO_DIRECT_MODE,4,4
	.comm	ENOMEM,4,4
	.comm	BMA220_DEVICE_NAME,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_bma220_spi.c_bma220_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"iio allocation failed!\012\000"
	.align	2
.LC1:
	.ascii	"iio triggered buffer setup failed\012\000"
	.align	2
.LC2:
	.ascii	"iio_device_register failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bma220_probe, %function
bma220_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r1, #8
	mov	r7, r0
	bl	devm_iio_device_alloc
	subs	r4, r0, #0
	beq	.L9
	bl	iio_priv
	mov	r6, r0
	mov	r1, r4
	mov	r5, r0
	str	r7, [r6], #4
	mov	r0, r7
	bl	spi_set_drvdata
	mov	r0, r6
	bl	mutex_init
	ldr	r3, .L12
	ldr	r1, .L12+4
	ldr	r2, .L12+8
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r0, [r3]
	ldr	r3, .L12+12
	str	r1, [r4, #16]
	str	r2, [r4, #12]
	str	r3, [r4, #20]
	str	r7, [r4, #24]
	str	r0, [r4, #8]
	bl	ARRAY_SIZE
	mov	r2, r0
	ldr	r3, .L12+16
	ldr	r0, [r5]
	ldr	r3, [r3]
	str	r2, [r4, #4]
	str	r3, [r4]
	bl	bma220_init
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L12+20
	ldr	r2, .L12+24
	ldr	r1, [r3]
	mov	r0, r4
	mov	r3, #0
	ldr	r2, [r2]
	bl	iio_triggered_buffer_setup
	cmp	r0, #0
	blt	.L10
	mov	r0, r4
	bl	iio_device_register
	cmp	r0, #0
	blt	.L11
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	mov	r0, r7
	ldr	r1, .L12+28
	bl	dev_err
	ldr	r3, .L12+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r0, r7
	ldr	r1, .L12+36
	bl	dev_err
.L5:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	bma220_deinit
.L11:
	mov	r0, r7
	ldr	r1, .L12+40
	bl	dev_err
	mov	r0, r4
	bl	iio_triggered_buffer_cleanup
	b	.L5
.L13:
	.align	2
.L12:
	.word	bma220_channels
	.word	BMA220_DEVICE_NAME
	.word	INDIO_DIRECT_MODE
	.word	bma220_info
	.word	bma220_accel_scan_masks
	.word	iio_pollfunc_store_time
	.word	bma220_trigger_handler
	.word	.LC0
	.word	ENOMEM
	.word	.LC1
	.word	.LC2
	.size	bma220_probe, .-bma220_probe
	.comm	iio_pollfunc_store_time,4,4
	.comm	bma220_trigger_handler,4,4
	.comm	bma220_info,4,4
	.comm	bma220_channels,4,4
	.comm	bma220_accel_scan_masks,4,4
	.comm	INDIO_DIRECT_MODE,4,4
	.comm	ENOMEM,4,4
	.comm	BMA220_DEVICE_NAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
