	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function limits_update
_limits_update:                         ## @limits_update
	.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	_SHT3X_RESPONSE_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_SHT3X_NUM_LIMIT_CMD@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	16(%r12), %rbx
	movq	_limit_commands@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rcx
	movl	%r15d, %r8d
	xorl	%r9d, %r9d
	callq	_sht3x_read_from_command
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r14
	movq	%r13, %rdi
	callq	_be16_to_cpup
	movl	%eax, %ebx
	shll	$7, %eax
	movzwl	%ax, %edi
	callq	_sht3x_extract_temperature
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	andl	$65024, %ebx                    ## imm = 0xFE00
	movl	%ebx, %edi
	callq	_sht3x_extract_humidity
	movq	(%r12), %rcx
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, -4(%rcx,%r15,4)
	movq	8(%r12), %rcx
	movl	%eax, -4(%rcx,%r15,4)
	movq	_SHT3X_NUM_LIMIT_CMD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jae	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_SHT3X_RESPONSE_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_limit_commands@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %edx
	movq	%r14, %rbx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rcx
	xorl	%r9d, %r9d
	callq	_sht3x_read_from_command
	incq	%r15
	testl	%eax, %eax
	je	LBB0_3
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SHT3X_RESPONSE_LENGTH,4,2      ## @SHT3X_RESPONSE_LENGTH
	.comm	_SHT3X_NUM_LIMIT_CMD,8,3        ## @SHT3X_NUM_LIMIT_CMD
	.comm	_limit_commands,8,3             ## @limit_commands
	.no_dead_strip	_limits_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function limits_update
_limits_update:                         ; @limits_update
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x24, _SHT3X_RESPONSE_LENGTH@GOTPAGE
Lloh4:
	ldr	x24, [x24, _SHT3X_RESPONSE_LENGTH@GOTPAGEOFF]
	ldr	w4, [x24]
	mov	x9, x4
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x4, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh7:
	adrp	x25, _SHT3X_NUM_LIMIT_CMD@GOTPAGE
Lloh8:
	ldr	x25, [x25, _SHT3X_NUM_LIMIT_CMD@GOTPAGEOFF]
	ldr	x8, [x25]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x21, [x19, #16]
Lloh9:
	adrp	x26, _limit_commands@GOTPAGE
Lloh10:
	ldr	x26, [x26, _limit_commands@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x19
	mov	x3, x20
                                        ; kill: def $w4 killed $w4 killed $x4
	mov	w5, #0
	bl	_sht3x_read_from_command
	cbnz	w0, LBB0_6
; %bb.2:
	mov	x27, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_be16_to_cpup
	mov	x22, x0
	ubfiz	w0, w0, #7, #9
	bl	_sht3x_extract_temperature
	mov	x23, x0
	and	w0, w22, #0xfe00
	bl	_sht3x_extract_humidity
	lsl	x8, x27, #2
	ldp	x9, x10, [x19]
	str	w23, [x9, x8]
	str	w0, [x10, x8]
	add	x22, x27, #1
	ldr	x8, [x25]
	cmp	x22, x8
	b.hs	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w4, [x24]
	ldr	x8, [x26]
	add	x8, x8, x27, lsl #2
	ldr	w2, [x8, #4]
	mov	x0, x21
	mov	x1, x19
	mov	x3, x20
	mov	w5, #0
	bl	_sht3x_read_from_command
	mov	x27, x22
	cbz	w0, LBB0_3
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldur	x8, [x29, #-88]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	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_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SHT3X_RESPONSE_LENGTH,4,2      ; @SHT3X_RESPONSE_LENGTH
	.comm	_SHT3X_NUM_LIMIT_CMD,8,3        ; @SHT3X_NUM_LIMIT_CMD
	.comm	_limit_commands,8,3             ; @limit_commands
	.no_dead_strip	_limits_update
.subsections_via_symbols
