	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_pwm_enable
_store_pwm_enable:                      ## @store_pwm_enable
	.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, %r13
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr
	movslq	(%rax), %rbx
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-48(%rbp), %rax
	movq	_sf4@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	ja	LBB0_3
## %bb.4:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %r12
	movq	_sf3@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_6
## %bb.5:
	movq	(%r12), %rdx
	movq	_nct6775@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_3
LBB0_6:
	cmpq	%rcx, %rax
	jne	LBB0_9
## %bb.7:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_check_trip_points
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_12
LBB0_1:
	movl	%eax, %r13d
	jmp	LBB0_12
LBB0_9:
	addq	$24, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	-48(%rbp), %rax
	movq	8(%r12), %rcx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rbx,8)
	movq	-48(%rbp), %rax
	movq	_off@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%r15, %r14
	jne	LBB0_11
## %bb.10:
	movq	16(%r12), %rax
	movq	(%rax), %rax
	movl	$255, (%rax,%rbx,4)
	movq	40(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r12, %rdi
	movl	$255, %edx
	callq	_nct6775_write_value
LBB0_11:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_pwm_update_registers
	movq	32(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r12, %rdi
	callq	_nct6775_read_value
	movq	%rbx, %r15
	movl	%eax, %ebx
	andl	$15, %ebx
	movq	-48(%rbp), %rdi
	callq	_pwm_enable_to_reg
	shll	$4, %eax
	orl	%eax, %ebx
	movq	32(%r12), %rax
	movl	(%rax,%r15,4), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_nct6775_write_value
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_12:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sf4,8,3                        ## @sf4
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_sf3,8,3                        ## @sf3
	.comm	_nct6775,8,3                    ## @nct6775
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Inconsistent trip points, not switching to SmartFan IV mode\n"

L_.str.1:                               ## @.str.1
	.asciz	"Adjust trip points and try again\n"

	.comm	_off,8,3                        ## @off
	.no_dead_strip	_store_pwm_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_pwm_enable
_store_pwm_enable:                      ; @store_pwm_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, 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, x23
	mov	w1, #10
	bl	_kstrtoul
	tbnz	w0, #31, LBB0_8
; %bb.1:
	ldr	x8, [sp, #8]
Lloh0:
	adrp	x9, _sf4@GOTPAGE
Lloh1:
	ldr	x9, [x9, _sf4@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hi	LBB0_7
; %bb.2:
Lloh3:
	adrp	x10, _sf3@GOTPAGE
Lloh4:
	ldr	x10, [x10, _sf3@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_4
; %bb.3:
	ldr	x10, [x20]
Lloh6:
	adrp	x11, _nct6775@GOTPAGE
Lloh7:
	ldr	x11, [x11, _nct6775@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_7
LBB0_4:
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x20
	mov	x1, x21
	bl	_check_trip_points
	cbz	x0, LBB0_9
; %bb.6:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_err
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_err
LBB0_7:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_12
LBB0_8:
	mov	x19, x0
	b	LBB0_12
LBB0_9:
	add	x22, x20, #24
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [sp, #8]
	ldr	x9, [x20, #8]
	str	x8, [x9, x21, lsl #3]
	ldr	x8, [sp, #8]
Lloh16:
	adrp	x9, _off@GOTPAGE
Lloh17:
	ldr	x9, [x9, _off@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	lsl	x23, x21, #2
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	mov	w9, #255
	str	w9, [x8, x23]
	ldr	x8, [x20, #40]
	ldr	x8, [x8]
	ldr	w1, [x8, x23]
	mov	x0, x20
	mov	w2, #255
	bl	_nct6775_write_value
LBB0_11:
	mov	x0, x20
	mov	x1, x21
	bl	_pwm_update_registers
	ldr	x8, [x20, #32]
	ldr	w1, [x8, x23]
	mov	x0, x20
	bl	_nct6775_read_value
	mov	x21, x0
	ldr	x0, [sp, #8]
	bl	_pwm_enable_to_reg
	bfi	w21, w0, #4, #28
	ldr	x8, [x20, #32]
	ldr	w1, [x8, x23]
	mov	x0, x20
	mov	x2, x21
	bl	_nct6775_write_value
	mov	x0, x22
	bl	_mutex_unlock
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_sf4,8,3                        ; @sf4
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_sf3,8,3                        ; @sf3
	.comm	_nct6775,8,3                    ; @nct6775
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Inconsistent trip points, not switching to SmartFan IV mode\n"

l_.str.1:                               ; @.str.1
	.asciz	"Adjust trip points and try again\n"

	.comm	_off,8,3                        ; @off
	.no_dead_strip	_store_pwm_enable
.subsections_via_symbols
