	.file	"extr_bttv-if.c_bttv_gpio_enable.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"extern enable"
	.text
	.p2align 4
	.globl	bttv_gpio_enable
	.type	bttv_gpio_enable, @function
bttv_gpio_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	cmp	DWORD PTR bttv_num[rip], edi
	jbe	.L1
	mov	rax, QWORD PTR bttvs[rip]
	mov	edi, edi
	mov	r12d, DWORD PTR ENODEV[rip]
	mov	rbp, QWORD PTR [rax+rdi*8]
	neg	r12d
	test	rbp, rbp
	je	.L1
	mov	r8, rsi
	mov	rsi, rdx
	xor	r12d, r12d
	mov	rdi, r8
	call	gpio_inout@PLT
	cmp	QWORD PTR bttv_gpio[rip], 0
	jne	.L8
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	bttv_gpio_tracking@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	bttv_gpio_enable, .-bttv_gpio_enable
	.comm	bttvs,8,8
	.comm	bttv_num,4,4
	.comm	bttv_gpio,8,8
	.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_bttv-if.c_bttv_gpio_enable.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"extern enable\000"
	.text
	.align	2
	.global	bttv_gpio_enable
	.syntax unified
	.arm
	.fpu softvfp
	.type	bttv_gpio_enable, %function
bttv_gpio_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	ldr	ip, .L14
	mov	r0, r1
	ldr	r1, [ip]
	cmp	r1, r3
	bls	.L12
	ldr	r1, .L14+4
	push	{r4, lr}
	ldr	r1, [r1]
	ldr	r4, [r1, r3, lsl #2]
	cmp	r4, #0
	beq	.L13
	mov	r1, r2
	bl	gpio_inout
	ldr	r3, .L14+8
	ldr	r0, [r3]
	cmp	r0, #0
	popeq	{r4, pc}
	mov	r0, r4
	ldr	r1, .L14+12
	bl	bttv_gpio_tracking
	mov	r0, #0
	pop	{r4, pc}
.L13:
	ldr	r3, .L14+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L12:
	ldr	r3, .L14+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L15:
	.align	2
.L14:
	.word	bttv_num
	.word	bttvs
	.word	bttv_gpio
	.word	.LC0
	.word	ENODEV
	.word	EINVAL
	.size	bttv_gpio_enable, .-bttv_gpio_enable
	.comm	bttvs,4,4
	.comm	bttv_num,4,4
	.comm	bttv_gpio,4,4
	.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
