	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtouint
	testl	%eax, %eax
	jne	LBB0_16
## %bb.1:
	movq	(%r15), %rax
	movq	_FAN_TYPE_SPEC83@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.2:
	movl	-28(%rbp), %eax
	cmpl	$129, %eax
	je	LBB0_3
## %bb.4:
	cmpl	$130, %eax
	jne	LBB0_9
## %bb.5:
	xorl	%esi, %esi
	jmp	LBB0_6
LBB0_11:
	movq	_FAN_TYPE_AGFN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.12:
	movl	-28(%rbp), %eax
	cmpl	$128, %eax
	je	LBB0_15
## %bb.13:
	cmpl	$130, %eax
	jne	LBB0_9
## %bb.14:
	movq	%r15, %rdi
	callq	_asus_fan_set_auto
	testl	%eax, %eax
	jne	LBB0_16
	jmp	LBB0_15
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_3:
	movl	$1, %esi
LBB0_6:
	movq	_ASUS_WMI_DEVID_CPU_FAN_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rdx
	callq	_asus_wmi_set_devstate
	testl	%eax, %eax
	jne	LBB0_16
## %bb.7:
	cmpl	$1, -32(%rbp)
	jne	LBB0_8
LBB0_15:
	movl	-28(%rbp), %eax
	movl	%eax, 8(%r15)
	movl	%r14d, %eax
	jmp	LBB0_16
LBB0_8:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FAN_TYPE_SPEC83,8,3            ## @FAN_TYPE_SPEC83
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ASUS_WMI_DEVID_CPU_FAN_CTRL,4,2 ## @ASUS_WMI_DEVID_CPU_FAN_CTRL
	.comm	_EIO,4,2                        ## @EIO
	.comm	_FAN_TYPE_AGFN,8,3              ## @FAN_TYPE_AGFN
	.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, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x21, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtouint
	cbnz	w0, LBB0_16
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _FAN_TYPE_SPEC83@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FAN_TYPE_SPEC83@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [sp, #12]
	cmp	w8, #129
	b.eq	LBB0_10
; %bb.3:
	cmp	w8, #130
	b.ne	LBB0_9
; %bb.4:
	mov	w1, #0
	b	LBB0_11
LBB0_5:
Lloh3:
	adrp	x9, _FAN_TYPE_AGFN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FAN_TYPE_AGFN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.6:
	ldr	w8, [sp, #12]
	cmp	w8, #128
	b.eq	LBB0_13
; %bb.7:
	cmp	w8, #130
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_asus_fan_set_auto
	cbnz	w0, LBB0_16
	b	LBB0_13
LBB0_9:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
	mov	w1, #1
LBB0_11:
Lloh8:
	adrp	x8, _ASUS_WMI_DEVID_CPU_FAN_CTRL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ASUS_WMI_DEVID_CPU_FAN_CTRL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x2, sp, #8
	bl	_asus_wmi_set_devstate
	cbnz	w0, LBB0_16
; %bb.12:
	ldr	w8, [sp, #8]
	cmp	w8, #1
	b.ne	LBB0_14
LBB0_13:
	ldr	w8, [sp, #12]
	str	w8, [x20, #8]
	mov	x0, x19
	b	LBB0_16
LBB0_14:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FAN_TYPE_SPEC83,8,3            ; @FAN_TYPE_SPEC83
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ASUS_WMI_DEVID_CPU_FAN_CTRL,4,2 ; @ASUS_WMI_DEVID_CPU_FAN_CTRL
	.comm	_EIO,4,2                        ; @EIO
	.comm	_FAN_TYPE_AGFN,8,3              ; @FAN_TYPE_AGFN
	.no_dead_strip	_pwm1_enable_store
.subsections_via_symbols
