	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stts751_read_chip_config
_stts751_read_chip_config:              ## @stts751_read_chip_config
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	32(%rdi), %edi
	movq	_STTS751_REG_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	movl	%ebx, (%r14)
	movq	_STTS751_CONF_RES_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	movq	_STTS751_CONF_RES_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %eax
	movl	%eax, 4(%r14)
	movl	32(%r14), %edi
	movq	_STTS751_REG_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:
	movq	_stts751_intervals@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jge	LBB0_3
## %bb.4:
	movl	%ebx, 8(%r14)
	leaq	24(%r14), %rsi
	movq	_STTS751_REG_HLIM_H@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_STTS751_REG_HLIM_L@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_stts751_read_reg16
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	leaq	20(%r14), %rsi
	movq	_STTS751_REG_LLIM_H@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_STTS751_REG_LLIM_L@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_stts751_read_reg16
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	leaq	12(%r14), %rsi
	movq	_STTS751_REG_TLIM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_stts751_read_reg8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	_STTS751_REG_HYST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %rsi
	movq	%r14, %rdi
	callq	_stts751_read_reg8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	12(%r14), %eax
	subl	-20(%rbp), %eax
	movl	%eax, 16(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_3:
	movl	28(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STTS751_REG_CONF,4,2           ## @STTS751_REG_CONF
	.comm	_STTS751_CONF_RES_MASK,4,2      ## @STTS751_CONF_RES_MASK
	.comm	_STTS751_CONF_RES_SHIFT,4,2     ## @STTS751_CONF_RES_SHIFT
	.comm	_STTS751_REG_RATE,4,2           ## @STTS751_REG_RATE
	.comm	_stts751_intervals,4,2          ## @stts751_intervals
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unrecognized conversion rate 0x%x\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_STTS751_REG_HLIM_H,4,2         ## @STTS751_REG_HLIM_H
	.comm	_STTS751_REG_HLIM_L,4,2         ## @STTS751_REG_HLIM_L
	.comm	_STTS751_REG_LLIM_H,4,2         ## @STTS751_REG_LLIM_H
	.comm	_STTS751_REG_LLIM_L,4,2         ## @STTS751_REG_LLIM_L
	.comm	_STTS751_REG_TLIM,4,2           ## @STTS751_REG_TLIM
	.comm	_STTS751_REG_HYST,4,2           ## @STTS751_REG_HYST
	.no_dead_strip	_stts751_read_chip_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stts751_read_chip_config
_stts751_read_chip_config:              ; @stts751_read_chip_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x0, #32]
Lloh0:
	adrp	x8, _STTS751_REG_CONF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STTS751_REG_CONF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_9
; %bb.1:
Lloh3:
	adrp	x8, _STTS751_CONF_RES_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STTS751_CONF_RES_MASK@GOTPAGEOFF]
	str	w20, [x19]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh6:
	adrp	x9, _STTS751_CONF_RES_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _STTS751_CONF_RES_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	str	w8, [x19, #4]
	ldr	w0, [x19, #32]
Lloh9:
	adrp	x8, _STTS751_REG_RATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STTS751_REG_RATE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_9
; %bb.2:
Lloh12:
	adrp	x8, _stts751_intervals@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stts751_intervals@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_ARRAY_SIZE
	cmp	w20, w0
	b.ge	LBB0_8
; %bb.3:
	str	w20, [x19, #8]
	add	x1, x19, #24
Lloh15:
	adrp	x8, _STTS751_REG_HLIM_H@GOTPAGE
Lloh16:
	ldr	x8, [x8, _STTS751_REG_HLIM_H@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _STTS751_REG_HLIM_L@GOTPAGE
Lloh19:
	ldr	x8, [x8, _STTS751_REG_HLIM_L@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_stts751_read_reg16
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.4:
	add	x1, x19, #20
Lloh21:
	adrp	x8, _STTS751_REG_LLIM_H@GOTPAGE
Lloh22:
	ldr	x8, [x8, _STTS751_REG_LLIM_H@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x8, _STTS751_REG_LLIM_L@GOTPAGE
Lloh25:
	ldr	x8, [x8, _STTS751_REG_LLIM_L@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_stts751_read_reg16
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.5:
	add	x1, x19, #12
Lloh27:
	adrp	x8, _STTS751_REG_TLIM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _STTS751_REG_TLIM@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_stts751_read_reg8
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.6:
Lloh30:
	adrp	x8, _STTS751_REG_HYST@GOTPAGE
Lloh31:
	ldr	x8, [x8, _STTS751_REG_HYST@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x19
	bl	_stts751_read_reg8
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.7:
	ldr	w8, [x19, #12]
	ldr	w9, [sp, #12]
	sub	w8, w8, w9
	str	w8, [x19, #16]
	b	LBB0_9
LBB0_8:
	ldr	w0, [x19, #28]
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
Lloh35:
	adrp	x8, _ENODEV@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_STTS751_REG_CONF,4,2           ; @STTS751_REG_CONF
	.comm	_STTS751_CONF_RES_MASK,4,2      ; @STTS751_CONF_RES_MASK
	.comm	_STTS751_CONF_RES_SHIFT,4,2     ; @STTS751_CONF_RES_SHIFT
	.comm	_STTS751_REG_RATE,4,2           ; @STTS751_REG_RATE
	.comm	_stts751_intervals,4,2          ; @stts751_intervals
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unrecognized conversion rate 0x%x\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_STTS751_REG_HLIM_H,4,2         ; @STTS751_REG_HLIM_H
	.comm	_STTS751_REG_HLIM_L,4,2         ; @STTS751_REG_HLIM_L
	.comm	_STTS751_REG_LLIM_H,4,2         ; @STTS751_REG_LLIM_H
	.comm	_STTS751_REG_LLIM_L,4,2         ; @STTS751_REG_LLIM_L
	.comm	_STTS751_REG_TLIM,4,2           ; @STTS751_REG_TLIM
	.comm	_STTS751_REG_HYST,4,2           ; @STTS751_REG_HYST
	.no_dead_strip	_stts751_read_chip_config
.subsections_via_symbols
