	.file	"extr_fschmd.c_fschmd_detect.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"PEG"
.LC1:
	.string	"HER"
.LC2:
	.string	"SCY"
.LC3:
	.string	"HRC"
.LC4:
	.string	"HMD"
.LC5:
	.string	"HDS"
.LC6:
	.string	"SYL"
	.text
	.p2align 4
	.type	fschmd_detect, @function
fschmd_detect:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR I2C_FUNC_SMBUS_BYTE_DATA[rip]
	mov	rdi, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	i2c_check_functionality@PLT
	test	eax, eax
	jne	.L2
.L11:
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR FSCHMD_REG_IDENT_0[rip]
	mov	rdi, rbp
	call	i2c_smbus_read_byte_data@PLT
	mov	esi, DWORD PTR FSCHMD_REG_IDENT_1[rip]
	mov	rdi, rbp
	mov	BYTE PTR 4[rsp], al
	call	i2c_smbus_read_byte_data@PLT
	mov	esi, DWORD PTR FSCHMD_REG_IDENT_2[rip]
	mov	rdi, rbp
	mov	BYTE PTR 5[rsp], al
	call	i2c_smbus_read_byte_data@PLT
	mov	BYTE PTR 7[rsp], 0
	lea	rdx, 4[rsp]
	mov	ecx, 4
	mov	BYTE PTR 6[rsp], al
	lea	rdi, .LC0[rip]
	mov	rsi, rdx
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	jne	.L4
	mov	eax, DWORD PTR fscpos[rip]
