	.file	"extr_nmclan_cs.c_mace_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mace_write, @function
mace_write:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, edx
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	sar	eax, 4
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edx
	je	.L2
	cmp	eax, 1
	je	.L3
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR AM2150_MACE_BASE[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movzx	edi, cl
	add	esi, ebp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	add	esi, edx
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	outb@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	xor	r14d, r14d
	mov	r13, rdi
	and	ebx, 15
	mov	rsi, r14
	call	spin_lock_irqsave@PLT
	mov	edi, 1
	call	MACEBANK@PLT
	mov	esi, DWORD PTR AM2150_MACE_BASE[rip]
	movzx	edi, r12b
	add	esi, ebp
	add	esi, ebx
	call	outb@PLT
	xor	edi, edi
	call	MACEBANK@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rsi, r14
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rdi, r13
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.cfi_endproc
.LFE0:
	.size	mace_write, .-mace_write
	.comm	AM2150_MACE_BASE,4,4
	.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_nmclan_cs.c_mace_write.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mace_write, %function
mace_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	asrs	r6, r2, #4
	mov	r4, r2
	mov	r8, r1
	mov	r7, r3
	beq	.L2
	cmp	r6, #1
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r9, #0
	mov	r5, r0
	mov	r1, r9
	bl	spin_lock_irqsave
	mov	r0, r6
	bl	MACEBANK
	ldr	r3, .L9
	and	r4, r4, #15
	ldr	r1, [r3]
	and	r0, r7, #255
	add	r1, r8, r1
	add	r1, r1, r4
	bl	outb
	mov	r0, r9
	bl	MACEBANK
	mov	r1, r9
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	spin_unlock_irqrestore
.L2:
	ldr	r3, .L9
	and	r0, r7, #255
	ldr	r1, [r3]
	add	r1, r8, r1
	add	r1, r1, r2
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	outb
.L10:
	.align	2
.L9:
	.word	AM2150_MACE_BASE
	.size	mace_write, .-mace_write
	.comm	AM2150_MACE_BASE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
