	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fan_boost_mode_write
_fan_boost_mode_write:                  ## @fan_boost_mode_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rdi), %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_info
	movq	_ASUS_WMI_DEVID_FAN_BOOST_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-12(%rbp), %rdx
	movl	%ebx, %esi
	callq	_asus_wmi_set_devstate
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn
	jmp	LBB0_4
LBB0_2:
	movl	-12(%rbp), %esi
	xorl	%ebx, %ebx
	cmpl	$1, %esi
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_warn
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set fan boost mode: %u\n"

	.comm	_ASUS_WMI_DEVID_FAN_BOOST_MODE,4,2 ## @ASUS_WMI_DEVID_FAN_BOOST_MODE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to set fan boost mode: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to set fan boost mode (retval): 0x%x\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_fan_boost_mode_write
.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_write
_fan_boost_mode_write:                  ; @fan_boost_mode_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w19, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_info
Lloh2:
	adrp	x8, _ASUS_WMI_DEVID_FAN_BOOST_MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ASUS_WMI_DEVID_FAN_BOOST_MODE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x2, sp, #12
	mov	x1, x19
	bl	_asus_wmi_set_devstate
	cbz	w0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_pr_warn
	b	LBB0_5
LBB0_2:
	ldr	w1, [sp, #12]
	cmp	w1, #1
	b.ne	LBB0_4
; %bb.3:
	mov	w19, #0
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_warn
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set fan boost mode: %u\n"

	.comm	_ASUS_WMI_DEVID_FAN_BOOST_MODE,4,2 ; @ASUS_WMI_DEVID_FAN_BOOST_MODE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set fan boost mode: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to set fan boost mode (retval): 0x%x\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_fan_boost_mode_write
.subsections_via_symbols
