	.file	"extr_cx24113.c_cx24113_attach.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"trying to detect myself\n"
.LC1:
	.string	"CX24113 not found.\n"
.LC2:
	.string	"detected CX24113 variant\n"
.LC3:
	.string	"successfully detected\n"
.LC4:
	.string	"unsupported device id: %x\n"
.LC5:
	.string	"version: %x\n"
	.text
	.p2align 4
	.globl	cx24113_attach
	.type	cx24113_attach, @function
cx24113_attach:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	mov	edi, 32
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	call	kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	QWORD PTR 24[rax], r13
	lea	rdi, .LC0[rip]
	mov	QWORD PTR 16[rax], rbp
	xor	eax, eax
	call	cx_info@PLT
	xor	esi, esi
	mov	rdi, r12
	call	cx24113_readreg@PLT
	xor	esi, esi
	mov	rdi, r12
	call	cx24113_readreg@PLT
	test	eax, eax
	js	.L15
	mov	DWORD PTR [r12], eax
	cmp	eax, 67
	je	.L5
	cmp	eax, 128
	je	.L6
	mov	esi, eax
	lea	rdi, .LC4[rip]
	call	cx_err@PLT
.L4:
	mov	rdi, r12
	xor	r12d, r12d
	call	kfree@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L6:
	.cfi_restore_state
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	cx_info@PLT
.L8:
	mov	rdi, r12
	mov	esi, 1
	call	cx24113_readreg@PLT
	lea	rdi, .LC5[rip]
	mov	QWORD PTR 8[r12], rax
	mov	rsi, rax
	xor	eax, eax
	call	cx_info@PLT
	lea	rdi, 8[rbx]
	mov	edx, 4
	lea	rsi, cx24113_tuner_ops[rip]
	call	memcpy@PLT
	mov	QWORD PTR [rbx], r12
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	r12, rbx
	mov	rax, r12
	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
.L5:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	cx_info@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	cx_info@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	cx24113_attach, .-cx24113_attach
	.comm	cx24113_tuner_ops,4,4
	.comm	GFP_KERNEL,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_cx24113.c_cx24113_attach.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"trying to detect myself\012\000"
	.align	2
.LC1:
	.ascii	"CX24113 not found.\012\000"
	.align	2
.LC2:
	.ascii	"detected CX24113 variant\012\000"
	.align	2
.LC3:
	.ascii	"successfully detected\012\000"
	.align	2
.LC4:
	.ascii	"unsupported device id: %x\012\000"
	.align	2
.LC5:
	.ascii	"version: %x\012\000"
	.text
	.align	2
	.global	cx24113_attach
	.syntax unified
	.arm
	.fpu softvfp
	.type	cx24113_attach, %function
cx24113_attach:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r1
	ldr	r1, .L16
	mov	r5, r0
	ldr	r1, [r1]
	mov	r0, #16
	mov	r6, r2
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L1
	ldr	r0, .L16+4
	str	r7, [r4, #12]
	str	r6, [r4, #8]
	bl	cx_info
	mov	r1, #0
	mov	r0, r4
	bl	cx24113_readreg
	mov	r1, #0
	mov	r0, r4
	bl	cx24113_readreg
	subs	r1, r0, #0
	blt	.L15
	cmp	r1, #67
	str	r1, [r4]
	beq	.L5
	cmp	r1, #128
	beq	.L6
	ldr	r0, .L16+8
	bl	cx_err
.L4:
	mov	r0, r4
	bl	kfree
	mov	r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r0, .L16+12
	bl	cx_info
.L8:
	mov	r1, #1
	mov	r0, r4
	bl	cx24113_readreg
	mov	r1, r0
	ldr	r0, .L16+16
	str	r1, [r4, #4]
	bl	cx_info
	mov	r2, #4
	ldr	r1, .L16+20
	add	r0, r5, r2
	bl	memcpy
	str	r4, [r5]
	mov	r4, r5
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r0, .L16+24
	bl	cx_info
	b	.L8
.L15:
	ldr	r0, .L16+28
	bl	cx_info
	b	.L4
.L17:
	.align	2
.L16:
	.word	GFP_KERNEL
	.word	.LC0
	.word	.LC4
	.word	.LC3
	.word	.LC5
	.word	cx24113_tuner_ops
	.word	.LC2
	.word	.LC1
	.size	cx24113_attach, .-cx24113_attach
	.comm	cx24113_tuner_ops,4,4
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
