	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps2kbd_keysym_queue
_ps2kbd_keysym_queue:                   ## @ps2kbd_keysym_queue
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_pthread_mutex_isowned_np
	movl	%eax, %edi
	callq	_assert
	cmpl	$127, %ebx
	jg	LBB0_2
## %bb.1:
	movq	_ascii_translations@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %ebx
LBB0_9:
	testl	%r14d, %r14d
	jne	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	movl	$240, %esi
	callq	_fifo_put
LBB0_11:
	movq	%r15, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fifo_put                       ## TAILCALL
LBB0_2:
	movq	_extended_translations@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.3:
	movl	%ebx, %edx
	addq	$16, %rax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, %rcx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rax), %rcx
	addq	$16, %rax
	testq	%rcx, %rcx
	jne	LBB0_4
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_7:
	movl	-8(%rax), %ebx
	movq	_SCANCODE_E0_PREFIX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, -4(%rax)
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movl	$224, %esi
	callq	_fifo_put
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ascii_translations,8,3         ## @ascii_translations
	.comm	_extended_translations,8,3      ## @extended_translations
	.comm	_SCANCODE_E0_PREFIX,4,2         ## @SCANCODE_E0_PREFIX
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unhandled ps2 keyboard keysym 0x%x\n"

	.no_dead_strip	_ps2kbd_keysym_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps2kbd_keysym_queue
_ps2kbd_keysym_queue:                   ; @ps2kbd_keysym_queue
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_pthread_mutex_isowned_np
	bl	_assert
	cmp	w21, #127
	b.gt	LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _ascii_translations@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ascii_translations@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w21, [x8, w21, sxtw #2]
LBB0_2:
	cbnz	w20, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #240
	bl	_fifo_put
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_fifo_put
LBB0_5:
Lloh3:
	adrp	x8, _extended_translations@GOTPAGE
Lloh4:
	ldr	x8, [x8, _extended_translations@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x10, [x8]
	cbz	x10, LBB0_9
; %bb.6:
	mov	w9, w21
	add	x8, x8, #16
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x10, x9
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x10, [x8], #16
	cbnz	x10, LBB0_7
LBB0_9:
Lloh6:
	adrp	x8, _stderr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_fprintf
LBB0_10:
	ldp	w21, w8, [x8, #-8]
Lloh11:
	adrp	x9, _SCANCODE_E0_PREFIX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SCANCODE_E0_PREFIX@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.11:
	mov	x0, x19
	mov	w1, #224
	bl	_fifo_put
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ascii_translations,8,3         ; @ascii_translations
	.comm	_extended_translations,8,3      ; @extended_translations
	.comm	_SCANCODE_E0_PREFIX,4,2         ; @SCANCODE_E0_PREFIX
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unhandled ps2 keyboard keysym 0x%x\n"

	.no_dead_strip	_ps2kbd_keysym_queue
.subsections_via_symbols
