	.file	"extr_bbc_i2c.c_bbc_i2c_getdev.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bbc_i2c_getdev
	.type	bbc_i2c_getdev, @function
bbc_i2c_getdev:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR NUM_CHILDREN[rip]
	test	edx, edx
	jle	.L4
	mov	rax, QWORD PTR [rdi]
	sub	edx, 1
	mov	esi, esi
	lea	rcx, 8[rax+rdx*8]
	lea	rdx, [rax+rsi*8]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	cmp	rax, rdx
	je	.L1
	add	rax, 8
	cmp	rax, rcx
	je	.L4
.L3:
	mov	r8, QWORD PTR [rax]
	test	r8, r8
	jne	.L10
.L1:
	mov	rax, r8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
.L2:
	endbr64
	xor	r8d, r8d
	mov	rax, r8
	ret
	.cfi_endproc
.LFE0:
	.size	bbc_i2c_getdev, .-bbc_i2c_getdev
	.comm	NUM_CHILDREN,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_bbc_i2c.c_bbc_i2c_getdev.c"
	.text
	.align	2
	.global	bbc_i2c_getdev
	.syntax unified
	.arm
	.fpu softvfp
	.type	bbc_i2c_getdev, %function
bbc_i2c_getdev:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, .L10
	ldr	ip, [r3]
	cmp	ip, #0
	ble	.L4
	mov	r3, #0
	ldr	r2, [r0]
	sub	r2, r2, #4
.L3:
	ldr	r0, [r2, #4]!
	cmp	r0, #0
	bxeq	lr
	cmp	r3, r1
	add	r3, r3, #1
	bxeq	lr
	cmp	ip, r3
	bne	.L3
.L4:
.L2:
	mov	r0, #0
	bx	lr
.L11:
	.align	2
.L10:
	.word	NUM_CHILDREN
	.size	bbc_i2c_getdev, .-bbc_i2c_getdev
	.comm	NUM_CHILDREN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