.L5:
	mov	rdx, QWORD PTR fschmd_id[rip]
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR [rdx+rax*4]
	mov	edx, DWORD PTR I2C_NAME_SIZE[rip]
	call	strlcpy@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	ecx, 4
	lea	rdi, .LC1[rip]
	mov	rsi, rdx
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	je	.L16
	mov	ecx, 4
	lea	rdi, .LC2[rip]
	mov	rsi, rdx
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	jne	.L7
	mov	eax, DWORD PTR fscscy[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	mov	eax, DWORD PTR fscher[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ecx, 4
	lea	rdi, .LC3[rip]
	mov	rsi, rdx
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	je	.L17
	mov	ecx, 4
	lea	rdi, .LC4[rip]
	mov	rsi, rdx
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	jne	.L9
	mov	eax, DWORD PTR fschmd[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	mov	eax, DWORD PTR fschrc[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	ecx, 4
	lea	rdi, .LC5[rip]
	mov	rsi, rdx
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	jne	.L10
	mov	eax, DWORD PTR fschds[rip]
	jmp	.L5
.L10:
	mov	ecx, 4
	lea	rdi, .LC6[rip]
	mov	rsi, rdx
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	jne	.L11
	mov	eax, DWORD PTR fscsyl[rip]
	jmp	.L5
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fschmd_detect, .-fschmd_detect
	.comm	fscsyl,4,4
	.comm	fscscy,4,4
	.comm	fscpos,4,4
	.comm	fschrc,4,4
	.comm	fschmd_id,8,8
	.comm	fschmd,4,4
	.comm	fscher,4,4
	.comm	fschds,4,4
	.comm	I2C_NAME_SIZE,4,4
	.comm	I2C_FUNC_SMBUS_BYTE_DATA,4,4
	.comm	FSCHMD_REG_IDENT_2,4,4
	.comm	FSCHMD_REG_IDENT_1,4,4
	.comm	FSCHMD_REG_IDENT_0,4,4
	.comm	ENODEV,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_fschmd.c_fschmd_detect.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PEG\000"
	.align	2
.LC1:
	.ascii	"HER\000"
	.align	2
.LC2:
	.ascii	"SCY\000"
	.align	2
.LC3:
	.ascii	"HRC\000"
	.align	2
.LC4:
	.ascii	"HMD\000"
	.align	2
.LC5:
	.ascii	"HDS\000"
	.align	2
.LC6:
	.ascii	"SYL\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fschmd_detect, %function
fschmd_detect:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r2, .L18
	ldr	r3, .L18+4
	sub	sp, sp, #12
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [r0]
	ldr	r1, [r2]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	i2c_check_functionality
	cmp	r0, #0
	bne	.L2
.L11:
	ldr	r3, .L18+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L18+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L2:
	ldr	r3, .L18+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	i2c_smbus_read_byte_data
	mov	r3, r0
	ldr	r2, .L18+16
	mov	r0, r4
	ldr	r1, [r2]
	strb	r3, [sp]
	bl	i2c_smbus_read_byte_data
	mov	r3, r0
	ldr	r2, .L18+20
	mov	r0, r4
	ldr	r1, [r2]
	strb	r3, [sp, #1]
	bl	i2c_smbus_read_byte_data
	mov	r3, #0
	mov	r2, r0
	ldr	r1, .L18+24
	mov	r0, sp
	strb	r2, [sp, #2]
	strb	r3, [sp, #3]
	bl	strcmp
	cmp	r0, #0
	bne	.L4
	ldr	r3, .L18+28
	ldr	r1, [r3]
.L5:
	ldr	r2, .L18+32
	ldr	r3, .L18+36
	ldr	r2, [r2]
	ldr	r0, [r5]
	ldr	r1, [r2, r1, lsl #2]
	ldr	r2, [r3]
	bl	strlcpy
	mov	r0, #0
	b	.L1
.L4:
	mov	r0, sp
	ldr	r1, .L18+40
	bl	strcmp
	cmp	r0, #0
	beq	.L16
	mov	r0, sp
	ldr	r1, .L18+44
	bl	strcmp
	cmp	r0, #0
	bne	.L7
	ldr	r3, .L18+48
	ldr	r1, [r3]
	b	.L5
.L16:
	ldr	r3, .L18+52
	ldr	r1, [r3]
	b	.L5
.L7:
	mov	r0, sp
	ldr	r1, .L18+56
	bl	strcmp
	cmp	r0, #0
	beq	.L17
	mov	r0, sp
	ldr	r1, .L18+60
	bl	strcmp
	cmp	r0, #0
	bne	.L9
	ldr	r3, .L18+64
	ldr	r1, [r3]
	b	.L5
.L17:
	ldr	r3, .L18+68
	ldr	r1, [r3]
	b	.L5
.L9:
	mov	r0, sp
	ldr	r1, .L18+72
	bl	strcmp
	cmp	r0, #0
	ldreq	r3, .L18+76
	ldreq	r1, [r3]
	beq	.L5
.L10:
	mov	r0, sp
	ldr	r1, .L18+80
	bl	strcmp
	cmp	r0, #0
	bne	.L11
	ldr	r3, .L18+84
	ldr	r1, [r3]
	b	.L5
.L15:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	I2C_FUNC_SMBUS_BYTE_DATA
	.word	.LC7
	.word	ENODEV
	.word	FSCHMD_REG_IDENT_0
	.word	FSCHMD_REG_IDENT_1
	.word	FSCHMD_REG_IDENT_2
	.word	.LC0
	.word	fscpos
	.word	fschmd_id
	.word	I2C_NAME_SIZE
	.word	.LC1
	.word	.LC2
	.word	fscscy
	.word	fscher
	.word	.LC3
	.word	.LC4
	.word	fschmd
	.word	fschrc
	.word	.LC5
	.word	fschds
	.word	.LC6
	.word	fscsyl
	.size	fschmd_detect, .-fschmd_detect
	.comm	fscsyl,4,4
	.comm	fscscy,4,4
	.comm	fscpos,4,4
	.comm	fschrc,4,4
	.comm	fschmd_id,4,4
	.comm	fschmd,4,4
	.comm	fscher,4,4
	.comm	fschds,4,4
	.comm	I2C_NAME_SIZE,4,4
	.comm	I2C_FUNC_SMBUS_BYTE_DATA,4,4
	.comm	FSCHMD_REG_IDENT_2,4,4
	.comm	FSCHMD_REG_IDENT_1,4,4
	.comm	FSCHMD_REG_IDENT_0,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
