	.file	"extr_mcp4922.c_mcp4922_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"vref"
.LC1:
	.string	"Vref regulator not specified\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Failed to enable vref regulator: %d\n"
	.align 8
.LC3:
	.string	"Failed to read vref regulator: %d\n"
	.align 8
.LC4:
	.string	"Failed to register iio device: %d\n"
	.text
	.p2align 4
	.type	mcp4922_probe, @function
mcp4922_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, 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	devm_iio_device_alloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	mov	rdi, rax
	mov	r13, rax
	call	iio_priv@PLT
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	mov	QWORD PTR 8[rax], rbp
	mov	rbx, rax
	call	devm_regulator_get@PLT
	mov	DWORD PTR 4[rbx], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L13
	mov	edi, DWORD PTR 4[rbx]
	call	regulator_enable@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L14
	mov	edi, DWORD PTR 4[rbx]
	call	regulator_get_voltage@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L15
	cdqe
	sar	r12d, 31
	mov	rsi, r13
	mov	rdi, rbp
	imul	rax, rax, 274877907
	sar	rax, 38
	sub	eax, r12d
	mov	DWORD PTR [rbx], eax
	call	spi_set_drvdata@PLT
	mov	rdi, rbp
	call	spi_get_device_id@PLT
	mov	edx, DWORD PTR INDIO_DIRECT_MODE[rip]
	mov	QWORD PTR 24[r13], rbp
	mov	rdi, r13
	lea	rcx, mcp4922_info[rip]
	mov	DWORD PTR 12[r13], edx
	mov	rdx, QWORD PTR mcp4922_channels[rip]
	mov	QWORD PTR 16[r13], rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR 8[rax]
	mov	edx, DWORD PTR [rdx+rcx*4]
	mov	DWORD PTR 8[r13], edx
	mov	edx, DWORD PTR MCP4922_NUM_CHANNELS[rip]
	mov	DWORD PTR 0[r13], eax
	mov	DWORD PTR 4[r13], edx
	call	iio_device_register@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L16
.L1:
	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
.L13:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	edi, DWORD PTR 4[rbx]
	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
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	edx, eax
	mov	rdi, rbp
	lea	rsi, .LC2[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
.L15:
	.cfi_restore_state
	mov	edx, eax
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
.L7:
	mov	edi, DWORD PTR 4[rbx]
	call	regulator_disable@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
.L16:
	.cfi_restore_state
	mov	edx, eax
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	mcp4922_probe, .-mcp4922_probe
	.comm	mcp4922_info,4,4
	.comm	mcp4922_channels,8,8
	.comm	MCP4922_NUM_CHANNELS,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
	.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_mcp4922.c_mcp4922_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"vref\000"
	.align	2
.LC1:
	.ascii	"Vref regulator not specified\012\000"
	.align	2
.LC2:
	.ascii	"Failed to enable vref regulator: %d\012\000"
	.align	2
.LC3:
	.ascii	"Failed to read vref regulator: %d\012\000"
	.align	2
.LC4:
	.ascii	"Failed to register iio device: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcp4922_probe, %function
mcp4922_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r1, #12
	mov	r6, r0
	bl	devm_iio_device_alloc
	subs	r5, r0, #0
	beq	.L13
	bl	iio_priv
	ldr	r1, .L18
	mov	r7, r0
	str	r6, [r0, #8]
	mov	r0, r6
	bl	devm_regulator_get
	str	r0, [r7, #4]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L14
	ldr	r0, [r7, #4]
	bl	regulator_enable
	subs	r4, r0, #0
	bne	.L15
	ldr	r0, [r7, #4]
	bl	regulator_get_voltage
	subs	r4, r0, #0
	blt	.L16
	ldr	r2, .L18+4
	asr	r3, r4, #31
	smull	r1, r4, r2, r4
	rsb	r4, r3, r4, asr #6
	mov	r1, r5
	str	r4, [r7]
	mov	r0, r6
	bl	spi_set_drvdata
	mov	r0, r6
	bl	spi_get_device_id
	ldr	r3, .L18+8
	ldr	r2, .L18+12
	ldr	r3, [r3]
	ldr	ip, [r0]
	ldr	r2, [r2]
	str	r3, [r5, #12]
	ldr	r3, .L18+16
	ldr	r1, [r0, #4]
	ldr	r0, [r2, ip, lsl #2]
	ldr	r2, [r3]
	ldr	r3, .L18+20
	str	r0, [r5, #8]
	stm	r5, {r1, r2}
	mov	r0, r5
	str	r6, [r5, #20]
	str	r3, [r5, #16]
	bl	iio_device_register
	subs	r4, r0, #0
	bne	.L17
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r0, r6
	ldr	r1, .L18+24
	bl	dev_err
	ldr	r0, [r7, #4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L13:
	ldr	r3, .L18+28
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L18+32
	bl	dev_err
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L18+36
	bl	dev_err
.L7:
	ldr	r0, [r7, #4]
	bl	regulator_disable
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L18+40
	bl	dev_err
	b	.L7
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	274877907
	.word	INDIO_DIRECT_MODE
	.word	mcp4922_channels
	.word	MCP4922_NUM_CHANNELS
	.word	mcp4922_info
	.word	.LC1
	.word	ENOMEM
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	mcp4922_probe, .-mcp4922_probe
	.comm	mcp4922_info,4,4
	.comm	mcp4922_channels,4,4
	.comm	MCP4922_NUM_CHANNELS,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
