	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function als_store
_als_store:                             ## @als_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %r14
	movq	%rdx, %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movl	%eax, -20(%rbp)
	movq	_HPWMI_ALS_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HPWMI_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movl	$4, %ecx
	movl	$4, %r8d
	callq	_hp_wmi_perform_query
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	subl	(%rcx), %ebx
	testl	%eax, %eax
	cmovnsl	%ebx, %eax
	cmovel	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPWMI_ALS_QUERY,4,2            ## @HPWMI_ALS_QUERY
	.comm	_HPWMI_WRITE,4,2                ## @HPWMI_WRITE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_als_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function als_store
_als_store:                             ; @als_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
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	str	w0, [sp, #12]
Lloh0:
	adrp	x8, _HPWMI_ALS_QUERY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HPWMI_ALS_QUERY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _HPWMI_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HPWMI_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	w3, #4
	mov	w4, #4
	bl	_hp_wmi_perform_query
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w8, w0, w8, lt
	csel	w0, w19, w8, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HPWMI_ALS_QUERY,4,2            ; @HPWMI_ALS_QUERY
	.comm	_HPWMI_WRITE,4,2                ; @HPWMI_WRITE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_als_store
.subsections_via_symbols
