	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w83627ehf_write_fan_div
_w83627ehf_write_fan_div:               ## @w83627ehf_write_fan_div
	.cfi_startproc
## %bb.0:
	cmpl	$4, %esi
	ja	LBB0_10
## %bb.1:
	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
	movl	%esi, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_W83627EHF_REG_FANDIV1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_w83627ehf_read_value
	andl	$207, %eax
	movq	(%rbx), %rcx
	movl	(%rcx), %ecx
	shll	$4, %ecx
	andl	$48, %ecx
	orl	%eax, %ecx
	movl	8(%rbx), %edx
	shrl	$4, %edx
	andl	$1, %edx
	orl	%ecx, %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_w83627ehf_write_value
	movq	_W83627EHF_REG_VBAT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_w83627ehf_read_value
                                        ## kill: def $eax killed $eax def $rax
	andl	$223, %eax
	movq	(%rbx), %rcx
	movl	(%rcx), %ecx
	andl	$4, %ecx
	leal	(%rax,%rcx,8), %edx
	jmp	LBB0_9
LBB0_10:
	retq
LBB0_3:
	movq	_W83627EHF_REG_FANDIV1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_w83627ehf_read_value
	andl	$63, %eax
	movq	(%rbx), %rcx
	movl	4(%rcx), %ecx
	shll	$6, %ecx
	movzbl	%cl, %ecx
	orl	%eax, %ecx
	movl	8(%rbx), %edx
	shrl	$4, %edx
	andl	$1, %edx
	orl	%ecx, %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_w83627ehf_write_value
	movq	_W83627EHF_REG_VBAT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_w83627ehf_read_value
	andl	$191, %eax
	movq	(%rbx), %rcx
	movl	4(%rcx), %edx
	shll	$4, %edx
	andl	$64, %edx
	jmp	LBB0_8
LBB0_4:
	movq	_W83627EHF_REG_FANDIV2@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_w83627ehf_read_value
	andl	$63, %eax
	movq	(%rbx), %rcx
	movl	8(%rcx), %ecx
	shll	$6, %ecx
	movzbl	%cl, %edx
	orl	%eax, %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_w83627ehf_write_value
	movq	_W83627EHF_REG_VBAT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_w83627ehf_read_value
	andl	$127, %eax
	movq	(%rbx), %rcx
	movl	8(%rcx), %edx
	jmp	LBB0_7
LBB0_5:
	movq	_W83627EHF_REG_DIODE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_w83627ehf_read_value
	andl	$252, %eax
	movq	(%rbx), %rcx
	movl	12(%rcx), %edx
	andl	$3, %edx
	orl	%eax, %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_w83627ehf_write_value
	movq	_W83627EHF_REG_SMI_OVT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_w83627ehf_read_value
	andl	$127, %eax
	movq	(%rbx), %rcx
	movl	12(%rcx), %edx
	jmp	LBB0_7
LBB0_6:
	movq	_W83627EHF_REG_DIODE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_w83627ehf_read_value
                                        ## kill: def $eax killed $eax def $rax
	andl	$115, %eax
	movq	(%rbx), %rcx
	movl	16(%rcx), %edx
	movl	%edx, %ecx
	andl	$3, %ecx
	leal	(%rax,%rcx,4), %eax
LBB0_7:
	andl	$4, %edx
	shll	$5, %edx
LBB0_8:
	orl	%eax, %edx
LBB0_9:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_w83627ehf_write_value          ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_W83627EHF_REG_FANDIV1,4,2      ## @W83627EHF_REG_FANDIV1
	.comm	_W83627EHF_REG_VBAT,4,2         ## @W83627EHF_REG_VBAT
	.comm	_W83627EHF_REG_FANDIV2,4,2      ## @W83627EHF_REG_FANDIV2
	.comm	_W83627EHF_REG_DIODE,4,2        ## @W83627EHF_REG_DIODE
	.comm	_W83627EHF_REG_SMI_OVT,4,2      ## @W83627EHF_REG_SMI_OVT
	.no_dead_strip	_w83627ehf_write_fan_div
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w83627ehf_write_fan_div
_w83627ehf_write_fan_div:               ; @w83627ehf_write_fan_div
	.cfi_startproc
; %bb.0:
	cmp	w1, #4
	b.hi	LBB0_3
