	.file	"extr_r8152.c_rtl8152_set_mac_address.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rtl8152_set_mac_address, @function
rtl8152_set_mac_address:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	netdev_priv@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	r12d, DWORD PTR EADDRNOTAVAIL[rip]
	mov	rbx, rax
	call	is_valid_ether_addr@PLT
	neg	r12d
	test	eax, eax
	jne	.L6
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	call	usb_autopm_get_interface@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
.L3:
	endbr64
	lea	r14, 4[rbx]
	mov	rdi, r14
	call	mutex_lock@PLT
	mov	edi, DWORD PTR 4[r13]
	mov	edx, DWORD PTR 0[r13]
	mov	esi, DWORD PTR 0[rbp]
	call	memcpy@PLT
	mov	ecx, DWORD PTR CRWECR_CONFIG[rip]
	mov	edx, DWORD PTR PLA_CRWECR[rip]
	mov	rdi, rbx
	mov	esi, DWORD PTR MCU_TYPE_PLA[rip]
	call	ocp_write_byte@PLT
	mov	r8d, DWORD PTR 0[rbp]
	mov	rdi, rbx
	mov	ecx, 8
	mov	edx, DWORD PTR BYTE_EN_SIX_BYTES[rip]
	mov	esi, DWORD PTR PLA_IDR[rip]
	call	pla_ocp_write@PLT
	mov	ecx, DWORD PTR CRWECR_NORAML[rip]
	mov	edx, DWORD PTR PLA_CRWECR[rip]
	mov	rdi, rbx
	mov	esi, DWORD PTR MCU_TYPE_PLA[rip]
	call	ocp_write_byte@PLT
	mov	rdi, r14
	call	mutex_unlock@PLT
	mov	edi, DWORD PTR [rbx]
	call	usb_autopm_put_interface@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.cfi_endproc
.LFE0:
	.size	rtl8152_set_mac_address, .-rtl8152_set_mac_address
	.comm	PLA_IDR,4,4
	.comm	PLA_CRWECR,4,4
	.comm	MCU_TYPE_PLA,4,4
	.comm	EADDRNOTAVAIL,4,4
	.comm	CRWECR_NORAML,4,4
	.comm	CRWECR_CONFIG,4,4
	.comm	BYTE_EN_SIX_BYTES,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_r8152.c_rtl8152_set_mac_address.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl8152_set_mac_address, %function
rtl8152_set_mac_address:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #12
	mov	r5, r1
	mov	r6, r0
	bl	netdev_priv
	ldr	r3, .L7
	mov	r7, r0
	ldr	r0, [r5]
	ldr	r4, [r3]
	bl	is_valid_ether_addr
	cmp	r0, #0
	rsbeq	r4, r4, #0
	bne	.L6
.L1:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L6:
	ldr	r0, [r7]
	bl	usb_autopm_get_interface
	subs	r4, r0, #0
	blt	.L1
.L3:
	add	r8, r7, #4
	mov	r0, r8
	bl	mutex_lock
	ldr	r2, [r6]
	ldr	r1, [r5]
	ldr	r0, [r6, #4]
	bl	memcpy
	ldr	r9, .L7+4
	ldr	r6, .L7+8
	ldr	r3, .L7+12
	ldr	r2, [r9]
	ldr	r1, [r6]
	mov	r0, r7
	ldr	r3, [r3]
	bl	ocp_write_byte
	ldr	r1, [r5]
	ldr	r3, .L7+16
	ldr	r2, .L7+20
	str	r1, [sp]
	ldr	r1, [r3]
	mov	r0, r7
	mov	r3, #8
	ldr	r2, [r2]
	bl	pla_ocp_write
	ldr	r3, .L7+24
	ldr	r2, [r9]
	ldr	r1, [r6]
	ldr	r3, [r3]
	mov	r0, r7
	bl	ocp_write_byte
	mov	r0, r8
	bl	mutex_unlock
	ldr	r0, [r7]
	bl	usb_autopm_put_interface
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L8:
	.align	2
.L7:
	.word	EADDRNOTAVAIL
	.word	PLA_CRWECR
	.word	MCU_TYPE_PLA
	.word	CRWECR_CONFIG
	.word	PLA_IDR
	.word	BYTE_EN_SIX_BYTES
	.word	CRWECR_NORAML
	.size	rtl8152_set_mac_address, .-rtl8152_set_mac_address
	.comm	PLA_IDR,4,4
	.comm	PLA_CRWECR,4,4
	.comm	MCU_TYPE_PLA,4,4
	.comm	EADDRNOTAVAIL,4,4
	.comm	CRWECR_NORAML,4,4
	.comm	CRWECR_CONFIG,4,4
	.comm	BYTE_EN_SIX_BYTES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
