	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_regs_in_max0
_store_regs_in_max0:                    ## @store_regs_in_max0
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movl	%eax, %r12d
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	testb	$1, (%rbx)
	je	LBB0_5
## %bb.1:
	movq	_w83627thf@GOTPCREL(%rip), %rcx
	movq	8(%rbx), %rax
	cmpq	%rax, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	_w83637hf@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_w83687thf@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_4
LBB0_5:
	movl	%r12d, %edi
	callq	_IN_TO_REG
	jmp	LBB0_6
LBB0_4:
	imull	$100, %r12d, %eax
	addl	$-69756, %eax                   ## imm = 0xFFFEEF84
	cltq
	imulq	$1126548799, %rax, %rdi         ## imm = 0x4325C53F
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$39, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%esi, %esi
	movl	$255, %edx
	callq	_SENSORS_LIMIT
LBB0_6:
	movq	24(%rbx), %rcx
	movl	%eax, (%rcx)
	xorl	%edi, %edi
	callq	_W83781D_REG_IN_MAX
	movq	24(%rbx), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_w83627hf_write_value
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_w83627thf,8,3                  ## @w83627thf
	.comm	_w83637hf,8,3                   ## @w83637hf
	.comm	_w83687thf,8,3                  ## @w83687thf
	.no_dead_strip	_store_regs_in_max0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_regs_in_max0
_store_regs_in_max0:                    ; @store_regs_in_max0
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x0, x21
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	mov	x22, x0
	add	x21, x20, #16
	mov	x0, x21
	bl	_mutex_lock
	ldrb	w8, [x20]
	tbz	w8, #0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _w83627thf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _w83627thf@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
Lloh3:
	adrp	x10, _w83637hf@GOTPAGE
Lloh4:
	ldr	x10, [x10, _w83637hf@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _w83687thf@GOTPAGE
Lloh7:
	ldr	x11, [x11, _w83687thf@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x10, x9, #4, ne
	ccmp	x11, x9, #4, ne
	b.ne	LBB0_3
; %bb.2:
	mov	w8, #100
	mov	w9, #61316
	movk	w9, #65534, lsl #16
	madd	w8, w22, w8, w9
	mov	w9, #50495
	movk	w9, #17189, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #39
	add	w0, w8, w9
	mov	w1, #0
	mov	w2, #255
	bl	_SENSORS_LIMIT
	b	LBB0_4
LBB0_3:
	mov	x0, x22
	bl	_IN_TO_REG
LBB0_4:
	ldr	x8, [x20, #24]
	str	w0, [x8]
	mov	w0, #0
	bl	_W83781D_REG_IN_MAX
	mov	x1, x0
	ldr	x8, [x20, #24]
	ldr	w2, [x8]
	mov	x0, x20
	bl	_w83627hf_write_value
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_w83627thf,8,3                  ; @w83627thf
	.comm	_w83637hf,8,3                   ; @w83637hf
	.comm	_w83687thf,8,3                  ; @w83687thf
	.no_dead_strip	_store_regs_in_max0
.subsections_via_symbols
