	.file	"extr_wl3501_cs.c_wl3501_get_flash_mac_addr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wl3501_get_flash_mac_addr, @function
wl3501_get_flash_mac_addr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rsi, QWORD PTR WL3501_NIC_BSS[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movsx	rbx, DWORD PTR [rdi]
	mov	edi, DWORD PTR WL3501_BSS_FPAGE3[rip]
	add	rsi, rbx
	call	wl3501_outb@PLT
	mov	rsi, QWORD PTR WL3501_NIC_LMAL[rip]
	xor	edi, edi
	add	rsi, rbx
	call	wl3501_outb@PLT
	mov	rsi, QWORD PTR WL3501_NIC_LMAH[rip]
	mov	edi, 64
	add	rsi, rbx
	call	wl3501_outb@PLT
	mov	edi, 100
	call	WL3501_NOPLOOP@PLT
	mov	rdi, QWORD PTR WL3501_NIC_IODPA[rip]
	add	rdi, rbx
	call	inb@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	edi, 100
	mov	DWORD PTR [rdx], eax
	call	WL3501_NOPLOOP@PLT
	mov	rdi, QWORD PTR WL3501_NIC_IODPA[rip]
	add	rdi, rbx
	call	inb@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	edi, 100
	mov	DWORD PTR 4[rdx], eax
	call	WL3501_NOPLOOP@PLT
	mov	rdi, QWORD PTR WL3501_NIC_IODPA[rip]
	add	rdi, rbx
	call	inb@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	edi, 100
	mov	DWORD PTR 8[rdx], eax
	call	WL3501_NOPLOOP@PLT
	mov	rdi, QWORD PTR WL3501_NIC_IODPA[rip]
	add	rdi, rbx
	call	inb@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	edi, 100
	mov	DWORD PTR 12[rdx], eax
	call	WL3501_NOPLOOP@PLT
	mov	rdi, QWORD PTR WL3501_NIC_IODPA[rip]
	add	rdi, rbx
	call	inb@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	edi, 100
	mov	DWORD PTR 16[rdx], eax
	call	WL3501_NOPLOOP@PLT
	mov	rdi, QWORD PTR WL3501_NIC_IODPA[rip]
	add	rdi, rbx
	call	inb@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	edi, 100
	mov	DWORD PTR 20[rdx], eax
	call	WL3501_NOPLOOP@PLT
	mov	rdi, QWORD PTR WL3501_NIC_IODPA[rip]
	add	rdi, rbx
	call	inb@PLT
	mov	edi, 100
	mov	QWORD PTR 24[rbp], rax
	call	WL3501_NOPLOOP@PLT
	mov	rsi, QWORD PTR WL3501_NIC_BSS[rip]
	mov	edi, DWORD PTR WL3501_BSS_FPAGE0[rip]
	add	rsi, rbx
	call	wl3501_outb@PLT
	mov	rsi, QWORD PTR WL3501_NIC_LMAL[rip]
	mov	edi, 4
	add	rsi, rbx
	call	wl3501_outb@PLT
	mov	rsi, QWORD PTR WL3501_NIC_LMAH[rip]
	mov	edi, 64
	add	rsi, rbx
	call	wl3501_outb@PLT
	mov	edi, 100
	call	WL3501_NOPLOOP@PLT
	mov	rdi, QWORD PTR WL3501_NIC_IODPA[rip]
	mov	r12, QWORD PTR 16[rbp]
	add	rdi, rbx
	call	inb@PLT
	mov	edi, 100
	mov	QWORD PTR [r12], rax
	call	WL3501_NOPLOOP@PLT
	add	rbx, QWORD PTR WL3501_NIC_IODPA[rip]
	mov	r12, QWORD PTR 16[rbp]
	mov	rdi, rbx
	call	inb@PLT
	mov	esi, DWORD PTR WL3501_BSS_SPAGE0[rip]
	mov	rdi, rbp
	mov	QWORD PTR 8[r12], rax
	call	wl3501_switch_page@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	eax, DWORD PTR [rdx]
	test	eax, eax
	jne	.L4
	xor	eax, eax
	cmp	DWORD PTR 4[rdx], 96
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	sete	al
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	wl3501_get_flash_mac_addr, .-wl3501_get_flash_mac_addr
	.comm	WL3501_NIC_LMAL,8,8
	.comm	WL3501_NIC_LMAH,8,8
	.comm	WL3501_NIC_IODPA,8,8
	.comm	WL3501_NIC_BSS,8,8
	.comm	WL3501_BSS_SPAGE0,4,4
	.comm	WL3501_BSS_FPAGE3,4,4
	.comm	WL3501_BSS_FPAGE0,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_wl3501_cs.c_wl3501_get_flash_mac_addr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wl3501_get_flash_mac_addr, %function
wl3501_get_flash_mac_addr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r9, .L6
	ldr	r4, [r0]
	ldr	r3, .L6+4
	ldr	r1, [r9]
	ldr	r8, .L6+8
	mov	r5, r0
	add	r1, r4, r1
	ldr	r0, [r3]
	bl	wl3501_outb
	ldr	r1, [r8]
	ldr	r7, .L6+12
	add	r1, r4, r1
	mov	r0, #0
	bl	wl3501_outb
	ldr	r1, [r7]
	ldr	r6, .L6+16
	add	r1, r4, r1
	mov	r0, #64
	bl	wl3501_outb
	mov	r0, #100
	bl	WL3501_NOPLOOP
	ldr	r0, [r6]
	add	r0, r4, r0
	bl	inb
	mov	r2, r0
	ldr	r3, [r5, #4]
	mov	r0, #100
	str	r2, [r3]
	bl	WL3501_NOPLOOP
	ldr	r0, [r6]
	add	r0, r4, r0
	bl	inb
	mov	r2, r0
	ldr	r3, [r5, #4]
	mov	r0, #100
	str	r2, [r3, #4]
	bl	WL3501_NOPLOOP
	ldr	r0, [r6]
	add	r0, r4, r0
	bl	inb
	mov	r2, r0
	ldr	r3, [r5, #4]
	mov	r0, #100
	str	r2, [r3, #8]
	bl	WL3501_NOPLOOP
	ldr	r0, [r6]
	add	r0, r4, r0
	bl	inb
	mov	r2, r0
	ldr	r3, [r5, #4]
	mov	r0, #100
	str	r2, [r3, #12]
	bl	WL3501_NOPLOOP
	ldr	r0, [r6]
	add	r0, r4, r0
	bl	inb
	mov	r2, r0
	ldr	r3, [r5, #4]
	mov	r0, #100
	str	r2, [r3, #16]
	bl	WL3501_NOPLOOP
	ldr	r0, [r6]
	add	r0, r4, r0
	bl	inb
	mov	r2, r0
	ldr	r3, [r5, #4]
	mov	r0, #100
	str	r2, [r3, #20]
	bl	WL3501_NOPLOOP
	ldr	r0, [r6]
	add	r0, r4, r0
	bl	inb
	mov	r3, r0
	mov	r0, #100
	str	r3, [r5, #12]
	bl	WL3501_NOPLOOP
	ldr	r3, .L6+20
	ldr	r1, [r9]
	ldr	r0, [r3]
	add	r1, r4, r1
	bl	wl3501_outb
	ldr	r1, [r8]
	mov	r0, #4
	add	r1, r4, r1
	bl	wl3501_outb
	ldr	r1, [r7]
	mov	r0, #64
	add	r1, r4, r1
	bl	wl3501_outb
	mov	r0, #100
	bl	WL3501_NOPLOOP
	ldr	r0, [r6]
	ldr	r7, [r5, #8]
	add	r0, r4, r0
	bl	inb
	mov	r3, r0
	mov	r0, #100
	str	r3, [r7]
	bl	WL3501_NOPLOOP
	ldr	r0, [r6]
	ldr	r6, [r5, #8]
	add	r0, r4, r0
	bl	inb
	ldr	r3, .L6+24
	str	r0, [r6, #4]
	ldr	r1, [r3]
	mov	r0, r5
	bl	wl3501_switch_page
	ldr	r3, [r5, #4]
	ldr	r2, [r3]
	cmp	r2, #0
	ldreq	r0, [r3, #4]
	subeq	r0, r0, #96
	clzeq	r0, r0
	lsreq	r0, r0, #5
	movne	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	.align	2
.L6:
	.word	WL3501_NIC_BSS
	.word	WL3501_BSS_FPAGE3
	.word	WL3501_NIC_LMAL
	.word	WL3501_NIC_LMAH
	.word	WL3501_NIC_IODPA
	.word	WL3501_BSS_FPAGE0
	.word	WL3501_BSS_SPAGE0
	.size	wl3501_get_flash_mac_addr, .-wl3501_get_flash_mac_addr
	.comm	WL3501_NIC_LMAL,4,4
	.comm	WL3501_NIC_LMAH,4,4
	.comm	WL3501_NIC_IODPA,4,4
	.comm	WL3501_NIC_BSS,4,4
	.comm	WL3501_BSS_SPAGE0,4,4
	.comm	WL3501_BSS_FPAGE3,4,4
	.comm	WL3501_BSS_FPAGE0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
