	.file	"extr_ds1wm.c_ds1wm_read.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"read failed, timed out\n"
	.text
	.p2align 4
	.type	ds1wm_read, @function
ds1wm_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, read_done[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12d, DWORD PTR [rdi]
	mov	edi, DWORD PTR read_done[rip]
	or	r12d, DWORD PTR DS1WM_INTEN_ERBF[rip]
	call	DECLARE_COMPLETION_ONSTACK@PLT
	mov	esi, DWORD PTR DS1WM_DATA[rip]
	mov	rdi, rbx
	call	ds1wm_read_register@PLT
	mov	QWORD PTR 24[rbx], r13
	movzx	edx, r12b
	mov	rdi, rbx
	mov	esi, DWORD PTR DS1WM_INT_EN[rip]
	call	ds1wm_write_register@PLT
	mov	esi, DWORD PTR DS1WM_DATA[rip]
	movzx	edx, bpl
	mov	rdi, rbx
	call	ds1wm_write_register@PLT
	mov	esi, DWORD PTR DS1WM_TIMEOUT[rip]
	mov	rdi, r13
	call	wait_for_completion_timeout@PLT
	mov	QWORD PTR 24[rbx], 0
	test	rax, rax
	je	.L6
	mov	eax, DWORD PTR 4[rbx]
	mov	DWORD PTR 8[rbx], 0
	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
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR ETIMEDOUT[rip]
	neg	eax
	mov	DWORD PTR 8[rbx], eax
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, 255
	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
	.cfi_endproc
.LFE0:
	.size	ds1wm_read, .-ds1wm_read
	.comm	read_done,4,4
	.comm	ETIMEDOUT,4,4
	.comm	DS1WM_TIMEOUT,4,4
	.comm	DS1WM_INT_EN,4,4
	.comm	DS1WM_INTEN_ERBF,4,4
	.comm	DS1WM_DATA,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_ds1wm.c_ds1wm_read.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"read failed, timed out\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ds1wm_read, %function
ds1wm_read:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r6, r1
	ldr	r3, .L7
	ldr	r5, .L7+4
	ldr	r2, [r3]
	ldr	r7, [r0]
	ldr	r8, .L7+8
	ldr	r0, [r5]
	orr	r7, r7, r2
	bl	DECLARE_COMPLETION_ONSTACK
	ldr	r1, [r8]
	mov	r0, r4
	bl	ds1wm_read_register
	ldr	r3, .L7+12
	and	r2, r7, #255
	ldr	r1, [r3]
	mov	r0, r4
	str	r5, [r4, #16]
	bl	ds1wm_write_register
	mov	r2, r6
	ldr	r1, [r8]
	mov	r0, r4
	bl	ds1wm_write_register
	ldr	r3, .L7+16
	mov	r0, r5
	ldr	r1, [r3]
	bl	wait_for_completion_timeout
	mov	r3, #0
	cmp	r0, r3
	str	r3, [r4, #16]
	beq	.L6
	ldr	r0, [r4, #4]
	str	r3, [r4, #8]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r1, .L7+20
	ldr	r0, [r4, #12]
	bl	dev_err
	ldr	r3, .L7+24
	mov	r0, #255
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [r4, #8]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	DS1WM_INTEN_ERBF
	.word	read_done
	.word	DS1WM_DATA
	.word	DS1WM_INT_EN
	.word	DS1WM_TIMEOUT
	.word	.LC0
	.word	ETIMEDOUT
	.size	ds1wm_read, .-ds1wm_read
	.comm	read_done,4,4
	.comm	ETIMEDOUT,4,4
	.comm	DS1WM_TIMEOUT,4,4
	.comm	DS1WM_INT_EN,4,4
	.comm	DS1WM_INTEN_ERBF,4,4
	.comm	DS1WM_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
