	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TweakVGA                       ## -- Begin function TweakVGA
	.p2align	4, 0x90
_TweakVGA:                              ## @TweakVGA
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_vga_waitretrace
	movl	$968, %edi                      ## imm = 0x3C8
	xorl	%esi, %esi
	callq	_outportb
	movl	$768, %ebx                      ## imm = 0x300
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$969, %edi                      ## imm = 0x3C9
	xorl	%esi, %esi
	callq	_outportb
	decl	%ebx
	jne	LBB0_1
## %bb.2:
	movl	$980, %edi                      ## imm = 0x3D4
	movl	$17, %esi
	callq	_outportb
	movl	$981, %edi                      ## imm = 0x3D5
	callq	_inportb
	movl	%eax, %ebx
	andl	$127, %ebx
	movl	$980, %edi                      ## imm = 0x3D4
	movl	$17, %esi
	callq	_outportb
	movl	$981, %edi                      ## imm = 0x3D5
	movl	%ebx, %esi
	callq	_outportb
	decl	%r14d
	cmpl	$7, %r14d
	ja	LBB0_5
## %bb.3:
	movl	$167, %eax
	btl	%r14d, %eax
	jae	LBB0_5
## %bb.4:
	movslq	%r14d, %rax
	leaq	l_switch.table.TweakVGA(%rip), %rcx
	movq	(%rcx,%rax,8), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	8(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	12(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	16(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	20(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	24(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	28(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	32(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	36(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	40(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	44(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	48(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	52(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	56(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	60(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	64(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	68(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	72(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	76(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	80(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	84(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	88(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	92(%rax), %edi
	callq	_VGAPortSet
	movq	(%rbx), %rax
	movl	96(%rax), %edi
	callq	_VGAPortSet
LBB0_5:
	movl	$986, %edi                      ## imm = 0x3DA
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_outportb                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_v256x240,8,3                   ## @v256x240
	.comm	_v256x256,8,3                   ## @v256x256
	.comm	_v256x256S,8,3                  ## @v256x256S
	.comm	_v256x224S,8,3                  ## @v256x224S
	.comm	_v256x224_103,8,3               ## @v256x224_103
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.TweakVGA
l_switch.table.TweakVGA:
	.quad	_v256x240
	.quad	_v256x256
	.quad	_v256x256S
	.quad	_v256x240
	.quad	_v256x240
	.quad	_v256x224S
	.quad	_v256x240
	.quad	_v256x224_103

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TweakVGA                       ; -- Begin function TweakVGA
	.p2align	2
_TweakVGA:                              ; @TweakVGA
	.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
	mov	x19, x0
	bl	_vga_waitretrace
	mov	w0, #968
	mov	w1, #0
	bl	_outportb
	mov	w20, #768
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #969
	mov	w1, #0
	bl	_outportb
	subs	w20, w20, #1
	b.ne	LBB0_1
; %bb.2:
	mov	w0, #980
	mov	w1, #17
	bl	_outportb
	mov	w0, #981
	bl	_inportb
	and	w20, w0, #0x7f
	mov	w0, #980
	mov	w1, #17
	bl	_outportb
	mov	w0, #981
	mov	x1, x20
	bl	_outportb
	sub	w8, w19, #1
	cmp	w8, #7
	b.hi	LBB0_5
; %bb.3:
	mov	w9, #167
	lsr	w9, w9, w8
	tbz	w9, #0, LBB0_5
; %bb.4:
Lloh0:
	adrp	x9, l_switch.table.TweakVGA@PAGE
Lloh1:
	add	x9, x9, l_switch.table.TweakVGA@PAGEOFF
	ldr	x19, [x9, w8, sxtw #3]
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #12]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #16]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #20]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #24]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #28]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #32]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #36]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #40]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #44]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #48]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #52]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #56]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #60]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #64]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #68]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #72]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #76]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #80]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #84]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #88]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #92]
	bl	_VGAPortSet
	ldr	x8, [x19]
	ldr	w0, [x8, #96]
	bl	_VGAPortSet
LBB0_5:
	mov	w0, #986
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_outportb
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_v256x240,8,3                   ; @v256x240
	.comm	_v256x256,8,3                   ; @v256x256
	.comm	_v256x256S,8,3                  ; @v256x256S
	.comm	_v256x224S,8,3                  ; @v256x224S
	.comm	_v256x224_103,8,3               ; @v256x224_103
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.TweakVGA
l_switch.table.TweakVGA:
	.quad	_v256x240
	.quad	_v256x256
	.quad	_v256x256S
	.quad	_v256x240
	.quad	_v256x240
	.quad	_v256x224S
	.quad	_v256x240
	.quad	_v256x224_103

.subsections_via_symbols
