	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_fan_min
_store_fan_min:                         ## @store_fan_min
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr
	movslq	(%rax), %r12
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movl	%eax, %r13d
	movq	%r14, %rdi
	addq	$24, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	testl	%r13d, %r13d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	cmpl	$41, %r13d
	ja	LBB0_4
## %bb.3:
	movq	%r14, %rbx
	movq	(%r14), %rax
	movl	$254, (%rax,%r12,4)
	leal	1(%r12), %r14d
	movl	$254, %edi
	movl	$128, %esi
	callq	_fan_from_reg
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_dev_warn
	movl	$7, %r15d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_1:
	movq	(%r14), %rax
	movl	$255, (%rax,%r12,4)
	movq	8(%r14), %rax
	movl	(%rax,%r12,4), %eax
	leal	1(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %r15d
	callq	_dev_info
	movq	%r14, %rbx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_4:
	cmpl	$1350000, %r13d                 ## imm = 0x149970
	jbe	LBB0_5
## %bb.28:
	movq	%r14, %rbx
	movq	(%r14), %rax
	movl	$1, (%rax,%r12,4)
	leal	1(%r12), %r14d
	movl	$1, %edi
	movl	$1, %esi
	callq	_fan_from_reg
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_dev_warn
	xorl	%r15d, %r15d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_5:
	xorl	%r15d, %r15d
	movl	$1350000, %eax                  ## imm = 0x149970
	xorl	%edx, %edx
	divl	%r13d
	cmpl	$6995, %r13d                    ## imm = 0x1B53
	movq	%r14, %rbx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jae	LBB0_17
## %bb.6:
	cmpl	$3497, %r13d                    ## imm = 0xDA9
	ja	LBB0_7
## %bb.8:
	cmpl	$1748, %r13d                    ## imm = 0x6D4
	ja	LBB0_9
## %bb.10:
	cmpl	$874, %r13d                     ## imm = 0x36A
	ja	LBB0_11
## %bb.12:
	cmpl	$437, %r13d                     ## imm = 0x1B5
	ja	LBB0_13
## %bb.14:
	cmpl	$218, %r13d
	ja	LBB0_15
## %bb.16:
	movl	%eax, %ecx
	shrl	$6, %ecx
	shrl	$7, %eax
	xorl	%r15d, %r15d
	cmpl	$110, %r13d
	setb	%r15b
	cmovael	%ecx, %eax
	orl	$6, %r15d
	jmp	LBB0_17
LBB0_7:
	shrl	%eax
	movl	$1, %r15d
	jmp	LBB0_17
LBB0_9:
	shrl	$2, %eax
	movl	$2, %r15d
	jmp	LBB0_17
LBB0_11:
	shrl	$3, %eax
	movl	$3, %r15d
	jmp	LBB0_17
LBB0_13:
	shrl	$4, %eax
	movl	$4, %r15d
	jmp	LBB0_17
LBB0_15:
	shrl	$5, %eax
	movl	$5, %r15d
LBB0_17:
	movq	(%rbx), %rcx
	movl	%eax, (%rcx,%r12,4)
LBB0_18:
	movq	8(%rbx), %rdx
	movl	(%rdx,%r12,4), %ecx
	cmpl	%ecx, %r15d
	je	LBB0_27
## %bb.19:
	movq	16(%rbx), %rsi
	movl	(%rsi,%r12,4), %edi
	cmpl	$255, %edi
	je	LBB0_26
## %bb.20:
	movl	%r15d, %eax
	subl	%ecx, %eax
	jle	LBB0_22
## %bb.21:
	movl	%eax, %ecx
	sarl	%cl, %edi
	jmp	LBB0_24
LBB0_22:
	movl	$255, %eax
	testb	$-128, %dil
	jne	LBB0_25
## %bb.23:
	subl	%r15d, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
LBB0_24:
	movl	%edi, %eax
LBB0_25:
	movl	%eax, (%rsi,%r12,4)
LBB0_26:
	leal	1(%r12), %r13d
	movl	(%rdx,%r12,4), %edi
	callq	_div_from_reg
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_div_from_reg
	leaq	L_.str.3(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_dev_dbg
	movq	8(%rbx), %rax
	movl	%r15d, (%rax,%r12,4)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_w83627ehf_write_fan_div
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_27:
	movq	_W83627EHF_REG_FAN_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %esi
	movq	(%rbx), %rax
	movl	(%rax,%r12,4), %edx
	movq	%rbx, %rdi
	callq	_w83627ehf_write_value
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fan%u low limit and alarm disabled\n"

L_.str.1:                               ## @.str.1
	.asciz	"fan%u low limit %u below minimum %u, set to minimum\n"

L_.str.2:                               ## @.str.2
	.asciz	"fan%u low limit %u above maximum %u, set to maximum\n"

L_.str.3:                               ## @.str.3
	.asciz	"fan%u clock divider changed from %u to %u\n"

	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_W83627EHF_REG_FAN_MIN,8,3      ## @W83627EHF_REG_FAN_MIN
	.no_dead_strip	_store_fan_min
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_fan_min
_store_fan_min:                         ; @store_fan_min
	.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	x21, x2
	mov	x23, x1
	mov	x22, x0
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x23
	bl	_to_sensor_dev_attr
	ldrsw	x23, [x0]
	mov	x0, x21
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	mov	x24, x0
	add	x21, x20, #24
	mov	x0, x21
	bl	_mutex_lock
	lsl	x27, x23, #2
	cbz	w24, LBB0_3
; %bb.1:
	cmp	w24, #41
	b.hi	LBB0_4
; %bb.2:
	ldr	x8, [x20]
	mov	w9, #254
	str	w9, [x8, x23, lsl #2]
	add	w25, w23, #1
	mov	w0, #254
	mov	w1, #128
	bl	_fan_from_reg
	mov	x4, x0
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x25
	mov	x3, x24
	bl	_dev_warn
	mov	w24, #7
	b	LBB0_12
LBB0_3:
	mov	w8, #255
	ldp	x9, x10, [x20]
	str	w8, [x9, x27]
	ldr	w24, [x10, x27]
	add	w2, w23, #1
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_info
	b	LBB0_12
LBB0_4:
	mov	w8, #39280
	movk	w8, #20, lsl #16
	cmp	w24, w8
	b.ls	LBB0_6
; %bb.5:
	ldr	x8, [x20]
	mov	w9, #1
	str	w9, [x8, x23, lsl #2]
	add	w25, w23, #1
	mov	w0, #1
	mov	w1, #1
	bl	_fan_from_reg
	mov	x4, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x2, x25
	mov	x3, x24
	bl	_dev_warn
	mov	w24, #0
	b	LBB0_12
LBB0_6:
	mov	w9, #6995
	udiv	w8, w8, w24
	cmp	w24, w9
	b.hs	LBB0_9
; %bb.7:
	cmp	w24, #3497
	b.hi	LBB0_10
; %bb.8:
	lsr	w9, w8, #2
	mov	w10, #2
	lsr	w11, w8, #3
	mov	w12, #3
	lsr	w13, w8, #4
	mov	w14, #4
	lsr	w15, w8, #5
	mov	w16, #5
	lsr	w17, w8, #6
	lsr	w8, w8, #7
	cmp	w24, #110
	csel	w8, w8, w17, lo
	mov	w17, #6
	cinc	w17, w17, lo
	cmp	w24, #218
	csel	w8, w15, w8, hi
	csel	w15, w16, w17, hi
	cmp	w24, #437
	csel	w8, w13, w8, hi
	csel	w13, w14, w15, hi
	cmp	w24, #874
	csel	w8, w11, w8, hi
	csel	w11, w12, w13, hi
	cmp	w24, #1748
	csel	w8, w9, w8, hi
	csel	w24, w10, w11, hi
	b	LBB0_11
LBB0_9:
	mov	w24, #0
	b	LBB0_11
LBB0_10:
	lsr	w8, w8, #1
	mov	w24, #1
LBB0_11:
	ldr	x9, [x20]
	str	w8, [x9, x23, lsl #2]
LBB0_12:
	ldr	x8, [x20, #8]
	ldr	w9, [x8, x23, lsl #2]
	subs	w10, w24, w9
	b.eq	LBB0_16
; %bb.13:
	ldr	x11, [x20, #16]
	ldr	w12, [x11, x23, lsl #2]
	cmp	w12, #255
	b.eq	LBB0_15
; %bb.14:
	mov	w13, #255
	sub	w14, w9, w24
	lsl	w14, w12, w14
	tst	w12, #0x80
	csel	w13, w13, w14, ne
	asr	w10, w12, w10
	cmp	w24, w9
	csel	w9, w13, w10, le
	str	w9, [x11, x23, lsl #2]
LBB0_15:
	add	w25, w23, #1
	ldr	w0, [x8, x27]
	bl	_div_from_reg
	mov	x26, x0
	mov	x0, x24
	bl	_div_from_reg
	mov	x4, x0
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	x2, x25
	mov	x3, x26
	bl	_dev_dbg
	ldr	x8, [x20, #8]
	str	w24, [x8, x27]
	mov	x0, x20
	mov	x1, x23
	bl	_w83627ehf_write_fan_div
Lloh8:
	adrp	x8, _jiffies@GOTPAGE
Lloh9:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #28]
LBB0_16:
Lloh11:
	adrp	x8, _W83627EHF_REG_FAN_MIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _W83627EHF_REG_FAN_MIN@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w1, [x8, x27]
	ldr	x8, [x20]
	ldr	w2, [x8, x27]
	mov	x0, x20
	bl	_w83627ehf_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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fan%u low limit and alarm disabled\n"

l_.str.1:                               ; @.str.1
	.asciz	"fan%u low limit %u below minimum %u, set to minimum\n"

l_.str.2:                               ; @.str.2
	.asciz	"fan%u low limit %u above maximum %u, set to maximum\n"

l_.str.3:                               ; @.str.3
	.asciz	"fan%u clock divider changed from %u to %u\n"

	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_W83627EHF_REG_FAN_MIN,8,3      ; @W83627EHF_REG_FAN_MIN
	.no_dead_strip	_store_fan_min
.subsections_via_symbols
