	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stts751_detect
_stts751_detect:                        ## @stts751_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_STTS751_REG_MAN_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	_ST_MAN_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.3:
	movq	_STTS751_REG_TEMP_L@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	testb	$15, %al
	jne	LBB0_1
## %bb.4:
	movq	_STTS751_REG_HLIM_L@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	testb	$15, %al
	jne	LBB0_1
## %bb.5:
	movq	_STTS751_REG_LLIM_L@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	testb	$15, %al
	jne	LBB0_1
## %bb.6:
	movq	_STTS751_REG_SMBUS_TO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	testb	$127, %al
	je	LBB0_7
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	_STTS751_REG_PROD_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	cmpl	$129, %eax
	je	LBB0_8
## %bb.9:
	cmpl	$128, %eax
	jne	LBB0_1
## %bb.10:
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str(%rip), %rdx
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_dbg
	movl	(%r14), %edi
	movq	_stts751_id@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_STTS751_REG_MAN_ID,4,2         ## @STTS751_REG_MAN_ID
	.comm	_ST_MAN_ID,4,2                  ## @ST_MAN_ID
	.comm	_STTS751_REG_TEMP_L,4,2         ## @STTS751_REG_TEMP_L
	.comm	_STTS751_REG_HLIM_L,4,2         ## @STTS751_REG_HLIM_L
	.comm	_STTS751_REG_LLIM_L,4,2         ## @STTS751_REG_LLIM_L
	.comm	_STTS751_REG_SMBUS_TO,4,2       ## @STTS751_REG_SMBUS_TO
	.comm	_STTS751_REG_PROD_ID,4,2        ## @STTS751_REG_PROD_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"STTS751-0"

L_.str.1:                               ## @.str.1
	.asciz	"STTS751-1"

L_.str.2:                               ## @.str.2
	.asciz	"Chip %s detected"

	.comm	_stts751_id,8,3                 ## @stts751_id
	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
	.no_dead_strip	_stts751_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stts751_detect
_stts751_detect:                        ; @stts751_detect
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [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]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _STTS751_REG_MAN_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STTS751_REG_MAN_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
Lloh6:
	adrp	x8, _ST_MAN_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ST_MAN_ID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.2:
Lloh9:
	adrp	x8, _STTS751_REG_TEMP_L@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STTS751_REG_TEMP_L@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	tst	w0, #0xf
	b.ne	LBB0_6
; %bb.3:
Lloh12:
	adrp	x8, _STTS751_REG_HLIM_L@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STTS751_REG_HLIM_L@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	tst	w0, #0xf
	b.ne	LBB0_6
; %bb.4:
Lloh15:
	adrp	x8, _STTS751_REG_LLIM_L@GOTPAGE
Lloh16:
	ldr	x8, [x8, _STTS751_REG_LLIM_L@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	tst	w0, #0xf
	b.ne	LBB0_6
; %bb.5:
Lloh18:
	adrp	x8, _STTS751_REG_SMBUS_TO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _STTS751_REG_SMBUS_TO@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	tst	w0, #0x7f
	b.eq	LBB0_8
LBB0_6:
Lloh21:
	adrp	x8, _ENODEV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh24:
	adrp	x8, _STTS751_REG_PROD_ID@GOTPAGE
Lloh25:
	ldr	x8, [x8, _STTS751_REG_PROD_ID@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	cmp	w0, #129
	b.eq	LBB0_11
; %bb.9:
	cmp	w0, #128
	b.ne	LBB0_6
; %bb.10:
Lloh27:
	adrp	x2, l_.str.1@PAGE
Lloh28:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh29:
	adrp	x2, l_.str@PAGE
Lloh30:
	add	x2, x2, l_.str@PAGEOFF
LBB0_12:
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
Lloh33:
	adrp	x8, _stts751_id@GOTPAGE
Lloh34:
	ldr	x8, [x8, _stts751_id@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh35:
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	bl	_strlcpy
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_STTS751_REG_MAN_ID,4,2         ; @STTS751_REG_MAN_ID
	.comm	_ST_MAN_ID,4,2                  ; @ST_MAN_ID
	.comm	_STTS751_REG_TEMP_L,4,2         ; @STTS751_REG_TEMP_L
	.comm	_STTS751_REG_HLIM_L,4,2         ; @STTS751_REG_HLIM_L
	.comm	_STTS751_REG_LLIM_L,4,2         ; @STTS751_REG_LLIM_L
	.comm	_STTS751_REG_SMBUS_TO,4,2       ; @STTS751_REG_SMBUS_TO
	.comm	_STTS751_REG_PROD_ID,4,2        ; @STTS751_REG_PROD_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"STTS751-0"

l_.str.1:                               ; @.str.1
	.asciz	"STTS751-1"

l_.str.2:                               ; @.str.2
	.asciz	"Chip %s detected"

	.comm	_stts751_id,8,3                 ; @stts751_id
	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
	.no_dead_strip	_stts751_detect
.subsections_via_symbols
