	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adt7x10_t_hyst_store
_adt7x10_t_hyst_store:                  ## @adt7x10_t_hyst_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rdi, %r12
	callq	_dev_get_drvdata
	movq	%rax, %r15
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	8(%r15), %rax
	movl	4(%rax), %esi
	movq	%r15, %rdi
	callq	_ADT7X10_REG_TO_TEMP
	movl	%eax, %ebx
	movq	-40(%rbp), %rdi
	movq	_ADT7X10_TEMP_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ADT7X10_TEMP_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_clamp_val
	movq	%rax, -40(%rbp)
	subl	%eax, %ebx
	movl	%ebx, %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_DIV_ROUND_CLOSEST
	movq	_ADT7X10_T_HYST_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_clamp_val
	movq	%rax, (%r15)
	movq	_ADT7X10_T_HYST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_adt7x10_write_byte
	testl	%eax, %eax
	cmovnel	%eax, %r14d
	movl	%r14d, %eax
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADT7X10_TEMP_MIN,4,2           ## @ADT7X10_TEMP_MIN
	.comm	_ADT7X10_TEMP_MAX,4,2           ## @ADT7X10_TEMP_MAX
	.comm	_ADT7X10_T_HYST_MASK,4,2        ## @ADT7X10_T_HYST_MASK
	.comm	_ADT7X10_T_HYST,4,2             ## @ADT7X10_T_HYST
	.no_dead_strip	_adt7x10_t_hyst_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adt7x10_t_hyst_store
_adt7x10_t_hyst_store:                  ; @adt7x10_t_hyst_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x20, x0
	bl	_dev_get_drvdata
	mov	x21, x0
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_kstrtol
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_ADT7X10_REG_TO_TEMP
	mov	x22, x0
	ldr	x0, [sp, #8]
Lloh0:
	adrp	x8, _ADT7X10_TEMP_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADT7X10_TEMP_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ADT7X10_TEMP_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADT7X10_TEMP_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_clamp_val
	str	x0, [sp, #8]
	sub	w0, w22, w0
	mov	w1, #1000
	bl	_DIV_ROUND_CLOSEST
Lloh6:
	adrp	x8, _ADT7X10_T_HYST_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADT7X10_T_HYST_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_clamp_val
	mov	x2, x0
	str	x0, [x21]
Lloh9:
	adrp	x8, _ADT7X10_T_HYST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ADT7X10_T_HYST@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_adt7x10_write_byte
	cmp	w0, #0
	csel	w0, w19, w0, eq
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ADT7X10_TEMP_MIN,4,2           ; @ADT7X10_TEMP_MIN
	.comm	_ADT7X10_TEMP_MAX,4,2           ; @ADT7X10_TEMP_MAX
	.comm	_ADT7X10_T_HYST_MASK,4,2        ; @ADT7X10_T_HYST_MASK
	.comm	_ADT7X10_T_HYST,4,2             ; @ADT7X10_T_HYST
	.no_dead_strip	_adt7x10_t_hyst_store
.subsections_via_symbols
