	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dme1737_i2c_detect
_dme1737_i2c_detect:                    ## @dme1737_i2c_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	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	8(%rdi), %r15
	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:
	xorl	%r12d, %r12d
	testl	%ebx, %ebx
	js	LBB0_4
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r8d, %r8d
LBB0_10:
	movq	_sch5027@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	movq	_dme1737@GOTPCREL(%rip), %rcx
	cmovnel	(%rcx), %ebx
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.1(%rip), %r14
	cmoveq	%rcx, %r14
	cmpl	%eax, %ebx
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rdx
	cmoveq	%rax, %rdx
	movl	(%r13), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_strlcpy
	jmp	LBB0_11
LBB0_4:
	movq	_DME1737_REG_COMPANY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	%rax, %rbx
	movq	_DME1737_REG_VERSTEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	%rax, %r8
	movq	_DME1737_COMPANY_SMSC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_1
## %bb.5:
	movq	_DME1737_VERSTEP_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	%r8, %rax
	movq	_DME1737_VERSTEP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_dme1737@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_SCH5027_VERSTEP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r8
	jne	LBB0_1
## %bb.8:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_sch5027@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_11:
	movl	%r12d, %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	_DME1737_REG_COMPANY,4,2        ## @DME1737_REG_COMPANY
	.comm	_DME1737_REG_VERSTEP,4,2        ## @DME1737_REG_VERSTEP
	.comm	_DME1737_COMPANY_SMSC,8,3       ## @DME1737_COMPANY_SMSC
	.comm	_DME1737_VERSTEP_MASK,8,3       ## @DME1737_VERSTEP_MASK
	.comm	_DME1737_VERSTEP,8,3            ## @DME1737_VERSTEP
	.comm	_dme1737,4,2                    ## @dme1737
	.comm	_SCH5027_VERSTEP,8,3            ## @SCH5027_VERSTEP
	.comm	_sch5027,4,2                    ## @sch5027
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sch5027"

L_.str.1:                               ## @.str.1
	.asciz	"dme1737"

L_.str.2:                               ## @.str.2
	.asciz	"Found a %s chip at 0x%02x (rev 0x%02x).\n"

L_.str.3:                               ## @.str.3
	.asciz	"SCH5027"

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

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dme1737_i2c_detect
_dme1737_i2c_detect:                    ; @dme1737_i2c_detect
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
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_10
; %bb.1:
	tbnz	w22, #31, LBB0_4
; %bb.2:
	mov	x4, #0
LBB0_3:
Lloh3:
	adrp	x8, _sch5027@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sch5027@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _dme1737@GOTPAGE
Lloh7:
	ldr	x9, [x9, _dme1737@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w22, w8
	csel	w9, w22, w9, eq
Lloh9:
	adrp	x10, l_.str.1@PAGE
Lloh10:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh11:
	adrp	x11, l_.str@PAGE
Lloh12:
	add	x11, x11, l_.str@PAGEOFF
Lloh13:
	adrp	x12, l_.str.4@PAGE
Lloh14:
	add	x12, x12, l_.str.4@PAGEOFF
	csel	x22, x11, x10, eq
Lloh15:
	adrp	x10, l_.str.3@PAGE
Lloh16:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	w9, w8
	csel	x2, x10, x12, eq
	ldr	w3, [x21]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	ldr	w0, [x19]
Lloh19:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_strlcpy
	mov	w0, #0
	b	LBB0_11
LBB0_4:
Lloh22:
	adrp	x8, _DME1737_REG_COMPANY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DME1737_REG_COMPANY@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
Lloh25:
	adrp	x8, _DME1737_REG_VERSTEP@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DME1737_REG_VERSTEP@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
Lloh28:
	adrp	x8, _DME1737_COMPANY_SMSC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DME1737_COMPANY_SMSC@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_10
; %bb.5:
	mov	x4, x0
Lloh31:
	adrp	x8, _DME1737_VERSTEP_MASK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _DME1737_VERSTEP_MASK@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	and	x8, x8, x0
Lloh34:
	adrp	x9, _DME1737_VERSTEP@GOTPAGE
Lloh35:
	ldr	x9, [x9, _DME1737_VERSTEP@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh37:
	adrp	x8, _dme1737@GOTPAGE
Lloh38:
	ldr	x8, [x8, _dme1737@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh39:
	adrp	x8, _SCH5027_VERSTEP@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SCH5027_VERSTEP@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	cmp	x4, x8
	b.ne	LBB0_10
; %bb.8:
Lloh42:
	adrp	x8, _sch5027@GOTPAGE
Lloh43:
	ldr	x8, [x8, _sch5027@GOTPAGEOFF]
LBB0_9:
	ldr	w22, [x8]
	b	LBB0_3
LBB0_10:
Lloh44:
	adrp	x8, _ENODEV@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_DME1737_REG_COMPANY,4,2        ; @DME1737_REG_COMPANY
	.comm	_DME1737_REG_VERSTEP,4,2        ; @DME1737_REG_VERSTEP
	.comm	_DME1737_COMPANY_SMSC,8,3       ; @DME1737_COMPANY_SMSC
	.comm	_DME1737_VERSTEP_MASK,8,3       ; @DME1737_VERSTEP_MASK
	.comm	_DME1737_VERSTEP,8,3            ; @DME1737_VERSTEP
	.comm	_dme1737,4,2                    ; @dme1737
	.comm	_SCH5027_VERSTEP,8,3            ; @SCH5027_VERSTEP
	.comm	_sch5027,4,2                    ; @sch5027
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sch5027"

l_.str.1:                               ; @.str.1
	.asciz	"dme1737"

l_.str.2:                               ; @.str.2
	.asciz	"Found a %s chip at 0x%02x (rev 0x%02x).\n"

l_.str.3:                               ; @.str.3
	.asciz	"SCH5027"

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

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