	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function vga_mem_wr_handler
LCPI0_0:
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	4                               ## 0x4
	.long	8                               ## 0x8
LCPI0_1:
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vga_mem_wr_handler:                    ## @vga_mem_wr_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, %r15d
	movl	%esi, %r14d
	movl	16(%rcx), %eax
	cmpq	$3, %rax
	ja	LBB0_7
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	addl	$-655360, %r14d                 ## imm = 0xFFF60000
	movq	_KB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$7, %eax
	jmp	LBB0_6
LBB0_3:
	addl	$-655360, %r14d                 ## imm = 0xFFF60000
	movq	_KB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$6, %eax
	jmp	LBB0_6
LBB0_4:
	xorl	%edi, %edi
	callq	_assert
LBB0_5:
	addl	$-753664, %r14d                 ## imm = 0xFFF48000
	movq	_KB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$5, %eax
LBB0_6:
	decl	%eax
	andl	%eax, %r14d
LBB0_7:
	movl	20(%rbx), %edx
	movups	28(%rbx), %xmm2
	movl	44(%rbx), %eax
	cmpl	$3, %eax
	je	LBB0_13
## %bb.8:
	cmpl	$2, %eax
	je	LBB0_16
## %bb.9:
	testl	%eax, %eax
	jne	LBB0_32
## %bb.10:
	movb	52(%rbx), %cl
	movl	%r15d, %esi
	sarl	%cl, %esi
	movb	$8, %al
	subb	%cl, %al
	movl	%eax, %ecx
	shll	%cl, %r15d
	movl	64(%rbx), %edi
	roll	$29, %edi
	cmpl	$3, %edi
	ja	LBB0_32
## %bb.11:
	movl	24(%rbx), %ecx
	movl	48(%rbx), %eax
	orl	%esi, %r15d
	leaq	LJTI0_3(%rip), %rsi
	movslq	(%rsi,%rdi,4), %rdi
	addq	%rsi, %rdi
	jmpq	*%rdi
LBB0_12:
	movd	%edx, %xmm0
	pshufd	$0, %xmm0, %xmm1                ## xmm1 = xmm0[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [1,2,4,8]
	pand	%xmm3, %xmm1
	movd	%ecx, %xmm0
	pshufd	$0, %xmm0, %xmm4                ## xmm4 = xmm0[0,0,0,0]
	pand	%xmm3, %xmm4
	movl	%eax, %ecx
	notl	%ecx
	andl	%eax, %r15d
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm4, %xmm0
	movd	%eax, %xmm4
	pshufd	$0, %xmm4, %xmm4                ## xmm4 = xmm4[0,0,0,0]
	pcmpeqd	%xmm3, %xmm1
	pand	%xmm4, %xmm1
	movd	%ecx, %xmm3
	pshufd	$0, %xmm3, %xmm3                ## xmm3 = xmm3[0,0,0,0]
	andps	%xmm3, %xmm2
	jmp	LBB0_23
LBB0_13:
	movl	64(%rbx), %eax
	roll	$29, %eax
	cmpl	$3, %eax
	ja	LBB0_32
