	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acerhdf_set_mode
_acerhdf_set_mode:                      ## @acerhdf_set_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_THERMAL_DEVICE_DISABLED@GOTPCREL(%rip), %rcx
	movq	_kernelmode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	%esi, (%rcx)
	jne	LBB0_3
## %bb.1:
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_acerhdf_revert_to_bios_mode
	jmp	LBB0_6
LBB0_3:
	movq	_THERMAL_DEVICE_ENABLED@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jne	LBB0_6
## %bb.4:
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_acerhdf_enable_kernelmode
LBB0_6:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_THERMAL_DEVICE_DISABLED,4,2    ## @THERMAL_DEVICE_DISABLED
	.comm	_kernelmode,8,3                 ## @kernelmode
	.comm	_THERMAL_DEVICE_ENABLED,4,2     ## @THERMAL_DEVICE_ENABLED
	.no_dead_strip	_acerhdf_set_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acerhdf_set_mode
_acerhdf_set_mode:                      ; @acerhdf_set_mode
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _THERMAL_DEVICE_DISABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _THERMAL_DEVICE_DISABLED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _kernelmode@GOTPAGE
Lloh4:
	ldr	x8, [x8, _kernelmode@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	w9, w1
	ccmp	x8, #0, #4, eq
	b.ne	LBB0_3
; %bb.1:
Lloh6:
	adrp	x9, _THERMAL_DEVICE_ENABLED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _THERMAL_DEVICE_ENABLED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w9, w1
	ccmp	x8, #0, #0, eq
	b.ne	LBB0_4
; %bb.2:
	bl	_acerhdf_enable_kernelmode
	b	LBB0_4
LBB0_3:
	bl	_acerhdf_revert_to_bios_mode
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_THERMAL_DEVICE_DISABLED,4,2    ; @THERMAL_DEVICE_DISABLED
	.comm	_kernelmode,8,3                 ; @kernelmode
	.comm	_THERMAL_DEVICE_ENABLED,4,2     ; @THERMAL_DEVICE_ENABLED
	.no_dead_strip	_acerhdf_set_mode
.subsections_via_symbols
