	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_interval_store
_update_interval_store:                 ## @update_interval_store
	.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	%rcx, %r13
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	24(%rax), %r12
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_kstrtou16
	testl	%eax, %eax
	jne	LBB0_16
## %bb.1:
	movl	-44(%rbp), %edi
	callq	_get_mode_from_update_interval
	movl	%eax, %r14d
	leaq	4(%r15), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	cmpl	(%r15), %r14d
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r13d, %eax
	jmp	LBB0_16
LBB0_3:
	movq	%r15, %rdi
	addq	$8, %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	cmpl	$0, (%r15)
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_4
## %bb.5:
	movq	_sht3x_cmd_break@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_SHT3X_CMD_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_i2c_master_send
	movl	%eax, %r13d
	movq	_SHT3X_CMD_LENGTH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_13
## %bb.6:
	movl	$0, (%r15)
	testl	%r14d, %r14d
	jg	LBB0_8
	jmp	LBB0_12
LBB0_4:
	xorl	%r13d, %r13d
	testl	%r14d, %r14d
	jle	LBB0_12
LBB0_8:
	leal	-1(%r14), %eax
	cmpq	$0, 16(%r15)
	jne	LBB0_9
## %bb.10:
	movq	_periodic_measure_commands_lpm@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_9:
	movq	_periodic_measure_commands_hpm@GOTPCREL(%rip), %rcx
LBB0_11:
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rsi
	movq	_SHT3X_CMD_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_i2c_master_send
	movl	%eax, %r13d
	movq	_SHT3X_CMD_LENGTH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_13
LBB0_12:
	movl	%r14d, (%r15)
	movq	%r15, %rdi
	callq	_sht3x_select_command
LBB0_13:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	_SHT3X_CMD_LENGTH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_14
## %bb.15:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	jmp	LBB0_16
LBB0_14:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	testl	%r13d, %r13d
	cmovsl	%r13d, %eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sht3x_cmd_break,8,3            ## @sht3x_cmd_break
	.comm	_SHT3X_CMD_LENGTH,4,2           ## @SHT3X_CMD_LENGTH
	.comm	_periodic_measure_commands_hpm,8,3 ## @periodic_measure_commands_hpm
	.comm	_periodic_measure_commands_lpm,8,3 ## @periodic_measure_commands_lpm
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_update_interval_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_interval_store
_update_interval_store:                 ; @update_interval_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x3
	mov	x21, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	x22, [x0, #24]
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #0
	bl	_kstrtou16
	cbnz	w0, LBB0_12
; %bb.1:
	ldr	w0, [sp, #12]
	bl	_get_mode_from_update_interval
	mov	x23, x0
	add	x21, x20, #4
	mov	x0, x21
	bl	_mutex_lock
	ldr	w8, [x20]
	cmp	w23, w8
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_10
LBB0_3:
	add	x24, x20, #8
	mov	x0, x24
	bl	_mutex_lock
	ldr	w8, [x20]
Lloh0:
	adrp	x26, _SHT3X_CMD_LENGTH@GOTPAGE
Lloh1:
	ldr	x26, [x26, _SHT3X_CMD_LENGTH@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
Lloh2:
	adrp	x8, _sht3x_cmd_break@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sht3x_cmd_break@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
	ldr	w2, [x26]
	mov	x0, x22
	bl	_i2c_master_send
	mov	x25, x0
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.5:
	str	wzr, [x20]
	subs	w8, w23, #1
	b.ge	LBB0_7
	b	LBB0_8
LBB0_6:
	mov	w25, #0
	subs	w8, w23, #1
	b.lt	LBB0_8
LBB0_7:
	ldr	x9, [x20, #16]
Lloh5:
	adrp	x10, _periodic_measure_commands_hpm@GOTPAGE
Lloh6:
	ldr	x10, [x10, _periodic_measure_commands_hpm@GOTPAGEOFF]
Lloh7:
	adrp	x11, _periodic_measure_commands_lpm@GOTPAGE
Lloh8:
	ldr	x11, [x11, _periodic_measure_commands_lpm@GOTPAGEOFF]
	cmp	x9, #0
	csel	x9, x11, x10, eq
	ldr	x9, [x9]
	ldr	x1, [x9, w8, uxtw #3]
	ldr	w2, [x26]
	mov	x0, x22
	bl	_i2c_master_send
	mov	x25, x0
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_9
LBB0_8:
	str	w23, [x20]
	mov	x0, x20
	bl	_sht3x_select_command
LBB0_9:
	mov	x0, x24
	bl	_mutex_unlock
	mov	x0, x21
	bl	_mutex_unlock
	ldr	w8, [x26]
	cmp	w25, w8
	b.ne	LBB0_11
LBB0_10:
	mov	x0, x19
	b	LBB0_12
LBB0_11:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w25, #0
	csneg	w0, w25, w8, lt
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_sht3x_cmd_break,8,3            ; @sht3x_cmd_break
	.comm	_SHT3X_CMD_LENGTH,4,2           ; @SHT3X_CMD_LENGTH
	.comm	_periodic_measure_commands_hpm,8,3 ; @periodic_measure_commands_hpm
	.comm	_periodic_measure_commands_lpm,8,3 ; @periodic_measure_commands_lpm
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_update_interval_store
.subsections_via_symbols
