	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fan_mode_store
_fan_mode_store:                        ## @fan_mode_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rdi
	leaq	-36(%rbp), %rsi
	callq	_kstrtobool
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_WM_FAN_MODE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_WM_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_lg_wmab
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	(%rax), %rbx
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	jne	LBB0_4
## %bb.5:
	movq	%rax, %rdi
	callq	_kfree
	movl	(%r15), %edi
	movq	_WM_SET@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%ebx, %eax
	andl	$-241, %eax
	movl	-36(%rbp), %edx
	shll	$4, %edx
	orl	%eax, %edx
	callq	_lg_wmab
	movq	%rax, %rdi
	callq	_kfree
	movl	(%r15), %edi
	movl	(%r12), %esi
	andl	$-16, %ebx
	orl	-36(%rbp), %ebx
	movl	%ebx, %edx
	callq	_lg_wmab
	movq	%rax, %rdi
	callq	_kfree
	movl	%r14d, %ebx
	jmp	LBB0_6
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	movq	%rax, %rdi
	callq	_kfree
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_WM_FAN_MODE,4,2                ## @WM_FAN_MODE
	.comm	_WM_GET,4,2                     ## @WM_GET
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ACPI_TYPE_INTEGER,8,3          ## @ACPI_TYPE_INTEGER
	.comm	_WM_SET,4,2                     ## @WM_SET
	.no_dead_strip	_fan_mode_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fan_mode_store
_fan_mode_store:                        ; @fan_mode_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x0, x2
	add	x1, sp, #12
	bl	_kstrtobool
	cbnz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x20, _WM_FAN_MODE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _WM_FAN_MODE@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _WM_GET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WM_GET@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_lg_wmab
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x21, [x0]
Lloh5:
	adrp	x8, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_4
; %bb.3:
	bl	_kfree
	ldr	w0, [x20]
Lloh8:
	adrp	x22, _WM_SET@GOTPAGE
Lloh9:
	ldr	x22, [x22, _WM_SET@GOTPAGEOFF]
	ldr	w1, [x22]
	and	w8, w21, #0xffffff0f
	ldr	w9, [sp, #12]
	orr	w2, w8, w9, lsl #4
	bl	_lg_wmab
	bl	_kfree
	ldr	w0, [x20]
	ldr	w1, [x22]
	and	w8, w21, #0xfffffff0
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	bl	_lg_wmab
	bl	_kfree
	mov	x0, x19
	b	LBB0_6
LBB0_4:
	bl	_kfree
LBB0_5:
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_WM_FAN_MODE,4,2                ; @WM_FAN_MODE
	.comm	_WM_GET,4,2                     ; @WM_GET
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ACPI_TYPE_INTEGER,8,3          ; @ACPI_TYPE_INTEGER
	.comm	_WM_SET,4,2                     ; @WM_SET
	.no_dead_strip	_fan_mode_store
.subsections_via_symbols
