	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_key_direction_state_init       ## -- Begin function key_direction_state_init
	.p2align	4, 0x90
_key_direction_state_init:              ## @key_direction_state_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	movl	8(%rbx), %esi
	callq	_CLEAR
	cmpl	$130, %r14d
	je	LBB0_4
## %bb.1:
	cmpl	$129, %r14d
	je	LBB0_6
## %bb.2:
	cmpl	$128, %r14d
	jne	LBB0_5
## %bb.3:
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, (%rbx)
	jmp	LBB0_7
LBB0_4:
	movq	$0, (%rbx)
	movl	$1, 8(%rbx)
	jmp	LBB0_8
LBB0_6:
	movq	$1, (%rbx)
LBB0_7:
	movl	$2, 8(%rbx)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	xorl	%edi, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ASSERT                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function key_direction_state_init
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
lCPI0_1:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_key_direction_state_init
	.p2align	2
_key_direction_state_init:              ; @key_direction_state_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
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0]
	ldr	w1, [x19, #8]
	bl	_CLEAR
	cmp	w20, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w20, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w20, #128
	b.ne	LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, lCPI0_1@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	b	LBB0_6
LBB0_4:
	str	xzr, [x19]
	mov	w8, #1
	b	LBB0_7
LBB0_5:
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
LBB0_6:
	str	d0, [x19]
	mov	w8, #2
LBB0_7:
	str	w8, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ASSERT
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
