	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fan_watchdog_fire
_fan_watchdog_fire:                     ## @fan_watchdog_fire
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_tpacpi_lifecycle@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_TPACPI_LIFE_RUNNING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_notice
	xorl	%eax, %eax
	callq	_fan_set_enable
	testl	%eax, %eax
	js	LBB0_3
LBB0_2:
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	xorl	%eax, %eax
	popq	%rbp
	jmp	_fan_watchdog_reset             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tpacpi_lifecycle,8,3           ## @tpacpi_lifecycle
	.comm	_TPACPI_LIFE_RUNNING,8,3        ## @TPACPI_LIFE_RUNNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fan watchdog: enabling fan\n"

L_.str.1:                               ## @.str.1
	.asciz	"fan watchdog: error %d while enabling fan, will try again later...\n"

	.no_dead_strip	_fan_watchdog_fire
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fan_watchdog_fire
_fan_watchdog_fire:                     ; @fan_watchdog_fire
	.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, _tpacpi_lifecycle@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tpacpi_lifecycle@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _TPACPI_LIFE_RUNNING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TPACPI_LIFE_RUNNING@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_notice
	bl	_fan_set_enable
	tbnz	w0, #31, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_fan_watchdog_reset
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_tpacpi_lifecycle,8,3           ; @tpacpi_lifecycle
	.comm	_TPACPI_LIFE_RUNNING,8,3        ; @TPACPI_LIFE_RUNNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fan watchdog: enabling fan\n"

l_.str.1:                               ; @.str.1
	.asciz	"fan watchdog: error %d while enabling fan, will try again later...\n"

	.no_dead_strip	_fan_watchdog_fire
.subsections_via_symbols
