	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fan_div_store
_fan_div_store:                         ## @fan_div_store
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movslq	(%rax), %r12
	movq	%r13, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	16(%rax), %r15
	leaq	-96(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %rdi
	callq	_DIV_TO_REG
	movl	%eax, %ebx
	movq	%r14, %r13
	addq	$8, %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	(%r14), %rax
	movl	(%rax,%r12,4), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_DIV_FROM_REG
	movq	(%r14), %rcx
	movl	%eax, (%rcx,%r12,4)
	cmpl	$4, %r12d
	jge	LBB0_3
## %bb.2:
	movq	_ADM1026_REG_FAN_DIV_0_3@GOTPCREL(%rip), %rax
	movl	$3, %edx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	$2, %edx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %r15d
	jmp	LBB0_4
LBB0_3:
	addq	$16, %rcx
	movq	_ADM1026_REG_FAN_DIV_4_7@GOTPCREL(%rip), %rax
	movl	$7, %edx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	$6, %edx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	$5, %r15d
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movslq	(%rcx), %rdi
	callq	_DIV_TO_REG
	movl	%eax, %ebx
	movq	(%r14), %rax
	movslq	(%rax,%r15,4), %rdi
	callq	_DIV_TO_REG
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,4), %r15d
	orl	%ebx, %r15d
	movq	(%r14), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rax,%rcx,4), %rdi
	callq	_DIV_TO_REG
	movl	%eax, %ebx
	shll	$4, %ebx
	movq	(%r14), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rax,%rcx,4), %rdi
	callq	_DIV_TO_REG
	shll	$6, %eax
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_adm1026_write_value
	movq	(%r14), %rax
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, (%rax,%r12,4)
	je	LBB0_6
## %bb.5:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_fixup_fan_min
LBB0_6:
	movq	%r13, %rdi
	callq	_mutex_unlock
	movq	-88(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
LBB0_7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADM1026_REG_FAN_DIV_0_3,4,2    ## @ADM1026_REG_FAN_DIV_0_3
	.comm	_ADM1026_REG_FAN_DIV_4_7,4,2    ## @ADM1026_REG_FAN_DIV_4_7
	.no_dead_strip	_fan_div_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fan_div_store
_fan_div_store:                         ; @fan_div_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x24, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	ldrsw	x21, [x0]
	mov	x0, x20
	bl	_dev_get_drvdata
	mov	x22, x0
	ldr	x23, [x0, #16]
	add	x2, sp, #24
	mov	x0, x24
	mov	w1, #10
	bl	_kstrtol
	cbnz	w0, LBB0_4
; %bb.1:
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
	ldr	x0, [sp, #24]
	bl	_DIV_TO_REG
	mov	x26, x0
	add	x24, x22, #8
	mov	x0, x24
	bl	_mutex_lock
	ldr	x8, [x22]
	lsl	x27, x21, #2
	ldr	w8, [x8, x27]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x26
	bl	_DIV_FROM_REG
	ldr	x8, [x22]
	str	w0, [x8, x27]
Lloh0:
	adrp	x9, _ADM1026_REG_FAN_DIV_0_3@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ADM1026_REG_FAN_DIV_0_3@GOTPAGEOFF]
	mov	w10, #3
	mov	w11, #2
	mov	w12, #1
	cmp	w21, #4
	add	x13, x8, #16
Lloh2:
	adrp	x14, _ADM1026_REG_FAN_DIV_4_7@GOTPAGE
Lloh3:
	ldr	x14, [x14, _ADM1026_REG_FAN_DIV_4_7@GOTPAGEOFF]
	mov	w15, #7
	mov	w16, #6
	mov	w17, #5
	csel	x8, x8, x13, lt
	csel	x28, x12, x17, lt
	csel	x19, x11, x16, lt
	csel	x25, x10, x15, lt
	csel	x9, x9, x14, lt
	ldr	w26, [x9]
	ldrsw	x0, [x8]
	bl	_DIV_TO_REG
	mov	x27, x0
	ldr	x8, [x22]
	ldrsw	x0, [x8, x28, lsl #2]
	bl	_DIV_TO_REG
	orr	w27, w27, w0, lsl #2
	ldr	x8, [x22]
	ldrsw	x0, [x8, x19, lsl #2]
	bl	_DIV_TO_REG
	orr	w19, w27, w0, lsl #4
	ldr	x8, [x22]
	ldrsw	x0, [x8, x25, lsl #2]
	bl	_DIV_TO_REG
	orr	w2, w19, w0, lsl #6
	mov	x0, x23
	mov	x1, x26
	bl	_adm1026_write_value
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	ldr	x8, [x22]
	ldr	w8, [x8, x21, lsl #2]
	cmp	w8, w2
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x21
	bl	_fixup_fan_min
LBB0_3:
	mov	x0, x24
	bl	_mutex_unlock
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	mov	x0, x8
LBB0_4:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ADM1026_REG_FAN_DIV_0_3,4,2    ; @ADM1026_REG_FAN_DIV_0_3
	.comm	_ADM1026_REG_FAN_DIV_4_7,4,2    ; @ADM1026_REG_FAN_DIV_4_7
	.no_dead_strip	_fan_div_store
.subsections_via_symbols
