	.file	"extr_saa7164-cards.c_saa7164_i2caddr_to_unitid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	saa7164_i2caddr_to_unitid
	.type	saa7164_i2caddr_to_unitid, @function
saa7164_i2caddr_to_unitid:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, DWORD PTR SAA7164_MAX_UNITS[rip]
	mov	rax, QWORD PTR 8[rdi]
	test	ecx, ecx
	jle	.L5
	mov	r8, QWORD PTR [rax]
	mov	rax, QWORD PTR saa7164_boards[rip]
	sub	ecx, 1
	lea	rcx, 3[rcx+rcx*2]
	mov	rdx, QWORD PTR SAA7164_UNIT_UNDEFINED[rip]
	mov	rax, QWORD PTR [rax+r8*8]
	lea	rcx, [rax+rcx*8]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	add	rax, 24
	cmp	rax, rcx
	je	.L5
.L4:
	cmp	QWORD PTR [rax], rdx
	je	.L3
	mov	r9, QWORD PTR 8[rax]
	cmp	QWORD PTR [rdi], r9
	jne	.L3
	cmp	DWORD PTR 16[rax], esi
	jne	.L3
	mov	eax, DWORD PTR 20[rax]
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, -1
	ret
	.cfi_endproc
.LFE0:
	.size	saa7164_i2caddr_to_unitid, .-saa7164_i2caddr_to_unitid
	.comm	saa7164_boards,8,8
	.comm	SAA7164_UNIT_UNDEFINED,8,8
	.comm	SAA7164_MAX_UNITS,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_saa7164-cards.c_saa7164_i2caddr_to_unitid.c"
	.text
	.align	2
	.global	saa7164_i2caddr_to_unitid
	.syntax unified
	.arm
	.fpu softvfp
	.type	saa7164_i2caddr_to_unitid, %function
saa7164_i2caddr_to_unitid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L9
	push	{r4, r5, lr}
	ldr	r4, [r3]
	ldr	r3, [r0, #4]
	cmp	r4, #0
	ble	.L5
	ldr	ip, .L9+4
	ldr	lr, [r3]
	ldr	r3, [ip]
	ldr	ip, .L9+8
	mov	r2, #0
	ldr	r3, [r3, lr, lsl #2]
	ldr	r5, [ip]
	b	.L4
.L3:
	cmp	r2, r4
	add	r3, r3, #16
	beq	.L5
.L4:
	ldr	ip, [r3]
	add	r2, r2, #1
	cmp	ip, r5
	beq	.L3
	ldr	lr, [r0]
	ldr	ip, [r3, #4]
	cmp	lr, ip
	bne	.L3
	ldr	ip, [r3, #8]
	cmp	ip, r1
	bne	.L3
	ldr	r0, [r3, #12]
	pop	{r4, r5, pc}
.L5:
	mvn	r0, #0
	pop	{r4, r5, pc}
.L10:
	.align	2
.L9:
	.word	SAA7164_MAX_UNITS
	.word	saa7164_boards
	.word	SAA7164_UNIT_UNDEFINED
	.size	saa7164_i2caddr_to_unitid, .-saa7164_i2caddr_to_unitid
	.comm	saa7164_boards,4,4
	.comm	SAA7164_UNIT_UNDEFINED,4,4
	.comm	SAA7164_MAX_UNITS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
