	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stts751_update_temp
_stts751_update_temp:                   ## @stts751_update_temp
	.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	%rdi, %r14
	movq	8(%rdi), %rdi
	movq	_STTS751_REG_TEMP_H@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_STTS751_REG_TEMP_L@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r15d
	movq	8(%r14), %rdi
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movl	(%r12), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	cmpl	%r12d, %ebx
	je	LBB0_10
## %bb.8:
	movq	8(%r14), %rdi
	movl	(%r13), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_9
LBB0_10:
	shll	$8, %ebx
	orl	%r15d, %ebx
	movl	%ebx, %edi
	callq	_stts751_to_deg
	movl	%eax, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_dbg
	movl	%ebx, %r15d
	jmp	LBB0_11
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movl	%r15d, %edx
	callq	_dev_dbg
	jmp	LBB0_11
LBB0_6:
	movq	8(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_dbg
	movl	%r12d, %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	8(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_STTS751_REG_TEMP_H,4,2         ## @STTS751_REG_TEMP_H
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I2C read failed (temp H). ret: %x\n"

	.comm	_STTS751_REG_TEMP_L,4,2         ## @STTS751_REG_TEMP_L
L_.str.1:                               ## @.str.1
	.asciz	"I2C read failed (temp L). ret: %x\n"

L_.str.2:                               ## @.str.2
	.asciz	"I2C 2nd read failed (temp H). ret: %x\n"

L_.str.3:                               ## @.str.3
	.asciz	"I2C 2nd read failed (temp L). ret: %x\n"

	.no_dead_strip	_stts751_update_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stts751_update_temp
_stts751_update_temp:                   ; @stts751_update_temp
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x22, _STTS751_REG_TEMP_H@GOTPAGE
Lloh1:
	ldr	x22, [x22, _STTS751_REG_TEMP_H@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_i2c_smbus_read_byte_data
	mov	x21, x0
	ldr	x0, [x19, #8]
	tbnz	w21, #31, LBB0_6
; %bb.1:
Lloh2:
	adrp	x23, _STTS751_REG_TEMP_L@GOTPAGE
Lloh3:
	ldr	x23, [x23, _STTS751_REG_TEMP_L@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
	ldr	x0, [x19, #8]
	tbnz	w20, #31, LBB0_7
; %bb.2:
	ldr	w1, [x22]
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_9
; %bb.3:
	cmp	w21, w22
	b.eq	LBB0_5
; %bb.4:
	ldr	x0, [x19, #8]
	ldr	w1, [x23]
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_11
LBB0_5:
	orr	w0, w20, w21, lsl #8
	bl	_stts751_to_deg
	mov	w20, #0
	str	w0, [x19]
	b	LBB0_10
LBB0_6:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
	mov	x20, x21
	b	LBB0_10
LBB0_7:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	mov	x2, x20
	bl	_dev_dbg
	b	LBB0_10
LBB0_9:
	ldr	x0, [x19, #8]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	bl	_dev_dbg
	mov	x20, x22
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	x0, [x19, #8]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_STTS751_REG_TEMP_H,4,2         ; @STTS751_REG_TEMP_H
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I2C read failed (temp H). ret: %x\n"

	.comm	_STTS751_REG_TEMP_L,4,2         ; @STTS751_REG_TEMP_L
l_.str.1:                               ; @.str.1
	.asciz	"I2C read failed (temp L). ret: %x\n"

l_.str.2:                               ; @.str.2
	.asciz	"I2C 2nd read failed (temp H). ret: %x\n"

l_.str.3:                               ; @.str.3
	.asciz	"I2C 2nd read failed (temp L). ret: %x\n"

	.no_dead_strip	_stts751_update_temp
.subsections_via_symbols
