	.file	"extr_netxen_nic_hw.c_netxen_p2_nic_set_mac_addr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	netxen_p2_nic_set_mac_addr, @function
netxen_p2_nic_set_mac_addr:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r15d, DWORD PTR [rdi]
	cmp	DWORD PTR NETXEN_NIU_MAX_XG_PORTS[rip], r15d
	jg	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12d, DWORD PTR [rsi]
	mov	eax, DWORD PTR 4[rsi]
	mov	ecx, r15d
	mov	rbp, rdi
	sal	ecx, 16
	mov	r14d, DWORD PTR 8[rsi]
	mov	ebx, DWORD PTR 16[rsi]
	sal	eax, 24
	sal	r12d, 16
	mov	r15d, ecx
	mov	r13d, DWORD PTR 20[rsi]
	or	r12d, eax
	mov	eax, DWORD PTR 12[rsi]
	add	r15d, DWORD PTR NETXEN_NIU_XGE_STATION_ADDR_0_1[rip]
	mov	DWORD PTR 4[rsp], ecx
	mov	edx, r12d
	mov	esi, r15d
	mov	DWORD PTR 8[rsp], eax
	mov	eax, DWORD PTR NETXEN_NIU_XGE_STATION_ADDR_0_HI[rip]
	mov	DWORD PTR 12[rsp], eax
	call	NXWR32@PLT
	mov	ecx, DWORD PTR 4[rsp]
	test	rax, rax
	jne	.L7
	sal	ebx, 16
	sal	r13d, 24
	mov	eax, DWORD PTR 8[rsp]
	mov	rdi, rbp
	or	r13d, ebx
	or	r14d, r13d
	mov	r13d, DWORD PTR 12[rsp]
	sal	eax, 8
	or	r14d, eax
	add	r13d, ecx
	mov	edx, r14d
	mov	esi, r13d
	call	NXWR32@PLT
	test	rax, rax
	je	.L10
.L7:
	mov	eax, DWORD PTR EIO[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edx, r12d
	mov	esi, r15d
	mov	rdi, rbp
	call	NXWR32@PLT
	test	rax, rax
	jne	.L7
	mov	edx, r14d
	mov	esi, r13d
	mov	rdi, rbp
	call	NXWR32@PLT
	test	rax, rax
	je	.L1
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	netxen_p2_nic_set_mac_addr, .-netxen_p2_nic_set_mac_addr
	.comm	NETXEN_NIU_XGE_STATION_ADDR_0_HI,4,4
	.comm	NETXEN_NIU_XGE_STATION_ADDR_0_1,4,4
	.comm	NETXEN_NIU_MAX_XG_PORTS,4,4
	.comm	EIO,4,4
	.comm	EINVAL,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_netxen_nic_hw.c_netxen_p2_nic_set_mac_addr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	netxen_p2_nic_set_mac_addr, %function
netxen_p2_nic_set_mac_addr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L11
	ldr	r5, [r0]
	ldr	r3, [r3]
	sub	sp, sp, #12
	cmp	r3, r5
	bgt	.L2
	ldr	r3, .L11+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	ip, r1
	ldr	r3, .L11+8
	ldr	r6, [r1, #4]
	ldr	r2, [r1]
	ldr	r3, [r3]
	ldr	lr, .L11+12
	lsl	r6, r6, #24
	add	r8, r3, r5, lsl #16
	orr	r6, r6, r2, lsl #16
	ldr	r3, [lr]
	mov	r1, r8
	mov	r2, r6
	mov	r4, r0
	ldr	r10, [ip, #8]
	ldr	r9, [ip, #12]
	ldr	fp, [ip, #16]
	ldr	r7, [ip, #20]
	str	r3, [sp, #4]
	bl	NXWR32
	cmp	r0, #0
	lsl	r5, r5, #16
	bne	.L7
	lsl	r7, r7, #24
	ldr	r3, [sp, #4]
	orr	fp, r7, fp, lsl #16
	orr	r10, fp, r10
	add	r5, r5, r3
	orr	r9, r10, r9, lsl #8
	mov	r2, r9
	mov	r1, r5
	mov	r0, r4
	bl	NXWR32
	cmp	r0, #0
	beq	.L10
.L7:
	ldr	r3, .L11+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	mov	r2, r6
	mov	r1, r8
	mov	r0, r4
	bl	NXWR32
	cmp	r0, #0
	bne	.L7
	mov	r2, r9
	mov	r1, r5
	mov	r0, r4
	bl	NXWR32
	cmp	r0, #0
	beq	.L1
	b	.L7
.L12:
	.align	2
.L11:
	.word	NETXEN_NIU_MAX_XG_PORTS
	.word	EINVAL
	.word	NETXEN_NIU_XGE_STATION_ADDR_0_1
	.word	NETXEN_NIU_XGE_STATION_ADDR_0_HI
	.word	EIO
	.size	netxen_p2_nic_set_mac_addr, .-netxen_p2_nic_set_mac_addr
	.comm	NETXEN_NIU_XGE_STATION_ADDR_0_HI,4,4
	.comm	NETXEN_NIU_XGE_STATION_ADDR_0_1,4,4
	.comm	NETXEN_NIU_MAX_XG_PORTS,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
