	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sht21_update_measurements
_sht21_update_measurements:             ## @sht21_update_measurements
	.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
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	24(%rax), %r15
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_jiffies@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rsi
	addq	8(%r12), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_1
LBB0_2:
	movq	_SHT21_TRIG_T_MEASUREMENT_HM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_word_swapped
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movl	%ebx, %edi
	callq	_sht21_temp_ticks_to_millicelsius
	movl	%eax, 20(%r12)
	movq	_SHT21_TRIG_RH_MEASUREMENT_HM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_word_swapped
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movl	%ebx, %edi
	callq	_sht21_rh_ticks_to_per_cent_mille
	movl	%eax, 16(%r12)
	movq	(%r13), %rax
	movq	%rax, 8(%r12)
	movl	$1, (%r12)
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
	cmpl	$0, (%r12)
	je	LBB0_2
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	sarl	$31, %eax
	andl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_SHT21_TRIG_T_MEASUREMENT_HM,4,2 ## @SHT21_TRIG_T_MEASUREMENT_HM
	.comm	_SHT21_TRIG_RH_MEASUREMENT_HM,4,2 ## @SHT21_TRIG_RH_MEASUREMENT_HM
	.no_dead_strip	_sht21_update_measurements
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sht21_update_measurements
_sht21_update_measurements:             ; @sht21_update_measurements
	.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
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	x21, [x0, #24]
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x23, _jiffies@GOTPAGE
Lloh1:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x0, [x23]
Lloh2:
	adrp	x8, _HZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
	ldr	x9, [x20, #8]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	add	x1, x9, w8, sxtw
	bl	_time_after
	cbz	x0, LBB0_4
LBB0_1:
Lloh5:
	adrp	x8, _SHT21_TRIG_T_MEASUREMENT_HM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SHT21_TRIG_T_MEASUREMENT_HM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_word_swapped
	mov	x22, x0
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	x0, x22
	bl	_sht21_temp_ticks_to_millicelsius
	str	w0, [x20, #20]
Lloh8:
	adrp	x8, _SHT21_TRIG_RH_MEASUREMENT_HM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SHT21_TRIG_RH_MEASUREMENT_HM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_word_swapped
	mov	x22, x0
	tbnz	w0, #31, LBB0_6
; %bb.3:
	mov	x0, x22
	bl	_sht21_rh_ticks_to_per_cent_mille
	str	w0, [x20, #16]
	ldr	x8, [x23]
	str	x8, [x20, #8]
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_6
LBB0_4:
	ldr	w8, [x20]
	cbz	w8, LBB0_1
; %bb.5:
	mov	w22, #0
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
	cmp	w22, #0
	csel	w0, w22, wzr, lt
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_SHT21_TRIG_T_MEASUREMENT_HM,4,2 ; @SHT21_TRIG_T_MEASUREMENT_HM
	.comm	_SHT21_TRIG_RH_MEASUREMENT_HM,4,2 ; @SHT21_TRIG_RH_MEASUREMENT_HM
	.no_dead_strip	_sht21_update_measurements
.subsections_via_symbols
