	.file	"extr_g762.c_fan1_input_show.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%u\n"
	.text
	.p2align 4
	.type	fan1_input_show, @function
fan1_input_show:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	g762_update_client@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L8
	lea	r13, 4[rbp]
	xor	r14d, r14d
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR G762_REG_FAN_STA_OOC[rip], eax
	jne	.L9
.L3:
	mov	rdi, r13
	call	mutex_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edx, r14d
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	sprintf@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbp]
	call	G762_GEARMULT_FROM_REG@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	ebx, eax
	call	G762_CLKDIV_FROM_REG@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	r14d, eax
	call	G762_PULSE_FROM_REG@PLT
	mov	esi, DWORD PTR 16[rbp]
	mov	edi, DWORD PTR 20[rbp]
	mov	ecx, r14d
	mov	edx, eax
	mov	r8d, ebx
	call	rpm_from_cnt@PLT
	mov	r14d, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	fan1_input_show, .-fan1_input_show
	.comm	G762_REG_FAN_STA_OOC,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_g762.c_fan1_input_show.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%u\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fan1_input_show, %function
fan1_input_show:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #12
	mov	r5, r2
	bl	g762_update_client
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L7
	add	r6, r4, #4
	mov	r0, r6
	bl	mutex_lock
	ldr	r3, .L9
	ldr	r0, [r4]
	ldr	r2, [r3]
	ands	r0, r0, r2
	moveq	r4, r0
	bne	.L8
.L3:
	mov	r0, r6
	bl	mutex_unlock
	mov	r2, r4
	mov	r0, r5
	ldr	r1, .L9+4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	sprintf
.L8:
	ldr	r0, [r4, #12]
	ldr	r8, [r4, #20]
	ldr	r9, [r4, #16]
	bl	G762_PULSE_FROM_REG
	mov	r7, r0
	ldr	r0, [r4, #12]
	bl	G762_CLKDIV_FROM_REG
	mov	r3, r0
	ldr	r0, [r4, #8]
	mov	r4, r3
	bl	G762_GEARMULT_FROM_REG
	mov	r3, r4
	str	r0, [sp]
	mov	r2, r7
	mov	r1, r9
	mov	r0, r8
	bl	rpm_from_cnt
	mov	r4, r0
	b	.L3
.L7:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	PTR_ERR
.L10:
	.align	2
.L9:
	.word	G762_REG_FAN_STA_OOC
	.word	.LC0
	.size	fan1_input_show, .-fan1_input_show
	.comm	G762_REG_FAN_STA_OOC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
