	.file	"extr_nv10.c_nv10_gpio_sense.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nv10_gpio_sense, @function
nv10_gpio_sense:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	cmp	esi, 1
	jle	.L9
	cmp	esi, 9
	jle	.L10
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	cmp	esi, 13
	jle	.L11
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	ebx, -40[0+rsi*4]
	mov	esi, 6293584
.L7:
	call	nv_rd32@PLT
	mov	ecx, ebx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	sar	eax, cl
	shr	eax, 2
	and	eax, 1
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	ebx, -8[0+rsi*4]
	mov	esi, 6293532
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	mov	ebx, esi
	mov	esi, 6293528
	call	nv_rd32@PLT
	sal	ebx, 4
	mov	ecx, ebx
	pop	rbx
	.cfi_def_cfa_offset 8
	sar	eax, cl
	shr	eax, 8
	and	eax, 1
	ret
	.cfi_endproc
.LFE0:
	.size	nv10_gpio_sense, .-nv10_gpio_sense
	.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_nv10.c_nv10_gpio_sense.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nv10_gpio_sense, %function
nv10_gpio_sense:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #1
	mov	r3, r1
	push	{r4, lr}
	ble	.L9
	cmp	r1, #9
	ble	.L10
	cmp	r1, #13
	ble	.L11
	ldr	r3, .L12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L10:
	sub	r3, r1, #2
	ldr	r1, .L12+4
.L7:
	lsl	r4, r3, #2
	bl	nv_rd32
	asr	r0, r0, r4
	lsr	r0, r0, #2
	and	r0, r0, #1
	pop	{r4, pc}
.L9:
	ldr	r1, .L12+8
	lsl	r4, r3, #4
	bl	nv_rd32
	asr	r0, r0, r4
	lsr	r0, r0, #8
	and	r0, r0, #1
	pop	{r4, pc}
.L11:
	sub	r3, r1, #10
	ldr	r1, .L12+12
	b	.L7
.L13:
	.align	2
.L12:
	.word	EINVAL
	.word	6293532
	.word	6293528
	.word	6293584
	.size	nv10_gpio_sense, .-nv10_gpio_sense
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
