	.file	"extr_ks8851.c_ks8851_read_mac_addr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ks8851_read_mac_addr, @function
ks8851_read_mac_addr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	netdev_priv@PLT
	mov	rdi, rax
	mov	r12, rax
	call	mutex_lock@PLT
	mov	eax, DWORD PTR ETH_ALEN[rip]
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, ebx
	call	KS_MAR@PLT
	mov	rdi, r12
	mov	esi, eax
	mov	rax, QWORD PTR 0[r13]
	lea	rbp, [rax+rbx*4]
	add	rbx, 1
	call	ks8851_rdreg8@PLT
	mov	DWORD PTR 0[rbp], eax
	cmp	DWORD PTR ETH_ALEN[rip], ebx
	jg	.L3
.L2:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	mutex_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	ks8851_read_mac_addr, .-ks8851_read_mac_addr
	.comm	ETH_ALEN,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_ks8851.c_ks8851_read_mac_addr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ks8851_read_mac_addr, %function
ks8851_read_mac_addr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	bl	netdev_priv
	ldr	r8, .L7
	mov	r6, r0
	bl	mutex_lock
	ldr	r3, [r8]
	cmp	r3, #0
	ble	.L2
	mov	r4, #0
.L3:
	mov	r0, r4
	bl	KS_MAR
	mov	r1, r0
	mov	r0, r6
	ldr	r5, [r7]
	bl	ks8851_rdreg8
	str	r0, [r5, r4, lsl #2]
	ldr	r3, [r8]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L3
.L2:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	mutex_unlock
.L8:
	.align	2
.L7:
	.word	ETH_ALEN
	.size	ks8851_read_mac_addr, .-ks8851_read_mac_addr
	.comm	ETH_ALEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
