	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm1026_detect
_adm1026_detect:                        ## @adm1026_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	8(%rdi), %r13
	movl	(%rdi), %r14d
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_ADM1026_REG_COMPANY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_adm1026_read_value
	movl	%eax, %r15d
	movq	_ADM1026_REG_VERSTEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_adm1026_read_value
	movl	%eax, %r14d
	movq	8(%rbx), %rdi
	callq	_i2c_adapter_id
	movl	(%rbx), %ecx
	movl	%r14d, %ebx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	movl	%eax, %edx
	movl	%r15d, %r8d
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_dev_dbg
	testl	%r12d, %r12d
	jg	LBB0_12
## %bb.3:
	movq	%r13, %rdi
	callq	_i2c_adapter_id
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_ADM1026_COMPANY_ANALOG_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r15d
	jne	LBB0_5
## %bb.4:
	movq	_ADM1026_VERSTEP_ADM1026@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	je	LBB0_12
LBB0_5:
	cmpl	%eax, %r15d
	jne	LBB0_6
## %bb.9:
	movl	%ebx, %eax
	andl	$240, %eax
	movq	_ADM1026_VERSTEP_GENERIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_7
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_11
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_16:
	subl	(%rax), %r14d
	jmp	LBB0_17
LBB0_6:
	movq	_ADM1026_VERSTEP_GENERIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %eax
	andl	$240, %eax
LBB0_7:
	cmpl	%ecx, %eax
	jne	LBB0_13
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
LBB0_11:
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.6(%rip), %rsi
	callq	_strlcpy
LBB0_17:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	testl	%r12d, %r12d
	jne	LBB0_15
## %bb.14:
	movq	%r13, %rdi
	callq	_i2c_adapter_id
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
LBB0_15:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ADM1026_REG_COMPANY,4,2        ## @ADM1026_REG_COMPANY
	.comm	_ADM1026_REG_VERSTEP,4,2        ## @ADM1026_REG_VERSTEP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Detecting device at %d,0x%02x with COMPANY: 0x%02x and VERSTEP: 0x%02x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Autodetecting device at %d,0x%02x ...\n"

	.comm	_ADM1026_COMPANY_ANALOG_DEV,4,2 ## @ADM1026_COMPANY_ANALOG_DEV
	.comm	_ADM1026_VERSTEP_ADM1026,4,2    ## @ADM1026_VERSTEP_ADM1026
	.comm	_adm1026,4,2                    ## @adm1026
	.comm	_ADM1026_VERSTEP_GENERIC,4,2    ## @ADM1026_VERSTEP_GENERIC
L_.str.2:                               ## @.str.2
	.asciz	"Unrecognized stepping 0x%02x. Defaulting to ADM1026.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Found version/stepping 0x%02x. Assuming generic ADM1026.\n"

	.comm	_any_chip,4,2                   ## @any_chip
L_.str.4:                               ## @.str.4
	.asciz	"Autodetection failed\n"

L_.str.5:                               ## @.str.5
	.asciz	"Generic ADM1026 not found at %d,0x%02x.  Try force_adm1026.\n"

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

	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
	.no_dead_strip	_adm1026_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm1026_detect
_adm1026_detect:                        ; @adm1026_detect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x24, x0
	ldr	x19, [x0, #8]
	ldr	w25, [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, x19
	bl	_i2c_check_functionality
	cbz	w0, LBB0_13
; %bb.1:
Lloh3:
	adrp	x8, _ADM1026_REG_COMPANY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADM1026_REG_COMPANY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_adm1026_read_value
	mov	x23, x0
Lloh6:
	adrp	x8, _ADM1026_REG_VERSTEP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADM1026_REG_VERSTEP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_adm1026_read_value
	mov	x22, x0
	ldr	x0, [x24, #8]
	bl	_i2c_adapter_id
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x24]
	stp	x23, x22, [sp, #16]
	stp	x0, x8, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	cmp	w21, #0
	b.gt	LBB0_10
; %bb.2:
	mov	x0, x19
	bl	_i2c_adapter_id
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x25, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh13:
	adrp	x8, _ADM1026_COMPANY_ANALOG_DEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ADM1026_COMPANY_ANALOG_DEV@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _ADM1026_VERSTEP_ADM1026@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ADM1026_VERSTEP_ADM1026@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w23, w8
	ccmp	w22, w9, #0, eq
	b.eq	LBB0_10
; %bb.3:
	cmp	w23, w8
	b.ne	LBB0_6
; %bb.4:
	and	w8, w22, #0xf0
Lloh19:
	adrp	x9, _ADM1026_VERSTEP_GENERIC@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ADM1026_VERSTEP_GENERIC@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.5:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_6:
Lloh24:
	adrp	x8, _ADM1026_VERSTEP_GENERIC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ADM1026_VERSTEP_GENERIC@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x8]
	and	w8, w22, #0xf0
LBB0_7:
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.8:
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	mov	x0, x19
	mov	x2, x22
	bl	_dev_err
LBB0_10:
	ldr	w0, [x20]
Lloh29:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x1, l_.str.6@PAGE
Lloh33:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strlcpy
	mov	w0, #0
	b	LBB0_14
LBB0_11:
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	cbnz	w21, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_i2c_adapter_id
	mov	x2, x0
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	str	x25, [sp]
Lloh36:
	adrp	x1, l_.str.5@PAGE
Lloh37:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_13:
Lloh38:
	adrp	x8, _ENODEV@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ADM1026_REG_COMPANY,4,2        ; @ADM1026_REG_COMPANY
	.comm	_ADM1026_REG_VERSTEP,4,2        ; @ADM1026_REG_VERSTEP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Detecting device at %d,0x%02x with COMPANY: 0x%02x and VERSTEP: 0x%02x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Autodetecting device at %d,0x%02x ...\n"

	.comm	_ADM1026_COMPANY_ANALOG_DEV,4,2 ; @ADM1026_COMPANY_ANALOG_DEV
	.comm	_ADM1026_VERSTEP_ADM1026,4,2    ; @ADM1026_VERSTEP_ADM1026
	.comm	_adm1026,4,2                    ; @adm1026
	.comm	_ADM1026_VERSTEP_GENERIC,4,2    ; @ADM1026_VERSTEP_GENERIC
l_.str.2:                               ; @.str.2
	.asciz	"Unrecognized stepping 0x%02x. Defaulting to ADM1026.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Found version/stepping 0x%02x. Assuming generic ADM1026.\n"

	.comm	_any_chip,4,2                   ; @any_chip
l_.str.4:                               ; @.str.4
	.asciz	"Autodetection failed\n"

l_.str.5:                               ; @.str.5
	.asciz	"Generic ADM1026 not found at %d,0x%02x.  Try force_adm1026.\n"

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

	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
	.no_dead_strip	_adm1026_detect
.subsections_via_symbols
