	.file	"extr_cx18-i2c.c_cx18_i2c_register.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cx18_i2c_register
	.type	cx18_i2c_register, @function
cx18_i2c_register:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	eax, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	rcx, rax
	mov	r12d, 1
	sal	r12d, cl
	movsx	r12, r12d
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rdx, QWORD PTR hw_bus[rip]
	cmp	QWORD PTR CX18_HW_TUNER[rip], r12
	movsx	rsi, DWORD PTR [rdx+rax*4]
	mov	rdx, QWORD PTR 16[rdi]
	lea	rsi, [rdx+rsi*4]
	mov	rdx, QWORD PTR hw_devicenames[rip]
	mov	r13, QWORD PTR [rdx+rax*8]
	je	.L24
	mov	rdx, QWORD PTR hw_addrs[rip]
	cmp	QWORD PTR CX18_HW_Z8F0811_IR_HAUP[rip], r12
	mov	ecx, DWORD PTR [rdx+rax*4]
	je	.L25
	test	ecx, ecx
	je	.L8
	xor	r8d, r8d
	mov	rdx, r13
	call	v4l2_i2c_new_subdev@PLT
	test	rax, rax
	je	.L8
.L22:
	mov	QWORD PTR [rax], r12
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rdi]
	xor	ecx, ecx
	mov	rdx, r13
	mov	QWORD PTR 8[rsp], rsi
	mov	QWORD PTR [rsp], rdi
	mov	r8, QWORD PTR 16[rax]
	call	v4l2_i2c_new_subdev@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	rsi, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L3
	mov	QWORD PTR [rax], r12
.L3:
	mov	rax, QWORD PTR 8[rdi]
	xor	ecx, ecx
	mov	rdx, r13
	mov	QWORD PTR 8[rsp], rsi
	mov	QWORD PTR [rsp], rdi
	mov	r8, QWORD PTR 8[rax]
	call	v4l2_i2c_new_subdev@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	rsi, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L4
	mov	QWORD PTR [rax], r12
.L4:
	mov	rax, QWORD PTR 8[rdi]
	xor	ecx, ecx
	mov	rdx, r13
	mov	r8, QWORD PTR [rax]
	call	v4l2_i2c_new_subdev@PLT
	test	rax, rax
	jne	.L22
.L8:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, -1
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	add	rsp, 24
	.cfi_def_cfa_offset 24
	mov	r8d, ecx
	mov	rdx, r12
	mov	rcx, r13
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	cx18_i2c_new_ir@PLT
	.cfi_endproc
.LFE0:
	.size	cx18_i2c_register, .-cx18_i2c_register
	.comm	hw_devicenames,8,8
	.comm	hw_bus,8,8
	.comm	hw_addrs,8,8
	.comm	CX18_HW_Z8F0811_IR_HAUP,8,8
	.comm	CX18_HW_TUNER,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_cx18-i2c.c_cx18_i2c_register.c"
	.text
	.align	2
	.global	cx18_i2c_register
	.syntax unified
	.arm
	.fpu softvfp
	.type	cx18_i2c_register, %function
cx18_i2c_register:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r1
	mov	r2, #1
	ldr	r1, .L25
	push	{r4, r5, r6, r7, lr}
	ldr	lr, .L25+4
	ldr	r1, [r1]
	ldr	ip, .L25+8
	ldr	lr, [lr]
	ldr	r1, [r1, r3, lsl #2]
	ldr	ip, [ip]
	ldr	r5, [r0, #8]
	cmp	lr, r2, lsl r3
	ldr	r7, [ip, r3, lsl #2]
	sub	sp, sp, #12
	lsl	r6, r2, r3
	add	r5, r5, r1, lsl #2
	beq	.L23
	ldr	r2, .L25+12
	ldr	r1, .L25+16
	ldr	r2, [r2]
	ldr	r1, [r1]
	cmp	r2, r6
	ldr	r3, [r1, r3, lsl #2]
	beq	.L24
	cmp	r3, #0
	beq	.L8
	mov	r4, #0
	mov	r2, r7
	mov	r1, r5
	str	r4, [sp]
	bl	v4l2_i2c_new_subdev
	subs	r3, r0, #0
	beq	.L8
	mov	r0, r4
	str	r6, [r3]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L23:
	ldr	r2, [r0, #4]
	mov	r4, r0
	ldr	r1, [r2, #8]
	mov	r3, #0
	mov	r2, r7
	str	r1, [sp]
	mov	r1, r5
	bl	v4l2_i2c_new_subdev
	ldr	r2, [r4, #4]
	cmp	r0, #0
	ldr	r1, [r2, #4]
	strne	r6, [r0]
	mov	r3, #0
	mov	r2, r7
	str	r1, [sp]
	mov	r0, r4
	mov	r1, r5
	bl	v4l2_i2c_new_subdev
	ldr	r3, [r4, #4]
	cmp	r0, #0
	ldr	r3, [r3]
	strne	r6, [r0]
	mov	r2, r7
	str	r3, [sp]
	mov	r1, r5
	mov	r0, r4
	mov	r3, #0
	bl	v4l2_i2c_new_subdev
	cmp	r0, #0
	strne	r6, [r0]
	movne	r0, #0
	bne	.L1
.L8:
	mvn	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L24:
	str	r3, [sp]
	mov	r1, r5
	mov	r3, r7
	bl	cx18_i2c_new_ir
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L26:
	.align	2
.L25:
	.word	hw_bus
	.word	CX18_HW_TUNER
	.word	hw_devicenames
	.word	CX18_HW_Z8F0811_IR_HAUP
	.word	hw_addrs
	.size	cx18_i2c_register, .-cx18_i2c_register
	.comm	hw_devicenames,4,4
	.comm	hw_bus,4,4
	.comm	hw_addrs,4,4
	.comm	CX18_HW_Z8F0811_IR_HAUP,4,4
	.comm	CX18_HW_TUNER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
