	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sht3x_update_client
_sht3x_update_client:                   ## @sht3x_update_client
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	40(%rbx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_mode_to_update_interval@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r12
	movq	_SHT3X_RESPONSE_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %r12
	movq	%r12, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	32(%rbx), %r9d
	movl	36(%rbx), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r15, %rcx
	movl	%r13d, %r8d
	callq	_sht3x_read_from_command
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r12d, %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
	jmp	LBB0_5
LBB0_2:
	movq	%r15, %rdi
	callq	_be16_to_cpup
	movl	%eax, %edi
	callq	_sht3x_extract_temperature
	movl	%eax, 28(%rbx)
	addq	$3, %r15
	movq	%r15, %rdi
	callq	_be16_to_cpup
	movl	%eax, %edi
	callq	_sht3x_extract_humidity
	movl	%eax, 24(%rbx)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
LBB0_3:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_mode_to_update_interval,8,3    ## @mode_to_update_interval
	.comm	_SHT3X_RESPONSE_LENGTH,4,2      ## @SHT3X_RESPONSE_LENGTH
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_sht3x_update_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sht3x_update_client
_sht3x_update_client:                   ; @sht3x_update_client
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_dev_get_drvdata
	mov	x19, x0
	ldr	x22, [x0, #40]
Lloh3:
	adrp	x8, _mode_to_update_interval@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mode_to_update_interval@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	w0, [x8, x9, lsl #2]
	bl	_msecs_to_jiffies
	mov	x24, x0
Lloh6:
	adrp	x8, _SHT3X_RESPONSE_LENGTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SHT3X_RESPONSE_LENGTH@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	mov	x9, x23
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	add	x20, x19, #8
	mov	x0, x20
	bl	_mutex_lock
Lloh11:
	adrp	x25, _jiffies@GOTPAGE
Lloh12:
	ldr	x25, [x25, _jiffies@GOTPAGEOFF]
	ldr	x0, [x25]
	ldr	x8, [x19, #16]
	add	x1, x8, x24
	bl	_time_after
	cbz	x0, LBB0_4
; %bb.1:
	ldp	w5, w2, [x19, #32]
	mov	x0, x22
	mov	x1, x19
	mov	x3, x21
	mov	x4, x23
	bl	_sht3x_read_from_command
	cbz	w0, LBB0_3
; %bb.2:
	mov	x22, x0
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x22
	bl	_ERR_PTR
	mov	x19, x0
	b	LBB0_5
LBB0_3:
	mov	x0, x21
	bl	_be16_to_cpup
	bl	_sht3x_extract_temperature
	str	w0, [x19, #28]
	add	x0, x21, #3
	bl	_be16_to_cpup
	bl	_sht3x_extract_humidity
	str	w0, [x19, #24]
	ldr	x8, [x25]
	str	x8, [x19, #16]
LBB0_4:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_5:
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_mode_to_update_interval,8,3    ; @mode_to_update_interval
	.comm	_SHT3X_RESPONSE_LENGTH,4,2      ; @SHT3X_RESPONSE_LENGTH
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_sht3x_update_client
.subsections_via_symbols
