	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adaptive_keyboard_get_next_mode
_adaptive_keyboard_get_next_mode:       ## @adaptive_keyboard_get_next_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	_adaptive_keyboard_modes@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	decl	%eax
	movslq	%eax, %rcx
	movq	(%r14), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rax,%rdx,4)
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%rdx
	cmpq	%rcx, %rdx
	jbe	LBB0_1
LBB0_3:
	leaq	1(%rdx), %rsi
	xorl	%edi, %edi
	cmpq	%rcx, %rdx
	cmovbq	%rsi, %rdi
	movl	(%rax,%rdi,4), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_adaptive_keyboard_modes,8,3    ## @adaptive_keyboard_modes
	.no_dead_strip	_adaptive_keyboard_get_next_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_get_next_mode
_adaptive_keyboard_get_next_mode:       ; @adaptive_keyboard_get_next_mode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _adaptive_keyboard_modes@GOTPAGE
Lloh1:
	ldr	x20, [x20, _adaptive_keyboard_modes@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	mov	x8, #0
	sub	w9, w0, #1
	sxtw	x10, w9
	ldr	x9, [x20]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9, x8, lsl #2]
	cmp	w11, w19
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x8, x8, #1
	cmp	x8, x10
	b.ls	LBB0_1
LBB0_3:
	cmp	x8, x10
	csinc	x8, xzr, x8, hs
	ldr	w0, [x9, x8, lsl #2]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_adaptive_keyboard_modes,8,3    ; @adaptive_keyboard_modes
	.no_dead_strip	_adaptive_keyboard_get_next_mode
.subsections_via_symbols
