	.file	"extr_init.c_SiS_SearchModeID.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	SiS_SearchModeID
	.type	SiS_SearchModeID, @function
SiS_SearchModeID:
.LFB0:
	.cfi_startproc
	endbr64
	movzx	eax, WORD PTR [rsi]
	cmp	ax, 19
	ja	.L2
	movzx	r10d, BYTE PTR [rdi]
	cmp	ax, 5
	ja	.L3
	or	eax, 1
	mov	WORD PTR [rsi], ax
.L3:
	mov	r9, QWORD PTR 16[rdi]
	xor	ecx, ecx
	mov	WORD PTR [rdx], cx
	movzx	edi, WORD PTR [rsi]
	movzx	ecx, WORD PTR [r9]
	cmp	cx, di
	je	.L13
	mov	eax, 1
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L29:
	movzx	ecx, ax
	mov	WORD PTR [rdx], ax
	movzx	edi, WORD PTR [rsi]
	lea	r8d, 1[rax]
	movzx	ecx, WORD PTR [r9+rcx*2]
	cmp	cx, di
	je	.L4
	mov	eax, r8d
.L6:
	cmp	cx, 255
	jne	.L29
.L5:
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, QWORD PTR 8[rdi]
	xor	eax, eax
	mov	WORD PTR [rdx], ax
	movzx	ecx, WORD PTR [rdi]
	cmp	WORD PTR [rsi], cx
	je	.L27
	mov	eax, 1
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L30:
	movzx	ecx, ax
	mov	WORD PTR [rdx], ax
	add	eax, 1
	movzx	ecx, WORD PTR [rdi+rcx*2]
	cmp	cx, WORD PTR [rsi]
	je	.L27
.L12:
	cmp	cx, 255
	jne	.L30
	jmp	.L5
.L13:
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	di, 7
	jne	.L7
	test	r10b, 16
	je	.L7
	add	eax, 1
	mov	WORD PTR [rdx], ax
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	WORD PTR [rsi], 3
	ja	.L27
	test	r10b, r10b
	js	.L10
	add	WORD PTR [rdx], 1
.L10:
	and	r10d, 16
	je	.L27
	add	WORD PTR [rdx], 1
.L27:
	mov	eax, 1
	ret
	.cfi_endproc
.LFE0:
	.size	SiS_SearchModeID, .-SiS_SearchModeID
	.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_init.c_SiS_SearchModeID.c"
	.text
	.align	2
	.global	SiS_SearchModeID
	.syntax unified
	.arm
	.fpu softvfp
	.type	SiS_SearchModeID, %function
SiS_SearchModeID:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldrh	r3, [r1]
	push	{r4, r5, lr}
	cmp	r3, #19
	bhi	.L2
	cmp	r3, #5
	orrls	r3, r3, #1
	ldrb	r5, [r0]	@ zero_extendqisi2
	strhls	r3, [r1]	@ movhi
	mov	r3, #0
	ldr	r4, [r0, #8]
	strh	r3, [r2]	@ movhi
	ldrh	ip, [r4]
	ldrh	lr, [r1]
	cmp	ip, lr
	beq	.L13
	mov	r0, #1
	b	.L6
.L29:
	strh	r0, [r2]	@ movhi
	ldrh	ip, [r4, lr]
	ldrh	lr, [r1]
	lsr	r3, r3, #16
	cmp	ip, lr
	beq	.L4
	mov	r0, r3
.L6:
	add	r3, r0, #1
	cmp	ip, #255
	lsl	lr, r0, #1
	lsl	r3, r3, #16
	bne	.L29
.L5:
	mov	r0, #0
	pop	{r4, r5, pc}
.L2:
	mov	r3, #0
	ldr	r4, [r0, #4]
	strh	r3, [r2]	@ movhi
	ldrh	r0, [r4]
	ldrh	r3, [r1]
	cmp	r3, r0
	beq	.L11
	mov	r3, #1
	b	.L12
.L30:
	strh	r3, [r2]	@ movhi
	ldrh	r0, [r4, lr]
	ldrh	lr, [r1]
	lsl	r3, ip, #16
	cmp	lr, r0
	lsr	r3, r3, #16
	beq	.L11
.L12:
	cmp	r0, #255
	lsl	lr, r3, #1
	add	ip, r3, #1
	bne	.L30
	b	.L5
.L13:
	mov	r0, r3
.L4:
	cmp	lr, #7
	bne	.L7
	tst	r5, #16
	beq	.L11
	add	r0, r0, #1
	strh	r0, [r2]	@ movhi
	ldrh	lr, [r1]
.L7:
	cmp	lr, #3
	bls	.L8
.L11:
	mov	r0, #1
	pop	{r4, r5, pc}
.L8:
	tst	r5, #128
	ldrheq	r3, [r2]
	addeq	r3, r3, #1
	strheq	r3, [r2]	@ movhi
	tst	r5, #16
	beq	.L11
	mov	r0, #1
	ldrh	r3, [r2]
	add	r3, r3, r0
	strh	r3, [r2]	@ movhi
	pop	{r4, r5, pc}
	.size	SiS_SearchModeID, .-SiS_SearchModeID
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
