	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ColorRamGetColor
_ColorRamGetColor:                      ## @ColorRamGetColor
	.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
	movl	%edi, %ebx
	movq	_Vdp2Internal@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jae	LBB0_1
## %bb.3:
	addl	%ebx, %ebx
	movq	_Vdp2ColorRam@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	$4094, %ebx                     ## imm = 0xFFE
	movl	%ebx, %esi
	callq	_T2ReadWord
	movl	$255, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SAT2YAB1                       ## TAILCALL
LBB0_1:
	jne	LBB0_2
## %bb.4:
	shll	$2, %ebx
	andl	$4092, %ebx                     ## imm = 0xFFC
	movq	_Vdp2ColorRam@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_T2ReadWord
	movl	%eax, %r14d
	movl	(%r15), %edi
	orl	$2, %ebx
	movl	%ebx, %esi
	callq	_T2ReadWord
	movl	$255, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SAT2YAB2                       ## TAILCALL
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Vdp2Internal,4,2               ## @Vdp2Internal
	.comm	_Vdp2ColorRam,4,2               ## @Vdp2ColorRam
	.no_dead_strip	_ColorRamGetColor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ColorRamGetColor
_ColorRamGetColor:                      ; @ColorRamGetColor
	.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, x0
Lloh0:
	adrp	x8, _Vdp2Internal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Vdp2Internal@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #2
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _Vdp2ColorRam@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Vdp2ColorRam@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ubfiz	w1, w19, #1, #11
	bl	_T2ReadWord
	mov	x1, x0
	mov	w0, #255
	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	_SAT2YAB1
LBB0_2:
	b.ne	LBB0_4
; %bb.3:
	ubfiz	w1, w19, #2, #10
Lloh6:
	adrp	x21, _Vdp2ColorRam@GOTPAGE
Lloh7:
	ldr	x21, [x21, _Vdp2ColorRam@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_T2ReadWord
	mov	x20, x0
	ldr	w0, [x21]
	mov	w1, #2
	bfi	w1, w19, #2, #10
	bl	_T2ReadWord
	mov	x2, x0
	mov	w0, #255
	mov	x1, x20
	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	_SAT2YAB2
LBB0_4:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_Vdp2Internal,4,2               ; @Vdp2Internal
	.comm	_Vdp2ColorRam,4,2               ; @Vdp2ColorRam
	.no_dead_strip	_ColorRamGetColor
.subsections_via_symbols
