	.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, %r12
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_to_i2c_client
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_w83795_update_pwm_config
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movl	(%rax), %ebx
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	movq	-56(%rbp), %rax
	leaq	-3(%rax), %rcx
	cmpq	$-3, %rcx
	ja	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subq	(%rax), %r12
LBB0_12:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpq	$2, %rax
	jb	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_warn
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	%r13, %r15
	addq	$16, %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	-56(%rbp), %rax
	cmpq	$2, %rax
	je	LBB0_9
## %bb.7:
	cmpq	$1, %rax
	jne	LBB0_11
## %bb.8:
	movl	$-2, %r14d
	movl	%ebx, %ecx
	roll	%cl, %r14d
	movq	(%r15), %rax
	movl	(%rax), %edx
	btrl	%ebx, %edx
	movl	%edx, (%rax)
	movq	_W83795_REG_FCMS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rbx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_w83795_write
	movq	8(%rbx), %rax
	andl	%r14d, (%rax)
	xorl	%edi, %edi
	callq	_W83795_REG_TFMR
	movq	8(%rbx), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83795_write
	movq	8(%rbx), %rax
	andl	%r14d, 4(%rax)
	movl	$1, %edi
	callq	_W83795_REG_TFMR
	movq	8(%rbx), %rcx
	movl	4(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83795_write
	movq	8(%rbx), %rax
	andl	%r14d, 8(%rax)
	movl	$2, %edi
	callq	_W83795_REG_TFMR
	movq	8(%rbx), %rcx
	movl	8(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83795_write
	movq	8(%rbx), %rax
	andl	%r14d, 12(%rax)
	movl	$3, %edi
	callq	_W83795_REG_TFMR
	movq	8(%rbx), %rcx
	movl	12(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83795_write
	movq	8(%rbx), %rax
	andl	%r14d, 16(%rax)
	movl	$4, %edi
	callq	_W83795_REG_TFMR
	movq	8(%rbx), %rcx
	movl	16(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83795_write
	movq	8(%rbx), %rax
	andl	%r14d, 20(%rax)
	movl	$5, %edi
	callq	_W83795_REG_TFMR
	movl	%eax, %esi
	movq	8(%rbx), %rax
	movl	20(%rax), %edx
	jmp	LBB0_10
LBB0_9:
	movq	(%r15), %rax
	movl	(%rax), %edx
	btsl	%ebx, %edx
	movl	%edx, (%rax)
	movq	_W83795_REG_FCMS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_10:
	movq	%r15, %rdi
	callq	_w83795_write
LBB0_11:
	movq	%r13, %rdi
	callq	_mutex_unlock
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Automatic fan speed control support disabled\n"

L_.str.1:                               ## @.str.1
	.asciz	"Build with CONFIG_SENSORS_W83795_FANCTRL=y if you want it\n"

	.comm	_EOPNOTSUPP,8,3                 ## @EOPNOTSUPP
	.comm	_W83795_REG_FCMS1,4,2           ## @W83795_REG_FCMS1
	.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	x24, x1
	mov	x22, x0
	bl	_to_i2c_client
	mov	x20, x0
	mov	x0, x22
	bl	_w83795_update_pwm_config
	mov	x21, x0
	mov	x0, x24
	bl	_to_sensor_dev_attr_2
	ldr	w24, [x0]
	add	x2, sp, #8
	mov	x0, x23
	mov	w1, #10
	bl	_kstrtoul
	tbnz	x0, #63, LBB0_2
; %bb.1:
	ldr	x8, [sp, #8]
	sub	x9, x8, #3
	cmn	x9, #3
	b.hi	LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_4:
	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
LBB0_5:
	cmp	x8, #2
	b.lo	LBB0_7
; %bb.6:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_warn
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_warn
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_3
LBB0_7:
	add	x22, x21, #16
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [sp, #8]
	cmp	x8, #2
	b.eq	LBB0_10
; %bb.8:
	cmp	x8, #1
	b.ne	LBB0_12
; %bb.9:
	lsl	w23, w8, w24
	ldr	x8, [x21]
	ldr	w9, [x8]
	bic	w2, w9, w23
	str	w2, [x8]
Lloh8:
	adrp	x8, _W83795_REG_FCMS1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _W83795_REG_FCMS1@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_w83795_write
	ldr	x8, [x21, #8]
	ldr	w9, [x8]
	bic	w9, w9, w23
	str	w9, [x8]
	mov	w0, #0
	bl	_W83795_REG_TFMR
	mov	x1, x0
	ldr	x8, [x21, #8]
	ldr	w2, [x8]
	mov	x0, x20
	bl	_w83795_write
	ldr	x8, [x21, #8]
	ldr	w9, [x8, #4]
	bic	w9, w9, w23
	str	w9, [x8, #4]
	mov	w0, #1
	bl	_W83795_REG_TFMR
	mov	x1, x0
	ldr	x8, [x21, #8]
	ldr	w2, [x8, #4]
	mov	x0, x20
	bl	_w83795_write
	ldr	x8, [x21, #8]
	ldr	w9, [x8, #8]
	bic	w9, w9, w23
	str	w9, [x8, #8]
	mov	w0, #2
	bl	_W83795_REG_TFMR
	mov	x1, x0
	ldr	x8, [x21, #8]
	ldr	w2, [x8, #8]
	mov	x0, x20
	bl	_w83795_write
	ldr	x8, [x21, #8]
	ldr	w9, [x8, #12]
	bic	w9, w9, w23
	str	w9, [x8, #12]
	mov	w0, #3
	bl	_W83795_REG_TFMR
	mov	x1, x0
	ldr	x8, [x21, #8]
	ldr	w2, [x8, #12]
	mov	x0, x20
	bl	_w83795_write
	ldr	x8, [x21, #8]
	ldr	w9, [x8, #16]
	bic	w9, w9, w23
	str	w9, [x8, #16]
	mov	w0, #4
	bl	_W83795_REG_TFMR
	mov	x1, x0
	ldr	x8, [x21, #8]
	ldr	w2, [x8, #16]
	mov	x0, x20
	bl	_w83795_write
	ldr	x8, [x21, #8]
	ldr	w9, [x8, #20]
	bic	w9, w9, w23
	str	w9, [x8, #20]
	mov	w0, #5
	bl	_W83795_REG_TFMR
	mov	x1, x0
	ldr	x8, [x21, #8]
	ldr	w2, [x8, #20]
	b	LBB0_11
LBB0_10:
	mov	w8, #1
	lsl	w8, w8, w24
	ldr	x9, [x21]
	ldr	w10, [x9]
	orr	w2, w10, w8
	str	w2, [x9]
Lloh11:
	adrp	x8, _W83795_REG_FCMS1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _W83795_REG_FCMS1@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
LBB0_11:
	mov	x0, x20
	bl	_w83795_write
LBB0_12:
	mov	x0, x22
	bl	_mutex_unlock
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Automatic fan speed control support disabled\n"

l_.str.1:                               ; @.str.1
	.asciz	"Build with CONFIG_SENSORS_W83795_FANCTRL=y if you want it\n"

	.comm	_EOPNOTSUPP,8,3                 ; @EOPNOTSUPP
	.comm	_W83795_REG_FCMS1,4,2           ; @W83795_REG_FCMS1
	.no_dead_strip	_store_pwm_enable
.subsections_via_symbols
