	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hyst_store
_hyst_store:                            ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	%rbx, %r15
	addq	$16, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	-32(%rbp), %rdi
	movq	(%rbx), %rdx
	movl	$-64000, %esi                   ## imm = 0xFFFF0600
	callq	_clamp_val
	movq	%rax, -32(%rbp)
	movq	%rax, 8(%rbx)
	movq	24(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	callq	_dev_dbg
	movq	(%rbx), %rsi
	subq	-32(%rbp), %rsi
	movq	%rsi, -32(%rbp)
	movq	_STTS751_REG_HYST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_stts751_set_temp_reg8
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	cmovnel	%ebx, %r14d
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting hyst %ld"

	.comm	_STTS751_REG_HYST,4,2           ## @STTS751_REG_HYST
	.no_dead_strip	_hyst_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hyst_store
_hyst_store:                            ; @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	x21, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtol
	tbnz	x0, #63, LBB0_2
; %bb.1:
	add	x21, x20, #16
	mov	x0, x21
	bl	_mutex_lock
	ldr	x0, [sp, #8]
	ldr	x2, [x20]
	mov	w1, #-64000
	bl	_clamp_val
	mov	x2, x0
	str	x0, [sp, #8]
	str	x0, [x20, #8]
	ldr	x0, [x20, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x20]
	ldr	x9, [sp, #8]
	sub	x1, x8, x9
	str	x1, [sp, #8]
Lloh2:
	adrp	x8, _STTS751_REG_HYST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STTS751_REG_HYST@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_stts751_set_temp_reg8
	mov	x20, x0
	mov	x0, x21
	bl	_mutex_unlock
	cmp	w20, #0
	csel	w0, w19, w20, eq
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting hyst %ld"

	.comm	_STTS751_REG_HYST,4,2           ; @STTS751_REG_HYST
	.no_dead_strip	_hyst_store
.subsections_via_symbols
