	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_keydirection2ascii             ## -- Begin function keydirection2ascii
	.p2align	4, 0x90
_keydirection2ascii:                    ## @keydirection2ascii
	.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
	movq	_KEY_DIRECTION_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	testl	%edx, %edx
	leaq	L_.str(%rip), %rax
	cmovneq	%rax, %rbx
	jmp	LBB0_7
LBB0_2:
	movq	_KEY_DIRECTION_NORMAL@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_4
## %bb.3:
	testl	%esi, %esi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rbx
	cmoveq	%rax, %rbx
	jmp	LBB0_7
LBB0_4:
	movq	_KEY_DIRECTION_INVERSE@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_6
## %bb.5:
	testl	%esi, %esi
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rbx
	cmoveq	%rax, %rbx
	jmp	LBB0_7
LBB0_6:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_ASSERT
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_DIRECTION_BIDIRECTIONAL,4,2 ## @KEY_DIRECTION_BIDIRECTIONAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not set"

	.comm	_KEY_DIRECTION_NORMAL,4,2       ## @KEY_DIRECTION_NORMAL
L_.str.1:                               ## @.str.1
	.asciz	"1"

L_.str.2:                               ## @.str.2
	.asciz	"0"

	.comm	_KEY_DIRECTION_INVERSE,4,2      ## @KEY_DIRECTION_INVERSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_keydirection2ascii             ; -- Begin function keydirection2ascii
	.p2align	2
_keydirection2ascii:                    ; @keydirection2ascii
	.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
Lloh0:
	adrp	x8, _KEY_DIRECTION_BIDIRECTIONAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KEY_DIRECTION_BIDIRECTIONAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	cmp	w2, #0
	csel	x0, xzr, x8, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh5:
	adrp	x8, _KEY_DIRECTION_NORMAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KEY_DIRECTION_NORMAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, l_.str.1@PAGE
Lloh9:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh10:
	adrp	x9, l_.str.2@PAGE
Lloh11:
	add	x9, x9, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh12:
	adrp	x8, _KEY_DIRECTION_INVERSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KEY_DIRECTION_INVERSE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_7
; %bb.5:
Lloh15:
	adrp	x8, l_.str.2@PAGE
Lloh16:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh17:
	adrp	x9, l_.str.1@PAGE
Lloh18:
	add	x9, x9, l_.str.1@PAGEOFF
LBB0_6:
	cmp	w1, #0
	csel	x0, x9, x8, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w0, #0
	bl	_ASSERT
	mov	x0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_DIRECTION_BIDIRECTIONAL,4,2 ; @KEY_DIRECTION_BIDIRECTIONAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not set"

	.comm	_KEY_DIRECTION_NORMAL,4,2       ; @KEY_DIRECTION_NORMAL
l_.str.1:                               ; @.str.1
	.asciz	"1"

l_.str.2:                               ; @.str.2
	.asciz	"0"

	.comm	_KEY_DIRECTION_INVERSE,4,2      ; @KEY_DIRECTION_INVERSE
.subsections_via_symbols
