	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adaptive_keyboard_set_mode
_adaptive_keyboard_set_mode:            ## @adaptive_keyboard_set_mode
	.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
	testl	%edi, %edi
	js	LBB0_2
## %bb.1:
	movl	%edi, %r8d
	movq	_LAYFLAT_MODE@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jl	LBB0_2
## %bb.3:
	movq	_hkey_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_acpi_evalf
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_err
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LAYFLAT_MODE,4,2               ## @LAYFLAT_MODE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_hkey_handle,4,2                ## @hkey_handle
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"STRW"

L_.str.1:                               ## @.str.1
	.asciz	"vd"

L_.str.2:                               ## @.str.2
	.asciz	"Cannot set adaptive keyboard mode\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_adaptive_keyboard_set_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adaptive_keyboard_set_mode
_adaptive_keyboard_set_mode:            ; @adaptive_keyboard_set_mode
	.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
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x4, x0
Lloh0:
	adrp	x8, _LAYFLAT_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LAYFLAT_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.lt	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _hkey_handle@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hkey_handle@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x1, #0
	bl	_acpi_evalf
	cbz	w0, LBB0_5
; %bb.3:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_LAYFLAT_MODE,4,2               ; @LAYFLAT_MODE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_hkey_handle,4,2                ; @hkey_handle
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"STRW"

l_.str.1:                               ; @.str.1
	.asciz	"vd"

l_.str.2:                               ; @.str.2
	.asciz	"Cannot set adaptive keyboard mode\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_adaptive_keyboard_set_mode
.subsections_via_symbols
