	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_wmi_has_agfn_fan
_asus_wmi_has_agfn_fan:                 ## @asus_wmi_has_agfn_fan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	-24(%rbp), %rdx
	movl	$1, %esi
	callq	_asus_agfn_fan_speed_read
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	_ASUS_WMI_DEVID_FAN_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_asus_wmi_get_devstate
	testl	%eax, %eax
	je	LBB0_2
LBB0_6:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movl	-20(%rbp), %eax
	cmpl	$524287, %eax                   ## imm = 0x7FFFF
	ja	LBB0_6
## %bb.3:
	movq	_ASUS_WMI_UNSUPPORTED_METHOD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.4:
	movl	$1, %r14d
	cmpl	$0, (%rbx)
	jne	LBB0_6
## %bb.5:
	movq	_ASUS_WMI_DSTS_PRESENCE_BIT@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	testl	%eax, (%rcx)
	setne	%r14b
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ASUS_WMI_DEVID_FAN_CTRL,4,2    ## @ASUS_WMI_DEVID_FAN_CTRL
	.comm	_ASUS_WMI_UNSUPPORTED_METHOD,4,2 ## @ASUS_WMI_UNSUPPORTED_METHOD
	.comm	_ASUS_WMI_DSTS_PRESENCE_BIT,4,2 ## @ASUS_WMI_DSTS_PRESENCE_BIT
	.no_dead_strip	_asus_wmi_has_agfn_fan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_wmi_has_agfn_fan
_asus_wmi_has_agfn_fan:                 ; @asus_wmi_has_agfn_fan
	.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
	add	x2, sp, #12
	mov	w1, #1
	bl	_asus_agfn_fan_speed_read
	cbnz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ASUS_WMI_DEVID_FAN_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASUS_WMI_DEVID_FAN_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_asus_wmi_get_devstate
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w8, [sp, #8]
Lloh3:
	adrp	x9, _ASUS_WMI_UNSUPPORTED_METHOD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ASUS_WMI_UNSUPPORTED_METHOD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsr	w10, w8, #19
	cmp	w10, #0
	ccmp	w8, w9, #4, eq
	b.ne	LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	ldr	w9, [x19]
	cbz	w9, LBB0_7
; %bb.6:
	mov	w0, #1
	b	LBB0_4
LBB0_7:
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
	cset	w0, ne
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ASUS_WMI_DEVID_FAN_CTRL,4,2    ; @ASUS_WMI_DEVID_FAN_CTRL
	.comm	_ASUS_WMI_UNSUPPORTED_METHOD,4,2 ; @ASUS_WMI_UNSUPPORTED_METHOD
	.comm	_ASUS_WMI_DSTS_PRESENCE_BIT,4,2 ; @ASUS_WMI_DSTS_PRESENCE_BIT
	.no_dead_strip	_asus_wmi_has_agfn_fan
.subsections_via_symbols
