	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_fan_set_auto
_asus_fan_set_auto:                     ## @asus_fan_set_auto
	.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), %eax
	cmpl	$129, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.2:
	movq	_ASUS_WMI_DEVID_CPU_FAN_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-12(%rbp), %rdx
	xorl	%esi, %esi
	callq	_asus_wmi_set_devstate
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	cmpl	$1, -12(%rbp)
	movl	$0, %ebx
	je	LBB0_8
## %bb.4:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_asus_agfn_fan_speed_write
	testl	%eax, %eax
	je	LBB0_8
LBB0_6:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASUS_WMI_DEVID_CPU_FAN_CTRL,4,2 ## @ASUS_WMI_DEVID_CPU_FAN_CTRL
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_asus_fan_set_auto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_fan_set_auto
_asus_fan_set_auto:                     ; @asus_fan_set_auto
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x0]
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _ASUS_WMI_DEVID_CPU_FAN_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASUS_WMI_DEVID_CPU_FAN_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	sub	x2, x29, #4
	mov	w1, #0
	bl	_asus_wmi_set_devstate
	cbnz	w0, LBB0_8
; %bb.3:
	ldur	w8, [x29, #-4]
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	mov	w1, #0
	mov	x2, #0
	bl	_asus_agfn_fan_speed_write
	cbz	w0, LBB0_8
LBB0_6:
Lloh3:
	adrp	x8, _ENXIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_9:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ASUS_WMI_DEVID_CPU_FAN_CTRL,4,2 ; @ASUS_WMI_DEVID_CPU_FAN_CTRL
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_asus_fan_set_auto
.subsections_via_symbols
