	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FCEUD_SetPalette               ## -- Begin function FCEUD_SetPalette
	.p2align	4, 0x90
_FCEUD_SetPalette:                      ## @FCEUD_SetPalette
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_palettedbr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rsi, (%rax,%rdi,8)
	movq	_palettedbg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rdx, (%rax,%rdi,8)
	movq	_palettedbb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rcx, (%rax,%rdi,8)
	movq	_vidready@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	shrq	$2, %rsi
	shrq	$2, %rdx
	shrq	$2, %rcx
	popq	%rbp
	jmp	_vga_setpalette                 ## TAILCALL
LBB0_1:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_palettedbr,8,3                 ## @palettedbr
	.comm	_palettedbg,8,3                 ## @palettedbg
	.comm	_palettedbb,8,3                 ## @palettedbb
	.comm	_vidready,8,3                   ## @vidready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FCEUD_SetPalette               ; -- Begin function FCEUD_SetPalette
	.p2align	2
_FCEUD_SetPalette:                      ; @FCEUD_SetPalette
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _palettedbr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _palettedbr@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsl	x9, x0, #3
	str	x1, [x8, x9]
Lloh3:
	adrp	x8, _palettedbg@GOTPAGE
Lloh4:
	ldr	x8, [x8, _palettedbg@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x2, [x8, x9]
Lloh6:
	adrp	x8, _palettedbb@GOTPAGE
Lloh7:
	ldr	x8, [x8, _palettedbb@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x3, [x8, x9]
Lloh9:
	adrp	x8, _vidready@GOTPAGE
Lloh10:
	ldr	x8, [x8, _vidready@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	lsr	x1, x1, #2
	lsr	x2, x2, #2
	lsr	x3, x3, #2
	b	_vga_setpalette
LBB0_2:
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_palettedbr,8,3                 ; @palettedbr
	.comm	_palettedbg,8,3                 ; @palettedbg
	.comm	_palettedbb,8,3                 ; @palettedbb
	.comm	_vidready,8,3                   ; @vidready
.subsections_via_symbols
