	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_pwmenable
_store_pwmenable:                       ## @store_pwmenable
	.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, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_i2c_client
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r15
	movslq	(%r14), %r12
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_strict_strtoul
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	cmpq	$4, %rax
	jae	LBB0_3
## %bb.4:
	movq	%r15, %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	-48(%rbp), %rax
	decq	%rax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%r12,8)
	cmpl	$2, %r12d
	ja	LBB0_5
## %bb.6:
	leaq	l_switch.table.store_pwmenable(%rip), %rax
	movq	(%rax,%r12,8), %rcx
	leaq	l_switch.table.store_pwmenable.1(%rip), %rax
	movq	(%rax,%r12,8), %r15
	leaq	l_switch.table.store_pwmenable.2(%rip), %rax
	movq	(%rax,%r12,8), %r13
	jmp	LBB0_7
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_8
LBB0_5:
	xorl	%ecx, %ecx
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
LBB0_7:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_W83791D_REG_FAN_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %esi
	movq	%rbx, %rdi
	callq	_w83791d_read
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rcx,%r12,8), %rdx
	movl	%r15d, %ecx
	shlq	%cl, %rdx
	andq	%rax, %r13
	orq	%r13, %rdx
	movq	_W83791D_REG_FAN_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %esi
	movq	%rbx, %rdi
	callq	_w83791d_write
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	-72(%rbp), %rax                 ## 8-byte Reload
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_W83791D_REG_FAN_CFG,8,3        ## @W83791D_REG_FAN_CFG
	.no_dead_strip	_store_pwmenable
	.section	__TEXT,__const
	.p2align	3                               ## @switch.table.store_pwmenable
l_switch.table.store_pwmenable:
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.quad	1                               ## 0x1

	.p2align	3                               ## @switch.table.store_pwmenable.1
l_switch.table.store_pwmenable.1:
	.quad	2                               ## 0x2
	.quad	4                               ## 0x4
	.quad	2                               ## 0x2

	.p2align	3                               ## @switch.table.store_pwmenable.2
l_switch.table.store_pwmenable.2:
	.quad	243                             ## 0xf3
	.quad	207                             ## 0xcf
	.quad	243                             ## 0xf3

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_pwmenable
_store_pwmenable:                       ; @store_pwmenable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	mov	x23, x0
	mov	x0, x20
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x21, x0
	ldrsw	x23, [x23]
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_strict_strtoul
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_5
; %bb.2:
	cmp	x8, #4
	b.hs	LBB0_5
; %bb.3:
	add	x22, x21, #8
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [sp, #8]
	sub	x8, x8, #1
	ldr	x9, [x21]
	str	x8, [x9, x23, lsl #3]
	cmp	w23, #2
	b.hi	LBB0_6
; %bb.4:
	lsl	x9, x23, #3
Lloh0:
	adrp	x8, l_switch.table.store_pwmenable@PAGE
Lloh1:
	add	x8, x8, l_switch.table.store_pwmenable@PAGEOFF
	ldr	x8, [x8, x9]
Lloh2:
	adrp	x10, l_switch.table.store_pwmenable.1@PAGE
Lloh3:
	add	x10, x10, l_switch.table.store_pwmenable.1@PAGEOFF
	ldr	x24, [x10, x9]
Lloh4:
	adrp	x10, l_switch.table.store_pwmenable.2@PAGE
Lloh5:
	add	x10, x10, l_switch.table.store_pwmenable.2@PAGEOFF
	ldr	x25, [x10, x9]
	b	LBB0_7
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_8
LBB0_6:
	mov	x8, #0
	mov	x24, #0
	mov	x25, #0
LBB0_7:
Lloh9:
	adrp	x26, _W83791D_REG_FAN_CFG@GOTPAGE
Lloh10:
	ldr	x26, [x26, _W83791D_REG_FAN_CFG@GOTPAGEOFF]
	ldr	x9, [x26]
	lsl	x27, x8, #2
	ldr	w1, [x9, x27]
	mov	x0, x20
	bl	_w83791d_read
	ldr	x8, [x21]
	ldr	x8, [x8, x23, lsl #3]
	and	x9, x0, x25
	lsl	x8, x8, x24
	orr	x2, x8, x9
	ldr	x8, [x26]
	ldr	w1, [x8, x27]
	mov	x0, x20
	bl	_w83791d_write
	mov	x0, x22
	bl	_mutex_unlock
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_W83791D_REG_FAN_CFG,8,3        ; @W83791D_REG_FAN_CFG
	.no_dead_strip	_store_pwmenable
	.section	__TEXT,__const
	.p2align	3                               ; @switch.table.store_pwmenable
l_switch.table.store_pwmenable:
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1

	.p2align	3                               ; @switch.table.store_pwmenable.1
l_switch.table.store_pwmenable.1:
	.quad	2                               ; 0x2
	.quad	4                               ; 0x4
	.quad	2                               ; 0x2

	.p2align	3                               ; @switch.table.store_pwmenable.2
l_switch.table.store_pwmenable.2:
	.quad	243                             ; 0xf3
	.quad	207                             ; 0xcf
	.quad	243                             ; 0xf3

.subsections_via_symbols
