	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fan_boost_mode_store
_fan_boost_mode_store:                  ## @fan_boost_mode_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	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	(%rax), %r15
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtou8
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-32(%rbp), %rax
	movq	_ASUS_FAN_BOOST_MODE_OVERBOOST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movq	_ASUS_FAN_BOOST_MODE_OVERBOOST_MASK@GOTPCREL(%rip), %rcx
	testq	%r15, (%rcx)
	je	LBB0_5
LBB0_9:
	movq	%rax, 8(%r14)
	movq	%r14, %rdi
	callq	_fan_boost_mode_write
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
	jmp	LBB0_10
LBB0_6:
	movq	_ASUS_FAN_BOOST_MODE_SILENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_ASUS_FAN_BOOST_MODE_SILENT_MASK@GOTPCREL(%rip), %rcx
	testq	%r15, (%rcx)
	jne	LBB0_9
	jmp	LBB0_5
LBB0_8:
	movq	_ASUS_FAN_BOOST_MODE_NORMAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	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	"Trying to store invalid value\n"

	.comm	_ASUS_FAN_BOOST_MODE_OVERBOOST,8,3 ## @ASUS_FAN_BOOST_MODE_OVERBOOST
	.comm	_ASUS_FAN_BOOST_MODE_OVERBOOST_MASK,8,3 ## @ASUS_FAN_BOOST_MODE_OVERBOOST_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ASUS_FAN_BOOST_MODE_SILENT,8,3 ## @ASUS_FAN_BOOST_MODE_SILENT
	.comm	_ASUS_FAN_BOOST_MODE_SILENT_MASK,8,3 ## @ASUS_FAN_BOOST_MODE_SILENT_MASK
	.comm	_ASUS_FAN_BOOST_MODE_NORMAL,8,3 ## @ASUS_FAN_BOOST_MODE_NORMAL
	.no_dead_strip	_fan_boost_mode_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fan_boost_mode_store
_fan_boost_mode_store:                  ; @fan_boost_mode_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, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	x21, [x0]
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #10
	bl	_kstrtou8
	mov	x19, x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x8, [sp, #8]
Lloh0:
	adrp	x9, _ASUS_FAN_BOOST_MODE_OVERBOOST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ASUS_FAN_BOOST_MODE_OVERBOOST@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x9, _ASUS_FAN_BOOST_MODE_OVERBOOST_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ASUS_FAN_BOOST_MODE_OVERBOOST_MASK@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	b	LBB0_10
LBB0_4:
Lloh7:
	adrp	x9, _ASUS_FAN_BOOST_MODE_SILENT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ASUS_FAN_BOOST_MODE_SILENT@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
Lloh10:
	adrp	x9, _ASUS_FAN_BOOST_MODE_SILENT_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ASUS_FAN_BOOST_MODE_SILENT_MASK@GOTPAGEOFF]
LBB0_6:
	ldr	x9, [x9]
	tst	x9, x21
	b.eq	LBB0_9
LBB0_7:
	str	x8, [x20, #8]
	mov	x0, x20
	bl	_fan_boost_mode_write
	b	LBB0_10
LBB0_8:
Lloh12:
	adrp	x9, _ASUS_FAN_BOOST_MODE_NORMAL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ASUS_FAN_BOOST_MODE_NORMAL@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
LBB0_9:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_10:
	mov	x0, x19
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Trying to store invalid value\n"

	.comm	_ASUS_FAN_BOOST_MODE_OVERBOOST,8,3 ; @ASUS_FAN_BOOST_MODE_OVERBOOST
	.comm	_ASUS_FAN_BOOST_MODE_OVERBOOST_MASK,8,3 ; @ASUS_FAN_BOOST_MODE_OVERBOOST_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ASUS_FAN_BOOST_MODE_SILENT,8,3 ; @ASUS_FAN_BOOST_MODE_SILENT
	.comm	_ASUS_FAN_BOOST_MODE_SILENT_MASK,8,3 ; @ASUS_FAN_BOOST_MODE_SILENT_MASK
	.comm	_ASUS_FAN_BOOST_MODE_NORMAL,8,3 ; @ASUS_FAN_BOOST_MODE_NORMAL
	.no_dead_strip	_fan_boost_mode_store
.subsections_via_symbols
