	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm85_detect
_lm85_detect:                           ## @lm85_detect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movl	(%rdi), %r13d
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_LM85_REG_COMPANY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_lm85_read_value
	movl	%eax, %r14d
	movq	_LM85_REG_VERSTEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_lm85_read_value
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_LM85_COMPANY_NATIONAL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_11
## %bb.3:
	leal	-128(%r12), %eax
	cmpl	$2, %eax
	jb	LBB0_8
## %bb.4:
	cmpl	$130, %r12d
	je	LBB0_5
## %bb.6:
	cmpl	$131, %r12d
	jne	LBB0_1
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_18
LBB0_11:
	movq	_LM85_COMPANY_ANALOG_DEV@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_14
## %bb.12:
	addl	$-138, %r12d
	cmpl	$5, %r12d
	jae	LBB0_1
## %bb.13:
	movslq	%r12d, %rax
	leaq	l_reltable.lm85_detect(%rip), %rcx
	jmp	LBB0_17
LBB0_14:
	movq	_LM85_COMPANY_SMSC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_1
## %bb.15:
	addl	$-132, %r12d
	cmpl	$6, %r12d
	jae	LBB0_1
## %bb.16:
	movslq	%r12d, %rax
	leaq	l_reltable.lm85_detect.13(%rip), %rcx
LBB0_17:
	movslq	(%rcx,%rax,4), %rsi
	addq	%rcx, %rsi
	jmp	LBB0_18
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_8:
	movq	%rbx, %rdi
	callq	_lm85_is_fake
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_18
LBB0_9:
	leaq	L_.str.4(%rip), %rsi
LBB0_18:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
	xorl	%ebx, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_LM85_REG_COMPANY,4,2           ## @LM85_REG_COMPANY
	.comm	_LM85_REG_VERSTEP,4,2           ## @LM85_REG_VERSTEP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Detecting device at 0x%02x with COMPANY: 0x%02x and VERSTEP: 0x%02x\n"

	.comm	_LM85_COMPANY_NATIONAL,4,2      ## @LM85_COMPANY_NATIONAL
L_.str.1:                               ## @.str.1
	.asciz	"lm85c"

L_.str.2:                               ## @.str.2
	.asciz	"lm85b"

L_.str.3:                               ## @.str.3
	.asciz	"Found Winbond WPCD377I, ignoring\n"

L_.str.4:                               ## @.str.4
	.asciz	"lm96000"

	.comm	_LM85_COMPANY_ANALOG_DEV,4,2    ## @LM85_COMPANY_ANALOG_DEV
L_.str.5:                               ## @.str.5
	.asciz	"adm1027"

L_.str.6:                               ## @.str.6
	.asciz	"adt7463"

L_.str.7:                               ## @.str.7
	.asciz	"adt7468"

	.comm	_LM85_COMPANY_SMSC,4,2          ## @LM85_COMPANY_SMSC
L_.str.8:                               ## @.str.8
	.asciz	"emc6d100"

L_.str.9:                               ## @.str.9
	.asciz	"emc6d102"

L_.str.10:                              ## @.str.10
	.asciz	"emc6d103"

L_.str.11:                              ## @.str.11
	.asciz	"emc6d103s"

	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
	.no_dead_strip	_lm85_detect
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.lm85_detect
l_reltable.lm85_detect:
	.long	L_.str.7-l_reltable.lm85_detect
	.long	L_.str.7-l_reltable.lm85_detect
	.long	L_.str.6-l_reltable.lm85_detect
	.long	L_.str.6-l_reltable.lm85_detect
	.long	L_.str.5-l_reltable.lm85_detect

	.p2align	2                               ## @reltable.lm85_detect.13
l_reltable.lm85_detect.13:
	.long	L_.str.10-l_reltable.lm85_detect.13
	.long	L_.str.10-l_reltable.lm85_detect.13
	.long	L_.str.11-l_reltable.lm85_detect.13
	.long	L_.str.9-l_reltable.lm85_detect.13
	.long	L_.str.8-l_reltable.lm85_detect.13
	.long	L_.str.8-l_reltable.lm85_detect.13

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm85_detect
_lm85_detect:                           ; @lm85_detect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
	ldr	w24, [x0]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_check_functionality
	cbz	w0, LBB0_15
