	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformGetScancodeName   ## -- Begin function _glfwPlatformGetScancodeName
	.p2align	4, 0x90
__glfwPlatformGetScancodeName:          ## @_glfwPlatformGetScancodeName
	.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
	movq	__glfw@GOTPCREL(%rip), %r14
	cmpl	$0, 20(%r14)
	je	LBB0_7
## %bb.1:
	movq	(%r14), %rax
	movslq	%edi, %rsi
	movslq	(%rax,%rsi,4), %r15
	movl	24(%r14), %edi
	movl	16(%r14), %edx
	xorl	%ebx, %ebx
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%ecx, %ecx
	callq	_XkbKeycodeToKeysym
	movq	_NoSymbol@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %rdi
	callq	__glfwKeySym2Unicode
	cmpq	$-1, %rax
	je	LBB0_7
## %bb.3:
	movq	8(%r14), %rcx
	movq	(%rcx,%r15,8), %rdi
	movl	%eax, %esi
	callq	_encodeUTF8
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	8(%r14), %rcx
	movq	(%rcx,%r15,8), %rcx
	movb	$0, (%rcx,%rax)
	movq	8(%r14), %rax
	movq	(%rax,%r15,8), %rbx
	jmp	LBB0_8
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,32,3                     ## @_glfw
	.comm	_NoSymbol,8,3                   ## @NoSymbol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformGetScancodeName   ; -- Begin function _glfwPlatformGetScancodeName
	.p2align	2
__glfwPlatformGetScancodeName:          ; @_glfwPlatformGetScancodeName
	.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
Lloh0:
	adrp	x19, __glfw@GOTPAGE
Lloh1:
	ldr	x19, [x19, __glfw@GOTPAGEOFF]
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x1, x0
	ldr	x8, [x19]
	ldrsw	x20, [x8, w0, sxtw #2]
	ldr	w0, [x19, #24]
	ldr	w2, [x19, #16]
	mov	w3, #0
	bl	_XkbKeycodeToKeysym
Lloh2:
	adrp	x8, _NoSymbol@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NoSymbol@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.2:
	bl	__glfwKeySym2Unicode
	cmn	x0, #1
	b.eq	LBB0_5
; %bb.3:
	mov	x1, x0
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x20, lsl #3]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_encodeUTF8
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x8, [x19, #8]
	lsl	x9, x20, #3
	ldr	x8, [x8, x9]
	strb	wzr, [x8, x0]
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x9]
	b	LBB0_6
LBB0_5:
	mov	x0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,32,3                     ; @_glfw
	.comm	_NoSymbol,8,3                   ; @NoSymbol
.subsections_via_symbols
