	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_agfn_fan_speed_read
_asus_agfn_fan_speed_read:              ## @asus_agfn_fan_speed_read
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movl	%esi, -40(%rbp)
	movabsq	$137438953472, %rax             ## imm = 0x2000000000
	movq	%rax, -36(%rbp)
	movq	$0, -24(%rbp)
	movq	_ASUS_FAN_SFUN_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movq	_ASUS_FAN_MFUN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -12(%rbp)
	cmpl	$1, %esi
	jne	LBB0_1
## %bb.3:
	movq	%rdx, %rbx
	leaq	-40(%rbp), %rsi
	movl	$32, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_asus_wmi_evaluate_method_agfn
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	cmpq	$0, -24(%rbp)
	jne	LBB0_5
## %bb.6:
	xorl	%eax, %eax
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:
	movl	-36(%rbp), %ecx
	movl	%ecx, (%rbx)
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_5:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASUS_FAN_SFUN_READ,4,2         ## @ASUS_FAN_SFUN_READ
	.comm	_ASUS_FAN_MFUN,4,2              ## @ASUS_FAN_MFUN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_asus_agfn_fan_speed_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function asus_agfn_fan_speed_read
lCPI0_0:
	.long	0                               ; 0x0
	.long	32                              ; 0x20
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_asus_agfn_fan_speed_read:              ; @asus_agfn_fan_speed_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	str	w1, [sp]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [sp, #4]
	str	xzr, [sp, #16]
Lloh2:
	adrp	x8, _ASUS_FAN_SFUN_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ASUS_FAN_SFUN_READ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _ASUS_FAN_MFUN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ASUS_FAN_MFUN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #24]
	cmp	w1, #1
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x2
	mov	x8, sp
	and	x1, x8, #0xfffffff8
	mov	w0, #32
	bl	_asus_wmi_evaluate_method_agfn
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	x8, [sp, #16]
	cbnz	x8, LBB0_6
; %bb.3:
	mov	w0, #0
	cbz	x19, LBB0_8
; %bb.4:
	ldr	w8, [sp, #4]
	str	w8, [x19]
	b	LBB0_8
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _ENXIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ASUS_FAN_SFUN_READ,4,2         ; @ASUS_FAN_SFUN_READ
	.comm	_ASUS_FAN_MFUN,4,2              ; @ASUS_FAN_MFUN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_asus_agfn_fan_speed_read
.subsections_via_symbols