; %bb.1:
Lloh3:
	adrp	x8, _LM85_REG_COMPANY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LM85_REG_COMPANY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_lm85_read_value
	mov	x23, x0
Lloh6:
	adrp	x8, _LM85_REG_VERSTEP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LM85_REG_VERSTEP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_lm85_read_value
	mov	x22, x0
	stp	x23, x22, [sp, #8]
	str	x24, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
Lloh11:
	adrp	x8, _LM85_COMPANY_NATIONAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LM85_COMPANY_NATIONAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_6
; %bb.2:
	sub	w8, w22, #128
	cmp	w8, #2
	b.lo	LBB0_13
; %bb.3:
	cmp	w22, #130
	b.eq	LBB0_16
; %bb.4:
	cmp	w22, #131
	b.ne	LBB0_15
; %bb.5:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_6:
Lloh16:
	adrp	x8, _LM85_COMPANY_ANALOG_DEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LM85_COMPANY_ANALOG_DEV@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_9
; %bb.7:
	sub	w8, w22, #138
	cmp	w8, #5
	b.hs	LBB0_15
; %bb.8:
Lloh19:
	adrp	x9, l_switch.table.lm85_detect@PAGE
Lloh20:
	add	x9, x9, l_switch.table.lm85_detect@PAGEOFF
	b	LBB0_12
LBB0_9:
Lloh21:
	adrp	x8, _LM85_COMPANY_SMSC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LM85_COMPANY_SMSC@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_15
; %bb.10:
	sub	w8, w22, #132
	cmp	w8, #6
	b.hs	LBB0_15
; %bb.11:
Lloh24:
	adrp	x9, l_switch.table.lm85_detect.12@PAGE
Lloh25:
	add	x9, x9, l_switch.table.lm85_detect.12@PAGEOFF
LBB0_12:
	ldr	x1, [x9, w8, sxtw #3]
	b	LBB0_18
LBB0_13:
	mov	x0, x21
	bl	_lm85_is_fake
	cbz	w0, LBB0_17
; %bb.14:
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
LBB0_15:
Lloh28:
	adrp	x8, _ENODEV@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_16:
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_17:
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_18:
	ldr	w0, [x19]
Lloh35:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	bl	_strlcpy
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_LM85_REG_COMPANY,4,2           ; @LM85_REG_COMPANY
	.comm	_LM85_REG_VERSTEP,4,2           ; @LM85_REG_VERSTEP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Detecting device at 0x%02x with COMPANY: 0x%02x and VERSTEP: 0x%02x\n"

	.comm	_LM85_COMPANY_NATIONAL,4,2      ; @LM85_COMPANY_NATIONAL
l_.str.1:                               ; @.str.1
	.asciz	"lm85c"

l_.str.2:                               ; @.str.2
	.asciz	"lm85b"

l_.str.3:                               ; @.str.3
	.asciz	"Found Winbond WPCD377I, ignoring\n"

l_.str.4:                               ; @.str.4
	.asciz	"lm96000"

	.comm	_LM85_COMPANY_ANALOG_DEV,4,2    ; @LM85_COMPANY_ANALOG_DEV
l_.str.5:                               ; @.str.5
	.asciz	"adm1027"

l_.str.6:                               ; @.str.6
	.asciz	"adt7463"

l_.str.7:                               ; @.str.7
	.asciz	"adt7468"

	.comm	_LM85_COMPANY_SMSC,4,2          ; @LM85_COMPANY_SMSC
l_.str.8:                               ; @.str.8
	.asciz	"emc6d100"

l_.str.9:                               ; @.str.9
	.asciz	"emc6d102"

l_.str.10:                              ; @.str.10
	.asciz	"emc6d103"

l_.str.11:                              ; @.str.11
	.asciz	"emc6d103s"

	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
	.no_dead_strip	_lm85_detect
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.lm85_detect
l_switch.table.lm85_detect:
	.quad	l_.str.7
	.quad	l_.str.7
	.quad	l_.str.6
	.quad	l_.str.6
	.quad	l_.str.5

	.p2align	3                               ; @switch.table.lm85_detect.12
l_switch.table.lm85_detect.12:
	.quad	l_.str.10
	.quad	l_.str.10
	.quad	l_.str.11
	.quad	l_.str.9
	.quad	l_.str.8
	.quad	l_.str.8

.subsections_via_symbols
