	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w83627ehf_update_fan_div
_w83627ehf_update_fan_div:              ## @w83627ehf_update_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_W83627EHF_REG_FANDIV1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_w83627ehf_read_value
	movl	%eax, %ecx
	shrl	$4, %ecx
	andl	$3, %ecx
	movq	(%rbx), %rdx
	movl	%ecx, (%rdx)
	shrl	$6, %eax
	andl	$3, %eax
	movl	%eax, 4(%rdx)
	movq	_W83627EHF_REG_FANDIV2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_w83627ehf_read_value
	shrl	$6, %eax
	andl	$3, %eax
	movq	(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movq	_W83627EHF_REG_VBAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_w83627ehf_read_value
	movl	%eax, %ecx
	shrl	$3, %ecx
	andl	$4, %ecx
	movq	(%rbx), %rdx
	orl	%ecx, (%rdx)
	movl	%eax, %ecx
	shrl	$4, %ecx
	andl	$4, %ecx
	orl	%ecx, 4(%rdx)
	shrl	$5, %eax
	andl	$4, %eax
	orl	%eax, 8(%rdx)
	movl	8(%rbx), %eax
	testb	$24, %al
	je	LBB0_2
## %bb.1:
	movq	_W83627EHF_REG_DIODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_w83627ehf_read_value
	movl	%eax, %ecx
	andl	$3, %ecx
	movq	(%rbx), %rdx
	movl	%ecx, 12(%rdx)
	movl	%eax, %ecx
	shrl	$2, %ecx
	andl	$3, %ecx
	shrl	$5, %eax
	andl	$4, %eax
	orl	%ecx, %eax
	movl	%eax, 16(%rdx)
	movl	8(%rbx), %eax
LBB0_2:
	testb	$8, %al
	je	LBB0_4
## %bb.3:
	movq	_W83627EHF_REG_SMI_OVT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_w83627ehf_read_value
	shrl	$5, %eax
	andl	$4, %eax
	movq	(%rbx), %rcx
	orl	%eax, 12(%rcx)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_W83627EHF_REG_FANDIV1,4,2      ## @W83627EHF_REG_FANDIV1
	.comm	_W83627EHF_REG_FANDIV2,4,2      ## @W83627EHF_REG_FANDIV2
	.comm	_W83627EHF_REG_VBAT,4,2         ## @W83627EHF_REG_VBAT
	.comm	_W83627EHF_REG_DIODE,4,2        ## @W83627EHF_REG_DIODE
	.comm	_W83627EHF_REG_SMI_OVT,4,2      ## @W83627EHF_REG_SMI_OVT
	.no_dead_strip	_w83627ehf_update_fan_div
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function w83627ehf_update_fan_div
lCPI0_0:
	.long	4294967292                      ; 0xfffffffc
	.long	4294967290                      ; 0xfffffffa
lCPI0_1:
	.long	4294967293                      ; 0xfffffffd
	.long	4294967292                      ; 0xfffffffc
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_w83627ehf_update_fan_div:              ; @w83627ehf_update_fan_div
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _W83627EHF_REG_FANDIV1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _W83627EHF_REG_FANDIV1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_w83627ehf_read_value
	ldr	x8, [x19]
	dup.2s	v0, w0
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi.2s	v1, #3
	and.8b	v0, v0, v1
	str	d0, [x8]
Lloh5:
	adrp	x8, _W83627EHF_REG_FANDIV2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _W83627EHF_REG_FANDIV2@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_w83627ehf_read_value
	ubfx	w8, w0, #6, #2
	ldr	x9, [x19]
	str	w8, [x9, #8]
Lloh8:
	adrp	x8, _W83627EHF_REG_VBAT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _W83627EHF_REG_VBAT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_w83627ehf_read_value
	ldr	x8, [x19]
	dup.2s	v0, w0
Lloh11:
	adrp	x9, lCPI0_1@PAGE
Lloh12:
	ldr	d1, [x9, lCPI0_1@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi.2s	v1, #4
	and.8b	v0, v0, v1
	ldr	d1, [x8]
	orr.8b	v0, v1, v0
	str	d0, [x8]
	lsr	w9, w0, #5
	and	w9, w9, #0x4
	ldr	w10, [x8, #8]
	orr	w9, w10, w9
	str	w9, [x8, #8]
	ldr	w8, [x19, #8]
	tst	w8, #0x18
	b.eq	LBB0_2
; %bb.1:
Lloh13:
	adrp	x8, _W83627EHF_REG_DIODE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _W83627EHF_REG_DIODE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_w83627ehf_read_value
	and	w8, w0, #0x3
	ldr	x9, [x19]
	lsr	w10, w0, #5
	and	w10, w10, #0x4
	bfxil	w10, w0, #2, #2
	stp	w8, w10, [x9, #12]
	ldr	w8, [x19, #8]
LBB0_2:
	tbz	w8, #3, LBB0_4
; %bb.3:
Lloh16:
	adrp	x8, _W83627EHF_REG_SMI_OVT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _W83627EHF_REG_SMI_OVT@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_w83627ehf_read_value
	lsr	w8, w0, #5
	and	w8, w8, #0x4
	ldr	x9, [x19]
	ldr	w10, [x9, #12]
	orr	w8, w10, w8
	str	w8, [x9, #12]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_W83627EHF_REG_FANDIV1,4,2      ; @W83627EHF_REG_FANDIV1
	.comm	_W83627EHF_REG_FANDIV2,4,2      ; @W83627EHF_REG_FANDIV2
	.comm	_W83627EHF_REG_VBAT,4,2         ; @W83627EHF_REG_VBAT
	.comm	_W83627EHF_REG_DIODE,4,2        ; @W83627EHF_REG_DIODE
	.comm	_W83627EHF_REG_SMI_OVT,4,2      ; @W83627EHF_REG_SMI_OVT
	.no_dead_strip	_w83627ehf_update_fan_div
.subsections_via_symbols
