	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_save_original_colors           ## -- Begin function save_original_colors
	.p2align	4, 0x90
_save_original_colors:                  ## @save_original_colors
	.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	_reprogram_VIDEL@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.4:
	movq	_f030coltable_backup@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_f030_coltable_ptr@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_get_colors_on_f030@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Supexec                        ## TAILCALL
LBB0_1:
	xorl	%ebx, %ebx
	movq	_gl_vdi_handle@GOTPCREL(%rip), %r14
	movq	_coltable_backup@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %ecx
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_vq_color
	incq	%rbx
	cmpq	$256, %rbx                      ## imm = 0x100
	jne	LBB0_2
## %bb.3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_reprogram_VIDEL,8,3            ## @reprogram_VIDEL
	.comm	_f030coltable_backup,4,2        ## @f030coltable_backup
	.comm	_f030_coltable_ptr,4,2          ## @f030_coltable_ptr
	.comm	_get_colors_on_f030,4,2         ## @get_colors_on_f030
	.comm	_gl_vdi_handle,4,2              ## @gl_vdi_handle
	.comm	_coltable_backup,8,3            ## @coltable_backup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_save_original_colors           ; -- Begin function save_original_colors
	.p2align	2
_save_original_colors:                  ; @save_original_colors
	.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
Lloh0:
	adrp	x8, _reprogram_VIDEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _reprogram_VIDEL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _f030coltable_backup@GOTPAGE
Lloh4:
	ldr	x8, [x8, _f030coltable_backup@GOTPAGEOFF]
Lloh5:
	adrp	x9, _f030_coltable_ptr@GOTPAGE
Lloh6:
	ldr	x9, [x9, _f030_coltable_ptr@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	str	w8, [x9]
Lloh9:
	adrp	x8, _get_colors_on_f030@GOTPAGE
Lloh10:
	ldr	x8, [x8, _get_colors_on_f030@GOTPAGEOFF]
Lloh11:
	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
	b	_Supexec
LBB0_2:
	mov	x19, #0
Lloh12:
	adrp	x20, _gl_vdi_handle@GOTPAGE
Lloh13:
	ldr	x20, [x20, _gl_vdi_handle@GOTPAGEOFF]
Lloh14:
	adrp	x21, _coltable_backup@GOTPAGE
Lloh15:
	ldr	x21, [x21, _coltable_backup@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	ldr	x8, [x21]
	ldr	w3, [x8, x19, lsl #2]
	mov	x1, x19
	mov	w2, #1
	bl	_vq_color
	add	x19, x19, #1
	cmp	x19, #256
	b.ne	LBB0_3
; %bb.4:
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_reprogram_VIDEL,8,3            ; @reprogram_VIDEL
	.comm	_f030coltable_backup,4,2        ; @f030coltable_backup
	.comm	_f030_coltable_ptr,4,2          ; @f030_coltable_ptr
	.comm	_get_colors_on_f030,4,2         ; @get_colors_on_f030
	.comm	_gl_vdi_handle,4,2              ; @gl_vdi_handle
	.comm	_coltable_backup,8,3            ; @coltable_backup
.subsections_via_symbols
