	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vga_mem_handler
_vga_mem_handler:                       ## @vga_mem_handler
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
                                        ## kill: def $r8d killed $r8d def $r8
	movl	%ecx, %ebx
	movq	%rdi, %r15
	movq	16(%rbp), %r14
	movq	_MEM_F_WRITE@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_8
## %bb.1:
	decl	%r8d
	cmpl	$7, %r8d
	ja	LBB0_14
## %bb.2:
	leaq	LJTI0_1(%rip), %rax
	movslq	(%rax,%r8,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_3:
	movl	(%r12), %edx
	jmp	LBB0_4
LBB0_8:
	decl	%r8d
	cmpl	$7, %r8d
	ja	LBB0_14
## %bb.9:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r8,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_10:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_vga_mem_rd_handler
	movl	%eax, (%r12)
	jmp	LBB0_14
LBB0_5:
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rcx
	callq	_vga_mem_wr_handler
	incl	%ebx
	movl	(%r12), %edx
	sarl	$8, %edx
	jmp	LBB0_4
LBB0_6:
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rcx
	callq	_vga_mem_wr_handler
	leal	1(%rbx), %esi
	movl	(%r12), %edx
	sarl	$8, %edx
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_vga_mem_wr_handler
	leal	2(%rbx), %esi
	movswl	2(%r12), %edx
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_vga_mem_wr_handler
	addl	$3, %ebx
	movsbl	3(%r12), %edx
	jmp	LBB0_4
LBB0_7:
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rcx
	callq	_vga_mem_wr_handler
	leal	1(%rbx), %esi
	movl	(%r12), %edx
	sarl	$8, %edx
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_vga_mem_wr_handler
	leal	2(%rbx), %esi
	movswl	2(%r12), %edx
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_vga_mem_wr_handler
	leal	3(%rbx), %esi
	movsbl	3(%r12), %edx
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_vga_mem_wr_handler
	leal	4(%rbx), %esi
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_vga_mem_wr_handler
	leal	5(%rbx), %esi
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_vga_mem_wr_handler
	leal	6(%rbx), %esi
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_vga_mem_wr_handler
	addl	$7, %ebx
                                        ## implicit-def: $edx
LBB0_4:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rcx
	callq	_vga_mem_wr_handler
	jmp	LBB0_14
LBB0_11:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_vga_mem_rd_handler
	movl	%eax, (%r12)
	incl	%ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_vga_mem_rd_handler
	shll	$8, %eax
	orl	%eax, (%r12)
	jmp	LBB0_14
LBB0_12:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_vga_mem_rd_handler
	movl	%eax, (%r12)
	leal	1(%rbx), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_vga_mem_rd_handler
	shll	$8, %eax
	orl	%eax, (%r12)
	leal	2(%rbx), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_vga_mem_rd_handler
	shll	$16, %eax
	orl	%eax, (%r12)
	addl	$3, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_vga_mem_rd_handler
	shll	$24, %eax
	orl	%eax, (%r12)
	jmp	LBB0_14
LBB0_13:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_vga_mem_rd_handler
	movl	%eax, (%r12)
	leal	1(%rbx), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_vga_mem_rd_handler
	shll	$8, %eax
	orl	%eax, (%r12)
	leal	2(%rbx), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_vga_mem_rd_handler
	shll	$16, %eax
	orl	%eax, (%r12)
	leal	3(%rbx), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_vga_mem_rd_handler
	shll	$24, %eax
	orl	%eax, (%r12)
	leal	4(%rbx), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_vga_mem_rd_handler
	leal	5(%rbx), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_vga_mem_rd_handler
	leal	6(%rbx), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_vga_mem_rd_handler
	addl	$7, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_vga_mem_rd_handler
LBB0_14:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_14
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_13
.set L0_1_set_3, LBB0_3-LJTI0_1
.set L0_1_set_5, LBB0_5-LJTI0_1
.set L0_1_set_14, LBB0_14-LJTI0_1
.set L0_1_set_6, LBB0_6-LJTI0_1
.set L0_1_set_7, LBB0_7-LJTI0_1
LJTI0_1:
	.long	L0_1_set_3
	.long	L0_1_set_5
	.long	L0_1_set_14
	.long	L0_1_set_6
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_7
	.end_data_region
                                        ## -- End function
	.comm	_MEM_F_WRITE,4,2                ## @MEM_F_WRITE
	.no_dead_strip	_vga_mem_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vga_mem_handler
_vga_mem_handler:                       ; @vga_mem_handler
	.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, x6
	mov	x22, x5
	mov	x21, x3
	mov	x20, x0
Lloh0:
	adrp	x8, _MEM_F_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEM_F_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_4
; %bb.1:
	sub	w8, w4, #1
	cmp	w8, #7
	b.hi	LBB0_15
; %bb.2:
Lloh3:
	adrp	x9, lJTI0_1@PAGE
Lloh4:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x21
	b	LBB0_11
LBB0_4:
	sub	w8, w4, #1
	cmp	w8, #7
	b.hi	LBB0_15
; %bb.5:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_vga_mem_rd_handler
	str	w0, [x22]
	b	LBB0_15
LBB0_7:
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	bl	_vga_mem_wr_handler
	add	w1, w21, #1
	ldr	w8, [x22]
	asr	w2, w8, #8
	b	LBB0_10
LBB0_8:
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	bl	_vga_mem_wr_handler
	add	w1, w21, #1
	ldr	w8, [x22]
	asr	w2, w8, #8
	mov	x0, x20
	mov	x3, x19
	bl	_vga_mem_wr_handler
	add	w1, w21, #2
	ldrsh	w2, [x22, #2]
	mov	x0, x20
	mov	x3, x19
	bl	_vga_mem_wr_handler
	add	w1, w21, #3
	ldrsb	w2, [x22, #3]
	b	LBB0_10
LBB0_9:
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	bl	_vga_mem_wr_handler
	add	w1, w21, #1
	ldr	w8, [x22]
	asr	w2, w8, #8
	mov	x0, x20
	mov	x3, x19
	bl	_vga_mem_wr_handler
	add	w1, w21, #2
	ldrsh	w2, [x22, #2]
	mov	x0, x20
	mov	x3, x19
	bl	_vga_mem_wr_handler
	add	w1, w21, #3
	ldrsb	w2, [x22, #3]
	mov	x0, x20
	mov	x3, x19
	bl	_vga_mem_wr_handler
	add	w1, w21, #4
	mov	x0, x20
	mov	x3, x19
	bl	_vga_mem_wr_handler
	add	w1, w21, #5
	mov	x0, x20
	mov	x3, x19
	bl	_vga_mem_wr_handler
	add	w1, w21, #6
	mov	x0, x20
	mov	x3, x19
	bl	_vga_mem_wr_handler
	add	w1, w21, #7
                                        ; implicit-def: $w2
LBB0_10:
	mov	x0, x20
LBB0_11:
	mov	x3, x19
	bl	_vga_mem_wr_handler
	b	LBB0_15
LBB0_12:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_vga_mem_rd_handler
	str	w0, [x22]
	add	w1, w21, #1
	mov	x0, x20
	mov	x2, x19
	bl	_vga_mem_rd_handler
	ldr	w8, [x22]
	orr	w8, w8, w0, lsl #8
	str	w8, [x22]
	b	LBB0_15
LBB0_13:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_vga_mem_rd_handler
	str	w0, [x22]
	add	w1, w21, #1
	mov	x0, x20
	mov	x2, x19
	bl	_vga_mem_rd_handler
	ldr	w8, [x22]
	orr	w8, w8, w0, lsl #8
	str	w8, [x22]
	add	w1, w21, #2
	mov	x0, x20
	mov	x2, x19
	bl	_vga_mem_rd_handler
	ldr	w8, [x22]
	orr	w8, w8, w0, lsl #16
	str	w8, [x22]
	add	w1, w21, #3
	mov	x0, x20
	mov	x2, x19
	bl	_vga_mem_rd_handler
	ldr	w8, [x22]
	orr	w8, w8, w0, lsl #24
	str	w8, [x22]
	b	LBB0_15
LBB0_14:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_vga_mem_rd_handler
	str	w0, [x22]
	add	w1, w21, #1
	mov	x0, x20
	mov	x2, x19
	bl	_vga_mem_rd_handler
	ldr	w8, [x22]
	orr	w8, w8, w0, lsl #8
	str	w8, [x22]
	add	w1, w21, #2
	mov	x0, x20
	mov	x2, x19
	bl	_vga_mem_rd_handler
	ldr	w8, [x22]
	orr	w8, w8, w0, lsl #16
	str	w8, [x22]
	add	w1, w21, #3
	mov	x0, x20
	mov	x2, x19
	bl	_vga_mem_rd_handler
	ldr	w8, [x22]
	orr	w8, w8, w0, lsl #24
	str	w8, [x22]
	add	w1, w21, #4
	mov	x0, x20
	mov	x2, x19
	bl	_vga_mem_rd_handler
	add	w1, w21, #5
	mov	x0, x20
	mov	x2, x19
	bl	_vga_mem_rd_handler
	add	w1, w21, #6
	mov	x0, x20
	mov	x2, x19
	bl	_vga_mem_rd_handler
	add	w1, w21, #7
	mov	x0, x20
	mov	x2, x19
	bl	_vga_mem_rd_handler
LBB0_15:
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_15-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_15-LBB0_6)>>2
	.byte	(LBB0_15-LBB0_6)>>2
	.byte	(LBB0_15-LBB0_6)>>2
	.byte	(LBB0_14-LBB0_6)>>2
lJTI0_1:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
                                        ; -- End function
	.comm	_MEM_F_WRITE,4,2                ; @MEM_F_WRITE
	.no_dead_strip	_vga_mem_handler
.subsections_via_symbols
