	.file	"extr_chromeos_laptop.c_chromeos_laptop_check_adapter.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	chromeos_laptop_check_adapter, @function
chromeos_laptop_check_adapter:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR cros_laptop[rip]
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	jle	.L15
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rbx, r12
	sal	rbx, 5
	add	rbx, QWORD PTR 8[rax]
	cmp	QWORD PTR 16[rbx], 0
	jne	.L4
	mov	rdx, QWORD PTR [rbx]
	mov	rax, QWORD PTR i2c_adapter_names[rip]
	mov	edi, DWORD PTR [rax+rdx*4]
	call	strlen@PLT
	mov	rcx, QWORD PTR [rbx]
	mov	edi, DWORD PTR 4[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR i2c_adapter_names[rip]
	mov	esi, DWORD PTR [rax+rcx*4]
	call	strncmp@PLT
	mov	r8, rax
	mov	rax, QWORD PTR cros_laptop[rip]
	test	r8, r8
	jne	.L4
	mov	rsi, QWORD PTR 24[rbx]
	test	rsi, rsi
	je	.L7
	mov	edi, DWORD PTR 0[rbp]
	call	chromeos_laptop_match_adapter_devid@PLT
	mov	r8d, eax
	mov	rax, QWORD PTR cros_laptop[rip]
	test	r8d, r8d
	je	.L4
.L7:
	mov	edx, DWORD PTR 8[rbx]
	lea	rsi, 12[rbx]
	mov	rdi, rbp
	call	chromes_laptop_instantiate_i2c_device@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR cros_laptop[rip]
.L4:
	add	r12, 1
	cmp	DWORD PTR [rax], r12d
	jg	.L8
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.cfi_endproc
.LFE0:
	.size	chromeos_laptop_check_adapter, .-chromeos_laptop_check_adapter
	.comm	i2c_adapter_names,8,8
	.comm	cros_laptop,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_chromeos_laptop.c_chromeos_laptop_check_adapter.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	chromeos_laptop_check_adapter, %function
chromeos_laptop_check_adapter:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, .L15
	ldr	r3, [r7]
	ldr	r2, [r3]
	cmp	r2, #0
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r6, r0
	mov	r4, #0
	ldr	r8, .L15+4
.L8:
	ldr	r3, [r3, #4]
	add	r2, r4, r4, lsl #2
	add	r5, r3, r2, lsl #2
	ldr	r1, [r5, #12]
	cmp	r1, #0
	bne	.L4
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [r8]
	ldr	r10, [r6, #4]
	ldr	r9, [r3, r2, lsl #2]
	mov	r0, r9
	bl	strlen
	mov	r1, r9
	mov	r2, r0
	mov	r0, r10
	bl	strncmp
	cmp	r0, #0
	bne	.L4
	ldr	r1, [r5, #16]
	cmp	r1, #0
	beq	.L7
	ldr	r0, [r6]
	bl	chromeos_laptop_match_adapter_devid
	cmp	r0, #0
	beq	.L4
.L7:
	mov	r0, r6
	ldr	r2, [r5, #4]
	add	r1, r5, #8
	bl	chromes_laptop_instantiate_i2c_device
	str	r0, [r5, #12]
.L4:
	ldr	r3, [r7]
	add	r4, r4, #1
	ldr	r2, [r3]
	cmp	r2, r4
	bgt	.L8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	.align	2
.L15:
	.word	cros_laptop
	.word	i2c_adapter_names
	.size	chromeos_laptop_check_adapter, .-chromeos_laptop_check_adapter
	.comm	i2c_adapter_names,4,4
	.comm	cros_laptop,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
