	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwm1_enable_store
_pwm1_enable_store:                     ## @pwm1_enable_store
	.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, %r14
	movq	%rdx, %rbx
	movq	%rdi, %r13
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	8(%rax), %r15
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	-48(%rbp), %rax
	leaq	-3(%rax), %rcx
	cmpq	$-3, %rcx
	ja	LBB0_4
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_4:
	cmpq	$2, %rax
	jne	LBB0_7
## %bb.5:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_lm63_lut_looks_bad
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_EPERM@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_7:
	movq	%r12, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_LM63_REG_CONFIG_FAN@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	xorl	%edx, %edx
	cmpq	$1, -48(%rbp)
	sete	%dl
	andl	$-33, %eax
	shll	$5, %edx
	orl	%eax, %edx
	movl	%edx, (%r12)
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_write_byte_data
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_LM63_REG_CONFIG_FAN,4,2        ## @LM63_REG_CONFIG_FAN
	.no_dead_strip	_pwm1_enable_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwm1_enable_store
_pwm1_enable_store:                     ; @pwm1_enable_store
	.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	x22, x0
	bl	_dev_get_drvdata
	mov	x21, x0
	ldr	x20, [x0, #8]
	add	x2, sp, #8
	mov	x0, x23
	mov	w1, #10
	bl	_kstrtoul
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	x8, [sp, #8]
	sub	x9, x8, #3
	cmn	x9, #3
	b.hi	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	cmp	x8, #2
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x22
	mov	x1, x21
	bl	_lm63_lut_looks_bad
	cbz	x0, LBB0_7
; %bb.5:
Lloh2:
	adrp	x8, _EPERM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	add	x22, x21, #4
	mov	x0, x22
	bl	_mutex_lock
Lloh4:
	adrp	x23, _LM63_REG_CONFIG_FAN@GOTPAGE
Lloh5:
	ldr	x23, [x23, _LM63_REG_CONFIG_FAN@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	mov	x2, x0
	ldr	x8, [sp, #8]
	cmp	x8, #1
	cset	w8, eq
	bfi	w2, w8, #5, #1
	str	w2, [x21]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_i2c_smbus_write_byte_data
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x19
LBB0_8:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_LM63_REG_CONFIG_FAN,4,2        ; @LM63_REG_CONFIG_FAN
	.no_dead_strip	_pwm1_enable_store
.subsections_via_symbols
