	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movslq	(%rax), %r12
	movq	%rbx, %rdi
	callq	_to_i2c_client
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r13
	leaq	16(%rax), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movl	(%rax,%r12,4), %ebx
	movl	(%rcx,%r12,4), %edi
	callq	_DIV_FROM_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_FAN_FROM_REG
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movl	%eax, %edi
	callq	_DIV_TO_REG
	movq	8(%r13), %rcx
	movl	%eax, (%rcx,%r12,4)
	cmpq	$1, %r12
	je	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testl	%r12d, %r12d
	jne	LBB0_2
## %bb.3:
	movl	$248, %ebx
	jmp	LBB0_5
LBB0_4:
	movl	$4, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$143, %ebx
	jmp	LBB0_5
LBB0_2:
	xorl	%ebx, %ebx
LBB0_5:
	movq	_W83L786NG_REG_FAN_DIV@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_w83l786ng_read_value
	movq	8(%r13), %rcx
	movl	(%rcx,%r12,4), %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %edx
	movl	(%r14), %esi
	xorl	%edx, %eax
	andl	%eax, %ebx
	xorl	%edx, %ebx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_w83l786ng_write_value
	movq	8(%r13), %rax
	movl	(%rax,%r12,4), %edi
	callq	_DIV_FROM_REG
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_FAN_TO_REG
	movq	(%r13), %rcx
	movl	%eax, (%rcx,%r12,4)
	movl	%r12d, %edi
	callq	_W83L786NG_REG_FAN_MIN
	movq	(%r13), %rcx
	movl	(%rcx,%r12,4), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83l786ng_write_value
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_W83L786NG_REG_FAN_DIV,4,2      ## @W83L786NG_REG_FAN_DIV
	.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	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x25, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	ldr	w26, [x0]
	mov	x0, x20
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x22, x0
	add	x21, x0, #16
	mov	x0, x21
	bl	_mutex_lock
	sxtw	x23, w26
	sbfiz	x27, x26, #2, #32
	ldp	x8, x9, [x22]
	ldr	w24, [x8, x27]
	ldr	w0, [x9, x27]
	bl	_DIV_FROM_REG
	mov	x1, x0
	mov	x0, x24
	bl	_FAN_FROM_REG
	mov	x24, x0
	mov	x0, x25
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	bl	_DIV_TO_REG
	ldr	x8, [x22, #8]
	str	w0, [x8, x27]
	mov	w8, #4
	mov	w9, #143
	mov	w10, #248
	cmp	w26, #0
	csel	w10, wzr, w10, ne
	csel	w11, wzr, wzr, ne
	cmp	w26, #1
	csel	w25, w9, w10, eq
	csel	w26, w8, w11, eq
Lloh0:
	adrp	x27, _W83L786NG_REG_FAN_DIV@GOTPAGE
Lloh1:
	ldr	x27, [x27, _W83L786NG_REG_FAN_DIV@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x20
	bl	_w83l786ng_read_value
	and	w8, w0, w25
	ldr	x9, [x22, #8]
	lsl	x28, x23, #2
	ldr	w9, [x9, x28]
	lsl	w9, w9, w26
	bic	w9, w9, w25
	ldr	w1, [x27]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_w83l786ng_write_value
	ldr	x8, [x22, #8]
	ldr	w0, [x8, x28]
	bl	_DIV_FROM_REG
	mov	x1, x0
	mov	x0, x24
	bl	_FAN_TO_REG
	ldr	x8, [x22]
	str	w0, [x8, x28]
	mov	x0, x23
	bl	_W83L786NG_REG_FAN_MIN
	mov	x1, x0
	ldr	x8, [x22]
	ldr	w2, [x8, x28]
	mov	x0, x20
	bl	_w83l786ng_write_value
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_W83L786NG_REG_FAN_DIV,4,2      ; @W83L786NG_REG_FAN_DIV
	.no_dead_strip	_store_fan_div
.subsections_via_symbols
