	.file	"extr_bt819.c_bt819_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"bt819a"
.LC1:
	.string	"bt817a"
.LC2:
	.string	"bt815a"
.LC3:
	.string	"unknown chip version 0x%02x\n"
.LC4:
	.string	"%s found @ 0x%x (%s)\n"
.LC5:
	.string	"init status %d\n"
	.text
	.p2align 4
	.type	bt819_probe, @function
bt819_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rdi, QWORD PTR 8[rdi]
	mov	esi, DWORD PTR I2C_FUNC_SMBUS_BYTE_DATA[rip]
	call	i2c_check_functionality@PLT
	test	eax, eax
	jne	.L2
.L13:
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 56
	call	kzalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	rbx, rax
	neg	r12d
	test	rax, rax
	je	.L1
	lea	r13, 48[rax]
	lea	rdx, bt819_ops[rip]
	mov	rsi, rbp
	mov	rdi, r13
	call	v4l2_i2c_subdev_init@PLT
	mov	esi, 23
	mov	rdi, rbx
	call	bt819_read@PLT
	mov	r8d, eax
	and	eax, 240
	cmp	eax, 96
	je	.L5
	cmp	eax, 112
	je	.L6
	cmp	eax, 32
	je	.L15
	mov	esi, DWORD PTR debug[rip]
	lea	rcx, .LC3[rip]
	mov	rdx, r13
	mov	edi, 1
	call	v4l2_dbg@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR V4L2_IDENT_BT817A[rip]
	lea	rdx, .LC1[rip]
	mov	DWORD PTR 44[rbx], eax
.L9:
	mov	rax, QWORD PTR 8[rbp]
	mov	ecx, DWORD PTR 0[rbp]
	mov	rdi, rbp
	xor	r12d, r12d
	lea	rsi, .LC4[rip]
	mov	r8d, DWORD PTR [rax]
	add	ecx, ecx
	call	v4l_info@PLT
	mov	eax, DWORD PTR V4L2_STD_NTSC[rip]
	mov	rdi, r13
	mov	QWORD PTR 32[rbx], 0
	mov	QWORD PTR 24[rbx], 0
	mov	DWORD PTR 40[rbx], eax
	movabs	rax, 927712935937
	mov	QWORD PTR 16[rbx], 0
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR 8[rbx], 254
	call	bt819_init@PLT
	test	eax, eax
	jns	.L1
	mov	esi, DWORD PTR debug[rip]
	mov	r8d, eax
	lea	rcx, .LC5[rip]
	mov	rdx, r13
	mov	edi, 1
	call	v4l2_dbg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	eax, DWORD PTR V4L2_IDENT_BT815A[rip]
	lea	rdx, .LC2[rip]
	mov	DWORD PTR 44[rbx], eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR V4L2_IDENT_BT819A[rip]
	lea	rdx, .LC0[rip]
	mov	DWORD PTR 44[rbx], eax
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	bt819_probe, .-bt819_probe
	.comm	debug,4,4
	.comm	bt819_ops,4,4
	.comm	V4L2_STD_NTSC,4,4
	.comm	V4L2_IDENT_BT819A,4,4
	.comm	V4L2_IDENT_BT817A,4,4
	.comm	V4L2_IDENT_BT815A,4,4
	.comm	I2C_FUNC_SMBUS_BYTE_DATA,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,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_bt819.c_bt819_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bt819a\000"
	.align	2
.LC1:
	.ascii	"bt817a\000"
	.align	2
.LC2:
	.ascii	"bt815a\000"
	.align	2
.LC3:
	.ascii	"unknown chip version 0x%02x\012\000"
	.align	2
.LC4:
	.ascii	"%s found @ 0x%x (%s)\012\000"
	.align	2
.LC5:
	.ascii	"init status %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bt819_probe, %function
bt819_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L17
	mov	r4, r0
	ldr	r1, [r3]
	ldr	r0, [r0, #4]
	sub	sp, sp, #12
	bl	i2c_check_functionality
	cmp	r0, #0
	bne	.L2
.L13:
	ldr	r3, .L17+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r3, .L17+8
	mov	r0, #36
	ldr	r1, [r3]
	bl	kzalloc
	subs	r5, r0, #0
	beq	.L15
	add	r6, r5, #32
	mov	r1, r4
	ldr	r2, .L17+12
	mov	r0, r6
	bl	v4l2_i2c_subdev_init
	mov	r1, #23
	mov	r0, r5
	bl	bt819_read
	and	r3, r0, #240
	cmp	r3, #96
	beq	.L5
	cmp	r3, #112
	beq	.L6
	cmp	r3, #32
	beq	.L16
	ldr	r3, .L17+16
	str	r0, [sp]
	ldr	r1, [r3]
	mov	r2, r6
	ldr	r3, .L17+20
	mov	r0, #1
	bl	v4l2_dbg
	b	.L13
.L15:
	ldr	r3, .L17+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L16:
	ldr	r3, .L17+28
	ldr	r2, .L17+32
	ldr	r3, [r3]
	str	r3, [r5, #28]
.L9:
	ldr	r1, [r4, #4]
	ldr	r3, [r4]
	ldr	r1, [r1]
	mov	r0, r4
	str	r1, [sp]
	lsl	r3, r3, #1
	ldr	r1, .L17+36
	bl	v4l_info
	mov	r4, #0
	mov	r2, #216
	mov	r3, #254
	mov	r7, #1
	ldr	r1, .L17+40
	mov	r0, r6
	ldr	r1, [r1]
	stmib	r5, {r2, r3}
	str	r4, [r5, #20]
	str	r4, [r5, #16]
	str	r1, [r5, #24]
	str	r4, [r5, #12]
	str	r7, [r5]
	bl	bt819_init
	cmp	r0, #0
	movge	r0, r4
	bge	.L1
	ldr	r3, .L17+16
	str	r0, [sp]
	ldr	r1, [r3]
	mov	r2, r6
	mov	r0, r7
	ldr	r3, .L17+44
	bl	v4l2_dbg
	mov	r0, r4
	b	.L1
.L6:
	ldr	r3, .L17+48
	ldr	r2, .L17+52
	ldr	r3, [r3]
	str	r3, [r5, #28]
	b	.L9
.L5:
	ldr	r3, .L17+56
	ldr	r2, .L17+60
	ldr	r3, [r3]
	str	r3, [r5, #28]
	b	.L9
.L18:
	.align	2
.L17:
	.word	I2C_FUNC_SMBUS_BYTE_DATA
	.word	ENODEV
	.word	GFP_KERNEL
	.word	bt819_ops
	.word	debug
	.word	.LC3
	.word	ENOMEM
	.word	V4L2_IDENT_BT815A
	.word	.LC2
	.word	.LC4
	.word	V4L2_STD_NTSC
	.word	.LC5
	.word	V4L2_IDENT_BT819A
	.word	.LC0
	.word	V4L2_IDENT_BT817A
	.word	.LC1
	.size	bt819_probe, .-bt819_probe
	.comm	debug,4,4
	.comm	bt819_ops,4,4
	.comm	V4L2_STD_NTSC,4,4
	.comm	V4L2_IDENT_BT819A,4,4
	.comm	V4L2_IDENT_BT817A,4,4
	.comm	V4L2_IDENT_BT815A,4,4
	.comm	I2C_FUNC_SMBUS_BYTE_DATA,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
