	.file	"extr_macfb.c_v8_brazil_setpalette.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	v8_brazil_setpalette, @function
v8_brazil_setpalette:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edi
	mov	rdi, r14
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r15d, DWORD PTR [r8]
	call	local_irq_save@PLT
	mov	ecx, 8
	mov	edi, 255
	mov	rax, QWORD PTR v8_brazil_cmap_regs[rip]
	sub	ecx, r15d
	sal	ebx, cl
	mov	ecx, r15d
	lea	rsi, 4[rax]
	sar	edi, cl
	or	edi, ebx
	call	nubus_writeb@PLT
	xor	eax, eax
	call	nop@PLT
	mov	rsi, QWORD PTR v8_brazil_cmap_regs[rip]
	mov	edi, r13d
	call	nubus_writeb@PLT
	xor	eax, eax
	call	nop@PLT
	mov	rsi, QWORD PTR v8_brazil_cmap_regs[rip]
	mov	edi, r12d
	call	nubus_writeb@PLT
	xor	eax, eax
	call	nop@PLT
	mov	rsi, QWORD PTR v8_brazil_cmap_regs[rip]
	mov	edi, ebp
	call	nubus_writeb@PLT
	mov	rdi, r14
	call	local_irq_restore@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	v8_brazil_setpalette, .-v8_brazil_setpalette
	.comm	v8_brazil_cmap_regs,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_macfb.c_v8_brazil_setpalette.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	v8_brazil_setpalette, %function
v8_brazil_setpalette:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, #0
	ldr	ip, [sp, #32]
	mov	r8, r0
	mov	r0, r9
	ldr	r10, [ip]
	mov	r6, r2
	mov	r7, r1
	mov	r5, r3
	bl	local_irq_save
	mov	r3, #255
	ldr	r4, .L4
	asr	r3, r3, r10
	ldr	r1, [r4]
	rsb	r0, r10, #8
	orr	r0, r3, r8, lsl r0
	add	r1, r1, #4
	bl	nubus_writeb
	bl	nop
	ldr	r1, [r4]
	mov	r0, r7
	bl	nubus_writeb
	bl	nop
	ldr	r1, [r4]
	mov	r0, r6
	bl	nubus_writeb
	bl	nop
	ldr	r1, [r4]
	mov	r0, r5
	bl	nubus_writeb
	mov	r0, r9
	bl	local_irq_restore
	mov	r0, r9
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	.align	2
.L4:
	.word	v8_brazil_cmap_regs
	.size	v8_brazil_setpalette, .-v8_brazil_setpalette
	.comm	v8_brazil_cmap_regs,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