## %bb.14:
	andl	48(%rbx), %r15d
	leaq	LJTI0_2(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_15:
	movd	%edx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [1,2,4,8]
	pand	%xmm1, %xmm0
	pcmpeqd	%xmm1, %xmm0
	pand	LCPI0_1(%rip), %xmm0
	movd	%r15d, %xmm1
	notl	%r15d
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	pand	%xmm0, %xmm1
	movd	%r15d, %xmm0
	jmp	LBB0_19
LBB0_16:
	movl	64(%rbx), %ecx
	roll	$29, %ecx
	cmpl	$3, %ecx
	ja	LBB0_32
## %bb.17:
	movl	48(%rbx), %eax
	leaq	LJTI0_1(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_18:
	movd	%r15d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [1,2,4,8]
	pand	%xmm1, %xmm0
	pcmpeqd	%xmm1, %xmm0
	pand	LCPI0_1(%rip), %xmm0
	movd	%eax, %xmm1
	notl	%eax
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	pand	%xmm0, %xmm1
	movd	%eax, %xmm0
LBB0_19:
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	andps	%xmm0, %xmm2
	jmp	LBB0_20
LBB0_21:
	movd	%edx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [1,2,4,8]
	pand	%xmm3, %xmm0
	notl	%eax
	movd	%ecx, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	pand	%xmm3, %xmm1
	pxor	%xmm3, %xmm3
	pcmpeqd	%xmm3, %xmm0
	movd	%eax, %xmm4
	pshufd	$0, %xmm4, %xmm4                ## xmm4 = xmm4[0,0,0,0]
	movaps	LCPI0_1(%rip), %xmm5            ## xmm5 = [255,0,0,0,255,0,0,0,255,0,0,0,255,0,0,0]
	blendvps	%xmm0, %xmm4, %xmm5
	pcmpeqd	%xmm3, %xmm1
	movd	%r15d, %xmm0
	pshufd	$0, %xmm0, %xmm3                ## xmm3 = xmm0[0,0,0,0]
	movdqa	%xmm1, %xmm0
	blendvps	%xmm0, %xmm3, %xmm2
	andps	%xmm5, %xmm2
	cmpq	$0, 56(%rbx)
	jne	LBB0_33
	jmp	LBB0_45
LBB0_22:
	movd	%edx, %xmm0
	pshufd	$0, %xmm0, %xmm1                ## xmm1 = xmm0[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [1,2,4,8]
	pand	%xmm3, %xmm1
	movd	%ecx, %xmm0
	pshufd	$0, %xmm0, %xmm4                ## xmm4 = xmm0[0,0,0,0]
	pand	%xmm3, %xmm4
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm4, %xmm0
	movd	%eax, %xmm4
	pshufd	$0, %xmm4, %xmm4                ## xmm4 = xmm4[0,0,0,0]
	pcmpeqd	%xmm3, %xmm1
	pand	%xmm4, %xmm1
LBB0_23:
	movd	%r15d, %xmm3
	pshufd	$0, %xmm3, %xmm3                ## xmm3 = xmm3[0,0,0,0]
	blendvps	%xmm0, %xmm3, %xmm2
LBB0_20:
	orps	%xmm1, %xmm2
	cmpq	$0, 56(%rbx)
	jne	LBB0_33
LBB0_45:
	movl	8(%rbx), %eax
	testb	$1, %al
	jne	LBB0_49
## %bb.46:
	testb	$2, %al
	jne	LBB0_50
LBB0_47:
	testb	$4, %al
	jne	LBB0_51
LBB0_48:
	testb	$8, %al
	jne	LBB0_52
	jmp	LBB0_55
LBB0_49:
	movq	(%rbx), %rax
	movslq	%r14d, %rcx
	movss	%xmm2, (%rax,%rcx,4)
	movl	8(%rbx), %eax
	testb	$2, %al
	je	LBB0_47
LBB0_50:
	movq	(%rbx), %rax
	movq	_KB@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	shlq	$6, %rcx
	movslq	%r14d, %rdx
	addq	%rcx, %rdx
	extractps	$1, %xmm2, (%rax,%rdx,4)
	movl	8(%rbx), %eax
	testb	$4, %al
	je	LBB0_48
LBB0_51:
	movq	(%rbx), %rax
	movq	_KB@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	shlq	$7, %rcx
	movslq	%r14d, %rdx
	addq	%rcx, %rdx
	extractps	$2, %xmm2, (%rax,%rdx,4)
	movl	8(%rbx), %eax
	testb	$8, %al
	je	LBB0_55
LBB0_52:
	movq	_KB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,2), %ecx
	shll	$6, %ecx
	addl	%r14d, %ecx
	jmp	LBB0_53
LBB0_24:
	movd	%edx, %xmm0
	pshufd	$0, %xmm0, %xmm1                ## xmm1 = xmm0[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [1,2,4,8]
	pand	%xmm3, %xmm1
	movd	%ecx, %xmm0
	pshufd	$0, %xmm0, %xmm4                ## xmm4 = xmm0[0,0,0,0]
	pand	%xmm3, %xmm4
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm4, %xmm0
	movd	%eax, %xmm4
	pshufd	$0, %xmm4, %xmm4                ## xmm4 = xmm4[0,0,0,0]
	pcmpeqd	%xmm3, %xmm1
	pand	%xmm4, %xmm1
	movd	%r15d, %xmm3
	pshufd	$0, %xmm3, %xmm3                ## xmm3 = xmm3[0,0,0,0]
	blendvps	%xmm0, %xmm3, %xmm2
	jmp	LBB0_44
LBB0_25:
	movd	%edx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [1,2,4,8]
	pand	%xmm1, %xmm0
	notl	%r15d
	pcmpeqd	%xmm1, %xmm0
	pand	LCPI0_1(%rip), %xmm0
	movd	%r15d, %xmm1
	jmp	LBB0_29
LBB0_26:
	movd	%edx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [1,2,4,8]
	pand	%xmm1, %xmm0
	pcmpeqd	%xmm1, %xmm0
	pand	LCPI0_1(%rip), %xmm0
	movd	%r15d, %xmm1
	jmp	LBB0_31
LBB0_27:
	movd	%edx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [1,2,4,8]
	pand	%xmm1, %xmm0
	pcmpeqd	%xmm1, %xmm0
	pand	LCPI0_1(%rip), %xmm0
	movd	%r15d, %xmm1
	jmp	LBB0_43
LBB0_28:
	movd	%r15d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [1,2,4,8]
	pand	%xmm1, %xmm0
	notl	%eax
	pcmpeqd	%xmm1, %xmm0
	pand	LCPI0_1(%rip), %xmm0
	movd	%eax, %xmm1
LBB0_29:
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	por	%xmm0, %xmm1
	andps	%xmm1, %xmm2
	cmpq	$0, 56(%rbx)
	jne	LBB0_33
	jmp	LBB0_45
LBB0_30:
	movd	%r15d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [1,2,4,8]
	pand	%xmm1, %xmm0
	pcmpeqd	%xmm1, %xmm0
	pand	LCPI0_1(%rip), %xmm0
	movd	%eax, %xmm1
LBB0_31:
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	pand	%xmm0, %xmm1
	orps	%xmm1, %xmm2
LBB0_32:
	cmpq	$0, 56(%rbx)
	je	LBB0_45
LBB0_33:
	testb	$1, %r14b
	jne	LBB0_38
## %bb.34:
	movl	8(%rbx), %eax
	testb	$1, %al
	je	LBB0_36
## %bb.35:
	movq	(%rbx), %rax
	movslq	%r14d, %rcx
	movss	%xmm2, (%rax,%rcx,4)
	movl	8(%rbx), %eax
LBB0_36:
	testb	$4, %al
	je	LBB0_55
## %bb.37:
	movq	_KB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	shll	$7, %ecx
	addl	%r14d, %ecx
	extractps	$2, %xmm2, %eax
	jmp	LBB0_54
LBB0_38:
	movslq	%r14d, %rax
	andq	$-2, %rax
	movl	8(%rbx), %ecx
	testb	$2, %cl
	je	LBB0_40
## %bb.39:
	movq	(%rbx), %rcx
	movq	_KB@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	shlq	$6, %rdx
	addq	%rax, %rdx
	extractps	$1, %xmm2, (%rcx,%rdx,4)
	movl	8(%rbx), %ecx
LBB0_40:
	testb	$8, %cl
	je	LBB0_55
## %bb.41:
	movq	_KB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	(%rcx,%rcx,2), %ecx
	shll	$6, %ecx
	addl	%eax, %ecx
LBB0_53:
	extractps	$3, %xmm2, %eax
LBB0_54:
	movq	(%rbx), %rdx
	movslq	%ecx, %rcx
	movl	%eax, (%rdx,%rcx,4)
LBB0_55:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_42:
	movd	%r15d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [1,2,4,8]
	pand	%xmm1, %xmm0
	pcmpeqd	%xmm1, %xmm0
	pand	LCPI0_1(%rip), %xmm0
	movd	%eax, %xmm1
LBB0_43:
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	pand	%xmm0, %xmm1
LBB0_44:
	xorps	%xmm1, %xmm2
	cmpq	$0, 56(%rbx)
	jne	LBB0_33
	jmp	LBB0_45
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
.set L0_1_set_18, LBB0_18-LJTI0_1
.set L0_1_set_28, LBB0_28-LJTI0_1
.set L0_1_set_30, LBB0_30-LJTI0_1
.set L0_1_set_42, LBB0_42-LJTI0_1
LJTI0_1:
	.long	L0_1_set_18
	.long	L0_1_set_28
	.long	L0_1_set_30
	.long	L0_1_set_42
.set L0_2_set_15, LBB0_15-LJTI0_2
.set L0_2_set_25, LBB0_25-LJTI0_2
.set L0_2_set_26, LBB0_26-LJTI0_2
.set L0_2_set_27, LBB0_27-LJTI0_2
LJTI0_2:
	.long	L0_2_set_15
	.long	L0_2_set_25
	.long	L0_2_set_26
	.long	L0_2_set_27
.set L0_3_set_12, LBB0_12-LJTI0_3
.set L0_3_set_21, LBB0_21-LJTI0_3
.set L0_3_set_22, LBB0_22-LJTI0_3
.set L0_3_set_24, LBB0_24-LJTI0_3
LJTI0_3:
	.long	L0_3_set_12
	.long	L0_3_set_21
	.long	L0_3_set_22
	.long	L0_3_set_24
	.end_data_region
                                        ## -- End function
	.comm	_KB,4,2                         ## @KB
	.no_dead_strip	_vga_mem_wr_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function vga_mem_wr_handler
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	4                               ; 0x4
	.long	8                               ; 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vga_mem_wr_handler:                    ; @vga_mem_wr_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x3
	mov	x21, x2
	mov	x20, x1
	ldr	w8, [x3, #16]
	cmp	w8, #3
	b.hi	LBB0_7
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	sub	w8, w20, #160, lsl #12          ; =655360
Lloh2:
	adrp	x9, _KB@GOTPAGE
Lloh3:
	ldr	x9, [x9, _KB@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	lsl	w9, w9, #7
	b	LBB0_6
LBB0_3:
	sub	w8, w20, #160, lsl #12          ; =655360
Lloh5:
	adrp	x9, _KB@GOTPAGE
Lloh6:
	ldr	x9, [x9, _KB@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	lsl	w9, w9, #6
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	bl	_assert
LBB0_5:
	sub	w8, w20, #160, lsl #12          ; =655360
	sub	w8, w8, #24, lsl #12            ; =98304
Lloh8:
	adrp	x9, _KB@GOTPAGE
Lloh9:
	ldr	x9, [x9, _KB@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	lsl	w9, w9, #5
LBB0_6:
	sub	w9, w9, #1
	and	w20, w9, w8
LBB0_7:
	ldr	w8, [x19, #20]
	ldur	q0, [x19, #28]
	ldr	w9, [x19, #44]
	cmp	w9, #3
	b.eq	LBB0_13
; %bb.8:
	cmp	w9, #2
	b.eq	LBB0_16
; %bb.9:
	cbnz	w9, LBB0_40
; %bb.10:
	ldr	w9, [x19, #64]
	ror	w12, w9, #3
	cmp	w12, #3
	b.hi	LBB0_40
; %bb.11:
	ldr	w11, [x19, #24]
	ldp	w10, w9, [x19, #48]
	asr	w13, w21, w9
	mov	w14, #8
	sub	w9, w14, w9
	lsl	w9, w21, w9
	orr	w9, w9, w13
Lloh11:
	adrp	x13, lJTI0_3@PAGE
Lloh12:
	add	x13, x13, lJTI0_3@PAGEOFF
	adr	x14, LBB0_12
	ldrb	w15, [x13, x12]
	add	x14, x14, x15, lsl #2
	br	x14
LBB0_12:
	dup.4s	v1, w8
Lloh13:
	adrp	x8, lCPI0_0@PAGE
Lloh14:
	ldr	q2, [x8, lCPI0_0@PAGEOFF]
	and.16b	v1, v1, v2
	dup.4s	v3, w11
	and.16b	v2, v3, v2
	mvn	w8, w10
	and	w9, w9, w10
	cmeq.4s	v1, v1, #0
	dup.4s	v3, w10
	bic.16b	v1, v3, v1
	dup.4s	v3, w8
	cmeq.4s	v2, v2, #0
	and.16b	v0, v0, v3
	b	LBB0_22
LBB0_13:
	ldr	w9, [x19, #64]
	ror	w10, w9, #3
	cmp	w10, #3
	b.hi	LBB0_40
; %bb.14:
	ldr	w9, [x19, #48]
	and	w9, w9, w21
Lloh15:
	adrp	x11, lJTI0_2@PAGE
Lloh16:
	add	x11, x11, lJTI0_2@PAGEOFF
	adr	x12, LBB0_15
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_15:
	dup.4s	v1, w8
Lloh17:
	adrp	x8, lCPI0_0@PAGE
Lloh18:
	ldr	q2, [x8, lCPI0_0@PAGEOFF]
	and.16b	v1, v1, v2
	mvn	w8, w9
	cmeq.4s	v1, v1, #0
	dup.4s	v2, w9
	bic.16b	v1, v2, v1
	movi.2d	v2, #0x0000ff000000ff
	and.16b	v1, v1, v2
	dup.4s	v2, w8
	b	LBB0_19
LBB0_16:
	ldr	w8, [x19, #64]
	ror	w9, w8, #3
	cmp	w9, #3
	b.hi	LBB0_40
; %bb.17:
	ldr	w8, [x19, #48]
Lloh19:
	adrp	x10, lJTI0_1@PAGE
Lloh20:
	add	x10, x10, lJTI0_1@PAGEOFF
	adr	x11, LBB0_18
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_18:
	dup.4s	v1, w21
Lloh21:
	adrp	x9, lCPI0_0@PAGE
Lloh22:
	ldr	q2, [x9, lCPI0_0@PAGEOFF]
	and.16b	v1, v1, v2
	mvn	w9, w8
	cmeq.4s	v1, v1, #0
	dup.4s	v2, w8
	bic.16b	v1, v2, v1
	movi.2d	v2, #0x0000ff000000ff
	and.16b	v1, v1, v2
	dup.4s	v2, w9
LBB0_19:
	and.16b	v0, v0, v2
	b	LBB0_23
LBB0_20:
	dup.4s	v1, w8
Lloh23:
	adrp	x8, lCPI0_0@PAGE
Lloh24:
	ldr	q2, [x8, lCPI0_0@PAGEOFF]
	and.16b	v1, v1, v2
	dup.4s	v3, w11
	mvn	w8, w10
	and.16b	v2, v3, v2
	cmeq.4s	v1, v1, #0
	dup.4s	v3, w8
	movi.2d	v4, #0x0000ff000000ff
	bsl.16b	v1, v3, v4
	cmeq.4s	v2, v2, #0
	dup.4s	v3, w9
	bit.16b	v0, v3, v2
	and.16b	v0, v0, v1
	ldr	x8, [x19, #56]
	cbnz	x8, LBB0_41
	b	LBB0_24
LBB0_21:
	dup.4s	v1, w8
Lloh25:
	adrp	x8, lCPI0_0@PAGE
Lloh26:
	ldr	q2, [x8, lCPI0_0@PAGEOFF]
	and.16b	v1, v1, v2
	dup.4s	v3, w11
	and.16b	v2, v3, v2
	cmeq.4s	v1, v1, #0
	dup.4s	v3, w10
	bic.16b	v1, v3, v1
	cmeq.4s	v2, v2, #0
LBB0_22:
	dup.4s	v3, w9
	bit.16b	v0, v3, v2
LBB0_23:
	orr.16b	v0, v0, v1
	ldr	x8, [x19, #56]
	cbnz	x8, LBB0_41
LBB0_24:
	ldr	w8, [x19, #8]
	tbnz	w8, #0, LBB0_28
; %bb.25:
	tbnz	w8, #1, LBB0_29
LBB0_26:
	tbnz	w8, #2, LBB0_30
LBB0_27:
	tbnz	w8, #3, LBB0_31
	b	LBB0_52
LBB0_28:
	ldr	x8, [x19]
	str	s0, [x8, w20, sxtw #2]
	ldr	w8, [x19, #8]
	tbz	w8, #1, LBB0_26
LBB0_29:
	ldr	x8, [x19]
Lloh27:
	adrp	x9, _KB@GOTPAGE
Lloh28:
	ldr	x9, [x9, _KB@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	add	w9, w20, w9, lsl #6
	add	x8, x8, w9, sxtw #2
	st1.s	{ v0 }[1], [x8]
	ldr	w8, [x19, #8]
	tbz	w8, #2, LBB0_27
LBB0_30:
	ldr	x8, [x19]
Lloh30:
	adrp	x9, _KB@GOTPAGE
Lloh31:
	ldr	x9, [x9, _KB@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	add	w9, w20, w9, lsl #7
	add	x8, x8, w9, sxtw #2
	st1.s	{ v0 }[2], [x8]
	ldr	w8, [x19, #8]
	tbz	w8, #3, LBB0_52
LBB0_31:
Lloh33:
	adrp	x8, _KB@GOTPAGE
Lloh34:
	ldr	x8, [x8, _KB@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	mov	w9, #192
	madd	w8, w8, w9, w20
	b	LBB0_50
LBB0_32:
	dup.4s	v1, w8
Lloh36:
	adrp	x8, lCPI0_0@PAGE
Lloh37:
	ldr	q2, [x8, lCPI0_0@PAGEOFF]
	and.16b	v1, v1, v2
	dup.4s	v3, w11
	and.16b	v2, v3, v2
	dup.4s	v3, w10
	cmeq.4s	v1, v1, #0
	cmeq.4s	v2, v2, #0
	dup.4s	v4, w9
	bit.16b	v0, v4, v2
	bcax.16b	v0, v0, v3, v1
	ldr	x8, [x19, #56]
	cbnz	x8, LBB0_41
	b	LBB0_24
LBB0_33:
	dup.4s	v1, w8
Lloh38:
	adrp	x8, lCPI0_0@PAGE
Lloh39:
	ldr	q2, [x8, lCPI0_0@PAGEOFF]
	and.16b	v1, v1, v2
	mvn	w8, w9
	b	LBB0_37
LBB0_34:
	dup.4s	v1, w8
Lloh40:
	adrp	x8, lCPI0_0@PAGE
Lloh41:
	ldr	q2, [x8, lCPI0_0@PAGEOFF]
	and.16b	v1, v1, v2
	cmeq.4s	v1, v1, #0
	dup.4s	v2, w9
	b	LBB0_39
LBB0_35:
	dup.4s	v1, w8
Lloh42:
	adrp	x8, lCPI0_0@PAGE
Lloh43:
	ldr	q2, [x8, lCPI0_0@PAGEOFF]
	and.16b	v1, v1, v2
	cmeq.4s	v1, v1, #0
	dup.4s	v2, w9
	b	LBB0_54
LBB0_36:
	dup.4s	v1, w21
Lloh44:
	adrp	x9, lCPI0_0@PAGE
Lloh45:
	ldr	q2, [x9, lCPI0_0@PAGEOFF]
	and.16b	v1, v1, v2
	mvn	w8, w8
LBB0_37:
	cmeq.4s	v1, v1, #0
	movi.2d	v2, #0x0000ff000000ff
	bic.16b	v1, v2, v1
	dup.4s	v2, w8
	orr.16b	v1, v1, v2
	and.16b	v0, v1, v0
	ldr	x8, [x19, #56]
	cbnz	x8, LBB0_41
	b	LBB0_24
LBB0_38:
	dup.4s	v1, w21
Lloh46:
	adrp	x9, lCPI0_0@PAGE
Lloh47:
	ldr	q2, [x9, lCPI0_0@PAGEOFF]
	and.16b	v1, v1, v2
	cmeq.4s	v1, v1, #0
	dup.4s	v2, w8
LBB0_39:
	bic.16b	v1, v2, v1
	movi.2d	v2, #0x0000ff000000ff
	and.16b	v1, v1, v2
	orr.16b	v0, v1, v0
LBB0_40:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_24
LBB0_41:
	tbnz	w20, #0, LBB0_46
; %bb.42:
	ldr	w8, [x19, #8]
	tbz	w8, #0, LBB0_44
; %bb.43:
	ldr	x8, [x19]
	str	s0, [x8, w20, sxtw #2]
	ldr	w8, [x19, #8]
LBB0_44:
	tbz	w8, #2, LBB0_52
; %bb.45:
Lloh48:
	adrp	x8, _KB@GOTPAGE
Lloh49:
	ldr	x8, [x8, _KB@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	add	w8, w20, w8, lsl #7
	mov	w9, #2
	b	LBB0_51
LBB0_46:
	and	w8, w20, #0xfffffffe
	ldr	w9, [x19, #8]
	tbz	w9, #1, LBB0_48
; %bb.47:
	ldr	x9, [x19]
Lloh51:
	adrp	x10, _KB@GOTPAGE
Lloh52:
	ldr	x10, [x10, _KB@GOTPAGEOFF]
Lloh53:
	ldr	w10, [x10]
	add	w10, w8, w10, lsl #6
	add	x9, x9, w10, sxtw #2
	st1.s	{ v0 }[1], [x9]
	ldr	w9, [x19, #8]
LBB0_48:
	tbz	w9, #3, LBB0_52
; %bb.49:
Lloh54:
	adrp	x9, _KB@GOTPAGE
Lloh55:
	ldr	x9, [x9, _KB@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	mov	w10, #192
	madd	w8, w9, w10, w8
LBB0_50:
	mov	w9, #3
LBB0_51:
	str	q0, [sp]
	mov	x10, sp
	bfi	x10, x9, #2, #2
	ldr	w9, [x10]
	ldr	x10, [x19]
	str	w9, [x10, w8, sxtw #2]
LBB0_52:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_53:
	dup.4s	v1, w21
Lloh57:
	adrp	x9, lCPI0_0@PAGE
Lloh58:
	ldr	q2, [x9, lCPI0_0@PAGEOFF]
	and.16b	v1, v1, v2
	cmeq.4s	v1, v1, #0
	dup.4s	v2, w8
LBB0_54:
	bic.16b	v1, v2, v1
	movi.2d	v2, #0x0000ff000000ff
	and.16b	v1, v1, v2
	eor.16b	v0, v1, v0
	ldr	x8, [x19, #56]
	cbnz	x8, LBB0_41
	b	LBB0_24
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdr	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdr	Lloh21, Lloh22
	.loh AdrpLdr	Lloh23, Lloh24
	.loh AdrpLdr	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdr	Lloh36, Lloh37
	.loh AdrpLdr	Lloh38, Lloh39
	.loh AdrpLdr	Lloh40, Lloh41
	.loh AdrpLdr	Lloh42, Lloh43
	.loh AdrpLdr	Lloh44, Lloh45
	.loh AdrpLdr	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdr	Lloh57, Lloh58
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_18-LBB0_18)>>2
	.byte	(LBB0_36-LBB0_18)>>2
	.byte	(LBB0_38-LBB0_18)>>2
	.byte	(LBB0_53-LBB0_18)>>2
lJTI0_2:
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_33-LBB0_15)>>2
	.byte	(LBB0_34-LBB0_15)>>2
	.byte	(LBB0_35-LBB0_15)>>2
lJTI0_3:
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_20-LBB0_12)>>2
	.byte	(LBB0_21-LBB0_12)>>2
	.byte	(LBB0_32-LBB0_12)>>2
                                        ; -- End function
	.comm	_KB,4,2                         ; @KB
	.no_dead_strip	_vga_mem_wr_handler
.subsections_via_symbols
