	.file	"extr_ti-tlc4541.c_tlc4541_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"vref"
	.text
	.p2align 4
	.type	tlc4541_probe, @function
tlc4541_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, 40
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 4[rsp], 0
	call	devm_iio_device_alloc@PLT
	test	rax, rax
	je	.L12
	mov	rdi, rax
	mov	rbp, rax
	call	iio_priv@PLT
	mov	rsi, rbp
	mov	rdi, r12
	mov	rbx, rax
	call	spi_set_drvdata@PLT
	mov	QWORD PTR 32[rbx], r12
	mov	rdi, r12
	mov	r13, QWORD PTR tlc4541_chip_info[rip]
	call	spi_get_device_id@PLT
	mov	rdi, r12
	mov	rax, QWORD PTR [rax]
	lea	r13, 0[r13+rax*8]
	call	spi_get_device_id@PLT
	lea	rsi, 4[rsp]
	mov	edx, 1
	mov	rdi, r12
	mov	eax, DWORD PTR 8[rax]
	mov	QWORD PTR 24[rbp], r12
	mov	DWORD PTR 32[rbp], eax
	mov	eax, DWORD PTR INDIO_DIRECT_MODE[rip]
	mov	DWORD PTR 16[rbp], eax
	mov	eax, DWORD PTR 4[r13]
	mov	DWORD PTR 12[rbp], eax
	mov	eax, DWORD PTR 0[r13]
	mov	DWORD PTR 8[rbp], eax
	lea	rax, tlc4541_info[rip]
	mov	QWORD PTR 0[rbp], rax
	call	spi_write@PLT
	mov	rsi, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR 24[rbx]
	mov	edx, 3
	lea	rdi, 16[rbx]
	mov	QWORD PTR 8[rsi], rax
	mov	DWORD PTR [rsi], 3
	mov	DWORD PTR 20[rsi], 3
	mov	QWORD PTR 40[rsi], rax
	mov	DWORD PTR 32[rsi], 2
	call	spi_message_init_with_transfers@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	devm_regulator_get@PLT
	mov	DWORD PTR [rbx], eax
	mov	edi, eax
	call	IS_ERR@PLT
	mov	edi, DWORD PTR [rbx]
	test	rax, rax
	jne	.L13
	call	regulator_enable@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	xor	ecx, ecx
	lea	rdx, tlc4541_trigger_handler[rip]
	xor	esi, esi
	mov	rdi, rbp
	call	iio_triggered_buffer_setup@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L14
.L5:
	mov	edi, DWORD PTR [rbx]
	call	regulator_disable@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	call	PTR_ERR@PLT
	mov	r12d, eax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 24
	.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
.L12:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, rbp
	call	iio_device_register@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	rdi, rbp
	call	iio_triggered_buffer_cleanup@PLT
	jmp	.L5
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tlc4541_probe, .-tlc4541_probe
	.comm	tlc4541_trigger_handler,4,4
	.comm	tlc4541_info,4,4
	.comm	tlc4541_chip_info,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_ti-tlc4541.c_tlc4541_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"vref\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tlc4541_probe, %function
tlc4541_probe:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r2, .L16
	sub	sp, sp, #8
	mov	r1, #20
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	mov	r5, r0
	str	r3, [sp]
	bl	devm_iio_device_alloc
	subs	r4, r0, #0
	beq	.L12
	bl	iio_priv
	mov	r6, r0
	mov	r1, r4
	mov	r0, r5
	bl	spi_set_drvdata
	ldr	r3, .L16+4
	mov	r0, r5
	str	r5, [r6, #16]
	ldr	r7, [r3]
	bl	spi_get_device_id
	mov	r3, r0
	mov	r0, r5
	ldr	r8, [r3]
	bl	spi_get_device_id
	ldr	r3, .L16+8
	add	r2, r7, r8, lsl #3
	ldr	lr, [r2, #4]
	ldr	ip, [r7, r8, lsl #3]
	ldr	r1, [r0, #4]
	ldr	r2, [r3]
	ldr	r3, .L16+12
	stmib	r4, {ip, lr}
	str	r1, [r4, #20]
	str	r2, [r4, #12]
	mov	r1, sp
	mov	r2, #1
	str	r3, [r4]
	mov	r0, r5
	str	r5, [r4, #16]
	bl	spi_write
	mov	r2, #3
	mov	r0, #2
	ldr	r3, [r6, #12]
	ldr	r1, [r6, #4]
	str	r3, [r1, #8]
	str	r3, [r1, #32]
	str	r2, [r1]
	str	r2, [r1, #16]
	str	r0, [r1, #24]
	add	r0, r6, #8
	bl	spi_message_init_with_transfers
	ldr	r1, .L16+16
	mov	r0, r5
	bl	devm_regulator_get
	str	r0, [r6]
	bl	IS_ERR
	cmp	r0, #0
	ldr	r0, [r6]
	bne	.L13
	bl	regulator_enable
	subs	r5, r0, #0
	bne	.L1
	mov	r3, r5
	mov	r1, r5
	mov	r0, r4
	ldr	r2, .L16+20
	bl	iio_triggered_buffer_setup
	subs	r5, r0, #0
	beq	.L14
.L5:
	ldr	r0, [r6]
	bl	regulator_disable
	b	.L1
.L13:
	bl	PTR_ERR
	mov	r5, r0
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r3, .L16+24
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L1
.L14:
	mov	r0, r4
	bl	iio_device_register
	subs	r5, r0, #0
	beq	.L1
	mov	r0, r4
	bl	iio_triggered_buffer_cleanup
	b	.L5
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC1
	.word	tlc4541_chip_info
	.word	INDIO_DIRECT_MODE
	.word	tlc4541_info
	.word	.LC0
	.word	tlc4541_trigger_handler
	.word	ENOMEM
	.size	tlc4541_probe, .-tlc4541_probe
	.comm	tlc4541_trigger_handler,4,4
	.comm	tlc4541_info,4,4
	.comm	tlc4541_chip_info,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
