	.file	"extr_stub_main.c_get_busid_idx.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_busid_idx, @function
get_busid_idx:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR MAX_BUSID[rip]
	test	eax, eax
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, QWORD PTR busid_table[rip]
	mov	rbp, rbx
	mov	r12d, ebx
	sal	rbp, 4
	add	rdi, rbp
	call	spin_lock@PLT
	mov	rdi, QWORD PTR busid_table[rip]
	add	rdi, rbp
	mov	r8, QWORD PTR 8[rdi]
	cmp	QWORD PTR [r8], 0
	je	.L4
	mov	edx, DWORD PTR BUSID_SIZE[rip]
	mov	rdi, r8
	mov	rsi, r13
	call	strncmp@PLT
	mov	rdi, QWORD PTR busid_table[rip]
	add	rdi, rbp
	test	eax, eax
	je	.L5
.L4:
	call	spin_unlock@PLT
	add	rbx, 1
	cmp	DWORD PTR MAX_BUSID[rip], ebx
	jg	.L2
.L6:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	r12d, -1
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L5:
	.cfi_restore_state
	call	spin_unlock@PLT
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	get_busid_idx, .-get_busid_idx
	.comm	busid_table,8,8
	.comm	MAX_BUSID,4,4
	.comm	BUSID_SIZE,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_stub_main.c_get_busid_idx.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_busid_idx, %function
get_busid_idx:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, .L13
	ldr	r3, [r7]
	cmp	r3, #0
	ble	.L2
	mov	r8, r0
	mov	r4, #0
	ldr	r6, .L13+4
	ldr	r9, .L13+8
.L5:
	ldr	r0, [r6]
	lsl	r5, r4, #3
	add	r0, r0, r4, lsl #3
	bl	spin_lock
	ldr	r3, [r6]
	add	r5, r3, r5
	ldr	r0, [r5, #4]
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L3
	mov	r1, r8
	ldr	r2, [r9]
	bl	strncmp
	cmp	r0, #0
	beq	.L12
.L3:
	mov	r0, r5
	bl	spin_unlock
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L5
.L2:
	mvn	r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	mov	r0, r5
	bl	spin_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	.align	2
.L13:
	.word	MAX_BUSID
	.word	busid_table
	.word	BUSID_SIZE
	.size	get_busid_idx, .-get_busid_idx
	.comm	busid_table,4,4
	.comm	MAX_BUSID,4,4
	.comm	BUSID_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
