	.file	"extr_ivtv-gpio.c_ivtv_reset_ir_gpio.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Resetting PVR150 IR\n"
	.text
	.p2align 4
	.globl	ivtv_reset_ir_gpio
	.type	ivtv_reset_ir_gpio, @function
ivtv_reset_ir_gpio:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR [rdi]
	mov	rdx, QWORD PTR IVTV_CARD_PVR_150[rip]
	cmp	QWORD PTR [rax], rdx
	je	.L7
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	IVTV_DEBUG_INFO@PLT
	mov	edi, DWORD PTR IVTV_REG_GPIO_OUT[rip]
	call	read_reg@PLT
	mov	edi, DWORD PTR IVTV_REG_GPIO_DIR[rip]
	mov	ebx, eax
	call	read_reg@PLT
	mov	esi, DWORD PTR IVTV_REG_GPIO_DIR[rip]
	and	ebx, -16
	mov	edi, eax
	mov	ebp, eax
	or	dil, -128
	call	write_reg@PLT
	mov	esi, DWORD PTR IVTV_REG_GPIO_OUT[rip]
	mov	edi, ebx
	or	ebx, 3
	or	edi, 1
	call	write_reg@PLT
	mov	edi, 1
	call	msecs_to_jiffies@PLT
	mov	edi, eax
	call	schedule_timeout_interruptible@PLT
	mov	esi, DWORD PTR IVTV_REG_GPIO_OUT[rip]
	mov	edi, ebx
	call	write_reg@PLT
	mov	edi, ebp
	mov	esi, DWORD PTR IVTV_REG_GPIO_DIR[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	and	dil, 127
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	write_reg@PLT
	.cfi_endproc
.LFE0:
	.size	ivtv_reset_ir_gpio, .-ivtv_reset_ir_gpio
	.comm	IVTV_REG_GPIO_OUT,4,4
	.comm	IVTV_REG_GPIO_DIR,4,4
	.comm	IVTV_CARD_PVR_150,8,8
	.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_ivtv-gpio.c_ivtv_reset_ir_gpio.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Resetting PVR150 IR\012\000"
	.text
	.align	2
	.global	ivtv_reset_ir_gpio
	.syntax unified
	.arm
	.fpu softvfp
	.type	ivtv_reset_ir_gpio, %function
ivtv_reset_ir_gpio:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L7
	ldr	r2, [r0]
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r2, r3
	bxne	lr
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L7+4
	ldr	r0, .L7+8
	bl	IVTV_DEBUG_INFO
	ldr	r0, [r7]
	bl	read_reg
	ldr	r6, .L7+12
	mov	r4, r0
	ldr	r0, [r6]
	bl	read_reg
	mov	r5, r0
	ldr	r1, [r6]
	bic	r4, r4, #15
	orr	r0, r0, #128
	bl	write_reg
	ldr	r1, [r7]
	orr	r0, r4, #1
	bl	write_reg
	mov	r0, #1
	bl	msecs_to_jiffies
	bl	schedule_timeout_interruptible
	ldr	r1, [r7]
	orr	r0, r4, #3
	bl	write_reg
	ldr	r1, [r6]
	bic	r0, r5, #128
	pop	{r4, r5, r6, r7, r8, lr}
	b	write_reg
.L8:
	.align	2
.L7:
	.word	IVTV_CARD_PVR_150
	.word	IVTV_REG_GPIO_OUT
	.word	.LC0
	.word	IVTV_REG_GPIO_DIR
	.size	ivtv_reset_ir_gpio, .-ivtv_reset_ir_gpio
	.comm	IVTV_REG_GPIO_OUT,4,4
	.comm	IVTV_REG_GPIO_DIR,4,4
	.comm	IVTV_CARD_PVR_150,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
