	.file	"extr_ad5360.c_ad5360_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to allocate iio device\n"
	.align 8
.LC1:
	.string	"Failed to allocate channel spec: %d\n"
	.align 8
.LC2:
	.string	"Failed to request vref regulators: %d\n"
	.align 8
.LC3:
	.string	"Failed to enable vref regulators: %d\n"
	.align 8
.LC4:
	.string	"Failed to register iio device: %d\n"
	.text
	.p2align 4
	.type	ad5360_probe, @function
ad5360_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	spi_get_device_id@PLT
	mov	esi, 24
	mov	rdi, rbp
	mov	r12d, DWORD PTR [rax]
	call	devm_iio_device_alloc@PLT
	test	rax, rax
	je	.L17
	mov	rbx, rax
	mov	rdi, rax
	call	iio_priv@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	mov	r13, rax
	call	spi_set_drvdata@PLT
	mov	rax, QWORD PTR ad5360_chip_info_tbl[rip]
	mov	QWORD PTR 16[r13], rbp
	mov	rdi, rbp
	lea	rax, [rax+r12*8]
	mov	QWORD PTR 8[r13], rax
	mov	QWORD PTR 32[rbx], rbp
	call	spi_get_device_id@PLT
	mov	rdi, rbx
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR 24[rbx], eax
	lea	rax, ad5360_info[rip]
	mov	QWORD PTR 16[rbx], rax
	mov	eax, DWORD PTR INDIO_DIRECT_MODE[rip]
	mov	DWORD PTR 8[rbx], eax
	mov	rax, QWORD PTR 8[r13]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR 4[rbx], eax
	call	ad5360_alloc_channels@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR 8[r13]
	mov	r8, QWORD PTR 0[r13]
	mov	r9d, DWORD PTR [rax]
	test	r9d, r9d
	je	.L6
	mov	rsi, QWORD PTR ad5360_vref_name[rip]
	lea	ecx, -1[r9]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, DWORD PTR [rsi+rax*4]
	mov	DWORD PTR [r8+rax*4], edx
	mov	rdx, rax
	add	rax, 1
	cmp	rcx, rdx
	jne	.L7
.L6:
	mov	rdi, QWORD PTR 16[r13]
	mov	rdx, r8
	mov	esi, r9d
	call	devm_regulator_bulk_get@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L18
	mov	rax, QWORD PTR 8[r13]
	mov	rsi, QWORD PTR 0[r13]
	mov	edi, DWORD PTR [rax]
	call	regulator_bulk_enable@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L19
	mov	rdi, rbx
	call	iio_device_register@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L20
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	edx, eax
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
.L9:
	mov	edi, DWORD PTR [rbx]
	call	kfree@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edx, eax
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	dev_err@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	edx, eax
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L9
.L20:
	mov	edx, eax
	mov	rdi, rbp
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	rax, QWORD PTR 8[r13]
	mov	rsi, QWORD PTR 0[r13]
	mov	edi, DWORD PTR [rax]
	call	regulator_bulk_disable@PLT
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	ad5360_probe, .-ad5360_probe
	.comm	ad5360_vref_name,8,8
	.comm	ad5360_info,4,4
	.comm	ad5360_chip_info_tbl,8,8
	.comm	INDIO_DIRECT_MODE,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_ad5360.c_ad5360_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to allocate iio device\012\000"
	.align	2
.LC1:
	.ascii	"Failed to allocate channel spec: %d\012\000"
	.align	2
.LC2:
	.ascii	"Failed to request vref regulators: %d\012\000"
	.align	2
.LC3:
	.ascii	"Failed to enable vref regulators: %d\012\000"
	.align	2
.LC4:
	.ascii	"Failed to register iio device: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ad5360_probe, %function
ad5360_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	bl	spi_get_device_id
	mov	r3, r0
	mov	r1, #12
	mov	r0, r6
	ldr	r4, [r3]
	bl	devm_iio_device_alloc
	subs	r5, r0, #0
	beq	.L17
	bl	iio_priv
	mov	r7, r0
	mov	r1, r5
	mov	r0, r6
	bl	spi_set_drvdata
	ldr	r3, .L21
	str	r6, [r7, #8]
	ldr	r3, [r3]
	mov	r0, r6
	add	r3, r3, r4, lsl #3
	str	r3, [r7, #4]
	str	r6, [r5, #20]
	bl	spi_get_device_id
	ldr	r2, [r7, #4]
	ldr	r3, .L21+4
	ldr	r0, [r0, #4]
	ldr	r1, [r2, #4]
	ldr	r2, [r3]
	ldr	r3, .L21+8
	str	r0, [r5, #16]
	stmib	r5, {r1, r2, r3}
	mov	r0, r5
	bl	ad5360_alloc_channels
	subs	r4, r0, #0
	bne	.L4
	ldm	r7, {r2, r3}
	ldr	r1, [r3]
	cmp	r1, #0
	beq	.L6
	ldr	r3, .L21+12
	sub	ip, r2, #4
	ldr	r3, [r3]
	sub	r3, r3, #4
	add	lr, r3, r1, lsl #2
.L7:
	ldr	r0, [r3, #4]!
	cmp	r3, lr
	str	r0, [ip, #4]!
	bne	.L7
.L6:
	ldr	r0, [r7, #8]
	bl	devm_regulator_bulk_get
	subs	r4, r0, #0
	bne	.L18
	ldm	r7, {r1, r3}
	ldr	r0, [r3]
	bl	regulator_bulk_enable
	subs	r4, r0, #0
	bne	.L19
	mov	r0, r5
	bl	iio_device_register
	subs	r4, r0, #0
	bne	.L20
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L21+16
	bl	dev_err
.L9:
	ldr	r0, [r5]
	bl	kfree
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	mov	r0, r6
	ldr	r1, .L21+20
	bl	dev_err
	ldr	r3, .L21+24
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L21+28
	bl	dev_err
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L21+32
	bl	dev_err
	b	.L9
.L20:
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L21+36
	bl	dev_err
	ldm	r7, {r1, r3}
	ldr	r0, [r3]
	bl	regulator_bulk_disable
	b	.L9
.L22:
	.align	2
.L21:
	.word	ad5360_chip_info_tbl
	.word	INDIO_DIRECT_MODE
	.word	ad5360_info
	.word	ad5360_vref_name
	.word	.LC2
	.word	.LC0
	.word	ENOMEM
	.word	.LC1
	.word	.LC3
	.word	.LC4
	.size	ad5360_probe, .-ad5360_probe
	.comm	ad5360_vref_name,4,4
	.comm	ad5360_info,4,4
	.comm	ad5360_chip_info_tbl,4,4
	.comm	INDIO_DIRECT_MODE,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
