	.file	"extr_nv40.c_nv40_fan_pwm_get.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unknown pwm ctrl for gpio %d\n"
	.text
	.p2align 4
	.type	nv40_fan_pwm_get, @function
nv40_fan_pwm_get:
.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
	mov	r12, rdx
	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
	mov	rbx, rcx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	esi, 2
	je	.L8
	cmp	esi, 9
	jne	.L5
	mov	esi, 5620
	call	nv_rd32@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L9
.L3:
	mov	eax, DWORD PTR EINVAL[rip]
	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
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edx, esi
	lea	rsi, .LC0[rip]
	call	nv_error@PLT
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
.L1:
	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
.L8:
	.cfi_restore_state
	mov	esi, 4336
	call	nv_rd32@PLT
	test	eax, eax
	jns	.L3
	mov	edx, eax
	and	eax, 32767
	sar	edx, 16
	and	edx, 32767
	mov	DWORD PTR [rbx], edx
	mov	DWORD PTR [r12], eax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, 5624
	mov	rdi, rbp
	and	r13d, 2147483647
	call	nv_rd32@PLT
	mov	DWORD PTR [r12], eax
	xor	eax, eax
	mov	DWORD PTR [rbx], r13d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	nv40_fan_pwm_get, .-nv40_fan_pwm_get
	.comm	ENODEV,4,4
	.comm	EINVAL,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_nv40.c_nv40_fan_pwm_get.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unknown pwm ctrl for gpio %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nv40_fan_pwm_get, %function
nv40_fan_pwm_get:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #2
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r2
	mov	r5, r3
	beq	.L8
	cmp	r1, #9
	bne	.L5
	ldr	r1, .L10
	mov	r4, r0
	bl	nv_rd32
	subs	r7, r0, #0
	blt	.L9
.L3:
	ldr	r3, .L10+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r2, r1
	ldr	r1, .L10+8
	bl	nv_error
	ldr	r3, .L10+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r1, .L10+16
	bl	nv_rd32
	subs	r3, r0, #0
	bge	.L3
	ldr	r2, .L10+20
	mov	r0, #0
	and	r1, r2, r3, asr #16
	and	r3, r3, r2
	str	r1, [r5]
	str	r3, [r6]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	mov	r0, r4
	ldr	r1, .L10+24
	bl	nv_rd32
	bic	r7, r7, #-2147483648
	str	r0, [r6]
	mov	r0, #0
	str	r7, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	5620
	.word	EINVAL
	.word	.LC0
	.word	ENODEV
	.word	4336
	.word	32767
	.word	5624
	.size	nv40_fan_pwm_get, .-nv40_fan_pwm_get
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
