	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IntTranslateKey                ## -- Begin function IntTranslateKey
	.p2align	4, 0x90
_IntTranslateKey:                       ## @IntTranslateKey
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	%rdx, %rdi
	movl	$48, %esi
	callq	_RtlZeroMemory
	movq	_KEY_BREAK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r14), %eax
	jne	LBB0_1
## %bb.2:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movl	$1, (%rbx)
	movq	8(%r14), %rsi
	movq	%rsi, 40(%rbx)
	leaq	L_.str(%rip), %rdi
	callq	_DPRINT
	leaq	_IntTranslateKey.dwControlKeyState(%rip), %rsi
	movl	%r15d, %edi
	movq	%r14, %rdx
	callq	_IntUpdateControlKeyState
	movl	_IntTranslateKey.dwControlKeyState(%rip), %esi
	movl	%esi, 16(%rbx)
	movq	_KEY_E0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_5
## %bb.4:
	movq	_ENHANCED_KEY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%esi, 16(%rbx)
LBB0_5:
	movq	%r14, %rdi
	callq	_IntVKFromKbdInput
	movq	%rax, 32(%rbx)
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_DPRINT
	cmpq	$0, 24(%rbx)
	je	LBB0_7
## %bb.6:
	movl	16(%rbx), %esi
	movq	%r14, %rdi
	callq	_IntAsciiFromInput
	movq	%rax, 8(%rbx)
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	callq	_DPRINT
	jmp	LBB0_8
LBB0_7:
	movq	$0, 8(%rbx)
LBB0_8:
	movq	_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_IntTranslateKey.dwControlKeyState,4,2 ## @IntTranslateKey.dwControlKeyState
	.comm	_KEY_BREAK,4,2                  ## @KEY_BREAK
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_FALSE,8,3                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Translating: %x\n"

	.comm	_KEY_E0,4,2                     ## @KEY_E0
	.comm	_ENHANCED_KEY,4,2               ## @ENHANCED_KEY
L_.str.1:                               ## @.str.1
	.asciz	"Result: %x\n"

L_.str.2:                               ## @.str.2
	.asciz	"Char: %x\n"

	.comm	_STATUS_SUCCESS,4,2             ## @STATUS_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IntTranslateKey                ; -- Begin function IntTranslateKey
	.p2align	2
_IntTranslateKey:                       ; @IntTranslateKey
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	mov	w1, #48
	bl	_RtlZeroMemory
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _KEY_BREAK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KEY_BREAK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _TRUE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TRUE@GOTPAGEOFF]
Lloh5:
	adrp	x11, _FALSE@GOTPAGE
Lloh6:
	ldr	x11, [x11, _FALSE@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	x8, [x8]
	str	x8, [x19, #24]
	mov	w8, #1
	str	w8, [x19]
	ldr	x1, [x20, #8]
	str	x1, [x19, #40]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINT
Lloh9:
	adrp	x22, _IntTranslateKey.dwControlKeyState@PAGE
Lloh10:
	add	x22, x22, _IntTranslateKey.dwControlKeyState@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_IntUpdateControlKeyState
	ldr	w1, [x22]
	str	w1, [x19, #16]
	ldr	w8, [x20]
Lloh11:
	adrp	x9, _KEY_E0@GOTPAGE
Lloh12:
	ldr	x9, [x9, _KEY_E0@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh14:
	adrp	x8, _ENHANCED_KEY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENHANCED_KEY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w1, w8, w1
	str	w1, [x19, #16]
LBB0_2:
	mov	x0, x20
	bl	_IntVKFromKbdInput
	mov	x1, x0
	str	x0, [x19, #32]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINT
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_IntAsciiFromInput
	mov	x1, x0
	str	x0, [x19, #8]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPRINT
	b	LBB0_5
LBB0_4:
	str	xzr, [x19, #8]
LBB0_5:
Lloh21:
	adrp	x8, _STATUS_SUCCESS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _STATUS_SUCCESS@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	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
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_IntTranslateKey.dwControlKeyState,4,2 ; @IntTranslateKey.dwControlKeyState
	.comm	_KEY_BREAK,4,2                  ; @KEY_BREAK
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_FALSE,8,3                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Translating: %x\n"

	.comm	_KEY_E0,4,2                     ; @KEY_E0
	.comm	_ENHANCED_KEY,4,2               ; @ENHANCED_KEY
l_.str.1:                               ; @.str.1
	.asciz	"Result: %x\n"

l_.str.2:                               ; @.str.2
	.asciz	"Char: %x\n"

	.comm	_STATUS_SUCCESS,4,2             ; @STATUS_SUCCESS
.subsections_via_symbols
