	.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, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movslq	(%rax), %r15
	leaq	-1(%r15), %r14
	movq	%rbx, %rdi
	callq	_to_i2c_client
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %rbx
	leaq	16(%rax), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	-4(%rax,%r15,4), %r13d
	movl	-4(%rcx,%r15,4), %edi
	callq	_DIV_FROM_REG
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_FAN_FROM_REG
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movl	%eax, %edi
	callq	_DIV_TO_REG
	movq	8(%rbx), %rcx
	movl	%eax, -4(%rcx,%r15,4)
	movq	_W83792D_REG_FAN_DIV@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r14d, %ecx
	sarl	%ecx
	movslq	%ecx, %r13
	movl	(%rax,%r13,4), %esi
	movq	%r12, %rdi
	callq	_w83792d_read_value
	movq	8(%rbx), %rcx
	movl	-4(%rcx,%r15,4), %ecx
	movl	%ecx, %esi
	andl	$7, %esi
	shll	$4, %ecx
	andl	$112, %ecx
	testb	$1, %r14b
	movl	$248, %edi
	movl	$143, %edx
	cmovel	%edi, %edx
	cmovel	%esi, %ecx
	andl	%eax, %edx
	orl	%ecx, %edx
	movq	_W83792D_REG_FAN_DIV@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %esi
	movq	%r12, %rdi
	callq	_w83792d_write_value
	movq	8(%rbx), %rax
	movl	-4(%rax,%r15,4), %edi
	callq	_DIV_FROM_REG
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_FAN_TO_REG
	movq	(%rbx), %rcx
	movl	%eax, -4(%rcx,%r15,4)
	movq	_W83792D_REG_FAN_MIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	-4(%rcx,%r15,4), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_w83792d_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	_W83792D_REG_FAN_DIV,8,3        ## @W83792D_REG_FAN_DIV
	.comm	_W83792D_REG_FAN_MIN,8,3        ## @W83792D_REG_FAN_MIN
	.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	x23, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	ldrsw	x8, [x0]
	sub	x26, x8, #1
	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
	lsl	x25, x26, #2
	ldp	x8, x9, [x22]
	ldr	w24, [x8, x25]
	ldr	w0, [x9, x25]
	bl	_DIV_FROM_REG
	mov	x1, x0
	mov	x0, x24
	bl	_FAN_FROM_REG
	mov	x24, x0
	mov	x0, x23
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	bl	_DIV_TO_REG
	ldr	x8, [x22, #8]
	str	w0, [x8, x25]
Lloh0:
	adrp	x23, _W83792D_REG_FAN_DIV@GOTPAGE
Lloh1:
	ldr	x23, [x23, _W83792D_REG_FAN_DIV@GOTPAGEOFF]
	ldr	x8, [x23]
	asr	w9, w26, #1
	sbfiz	x27, x9, #2, #32
	ldr	w1, [x8, x27]
	mov	x0, x20
	bl	_w83792d_read_value
	ldr	x8, [x22, #8]
	ldr	w8, [x8, x25]
	and	w9, w8, #0x7
	ubfiz	w8, w8, #4, #3
	tst	w26, #0x1
	mov	w10, #143
	mov	w11, #248
	csel	w10, w11, w10, eq
	csel	w8, w9, w8, eq
	and	w9, w10, w0
	ldr	x10, [x23]
	ldr	w1, [x10, x27]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_w83792d_write_value
	ldr	x8, [x22, #8]
	ldr	w0, [x8, x25]
	bl	_DIV_FROM_REG
	mov	x1, x0
	mov	x0, x24
	bl	_FAN_TO_REG
	mov	x2, x0
	ldr	x8, [x22]
	str	w0, [x8, x25]
Lloh2:
	adrp	x8, _W83792D_REG_FAN_MIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _W83792D_REG_FAN_MIN@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w1, [x8, x25]
	mov	x0, x20
	bl	_w83792d_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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_W83792D_REG_FAN_DIV,8,3        ; @W83792D_REG_FAN_DIV
	.comm	_W83792D_REG_FAN_MIN,8,3        ; @W83792D_REG_FAN_MIN
	.no_dead_strip	_store_fan_div
.subsections_via_symbols
