	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movslq	(%rax), %r14
	movq	%rbx, %rdi
	callq	_to_i2c_client
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r13
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movl	%eax, %ebx
	leal	-4(%rbx), %eax
	cmpl	$-4, %eax
	ja	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_10
LBB0_2:
	movq	%r13, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	cmpl	$1, %ebx
	je	LBB0_6
## %bb.3:
	decl	%r14d
	cmpl	$2, %ebx
	je	LBB0_7
## %bb.4:
	cmpl	$3, %ebx
	jne	LBB0_5
## %bb.8:
	movq	(%r13), %rax
	movslq	%r14d, %rcx
	movl	$1, (%rax,%rcx,4)
	jmp	LBB0_9
LBB0_6:
	movq	(%r13), %rax
	movl	$0, -4(%rax,%r14,4)
	jmp	LBB0_9
LBB0_7:
	movq	(%r13), %rax
	movslq	%r14d, %rcx
	movl	$2, (%rax,%rcx,4)
	jmp	LBB0_9
LBB0_5:
	movq	(%r13), %rax
LBB0_9:
	movl	4(%rax), %r14d
	movl	8(%rax), %ebx
	shll	$2, %r14d
	shll	$4, %ebx
	movq	_W83792D_REG_FAN_CFG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	orl	(%rax), %r14d
	movq	%r12, %rdi
	callq	_w83792d_read_value
	andl	$192, %eax
	orl	%eax, %ebx
	orl	%r14d, %ebx
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_w83792d_write_value
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_W83792D_REG_FAN_CFG,4,2        ## @W83792D_REG_FAN_CFG
	.no_dead_strip	_store_pwmenable
.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:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x21, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	ldrsw	x24, [x0]
	mov	x0, x20
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x22, x0
	mov	x0, x21
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	sub	w8, w0, #4
	cmn	w8, #4
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_11
LBB0_2:
	mov	x23, x0
	sub	x24, x24, #1
	add	x21, x22, #8
	mov	x0, x21
	bl	_mutex_lock
	cmp	w23, #1
	b.eq	LBB0_6
; %bb.3:
	cmp	w23, #2
	b.eq	LBB0_7
; %bb.4:
	cmp	w23, #3
	b.ne	LBB0_9
; %bb.5:
	ldr	x8, [x22]
	mov	w9, #1
	b	LBB0_8
LBB0_6:
	ldr	x8, [x22]
	str	wzr, [x8, x24, lsl #2]
	b	LBB0_10
LBB0_7:
	ldr	x8, [x22]
	mov	w9, #2
LBB0_8:
	str	w9, [x8, w24, sxtw #2]
	b	LBB0_10
LBB0_9:
	ldr	x8, [x22]
LBB0_10:
	ldp	w22, w23, [x8]
	ldr	w24, [x8, #8]
Lloh3:
	adrp	x25, _W83792D_REG_FAN_CFG@GOTPAGE
Lloh4:
	ldr	x25, [x25, _W83792D_REG_FAN_CFG@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_w83792d_read_value
	and	w8, w0, #0xc0
	orr	w9, w22, w23, lsl #2
	orr	w9, w9, w24, lsl #4
	orr	w2, w9, w8
	ldr	w1, [x25]
	mov	x0, x20
	bl	_w83792d_write_value
	mov	x0, x21
	bl	_mutex_unlock
LBB0_11:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_W83792D_REG_FAN_CFG,4,2        ; @W83792D_REG_FAN_CFG
	.no_dead_strip	_store_pwmenable
.subsections_via_symbols
