	.file	"extr_max6642.c_max6642_detect.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"max6642"
	.text
	.p2align 4
	.type	max6642_detect, @function
max6642_detect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR I2C_FUNC_SMBUS_BYTE_DATA[rip]
	mov	rdi, QWORD PTR [rdi]
	call	i2c_check_functionality@PLT
	test	eax, eax
	jne	.L2
.L12:
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR MAX6642_REG_R_MAN_ID[rip]
	mov	rdi, rbp
	call	i2c_smbus_read_byte_data@PLT
	cmp	eax, 77
	jne	.L12
	mov	esi, 4
	mov	rdi, rbp
	call	i2c_smbus_read_byte_data@PLT
	cmp	eax, 77
	jne	.L12
	mov	esi, 6
	mov	rdi, rbp
	call	i2c_smbus_read_byte_data@PLT
	cmp	eax, 77
	jne	.L12
	mov	esi, 255
	mov	rdi, rbp
	call	i2c_smbus_read_byte_data@PLT
	cmp	eax, 77
	jne	.L12
	mov	esi, DWORD PTR MAX6642_REG_R_CONFIG[rip]
	mov	rdi, rbp
	call	i2c_smbus_read_byte_data@PLT
	mov	r12d, eax
	test	al, 15
	jne	.L12
	mov	esi, 4
	mov	rdi, rbp
	call	i2c_smbus_read_byte_data@PLT
	mov	r13d, eax
	cmp	eax, r12d
	jne	.L12
	mov	esi, 6
	mov	rdi, rbp
	call	i2c_smbus_read_byte_data@PLT
	mov	r12d, eax
	cmp	eax, r13d
	jne	.L12
	mov	esi, 255
	mov	rdi, rbp
	call	i2c_smbus_read_byte_data@PLT
	cmp	eax, r12d
	jne	.L12
	mov	esi, DWORD PTR MAX6642_REG_R_STATUS[rip]
	mov	rdi, rbp
	call	i2c_smbus_read_byte_data@PLT
	and	eax, 43
	mov	r12d, eax
	jne	.L12
	mov	edx, DWORD PTR I2C_NAME_SIZE[rip]
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	call	strlcpy@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	max6642_detect, .-max6642_detect
	.comm	MAX6642_REG_R_STATUS,4,4
	.comm	MAX6642_REG_R_MAN_ID,4,4
	.comm	MAX6642_REG_R_CONFIG,4,4
	.comm	I2C_NAME_SIZE,4,4
	.comm	I2C_FUNC_SMBUS_BYTE_DATA,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_max6642.c_max6642_detect.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"max6642\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	max6642_detect, %function
max6642_detect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L14
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [r0]
	ldr	r1, [r2]
	bl	i2c_check_functionality
	cmp	r0, #0
	bne	.L2
.L12:
	ldr	r3, .L14+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L14+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	i2c_smbus_read_byte_data
	cmp	r0, #77
	bne	.L12
	mov	r1, #4
	mov	r0, r4
	bl	i2c_smbus_read_byte_data
	cmp	r0, #77
	bne	.L12
	mov	r1, #6
	mov	r0, r4
	bl	i2c_smbus_read_byte_data
	cmp	r0, #77
	bne	.L12
	mov	r1, #255
	mov	r0, r4
	bl	i2c_smbus_read_byte_data
	cmp	r0, #77
	bne	.L12
	ldr	r3, .L14+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	i2c_smbus_read_byte_data
	tst	r0, #15
	mov	r6, r0
	bne	.L12
	mov	r1, #4
	mov	r0, r4
	bl	i2c_smbus_read_byte_data
	cmp	r0, r6
	mov	r7, r0
	bne	.L12
	mov	r1, #6
	mov	r0, r4
	bl	i2c_smbus_read_byte_data
	cmp	r0, r7
	mov	r6, r0
	bne	.L12
	mov	r1, #255
	mov	r0, r4
	bl	i2c_smbus_read_byte_data
	cmp	r0, r6
	bne	.L12
	ldr	r3, .L14+16
	mov	r0, r4
	ldr	r1, [r3]
	bl	i2c_smbus_read_byte_data
	ands	r4, r0, #43
	bne	.L12
	ldr	r3, .L14+20
	ldr	r0, [r5]
	ldr	r2, [r3]
	ldr	r1, .L14+24
	bl	strlcpy
	b	.L1
.L15:
	.align	2
.L14:
	.word	I2C_FUNC_SMBUS_BYTE_DATA
	.word	ENODEV
	.word	MAX6642_REG_R_MAN_ID
	.word	MAX6642_REG_R_CONFIG
	.word	MAX6642_REG_R_STATUS
	.word	I2C_NAME_SIZE
	.word	.LC0
	.size	max6642_detect, .-max6642_detect
	.comm	MAX6642_REG_R_STATUS,4,4
	.comm	MAX6642_REG_R_MAN_ID,4,4
	.comm	MAX6642_REG_R_CONFIG,4,4
	.comm	I2C_NAME_SIZE,4,4
	.comm	I2C_FUNC_SMBUS_BYTE_DATA,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
