	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	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:
	movq	_DME1737_REG_COMPANY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	%rax, %r12
	movq	_DME1737_REG_VERSTEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	_DME1737_COMPANY_SMSC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_SCH5027_VERSTEP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rdx, %r12
	jne	LBB0_5
## %bb.3:
	cmpq	%rcx, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %r12
	jmp	LBB0_8
LBB0_5:
	cmpq	%rdx, %r12
	jne	LBB0_1
## %bb.6:
	movq	_DME1737_VERSTEP_MASK@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	andq	%rax, %rdx
	movq	_DME1737_VERSTEP@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_1
## %bb.7:
	leaq	L_.str.1(%rip), %r12
LBB0_8:
	cmpq	%rcx, %rax
	leaq	L_.str.3(%rip), %rcx
	leaq	L_.str.4(%rip), %rdx
	cmoveq	%rcx, %rdx
	movl	(%rbx), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%rax, %r8
	callq	_dev_info
	movl	(%r14), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_strlcpy
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	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	_SCH5027_VERSTEP,8,3            ## @SCH5027_VERSTEP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sch5027"

	.comm	_DME1737_VERSTEP_MASK,8,3       ## @DME1737_VERSTEP_MASK
	.comm	_DME1737_VERSTEP,8,3            ## @DME1737_VERSTEP
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, 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_5
; %bb.1:
Lloh3:
	adrp	x8, _DME1737_REG_COMPANY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DME1737_REG_COMPANY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
Lloh6:
	adrp	x8, _DME1737_REG_VERSTEP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DME1737_REG_VERSTEP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x4, x0
Lloh9:
	adrp	x8, _DME1737_COMPANY_SMSC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DME1737_COMPANY_SMSC@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x8]
Lloh12:
	adrp	x8, _SCH5027_VERSTEP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SCH5027_VERSTEP@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x22, x9
	ccmp	x0, x8, #0, eq
	b.eq	LBB0_6
; %bb.2:
	cmp	x22, x9
	b.ne	LBB0_5
; %bb.3:
Lloh15:
	adrp	x9, _DME1737_VERSTEP_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DME1737_VERSTEP_MASK@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	and	x9, x9, x4
Lloh18:
	adrp	x10, _DME1737_VERSTEP@GOTPAGE
Lloh19:
	ldr	x10, [x10, _DME1737_VERSTEP@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.4:
Lloh21:
	adrp	x22, l_.str.1@PAGE
Lloh22:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh23:
	adrp	x8, _ENODEV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
Lloh26:
	adrp	x22, l_.str@PAGE
Lloh27:
	add	x22, x22, l_.str@PAGEOFF
LBB0_7:
Lloh28:
	adrp	x9, l_.str.4@PAGE
Lloh29:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh30:
	adrp	x10, l_.str.3@PAGE
Lloh31:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	x4, x8
	csel	x2, x10, x9, eq
	ldr	w3, [x21]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	ldr	w0, [x19]
Lloh34:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_strlcpy
	mov	w0, #0
LBB0_8:
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.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	_SCH5027_VERSTEP,8,3            ; @SCH5027_VERSTEP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sch5027"

	.comm	_DME1737_VERSTEP_MASK,8,3       ; @DME1737_VERSTEP_MASK
	.comm	_DME1737_VERSTEP,8,3            ; @DME1737_VERSTEP
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
