	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RedoPalette
_RedoPalette:                           ## @RedoPalette
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_curbpp@GOTPCREL(%rip), %rax
	cmpl	$9, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_psdl@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	popq	%rbp
	jmp	_SetPaletteBlitToHigh           ## TAILCALL
LBB0_2:
	movq	_screen@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SDL_PHYSPAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_psdl@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%ecx, %ecx
	movl	$256, %r8d                      ## imm = 0x100
	popq	%rbp
	jmp	_SDL_SetPalette                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_curbpp,4,2                     ## @curbpp
	.comm	_psdl,8,3                       ## @psdl
	.comm	_screen,4,2                     ## @screen
	.comm	_SDL_PHYSPAL,4,2                ## @SDL_PHYSPAL
	.comm	_usingogl,8,3                   ## @usingogl
	.no_dead_strip	_RedoPalette
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RedoPalette
_RedoPalette:                           ; @RedoPalette
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _curbpp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curbpp@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #9
	b.lt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _psdl@GOTPAGE
Lloh4:
	ldr	x8, [x8, _psdl@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	b	_SetPaletteBlitToHigh
LBB0_2:
Lloh6:
	adrp	x8, _screen@GOTPAGE
Lloh7:
	ldr	x8, [x8, _screen@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _SDL_PHYSPAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SDL_PHYSPAL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _psdl@GOTPAGE
Lloh13:
	ldr	x8, [x8, _psdl@GOTPAGEOFF]
Lloh14:
	ldr	x2, [x8]
	mov	w3, #0
	mov	w4, #256
	b	_SDL_SetPalette
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_curbpp,4,2                     ; @curbpp
	.comm	_psdl,8,3                       ; @psdl
	.comm	_screen,4,2                     ; @screen
	.comm	_SDL_PHYSPAL,4,2                ; @SDL_PHYSPAL
	.comm	_usingogl,8,3                   ; @usingogl
	.no_dead_strip	_RedoPalette
.subsections_via_symbols
