	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr
	movslq	(%rax), %r15
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r12, %r14
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpl	$0, 48(%r12)
	movq	-64(%rbp), %rcx
	je	LBB0_3
## %bb.7:
	testq	%rcx, %rcx
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.9:
	cmpq	$1350000, %rcx                  ## imm = 0x149970
	ja	LBB0_10
## %bb.11:
	movl	$1350000, %eax                  ## imm = 0x149970
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$32640, %eax                    ## imm = 0x7F80
	jae	LBB0_13
LBB0_15:
	testl	%eax, %eax
	je	LBB0_33
## %bb.16:
	xorl	%r13d, %r13d
	cmpl	$192, %eax
	jbe	LBB0_28
## %bb.17:
	cmpl	$386, %eax                      ## imm = 0x182
	jb	LBB0_18
## %bb.19:
	cmpl	$772, %eax                      ## imm = 0x304
	jb	LBB0_20
## %bb.21:
	cmpl	$1544, %eax                     ## imm = 0x608
	jb	LBB0_22
## %bb.23:
	cmpl	$3088, %eax                     ## imm = 0xC10
	jb	LBB0_24
## %bb.25:
	cmpl	$6176, %eax                     ## imm = 0x1820
	jb	LBB0_26
## %bb.27:
	movl	%eax, %ecx
	shrl	$6, %ecx
	movl	%eax, %edx
	shrl	$7, %edx
	xorl	%r13d, %r13d
	cmpl	$12352, %eax                    ## imm = 0x3040
	setae	%r13b
	cmovbl	%ecx, %edx
	orl	$6, %r13d
	movl	%edx, %eax
	jmp	LBB0_28
LBB0_1:
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_32
LBB0_3:
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	cmpq	$1350001, %rcx                  ## imm = 0x149971
	movl	$135000, %esi                   ## imm = 0x20F58
	cmovbl	%ecx, %esi
	movl	$1350000, %eax                  ## imm = 0x149970
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	andl	$31, %ecx
	andl	$8160, %eax                     ## imm = 0x1FE0
	leaq	(%rcx,%rax,8), %rax
	jmp	LBB0_6
LBB0_8:
	movq	(%r12), %rax
	movq	$255, (%rax,%r15,8)
	movq	8(%r12), %rax
	movq	%r13, %rdi
	movl	(%rax,%r15,4), %r13d
	leal	1(%r15), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	jmp	LBB0_29
LBB0_10:
	xorl	%eax, %eax
	cmpl	$32640, %eax                    ## imm = 0x7F80
	jb	LBB0_15
LBB0_13:
	movq	(%r12), %rax
	movq	$254, (%rax,%r15,8)
	leal	1(%r15), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rbx
	movl	$7, %r13d
	movl	$254, %edi
	movl	$7, %esi
	callq	*40(%r12)
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_14
LBB0_4:
	movl	$65311, %eax                    ## imm = 0xFF1F
LBB0_6:
	movq	%rax, -64(%rbp)
	movq	(%r12), %rcx
	movq	%rax, (%rcx,%r15,8)
	jmp	LBB0_31
LBB0_33:
	movq	(%r12), %rax
	movq	$1, (%rax,%r15,8)
	leal	1(%r15), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rbx
	xorl	%r13d, %r13d
	movl	$1, %edi
	xorl	%esi, %esi
	callq	*40(%r12)
	leaq	L_.str.2(%rip), %rsi
LBB0_14:
	movq	%rbx, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r8d
	callq	_dev_warn
	jmp	LBB0_29
LBB0_18:
	shrl	%eax
	movl	$1, %r13d
	jmp	LBB0_28
LBB0_20:
	shrl	$2, %eax
	movl	$2, %r13d
	jmp	LBB0_28
LBB0_22:
	shrl	$3, %eax
	movl	$3, %r13d
	jmp	LBB0_28
LBB0_24:
	shrl	$4, %eax
	movl	$4, %r13d
	jmp	LBB0_28
LBB0_26:
	shrl	$5, %eax
	movl	$5, %r13d
LBB0_28:
	movl	%eax, %eax
	movq	(%r12), %rcx
	movq	%rax, (%rcx,%r15,8)
LBB0_29:
	movq	8(%r12), %rax
	movl	(%rax,%r15,4), %edi
	cmpl	%edi, %r13d
	je	LBB0_31
