	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_temp_crit_hyst
_store_temp_crit_hyst:                  ## @store_temp_crit_hyst
	.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
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movslq	(%rax), %r12
	movq	%r15, %rdi
	callq	_tmp401_update_device
	movq	%rax, %r14
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_strict_strtol
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subq	(%rax), %r13
	jmp	LBB0_6
LBB0_2:
	movq	_TMP401_CONFIG_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rdi
	testl	%eax, (%r14)
	je	LBB0_4
## %bb.3:
	movq	%r12, %rbx
	movl	$-64000, %esi                   ## imm = 0xFFFF0600
	movl	$191000, %edx                   ## imm = 0x2EA18
	jmp	LBB0_5
LBB0_4:
	movq	%r12, %rbx
	xorl	%esi, %esi
	movl	$127000, %edx                   ## imm = 0x1F018
LBB0_5:
	callq	_SENSORS_LIMIT
	movq	%rax, -48(%rbp)
	movq	%r14, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	16(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	movl	(%r14), %esi
	callq	_tmp401_crit_register_to_temp
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	leal	-255000(%rbx), %esi
	movl	%eax, %edx
	callq	_SENSORS_LIMIT
	movq	%rax, %rcx
	movslq	%ebx, %rax
	subq	%rcx, %rax
	addq	$500, %rax                      ## imm = 0x1F4
	movabsq	$2361183241434822607, %rdx      ## imm = 0x20C49BA5E353F7CF
	imulq	%rdx
	movq	%rdx, %rbx
	movq	%rcx, -48(%rbp)
	movq	%rdx, %rax
	shrq	$63, %rax
	shrq	$7, %rbx
	addl	%eax, %ebx
	movq	%r15, %rdi
	callq	_to_i2c_client
	movq	_TMP401_TEMP_CRIT_HYST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	%ebx, %edx
	callq	_i2c_smbus_write_byte_data
	movl	%ebx, 4(%r14)
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_6:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_TMP401_CONFIG_RANGE,4,2        ## @TMP401_CONFIG_RANGE
	.comm	_TMP401_TEMP_CRIT_HYST,4,2      ## @TMP401_TEMP_CRIT_HYST
	.no_dead_strip	_store_temp_crit_hyst
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_temp_crit_hyst
_store_temp_crit_hyst:                  ; @store_temp_crit_hyst
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x21, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	ldrsw	x23, [x0]
	mov	x0, x21
	bl	_tmp401_update_device
	mov	x20, x0
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_strict_strtol
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_6
LBB0_2:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _TMP401_CONFIG_RANGE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TMP401_CONFIG_RANGE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	x0, [sp, #8]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	w1, #-64000
	mov	w2, #59928
	movk	w2, #2, lsl #16
	b	LBB0_5
LBB0_4:
	mov	w1, #0
	mov	w2, #61464
	movk	w2, #1, lsl #16
LBB0_5:
	bl	_SENSORS_LIMIT
	str	x0, [sp, #8]
	add	x22, x20, #8
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [x20, #16]
	ldr	w0, [x8, x23, lsl #2]
	ldr	w1, [x20]
	bl	_tmp401_crit_register_to_temp
	mov	x23, x0
	ldr	x0, [sp, #8]
	sub	w8, w23, #62, lsl #12           ; =253952
	sub	w1, w8, #1048
	mov	x2, x23
	bl	_SENSORS_LIMIT
	str	x0, [sp, #8]
	sxtw	x8, w23
	sub	x8, x8, x0
	add	x8, x8, #500
	mov	x9, #63439
	movk	x9, #58195, lsl #16
	movk	x9, #39845, lsl #32
	movk	x9, #8388, lsl #48
	smulh	x8, x8, x9
	lsr	x9, x8, #63
	lsr	x8, x8, #7
	add	w23, w8, w9
	mov	x0, x21
	bl	_to_i2c_client
Lloh6:
	adrp	x8, _TMP401_TEMP_CRIT_HYST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TMP401_TEMP_CRIT_HYST@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x23
	bl	_i2c_smbus_write_byte_data
	str	w23, [x20, #4]
	mov	x0, x22
	bl	_mutex_unlock
LBB0_6:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_TMP401_CONFIG_RANGE,4,2        ; @TMP401_CONFIG_RANGE
	.comm	_TMP401_TEMP_CRIT_HYST,4,2      ; @TMP401_TEMP_CRIT_HYST
	.no_dead_strip	_store_temp_crit_hyst
.subsections_via_symbols