; %bb.1:
	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
	.cfi_remember_state
	mov	x19, x0
	mov	w8, w1
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x20, _W83627EHF_REG_FANDIV1@GOTPAGE
Lloh3:
	ldr	x20, [x20, _W83627EHF_REG_FANDIV1@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_w83627ehf_read_value
	mov	w8, #207
	and	w8, w0, w8
	ldr	x9, [x19]
	ldr	w9, [x9]
	bfi	w8, w9, #4, #2
	ldr	w9, [x19, #8]
	ubfx	w9, w9, #4, #1
	orr	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	bl	_w83627ehf_write_value
Lloh4:
	adrp	x20, _W83627EHF_REG_VBAT@GOTPAGE
Lloh5:
	ldr	x20, [x20, _W83627EHF_REG_VBAT@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_w83627ehf_read_value
	mov	w8, #223
	and	w2, w0, w8
	ldr	x8, [x19]
	ldr	w8, [x8]
	lsr	w8, w8, #2
	bfi	w2, w8, #5, #1
	b	LBB0_9
LBB0_3:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
LBB0_4:
	.cfi_restore_state
Lloh6:
	adrp	x20, _W83627EHF_REG_FANDIV1@GOTPAGE
Lloh7:
	ldr	x20, [x20, _W83627EHF_REG_FANDIV1@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_w83627ehf_read_value
	and	w8, w0, #0x3f
	ldr	x9, [x19]
	ldr	w9, [x9, #4]
	bfi	w8, w9, #6, #2
	ldr	w9, [x19, #8]
	ubfx	w9, w9, #4, #1
	orr	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	bl	_w83627ehf_write_value
Lloh8:
	adrp	x20, _W83627EHF_REG_VBAT@GOTPAGE
Lloh9:
	ldr	x20, [x20, _W83627EHF_REG_VBAT@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_w83627ehf_read_value
	mov	w8, #191
	and	w2, w0, w8
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
	lsr	w8, w8, #2
	bfi	w2, w8, #6, #1
	b	LBB0_9
LBB0_5:
Lloh10:
	adrp	x20, _W83627EHF_REG_FANDIV2@GOTPAGE
Lloh11:
	ldr	x20, [x20, _W83627EHF_REG_FANDIV2@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_w83627ehf_read_value
	and	w2, w0, #0x3f
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	bfi	w2, w8, #6, #2
	ldr	w1, [x20]
	mov	x0, x19
	bl	_w83627ehf_write_value
Lloh12:
	adrp	x20, _W83627EHF_REG_VBAT@GOTPAGE
Lloh13:
	ldr	x20, [x20, _W83627EHF_REG_VBAT@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_w83627ehf_read_value
	and	w2, w0, #0x7f
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x20, _W83627EHF_REG_DIODE@GOTPAGE
Lloh15:
	ldr	x20, [x20, _W83627EHF_REG_DIODE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_w83627ehf_read_value
	and	w2, w0, #0xfc
	ldr	x8, [x19]
	ldr	w8, [x8, #12]
	bfxil	w2, w8, #0, #2
	ldr	w1, [x20]
	mov	x0, x19
	bl	_w83627ehf_write_value
Lloh16:
	adrp	x20, _W83627EHF_REG_SMI_OVT@GOTPAGE
Lloh17:
	ldr	x20, [x20, _W83627EHF_REG_SMI_OVT@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_w83627ehf_read_value
	and	w2, w0, #0x7f
	ldr	x8, [x19]
	ldr	w8, [x8, #12]
LBB0_7:
	lsr	w8, w8, #2
	bfi	w2, w8, #7, #1
	b	LBB0_9
LBB0_8:
Lloh18:
	adrp	x20, _W83627EHF_REG_DIODE@GOTPAGE
Lloh19:
	ldr	x20, [x20, _W83627EHF_REG_DIODE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_w83627ehf_read_value
	mov	w8, #115
	and	w2, w0, w8
	ldr	x8, [x19]
	ldr	w8, [x8, #16]
	lsr	w9, w8, #2
	bfi	w2, w8, #2, #2
	bfi	w2, w9, #7, #1
LBB0_9:
	ldr	w1, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_w83627ehf_write_value
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_W83627EHF_REG_FANDIV1,4,2      ; @W83627EHF_REG_FANDIV1
	.comm	_W83627EHF_REG_VBAT,4,2         ; @W83627EHF_REG_VBAT
	.comm	_W83627EHF_REG_FANDIV2,4,2      ; @W83627EHF_REG_FANDIV2
	.comm	_W83627EHF_REG_DIODE,4,2        ; @W83627EHF_REG_DIODE
	.comm	_W83627EHF_REG_SMI_OVT,4,2      ; @W83627EHF_REG_SMI_OVT
	.no_dead_strip	_w83627ehf_write_fan_div
.subsections_via_symbols