## %bb.30:
	leal	1(%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	callq	_div_from_reg
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %r14d
	movl	%r13d, %edi
	callq	_div_from_reg
	leaq	L_.str.3(%rip), %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %r8d
	callq	_dev_dbg
	movq	8(%r12), %rax
	movl	%r13d, (%rax,%r15,4)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_w83627ehf_write_fan_div_common
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
LBB0_31:
	movq	(%r12), %rax
	movq	24(%r12), %rcx
	movl	(%rcx,%r15,4), %esi
	movl	(%rax,%r15,8), %edx
	movq	%r12, %rdi
	callq	_w83627ehf_write_value
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	-80(%rbp), %rax                 ## 8-byte Reload
LBB0_32:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %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 %lu below minimum %u, set to minimum\n"

L_.str.2:                               ## @.str.2
	.asciz	"fan%u low limit %lu 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
	.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:
	sub	sp, sp, #96
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x21
	bl	_to_sensor_dev_attr
	ldrsw	x21, [x0]
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_kstrtoul
	tbnz	w0, #31, LBB0_5
; %bb.1:
	add	x22, x20, #16
	mov	x0, x22
	bl	_mutex_lock
	ldr	w9, [x20, #48]
	ldr	x8, [sp, #8]
	cbz	w9, LBB0_6
; %bb.2:
	cbz	x8, LBB0_7
; %bb.3:
	mov	w9, #39280
	movk	w9, #20, lsl #16
	udiv	x8, x9, x8
	ubfx	x9, x8, #7, #25
	cmp	w9, #255
	b.lo	LBB0_8
; %bb.4:
	ldr	x8, [x20]
	mov	w9, #254
	str	x9, [x8, x21, lsl #3]
	add	w25, w21, #1
	ldr	x26, [sp, #8]
	ldr	x8, [x20, #40]
	mov	w24, #7
	mov	w0, #254
	mov	w1, #7
	blr	x8
	mov	x4, x0
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x2, x25
	mov	x3, x26
	bl	_dev_warn
	b	LBB0_16
LBB0_5:
	mov	x19, x0
	b	LBB0_19
LBB0_6:
	mov	w9, #65311
	mov	w10, #39280
	movk	w10, #20, lsl #16
	cmp	x8, x10
	mov	w11, #3928
	movk	w11, #2, lsl #16
	csel	w11, w11, w8, hi
	udiv	w10, w10, w11
	lsl	w11, w10, #3
	and	x11, x11, #0xff00
	bfxil	x11, x10, #0, #5
	cmp	x8, #0
	csel	x8, x9, x11, eq
	str	x8, [sp, #8]
	ldr	x9, [x20]
	str	x8, [x9, x21, lsl #3]
	b	LBB0_18
LBB0_7:
	mov	w8, #255
	ldp	x9, x10, [x20]
	str	x8, [x9, x21, lsl #3]
	ldr	w24, [x10, x21, lsl #2]
	add	w2, w21, #1
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_dev_info
	b	LBB0_16
LBB0_8:
	cbz	w8, LBB0_12
; %bb.9:
	cmp	w8, #192
	b.ls	LBB0_13
; %bb.10:
	cmp	w8, #386
	b.lo	LBB0_14
; %bb.11:
	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	w0, w8, #7
	cmp	w17, #192
	csel	w17, w0, w17, hi
	mov	w0, #6
	cinc	w0, w0, hi
	cmp	w15, #193
	csel	w15, w15, w17, lo
	csel	w16, w16, w0, lo
	cmp	w8, #3088
	csel	w13, w13, w15, lo
	csel	w14, w14, w16, lo
	cmp	w8, #1544
	csel	w11, w11, w13, lo
	csel	w12, w12, w14, lo
	cmp	w8, #772
	csel	w8, w9, w11, lo
	csel	w24, w10, w12, lo
	b	LBB0_15
LBB0_12:
	ldr	x8, [x20]
	mov	w9, #1
	str	x9, [x8, x21, lsl #3]
	add	w24, w21, #1
	ldr	x25, [sp, #8]
	ldr	x8, [x20, #40]
	mov	w0, #1
	mov	w1, #0
	blr	x8
	mov	x4, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	mov	x3, x25
	bl	_dev_warn
	mov	w24, #0
	b	LBB0_16
LBB0_13:
	mov	w24, #0
	b	LBB0_15
LBB0_14:
	lsr	w8, w8, #1
	mov	w24, #1
LBB0_15:
	mov	w8, w8
	ldr	x9, [x20]
	str	x8, [x9, x21, lsl #3]
LBB0_16:
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x21, lsl #2]
	cmp	w24, w0
	b.eq	LBB0_18
; %bb.17:
	add	w25, w21, #1
	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, x23
	mov	x2, x25
	mov	x3, x26
	bl	_dev_dbg
	ldr	x8, [x20, #8]
	str	w24, [x8, x21, lsl #2]
	mov	x0, x23
	mov	x1, x20
	mov	x2, x21
	bl	_w83627ehf_write_fan_div_common
Lloh8:
	adrp	x8, _jiffies@GOTPAGE
Lloh9:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #32]
LBB0_18:
	ldr	x8, [x20, #24]
	ldr	w1, [x8, x21, lsl #2]
	ldr	x8, [x20]
	ldr	x2, [x8, x21, lsl #3]
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_w83627ehf_write_value
	mov	x0, x22
	bl	_mutex_unlock
LBB0_19:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.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 %lu below minimum %u, set to minimum\n"

l_.str.2:                               ; @.str.2
	.asciz	"fan%u low limit %lu 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
	.no_dead_strip	_store_fan_min
.subsections_via_symbols
