	.file	"extr_ds1wm.c_ds1wm_up.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"found divisor 0x%x for clock %d\n"
	.align 8
.LC1:
	.string	"no suitable divisor for %dHz clock\n"
	.text
	.p2align 4
	.type	ds1wm_up, @function
ds1wm_up:
.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
	mov	r13, QWORD PTR [rdi]
	mov	rdi, r13
	call	dev_get_platdata@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L2
	mov	rdi, QWORD PTR 0[rbp]
	call	rax
.L2:
	mov	edi, DWORD PTR [rbx]
	call	ds1wm_find_divisor@PLT
	mov	ecx, DWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	mov	r12d, eax
	mov	edx, eax
	call	dev_dbg@PLT
	test	r12d, r12d
	je	.L9
	mov	esi, DWORD PTR DS1WM_CLKDIV[rip]
	mov	edx, r12d
	mov	rdi, rbp
	call	ds1wm_write_register@PLT
	mov	edi, 1
	call	msleep@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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	ds1wm_reset@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edx, DWORD PTR [rbx]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	lea	rsi, .LC1[rip]
	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	dev_err@PLT
	.cfi_endproc
.LFE0:
	.size	ds1wm_up, .-ds1wm_up
	.comm	DS1WM_CLKDIV,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_up.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"found divisor 0x%x for clock %d\012\000"
	.align	2
.LC1:
	.ascii	"no suitable divisor for %dHz clock\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ds1wm_up, %function
ds1wm_up:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r7, [r0]
	mov	r0, r7
	bl	dev_get_platdata
	ldr	r3, [r4, #4]
	mov	r6, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r0, [r4]
	blx	r3
.L2:
	ldr	r0, [r6]
	bl	ds1wm_find_divisor
	mov	r5, r0
	mov	r2, r0
	ldr	r3, [r6]
	mov	r0, r7
	ldr	r1, .L10
	bl	dev_dbg
	cmp	r5, #0
	beq	.L9
	ldr	r3, .L10+4
	mov	r2, r5
	mov	r0, r4
	ldr	r1, [r3]
	bl	ds1wm_write_register
	mov	r0, #1
	bl	msleep
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	ds1wm_reset
.L9:
	mov	r0, r7
	ldr	r2, [r6]
	ldr	r1, .L10+8
	pop	{r4, r5, r6, r7, r8, lr}
	b	dev_err
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	DS1WM_CLKDIV
	.word	.LC1
	.size	ds1wm_up, .-ds1wm_up
	.comm	DS1WM_CLKDIV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
