	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w83627hf_update_fan_div
_w83627hf_update_fan_div:               ## @w83627hf_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_W83781D_REG_VID_FANDIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_w83627hf_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	8(%rbx), %rax
	movq	_w83697hf@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_2
## %bb.1:
	movq	_W83781D_REG_PIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_w83627hf_read_value
	shrl	$6, %eax
	andl	$3, %eax
	movq	(%rbx), %rcx
	movl	%eax, 8(%rcx)
LBB0_2:
	movq	_W83781D_REG_VBAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_w83627hf_read_value
	movl	%eax, %edx
	shrl	$3, %edx
	andl	$4, %edx
	movq	(%rbx), %rcx
	orl	%edx, (%rcx)
	movl	%eax, %edx
	shrl	$4, %edx
	andl	$4, %edx
	orl	%edx, 4(%rcx)
	movq	8(%rbx), %rdx
	cmpq	(%r14), %rdx
	je	LBB0_4
## %bb.3:
	shrl	$5, %eax
	andl	$4, %eax
	orl	%eax, 8(%rcx)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_W83781D_REG_VID_FANDIV,4,2     ## @W83781D_REG_VID_FANDIV
	.comm	_w83697hf,8,3                   ## @w83697hf
	.comm	_W83781D_REG_PIN,4,2            ## @W83781D_REG_PIN
	.comm	_W83781D_REG_VBAT,4,2           ## @W83781D_REG_VBAT
	.no_dead_strip	_w83627hf_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 w83627hf_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
_w83627hf_update_fan_div:               ; @w83627hf_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, _W83781D_REG_VID_FANDIV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _W83781D_REG_VID_FANDIV@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_w83627hf_read_value
	dup.2s	v0, w0
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi.2s	v1, #3
	and.8b	v0, v0, v1
	ldp	x8, x9, [x19]
	str	d0, [x8]
Lloh5:
	adrp	x20, _w83697hf@GOTPAGE
Lloh6:
	ldr	x20, [x20, _w83697hf@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x9, x8
	b.eq	LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _W83781D_REG_PIN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _W83781D_REG_PIN@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_w83627hf_read_value
	ubfx	w8, w0, #6, #2
	ldr	x9, [x19]
	str	w8, [x9, #8]
LBB0_2:
Lloh10:
	adrp	x8, _W83781D_REG_VBAT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _W83781D_REG_VBAT@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_w83627hf_read_value
	dup.2s	v0, w0
Lloh13:
	adrp	x8, lCPI0_1@PAGE
Lloh14:
	ldr	d1, [x8, lCPI0_1@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi.2s	v1, #4
	and.8b	v0, v0, v1
	ldp	x8, x9, [x19]
	ldr	d1, [x8]
	orr.8b	v0, v1, v0
	str	d0, [x8]
	ldr	x10, [x20]
	cmp	x9, x10
	b.eq	LBB0_4
; %bb.3:
	lsr	w9, w0, #5
	and	w9, w9, #0x4
	ldr	w10, [x8, #8]
	orr	w9, w10, w9
	str	w9, [x8, #8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_W83781D_REG_VID_FANDIV,4,2     ; @W83781D_REG_VID_FANDIV
	.comm	_w83697hf,8,3                   ; @w83697hf
	.comm	_W83781D_REG_PIN,4,2            ; @W83781D_REG_PIN
	.comm	_W83781D_REG_VBAT,4,2           ; @W83781D_REG_VBAT
	.no_dead_strip	_w83627hf_update_fan_div
.subsections_via_symbols
