	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drv_read
_drv_read:                              ## @drv_read
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_AssertTCB
	movq	%r14, %rdi
	callq	_assert
	xorl	%eax, %eax
	callq	_SetSP
	leaq	-88(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	leaq	L_.str(%rip), %rdi
	callq	_T_CALLED
	movl	%ebx, %edi
	callq	_T
	movl	(%rbx), %edi
	leaq	-48(%rbp), %rcx
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_ReadConsoleInput
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	_KEY_EVENT@GOTPCREL(%rip), %r13
	leaq	-88(%rbp), %r15
	leaq	-48(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	movq	%r12, %rcx
	callq	_ReadConsoleInput
	testq	%rax, %rax
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -48(%rbp)
	jle	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rax
	cmpq	(%r13), %rax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -56(%rbp)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-64(%rbp), %eax
	movl	%eax, (%r14)
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-72(%rbp), %esi
	movq	%rbx, %rdi
	callq	_MapKey
	movl	%eax, (%r14)
	testl	%eax, %eax
	js	LBB0_7
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_MOUSE_EVENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-80(%rbp), %esi
	movq	%rbx, %rdi
	callq	_handle_mouse
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:
	movq	_KEY_MOUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_11:
	movl	$1, %edi
	callq	_returnCode
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"win32con::drv_read(%p)"

	.comm	_KEY_EVENT,8,3                  ## @KEY_EVENT
	.comm	_MOUSE_EVENT,8,3                ## @MOUSE_EVENT
	.comm	_KEY_MOUSE,4,2                  ## @KEY_MOUSE
	.no_dead_strip	_drv_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drv_read
_drv_read:                              ; @drv_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x20, x0
	bl	_AssertTCB
	mov	x0, x19
	bl	_assert
	bl	_SetSP
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_T_CALLED
	mov	x0, x20
	bl	_T
	ldr	w0, [x20]
	add	x1, sp, #8
	mov	x3, sp
	mov	w2, #1
	bl	_ReadConsoleInput
	cbz	x0, LBB0_11
; %bb.1:
Lloh2:
	adrp	x21, _KEY_EVENT@GOTPAGE
Lloh3:
	ldr	x21, [x21, _KEY_EVENT@GOTPAGEOFF]
Lloh4:
	adrp	x22, _MOUSE_EVENT@GOTPAGE
Lloh5:
	ldr	x22, [x22, _MOUSE_EVENT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20]
	add	x1, sp, #8
	mov	x3, sp
	mov	w2, #1
	bl	_ReadConsoleInput
	cbz	x0, LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #40]
	cbz	w8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #32]
	str	w8, [x19]
	cbnz	w8, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [sp, #24]
	mov	x0, x20
	bl	_MapKey
	str	w0, [x19]
	tbnz	w0, #31, LBB0_2
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [sp, #16]
	mov	x0, x20
	bl	_handle_mouse
	cbz	x0, LBB0_2
; %bb.10:
Lloh6:
	adrp	x8, _KEY_MOUSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KEY_MOUSE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_11:
	mov	w0, #1
	bl	_returnCode
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"win32con::drv_read(%p)"

	.comm	_KEY_EVENT,8,3                  ; @KEY_EVENT
	.comm	_MOUSE_EVENT,8,3                ; @MOUSE_EVENT
	.comm	_KEY_MOUSE,4,2                  ; @KEY_MOUSE
	.no_dead_strip	_drv_read
.subsections_via_symbols
