	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kbd_init
_kbd_init:                              ## @kbd_init
	.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
	xorl	%eax, %eax
	callq	_kbd_init_info
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_kbd_init_tokens
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.1:
	movq	_kbd_info@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_4
## %bb.2:
	movq	_kbd_mode_levels_count@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jg	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	callq	_kbd_get_valid_token_counts
	cmpl	$2, %eax
	jl	LBB0_5
LBB0_4:
	movq	_kbd_led_present@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kbd_info,8,3                   ## @kbd_info
	.comm	_kbd_mode_levels_count,4,2      ## @kbd_mode_levels_count
	.comm	_kbd_led_present,4,2            ## @kbd_led_present
	.no_dead_strip	_kbd_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kbd_init
_kbd_init:                              ; @kbd_init
	.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
	bl	_kbd_init_info
	mov	x19, x0
	bl	_kbd_init_tokens
	cbnz	w19, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _kbd_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kbd_info@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _kbd_mode_levels_count@GOTPAGE
Lloh4:
	ldr	x9, [x9, _kbd_mode_levels_count@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, #1, #0, eq
	b.gt	LBB0_3
LBB0_2:
	bl	_kbd_get_valid_token_counts
	cmp	w0, #2
	b.lt	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _kbd_led_present@GOTPAGE
Lloh7:
	ldr	x8, [x8, _kbd_led_present@GOTPAGEOFF]
	mov	w9, #1
Lloh8:
	str	w9, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_kbd_info,8,3                   ; @kbd_info
	.comm	_kbd_mode_levels_count,4,2      ; @kbd_mode_levels_count
	.comm	_kbd_led_present,4,2            ; @kbd_led_present
	.no_dead_strip	_kbd_init
.subsections_via_symbols
