	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwm1_store
_pwm1_store:                            ## @pwm1_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_5
## %bb.1:
	movl	-28(%rbp), %edi
	xorl	%esi, %esi
	movl	$255, %edx
	callq	_clamp
	movl	%eax, -28(%rbp)
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_asus_agfn_fan_speed_write
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn
	jmp	LBB0_4
LBB0_3:
	movq	_ASUS_FAN_CTRL_MANUAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_4:
	movl	%r14d, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting fan speed failed: %d\n"

	.comm	_ASUS_FAN_CTRL_MANUAL,4,2       ## @ASUS_FAN_CTRL_MANUAL
	.no_dead_strip	_pwm1_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwm1_store
_pwm1_store:                            ; @pwm1_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_5
; %bb.1:
	ldr	w0, [sp, #12]
	mov	w1, #0
	mov	w2, #255
	bl	_clamp
	str	w0, [sp, #12]
	add	x2, sp, #12
	mov	x0, x20
	mov	w1, #1
	bl	_asus_agfn_fan_speed_write
	cbz	w0, LBB0_3
; %bb.2:
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _ASUS_FAN_CTRL_MANUAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ASUS_FAN_CTRL_MANUAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_4:
	mov	x0, x19
LBB0_5:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting fan speed failed: %d\n"

	.comm	_ASUS_FAN_CTRL_MANUAL,4,2       ; @ASUS_FAN_CTRL_MANUAL
	.no_dead_strip	_pwm1_store
.subsections_via_symbols
