	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sht15_update_status
_sht15_update_status:                   ## @sht15_update_status
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	leaq	12(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r12), %rbx
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_1
LBB0_2:
	movq	_SHT15_READ_STATUS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_sht15_send_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.3:
	movq	%r12, %rdi
	callq	_sht15_read_byte
	movl	%eax, %r13d
	cmpq	$0, 32(%r12)
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_sht15_ack
	movq	%r12, %rdi
	callq	_sht15_read_byte
	movl	%eax, %edi
	callq	_bitrev8
	movl	%eax, %ebx
	movl	(%r15), %eax
	movl	%eax, -56(%rbp)
	movl	%r13d, -52(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	movl	$2, %edx
	callq	_sht15_crc8
	xorl	%ecx, %ecx
	cmpl	%ebx, %eax
	sete	%cl
	movl	%ecx, 4(%r12)
LBB0_5:
	movq	%r12, %rdi
	callq	_sht15_end_transmission
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	cmpq	$0, 32(%r12)
	je	LBB0_13
## %bb.7:
	cmpl	$0, 4(%r12)
	je	LBB0_8
LBB0_13:
	movl	%r13d, 8(%r12)
	movl	$1, (%r12)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_1:
	xorl	%ebx, %ebx
	cmpl	$0, (%r12)
	je	LBB0_2
LBB0_14:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	8(%r12), %r15d
	movq	%r12, %rdi
	callq	_sht15_soft_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.9:
	andl	$7, %r15d
	je	LBB0_12
## %bb.10:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_sht15_send_status
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	movl	24(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_14
LBB0_12:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HZ,4,2                         ## @HZ
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_SHT15_READ_STATUS,4,2          ## @SHT15_READ_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CRC validation failed, unable to restore device settings\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_sht15_update_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sht15_update_status
_sht15_update_status:                   ; @sht15_update_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x8, _HZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh5:
	ldrsw	x21, [x8]
	add	x19, x0, #12
	mov	x0, x19
	bl	_mutex_lock
Lloh6:
	adrp	x23, _jiffies@GOTPAGE
Lloh7:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x0, [x23]
	ldr	x8, [x20, #16]
	add	x1, x8, x21
	bl	_time_after
	cbz	x0, LBB0_8
LBB0_1:
Lloh8:
	adrp	x24, _SHT15_READ_STATUS@GOTPAGE
Lloh9:
	ldr	x24, [x24, _SHT15_READ_STATUS@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_sht15_send_cmd
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.2:
	mov	x0, x20
	bl	_sht15_read_byte
	mov	x22, x0
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_sht15_ack
	mov	x0, x20
	bl	_sht15_read_byte
	bl	_bitrev8
	mov	x21, x0
	ldr	w8, [x24]
	stp	w8, w22, [sp]
	mov	x1, sp
	mov	x0, x20
	mov	w2, #2
	bl	_sht15_crc8
	cmp	w0, w21
	cset	w8, eq
	str	w8, [x20, #4]
LBB0_4:
	mov	x0, x20
	bl	_sht15_end_transmission
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.5:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_12
LBB0_7:
	mov	w21, #0
	str	w22, [x20, #8]
	mov	w8, #1
	str	w8, [x20]
	ldr	x8, [x23]
	str	x8, [x20, #16]
	b	LBB0_10
LBB0_8:
	ldr	w8, [x20]
	cbz	w8, LBB0_1
; %bb.9:
	mov	w21, #0
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	ldr	x8, [sp, #8]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.11:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	ldr	w22, [x20, #8]
	mov	x0, x20
	bl	_sht15_soft_reset
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.13:
	and	w1, w22, #0x7
	cbz	w1, LBB0_16
; %bb.14:
	mov	x0, x20
	bl	_sht15_send_status
	cbz	w0, LBB0_16
; %bb.15:
	mov	x21, x0
	ldr	w0, [x20, #24]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_10
LBB0_16:
Lloh15:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_SHT15_READ_STATUS,4,2          ; @SHT15_READ_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CRC validation failed, unable to restore device settings\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_sht15_update_status
.subsections_via_symbols
