	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fan_boost_mode_check_present
_fan_boost_mode_check_present:          ## @fan_boost_mode_check_present
	.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
	movq	%rdi, %rbx
	movl	$0, (%rdi)
	movq	_ASUS_WMI_DEVID_FAN_BOOST_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_asus_wmi_get_devstate
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ecx
	movq	_ENODEV@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	movl	(%rdx), %edx
	addl	%ecx, %edx
	cmovnel	%ecx, %eax
	jmp	LBB0_5
LBB0_2:
	movl	-12(%rbp), %ecx
	movq	_ASUS_WMI_DSTS_PRESENCE_BIT@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	je	LBB0_5
## %bb.3:
	movq	_ASUS_FAN_BOOST_MODES_MASK@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_5
## %bb.4:
	movl	$1, (%rbx)
	andl	(%rdx), %ecx
	movl	%ecx, 4(%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASUS_WMI_DEVID_FAN_BOOST_MODE,4,2 ## @ASUS_WMI_DEVID_FAN_BOOST_MODE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ASUS_WMI_DSTS_PRESENCE_BIT,4,2 ## @ASUS_WMI_DSTS_PRESENCE_BIT
	.comm	_ASUS_FAN_BOOST_MODES_MASK,4,2  ## @ASUS_FAN_BOOST_MODES_MASK
	.no_dead_strip	_fan_boost_mode_check_present
.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_check_present
_fan_boost_mode_check_present:          ; @fan_boost_mode_check_present
	.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
	mov	x19, x0
	str	wzr, [x0]
Lloh0:
	adrp	x8, _ASUS_WMI_DEVID_FAN_BOOST_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASUS_WMI_DEVID_FAN_BOOST_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_asus_wmi_get_devstate
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w0, w8
	csel	w0, wzr, w0, eq
	b	LBB0_6
LBB0_2:
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _ASUS_WMI_DSTS_PRESENCE_BIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ASUS_WMI_DSTS_PRESENCE_BIT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh9:
	adrp	x9, _ASUS_FAN_BOOST_MODES_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ASUS_FAN_BOOST_MODES_MASK@GOTPAGEOFF]
	ldr	w10, [x9]
	tst	w10, w8
	b.eq	LBB0_5
; %bb.4:
	mov	w0, #0
	mov	w10, #1
	str	w10, [x19]
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ASUS_WMI_DEVID_FAN_BOOST_MODE,4,2 ; @ASUS_WMI_DEVID_FAN_BOOST_MODE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ASUS_WMI_DSTS_PRESENCE_BIT,4,2 ; @ASUS_WMI_DSTS_PRESENCE_BIT
	.comm	_ASUS_FAN_BOOST_MODES_MASK,4,2  ; @ASUS_FAN_BOOST_MODES_MASK
	.no_dead_strip	_fan_boost_mode_check_present
.subsections_via_symbols
