	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function limit_store
_limit_store:                           ## @limit_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	$40, %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)
	movq	_SHT3X_CMD_LENGTH@GOTPCREL(%rip), %r13
	movq	_SHT3X_WORD_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	addl	(%r13), %r15d
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	_SHT3X_CRC8_LEN@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r14, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	24(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_limit_commands@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rax,%rbx,4), %esi
	movl	(%r13), %edx
	movq	%r12, %rdi
	callq	_memcpy
	movslq	(%r13), %r13
	leaq	(%r12,%r13), %rbx
	imull	$24543, -52(%rbp), %eax         ## 4-byte Folded Reload
                                        ## imm = 0x5FDF
	addl	$1104435000, %eax               ## imm = 0x41D45738
	sarl	$23, %eax
	imull	$42950, -56(%rbp), %edi         ## 4-byte Folded Reload
                                        ## imm = 0xA7C6
	shrl	$16, %edi
	andl	$65024, %edi                    ## imm = 0xFE00
	orl	%eax, %edi
	callq	_cpu_to_be16
	movl	%eax, (%r12,%r13)
	movq	_SHT3X_WORD_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	movq	_sht3x_crc8_table@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SHT3X_CRC8_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_crc8
	movb	%al, (%r13,%rbx)
	leaq	16(%r14), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_i2c_master_send
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movslq	%r12d, %rdx
	cmpq	%r15, %rdx
	jne	LBB0_1
## %bb.2:
	movq	(%r14), %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax,%rdx,4)
	movq	8(%r14), %rax
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax,%rdx,4)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	testl	%edx, %edx
	cmovsq	%rdx, %rax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SHT3X_CMD_LENGTH,4,2           ## @SHT3X_CMD_LENGTH
	.comm	_SHT3X_WORD_LEN,4,2             ## @SHT3X_WORD_LEN
	.comm	_SHT3X_CRC8_LEN,4,2             ## @SHT3X_CRC8_LEN
	.comm	_limit_commands,8,3             ## @limit_commands
	.comm	_sht3x_crc8_table,4,2           ## @sht3x_crc8_table
	.comm	_SHT3X_CRC8_INIT,4,2            ## @SHT3X_CRC8_INIT
	.comm	_EIO,8,3                        ## @EIO
	.no_dead_strip	_limit_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function limit_store
_limit_store:                           ; @limit_store
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x27, _SHT3X_CMD_LENGTH@GOTPAGE
Lloh4:
	ldr	x27, [x27, _SHT3X_CMD_LENGTH@GOTPAGEOFF]
	stur	x8, [x29, #-88]
	ldr	w8, [x27]
Lloh5:
	adrp	x28, _SHT3X_WORD_LEN@GOTPAGE
Lloh6:
	ldr	x28, [x28, _SHT3X_WORD_LEN@GOTPAGEOFF]
Lloh7:
	adrp	x9, _SHT3X_CRC8_LEN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SHT3X_CRC8_LEN@GOTPAGEOFF]
	ldr	w10, [x28]
Lloh9:
	ldr	w9, [x9]
	add	w8, w10, w8
	add	w23, w8, w9
	add	x8, x23, #15
	and	x8, x8, #0x1fffffff0
	mov	x9, x23
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x25, x9, x8
	mov	sp, x25
	bl	_dev_get_drvdata
	mov	x24, x0
	ldr	x26, [x0, #24]
Lloh12:
	adrp	x8, _limit_commands@GOTPAGE
Lloh13:
	ldr	x8, [x8, _limit_commands@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w1, [x8, x22, lsl #2]
	ldr	w2, [x27]
	mov	x0, x25
	bl	_memcpy
	ldrsw	x8, [x27]
	add	x27, x25, x8
	mov	w8, #24543
	mov	w9, #22328
	movk	w9, #16852, lsl #16
	madd	w8, w21, w8, w9
	mov	w9, #42950
	mul	w9, w20, w9
	lsr	w9, w9, #16
	and	w9, w9, #0xfe00
	orr	w0, w9, w8, asr #23
	bl	_cpu_to_be16
	str	w0, [x27]
	ldrsw	x28, [x28]
Lloh15:
	adrp	x8, _sht3x_crc8_table@GOTPAGE
Lloh16:
	ldr	x8, [x8, _sht3x_crc8_table@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _SHT3X_CRC8_INIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SHT3X_CRC8_INIT@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x1, x27
	mov	x2, x28
	bl	_crc8
	strb	w0, [x27, x28]
	add	x27, x24, #16
	mov	x0, x27
	bl	_mutex_lock
	mov	x0, x26
	mov	x1, x25
	mov	x2, x23
	bl	_i2c_master_send
	mov	x25, x0
	mov	x0, x27
	bl	_mutex_unlock
	sxtw	x8, w25
	cmp	x8, x23
	b.ne	LBB0_2
; %bb.1:
	lsl	x8, x22, #2
	ldp	x9, x10, [x24]
	str	w21, [x9, x8]
	str	w20, [x10, x8]
	b	LBB0_3
LBB0_2:
Lloh21:
	adrp	x9, _EIO@GOTPAGE
Lloh22:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	w8, #0
	csneg	x19, x8, x9, lt
LBB0_3:
	ldur	x8, [x29, #-88]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_SHT3X_CMD_LENGTH,4,2           ; @SHT3X_CMD_LENGTH
	.comm	_SHT3X_WORD_LEN,4,2             ; @SHT3X_WORD_LEN
	.comm	_SHT3X_CRC8_LEN,4,2             ; @SHT3X_CRC8_LEN
	.comm	_limit_commands,8,3             ; @limit_commands
	.comm	_sht3x_crc8_table,4,2           ; @sht3x_crc8_table
	.comm	_SHT3X_CRC8_INIT,4,2            ; @SHT3X_CRC8_INIT
	.comm	_EIO,8,3                        ; @EIO
	.no_dead_strip	_limit_store
.subsections_via_symbols
