	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_fan_div
_store_fan_div:                         ## @store_fan_div
	.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, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movslq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movq	%rax, %r14
	leaq	16(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%r15,4), %r13d
	movl	(%rcx,%r15,4), %edi
	callq	_DIV_FROM_REG
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_FAN_FROM_REG
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_DIV_TO_REG
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx,%r15,4)
	cmpq	$2, %r15
	jne	LBB0_1
## %bb.2:
	movq	_W83781D_REG_PIN@GOTPCREL(%rip), %r14
	jmp	LBB0_3
LBB0_1:
	movq	_W83781D_REG_VID_FANDIV@GOTPCREL(%rip), %r14
LBB0_3:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_w83627hf_read_value
	testq	%r15, %r15
	setne	%cl
	movl	$207, %edx
	movl	$63, %esi
	cmovel	%edx, %esi
	movq	8(%rbx), %rdx
	movl	(%rdx,%r15,4), %edx
	andl	$3, %edx
	addb	%cl, %cl
	orb	$4, %cl
	shll	%cl, %edx
	andl	%eax, %esi
	orl	%esi, %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_w83627hf_write_value
	movq	_W83781D_REG_VBAT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_w83627hf_read_value
	movq	8(%rbx), %rcx
	movl	(%rcx,%r15,4), %edx
	andl	$4, %edx
	leal	3(%r15), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	leal	5(%r15), %ecx
	btrl	%ecx, %eax
	orl	%eax, %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_w83627hf_write_value
	movq	8(%rbx), %rax
	movl	(%rax,%r15,4), %edi
	callq	_DIV_FROM_REG
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_FAN_TO_REG
	movq	(%rbx), %rcx
	movl	%eax, (%rcx,%r15,4)
	movl	%r15d, %edi
	callq	_W83627HF_REG_FAN_MIN
	movq	(%rbx), %rcx
	movl	(%rcx,%r15,4), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_w83627hf_write_value
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_W83781D_REG_PIN,4,2            ## @W83781D_REG_PIN
	.comm	_W83781D_REG_VID_FANDIV,4,2     ## @W83781D_REG_VID_FANDIV
	.comm	_W83781D_REG_VBAT,4,2           ## @W83781D_REG_VBAT
	.no_dead_strip	_store_fan_div
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_fan_div
_store_fan_div:                         ; @store_fan_div
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x22, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	ldrsw	x21, [x0]
	mov	x0, x20
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x22
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	mov	x24, x0
	add	x22, x20, #16
	mov	x0, x22
	bl	_mutex_lock
	lsl	x25, x21, #2
	ldp	x8, x9, [x20]
	ldr	w23, [x8, x25]
	ldr	w0, [x9, x25]
	bl	_DIV_FROM_REG
	mov	x1, x0
	mov	x0, x23
	bl	_FAN_FROM_REG
	mov	x23, x0
	mov	x0, x24
	bl	_DIV_TO_REG
	ldr	x8, [x20, #8]
	str	w0, [x8, x25]
Lloh0:
	adrp	x8, _W83781D_REG_PIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _W83781D_REG_PIN@GOTPAGEOFF]
Lloh2:
	adrp	x9, _W83781D_REG_VID_FANDIV@GOTPAGE
Lloh3:
	ldr	x9, [x9, _W83781D_REG_VID_FANDIV@GOTPAGEOFF]
	cmp	w21, #2
	csel	x24, x8, x9, eq
	ldr	w1, [x24]
	mov	x0, x20
	bl	_w83627hf_read_value
	mov	w8, #63
	mov	w9, #207
	cmp	w21, #0
	csel	w8, w9, w8, eq
	and	w8, w0, w8
	ldr	x9, [x20, #8]
	ldr	w9, [x9, x25]
	and	w9, w9, #0x3
	mov	w10, #6
	mov	w11, #4
	csel	w10, w11, w10, eq
	lsl	w9, w9, w10
	orr	w2, w9, w8
	ldr	w1, [x24]
	mov	x0, x20
	bl	_w83627hf_write_value
Lloh4:
	adrp	x24, _W83781D_REG_VBAT@GOTPAGE
Lloh5:
	ldr	x24, [x24, _W83781D_REG_VBAT@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_w83627hf_read_value
	add	w8, w21, #5
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	x9, [x20, #8]
	ldr	w9, [x9, x25]
	bic	w8, w0, w8
	and	w9, w9, #0x4
	add	w10, w21, #3
	lsl	w9, w9, w10
	orr	w2, w9, w8
	ldr	w1, [x24]
	mov	x0, x20
	bl	_w83627hf_write_value
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x25]
	bl	_DIV_FROM_REG
	mov	x1, x0
	mov	x0, x23
	bl	_FAN_TO_REG
	ldr	x8, [x20]
	str	w0, [x8, x25]
	mov	x0, x21
	bl	_W83627HF_REG_FAN_MIN
	mov	x1, x0
	ldr	x8, [x20]
	ldr	w2, [x8, x25]
	mov	x0, x20
	bl	_w83627hf_write_value
	mov	x0, x22
	bl	_mutex_unlock
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_W83781D_REG_PIN,4,2            ; @W83781D_REG_PIN
	.comm	_W83781D_REG_VID_FANDIV,4,2     ; @W83781D_REG_VID_FANDIV
	.comm	_W83781D_REG_VBAT,4,2           ; @W83781D_REG_VBAT
	.no_dead_strip	_store_fan_div
.subsections_via_symbols
