	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fan_watchdog_store
_fan_watchdog_store:                    ## @fan_watchdog_store
	.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
	movq	%rdx, %rbx
	movq	%rsi, %rdi
	leaq	-16(%rbp), %rdx
	movl	$120, %esi
	callq	_parse_strtoul
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	jmp	LBB0_6
LBB0_3:
	movq	_fan_control_allowed@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.5:
	movq	-16(%rbp), %rax
	movq	_fan_watchdog_maxinterval@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	callq	_fan_watchdog_reset
	movq	-16(%rbp), %rdx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_tpacpi_disclose_usertask
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_fan_control_allowed,4,2        ## @fan_control_allowed
	.comm	_EPERM,8,3                      ## @EPERM
	.comm	_fan_watchdog_maxinterval,8,3   ## @fan_watchdog_maxinterval
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fan_watchdog"

L_.str.1:                               ## @.str.1
	.asciz	"set to %lu\n"

	.no_dead_strip	_fan_watchdog_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fan_watchdog_store
_fan_watchdog_store:                    ; @fan_watchdog_store
	.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, x2
	mov	x0, x1
	add	x2, sp, #8
	mov	w1, #120
	bl	_parse_strtoul
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _fan_control_allowed@GOTPAGE
Lloh3:
	ldr	x8, [x8, _fan_control_allowed@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.4:
	ldr	x8, [sp, #8]
Lloh5:
	adrp	x9, _fan_watchdog_maxinterval@GOTPAGE
Lloh6:
	ldr	x9, [x9, _fan_watchdog_maxinterval@GOTPAGEOFF]
Lloh7:
	str	x8, [x9]
	bl	_fan_watchdog_reset
	ldr	x2, [sp, #8]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_tpacpi_disclose_usertask
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
Lloh12:
	adrp	x8, _EPERM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_fan_control_allowed,4,2        ; @fan_control_allowed
	.comm	_EPERM,8,3                      ; @EPERM
	.comm	_fan_watchdog_maxinterval,8,3   ; @fan_watchdog_maxinterval
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fan_watchdog"

l_.str.1:                               ; @.str.1
	.asciz	"set to %lu\n"

	.no_dead_strip	_fan_watchdog_store
.subsections_via_symbols
