	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_temp_max_hyst
_store_temp_max_hyst:                   ## @store_temp_max_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, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movslq	(%rax), %r13
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movabsq	$2361183241434822607, %rax      ## imm = 0x20C49BA5E353F7CF
	imulq	-48(%rbp)
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$7, %rdx
	addq	%rax, %rdx
	movq	%rdx, -48(%rbp)
	movq	%r12, %r15
	addq	$16, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	%r13d, %edi
	callq	_F71882FG_REG_TEMP_HIGH
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_f71882fg_read8
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%r13,4)
	movq	-48(%rbp), %rdi
	leal	-15(%rax), %esi
	movl	%eax, %edx
	callq	_clamp_val
	movq	(%r12), %rcx
	movslq	(%rcx,%r13,4), %rcx
	subq	%rax, %rcx
	movq	%rcx, -48(%rbp)
	movl	%r13d, %ebx
	shrl	$31, %ebx
	addl	%r13d, %ebx
	sarl	%ebx
	movl	%ebx, %edi
	callq	_F71882FG_REG_TEMP_HYST
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_f71882fg_read8
	testb	$1, %r13b
	jne	LBB0_2
## %bb.3:
	andl	$240, %eax
	orq	-48(%rbp), %rax
	movq	%rax, %r13
	jmp	LBB0_4
LBB0_2:
	andl	$15, %eax
	movq	-48(%rbp), %r13
	shlq	$4, %r13
	orq	%rax, %r13
LBB0_4:
	movl	%ebx, %edi
	callq	_F71882FG_REG_TEMP_HYST
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	callq	_f71882fg_write8
	movq	8(%r12), %rax
	movslq	%ebx, %rcx
	movl	%r13d, (%rax,%rcx,4)
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_store_temp_max_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_max_hyst
_store_temp_max_hyst:                   ; @store_temp_max_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	x21, x2
	mov	x22, x1
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x22
	bl	_to_sensor_dev_attr_2
	ldrsw	x22, [x0]
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtol
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x8, [sp, #8]
	mov	x9, #63439
	movk	x9, #58195, lsl #16
	movk	x9, #39845, lsl #32
	movk	x9, #8388, lsl #48
	smulh	x8, x8, x9
	asr	x9, x8, #7
	add	x8, x9, x8, lsr #63
	str	x8, [sp, #8]
	add	x21, x20, #16
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x22
	bl	_F71882FG_REG_TEMP_HIGH
	mov	x1, x0
	mov	x0, x20
	bl	_f71882fg_read8
	mov	x2, x0
	ldr	x8, [x20]
	lsl	x23, x22, #2
	str	w2, [x8, x23]
	ldr	x0, [sp, #8]
	sub	w1, w2, #15
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_clamp_val
	ldr	x8, [x20]
	ldrsw	x8, [x8, x23]
	sub	x8, x8, x0
	str	x8, [sp, #8]
	cmp	w22, #0
	cinc	w8, w22, lt
	asr	w23, w8, #1
	mov	x0, x23
	bl	_F71882FG_REG_TEMP_HYST
	mov	x1, x0
	mov	x0, x20
	bl	_f71882fg_read8
	mov	x24, x0
	tbnz	w22, #0, LBB0_3
; %bb.2:
	and	x8, x24, #0xf0
	ldr	x9, [sp, #8]
	orr	x24, x9, x8
	b	LBB0_4
LBB0_3:
	ldr	x8, [sp, #8]
	bfi	x24, x8, #4, #60
LBB0_4:
	mov	x0, x23
	bl	_F71882FG_REG_TEMP_HYST
	mov	x1, x0
	mov	x0, x20
	mov	x2, x24
	bl	_f71882fg_write8
	ldr	x8, [x20, #8]
	str	w24, [x8, w23, sxtw #2]
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_store_temp_max_hyst
.subsections_via_symbols
