	.file	"extr_draw.c_PicoDrawUpdateHighPal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	PicoDrawUpdateHighPal
	.type	PicoDrawUpdateHighPal, @function
PicoDrawUpdateHighPal:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	rax, QWORD PTR Pico[rip]
	mov	edi, DWORD PTR 48[rax]
	mov	eax, DWORD PTR PicoOpt[rip]
	sar	edi, 3
	and	edi, 1
	test	DWORD PTR POPT_ALT_RENDERER[rip], eax
	mov	eax, 0
	cmovne	edi, eax
	call	PicoDoHighPal555@PLT
	mov	eax, DWORD PTR rendstatus[rip]
	test	DWORD PTR PDRAW_SONIC_MODE[rip], eax
	jne	.L7
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rsi, QWORD PTR HighPal[rip]
	mov	edx, 128
	lea	rdi, 64[rsi]
	call	memcpy@PLT
	mov	rsi, QWORD PTR HighPal[rip]
	mov	edx, 128
	add	rsp, 8
	.cfi_def_cfa_offset 8
	lea	rdi, 128[rsi]
	jmp	memcpy@PLT
	.cfi_endproc
.LFE0:
	.size	PicoDrawUpdateHighPal, .-PicoDrawUpdateHighPal
	.comm	rendstatus,4,4
	.comm	PicoOpt,4,4
	.comm	Pico,8,8
	.comm	POPT_ALT_RENDERER,4,4
	.comm	PDRAW_SONIC_MODE,4,4
	.comm	HighPal,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_draw.c_PicoDrawUpdateHighPal.c"
	.text
	.align	2
	.global	PicoDrawUpdateHighPal
	.syntax unified
	.arm
	.fpu softvfp
	.type	PicoDrawUpdateHighPal, %function
PicoDrawUpdateHighPal:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L7
	ldr	r1, .L7+4
	ldr	r2, .L7+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, [r3, #48]
	tst	r1, r2
	asreq	r0, r0, #3
	movne	r0, #0
	andeq	r0, r0, #1
	push	{r4, lr}
	bl	PicoDoHighPal555
	ldr	r2, .L7+12
	ldr	r3, .L7+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	popeq	{r4, pc}
	ldr	r4, .L7+20
	mov	r2, #128
	ldr	r1, [r4]
	add	r0, r1, #64
	bl	memcpy
	mov	r2, #128
	ldr	r1, [r4]
	pop	{r4, lr}
	add	r0, r1, r2
	b	memcpy
.L8:
	.align	2
.L7:
	.word	Pico
	.word	PicoOpt
	.word	POPT_ALT_RENDERER
	.word	rendstatus
	.word	PDRAW_SONIC_MODE
	.word	HighPal
	.size	PicoDrawUpdateHighPal, .-PicoDrawUpdateHighPal
	.comm	rendstatus,4,4
	.comm	PicoOpt,4,4
	.comm	Pico,4,4
	.comm	POPT_ALT_RENDERER,4,4
	.comm	PDRAW_SONIC_MODE,4,4
	.comm	HighPal,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
