	.file	"extr_s5h1420.c_s5h1420_recv_slave_reply.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	s5h1420_recv_slave_reply, @function
s5h1420_recv_slave_reply:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	mov	esi, 59
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r12, QWORD PTR [rdi]
	mov	rdi, r12
	call	s5h1420_readreg@PLT
	mov	edx, 130
	mov	esi, 59
	mov	rdi, r12
	mov	r13d, eax
	call	s5h1420_writereg@PLT
	mov	edi, 15
	call	msleep@PLT
	mov	eax, DWORD PTR [rbx]
	imul	eax, DWORD PTR HZ[rip]
	mov	edi, DWORD PTR jiffies[rip]
	movsx	rbp, eax
	sar	eax, 31
	imul	rbp, rbp, 274877907
	sar	rbp, 38
	sub	ebp, eax
	add	ebp, edi
	movsx	rbp, ebp
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, 59
	mov	rdi, r12
	call	s5h1420_readreg@PLT
	test	al, -128
	je	.L7
	mov	edi, 5
	call	msleep@PLT
	mov	edi, DWORD PTR jiffies[rip]
.L2:
	mov	rsi, rbp
	call	time_before@PLT
	test	rax, rax
	jne	.L6
.L7:
	mov	edi, DWORD PTR jiffies[rip]
	mov	rsi, rbp
	call	time_after@PLT
	test	rax, rax
	je	.L18
	mov	r14d, DWORD PTR ETIMEDOUT[rip]
	neg	r14d
.L8:
	mov	edx, r13d
	mov	rdi, r12
	mov	esi, 59
	call	s5h1420_writereg@PLT
	mov	edi, 15
	call	msleep@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	esi, 73
	mov	rdi, r12
	call	s5h1420_readreg@PLT
	mov	r14d, eax
	test	eax, eax
	je	.L9
	mov	r14d, DWORD PTR EIO[rip]
	neg	r14d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, 59
	mov	rdi, r12
	mov	ebp, 0
	call	s5h1420_readreg@PLT
	sar	eax, 4
	mov	r15d, eax
	and	r15d, 7
	mov	DWORD PTR 12[rsp], r15d
	mov	DWORD PTR 4[rbx], r15d
	je	.L8
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 8[rbx]
	lea	esi, 61[rbp]
	mov	rdi, r12
	lea	r15, [rax+rbp*4]
	add	rbp, 1
	call	s5h1420_readreg@PLT
	mov	DWORD PTR [r15], eax
	cmp	DWORD PTR 12[rsp], ebp
	jg	.L10
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	s5h1420_recv_slave_reply, .-s5h1420_recv_slave_reply
	.comm	jiffies,4,4
	.comm	HZ,4,4
	.comm	ETIMEDOUT,4,4
	.comm	EOVERFLOW,4,4
	.comm	EIO,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_s5h1420.c_s5h1420_recv_slave_reply.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	s5h1420_recv_slave_reply, %function
s5h1420_recv_slave_reply:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r5, [r0]
	mov	r6, r1
	mov	r0, r5
	mov	r1, #59
	bl	s5h1420_readreg
	mov	r2, #130
	mov	r1, #59
	mov	r7, r0
	mov	r0, r5
	bl	s5h1420_writereg
	mov	r0, #15
	bl	msleep
	ldr	r2, .L20
	ldr	r3, [r6]
	ldr	r2, [r2]
	ldr	r4, .L20+4
	mul	r3, r2, r3
	smull	r1, r2, r4, r3
	ldr	r8, .L20+8
	asr	r4, r3, #31
	ldr	r0, [r8]
	rsb	r4, r4, r2, asr #6
	add	r4, r4, r0
	b	.L2
.L6:
	mov	r1, #59
	mov	r0, r5
	bl	s5h1420_readreg
	tst	r0, #128
	beq	.L7
	mov	r0, #5
	bl	msleep
	ldr	r0, [r8]
.L2:
	mov	r1, r4
	bl	time_before
	cmp	r0, #0
	bne	.L6
.L7:
	mov	r1, r4
	ldr	r0, [r8]
	bl	time_after
	cmp	r0, #0
	beq	.L18
	ldr	r3, .L20+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L8:
	mov	r2, r7
	mov	r1, #59
	mov	r0, r5
	bl	s5h1420_writereg
	mov	r0, #15
	bl	msleep
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	mov	r1, #73
	mov	r0, r5
	bl	s5h1420_readreg
	subs	r4, r0, #0
	ldrne	r3, .L20+16
	ldrne	r4, [r3]
	rsbne	r4, r4, #0
	bne	.L8
.L9:
	mov	r1, #59
	mov	r0, r5
	bl	s5h1420_readreg
	asr	r9, r0, #4
	and	r9, r9, #7
	cmp	r9, #4
	bgt	.L19
	cmp	r9, #0
	str	r9, [r6, #4]
	beq	.L8
	mov	r8, r4
.L11:
	add	r1, r8, #61
	mov	r0, r5
	ldr	r10, [r6, #8]
	bl	s5h1420_readreg
	str	r0, [r10, r8, lsl #2]
	add	r8, r8, #1
	cmp	r9, r8
	bne	.L11
	b	.L8
.L19:
	ldr	r3, .L20+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L8
.L21:
	.align	2
.L20:
	.word	HZ
	.word	274877907
	.word	jiffies
	.word	ETIMEDOUT
	.word	EIO
	.word	EOVERFLOW
	.size	s5h1420_recv_slave_reply, .-s5h1420_recv_slave_reply
	.comm	jiffies,4,4
	.comm	HZ,4,4
	.comm	ETIMEDOUT,4,4
	.comm	EOVERFLOW,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
