	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fan_pwm1_enable_store
_fan_pwm1_enable_store:                 ## @fan_pwm1_enable_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	%rcx, %rbx
	movq	%rdx, %rdi
	leaq	-16(%rbp), %rdx
	movl	$2, %esi
	callq	_parse_strtoul
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	-16(%rbp), %rdx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_tpacpi_disclose_usertask
	movq	-16(%rbp), %rcx
	cmpq	$3, %rcx
	ja	LBB0_1
## %bb.4:
	movq	_TP_EC_FAN_FULLSPEED@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_7:
	movq	_TPACPI_FAN_LAST_LEVEL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_TP_EC_FAN_AUTO@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edi
	callq	_fan_set_level_safe
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_1
## %bb.9:
	testl	%eax, %eax
	js	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	callq	_fan_watchdog_reset
	movl	%ebx, %eax
	jmp	LBB0_11
LBB0_6:
	movq	_ENOSYS@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hwmon pwm1_enable"

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

	.comm	_TP_EC_FAN_FULLSPEED,4,2        ## @TP_EC_FAN_FULLSPEED
	.comm	_TPACPI_FAN_LAST_LEVEL,4,2      ## @TPACPI_FAN_LAST_LEVEL
	.comm	_TP_EC_FAN_AUTO,4,2             ## @TP_EC_FAN_AUTO
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_fan_pwm1_enable_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fan_pwm1_enable_store
_fan_pwm1_enable_store:                 ; @fan_pwm1_enable_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, x3
	mov	x0, x2
	add	x2, sp, #8
	mov	w1, #2
	bl	_parse_strtoul
	cbz	x0, LBB0_4
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	ldr	x2, [sp, #8]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_tpacpi_disclose_usertask
	ldr	x9, [sp, #8]
	cmp	x9, #3
	b.hi	LBB0_1
; %bb.5:
Lloh6:
	adrp	x8, _TP_EC_FAN_FULLSPEED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TP_EC_FAN_FULLSPEED@GOTPAGEOFF]
Lloh8:
	adrp	x10, lJTI0_0@PAGE
Lloh9:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_6
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_6:
Lloh10:
	adrp	x8, _TPACPI_FAN_LAST_LEVEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TPACPI_FAN_LAST_LEVEL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh12:
	adrp	x8, _TP_EC_FAN_AUTO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TP_EC_FAN_AUTO@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	bl	_fan_set_level_safe
Lloh14:
	adrp	x8, _ENXIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_1
; %bb.9:
	tbnz	w0, #31, LBB0_3
; %bb.10:
	bl	_fan_watchdog_reset
	mov	x0, x19
	b	LBB0_3
LBB0_11:
Lloh17:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hwmon pwm1_enable"

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

	.comm	_TP_EC_FAN_FULLSPEED,4,2        ; @TP_EC_FAN_FULLSPEED
	.comm	_TPACPI_FAN_LAST_LEVEL,4,2      ; @TPACPI_FAN_LAST_LEVEL
	.comm	_TP_EC_FAN_AUTO,4,2             ; @TP_EC_FAN_AUTO
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_fan_pwm1_enable_store
.subsections_via_symbols
