	.file	"extr_if_urtw.c_urtw_get_macaddr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	urtw_get_macaddr, @function
urtw_get_macaddr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rsi, QWORD PTR URTW_EPROM_MACADDR[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r12, 4[rsp]
	mov	rdx, r12
	call	urtw_eprom_read32@PLT
	test	rax, rax
	je	.L6
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L7
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rax, QWORD PTR [rbx]
	movzx	edx, BYTE PTR 4[rsp]
	mov	rdi, rbx
	mov	DWORD PTR [rax], edx
	movzx	edx, BYTE PTR 5[rsp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR URTW_EPROM_MACADDR[rip]
	mov	rdx, r12
	lea	rsi, 1[rax]
	call	urtw_eprom_read32@PLT
	test	rax, rax
	jne	.L1
	mov	eax, DWORD PTR 4[rsp]
	mov	rdx, QWORD PTR [rbx]
	mov	rdi, rbx
	movzx	ecx, al
	movzx	eax, ah
	mov	DWORD PTR 12[rdx], eax
	mov	rax, QWORD PTR URTW_EPROM_MACADDR[rip]
	mov	DWORD PTR 8[rdx], ecx
	mov	rdx, r12
	lea	rsi, 2[rax]
	call	urtw_eprom_read32@PLT
	test	rax, rax
	jne	.L1
.L2:
	endbr64
	mov	edx, DWORD PTR 4[rsp]
	mov	rcx, QWORD PTR [rbx]
	movzx	esi, dl
	movzx	edx, dh
	mov	DWORD PTR 16[rcx], esi
	mov	DWORD PTR 20[rcx], edx
	jmp	.L1
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	urtw_get_macaddr, .-urtw_get_macaddr
	.comm	URTW_EPROM_MACADDR,8,8
	.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_if_urtw.c_urtw_get_macaddr.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	urtw_get_macaddr, %function
urtw_get_macaddr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r5, .L8
	sub	sp, sp, #12
	ldr	r3, .L8+4
	mov	r2, sp
	ldr	r1, [r5]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r4, r0
	bl	urtw_eprom_read32
	cmp	r0, #0
	beq	.L6
.L1:
	ldr	r3, .L8+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L6:
	ldr	r3, [r4]
	ldrb	r2, [sp]	@ zero_extendqisi2
	ldr	r1, [r5]
	str	r2, [r3]
	ldrb	r2, [sp, #1]	@ zero_extendqisi2
	mov	r0, r4
	str	r2, [r3, #4]
	add	r1, r1, #1
	mov	r2, sp
	bl	urtw_eprom_read32
	cmp	r0, #0
	bne	.L1
	ldr	r3, [sp]
	ldr	ip, [r4]
	ldr	r1, [r5]
	asr	r0, r3, #8
	and	r0, r0, #255
	and	r3, r3, #255
	str	r0, [ip, #12]
	mov	r2, sp
	mov	r0, r4
	add	r1, r1, #2
	str	r3, [ip, #8]
	bl	urtw_eprom_read32
	cmp	r0, #0
	bne	.L1
.L2:
	ldr	r3, [sp]
	ldr	r1, [r4]
	asr	r2, r3, #8
	and	r2, r2, #255
	and	r3, r3, #255
	str	r3, [r1, #16]
	str	r2, [r1, #20]
	b	.L1
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	URTW_EPROM_MACADDR
	.word	.LC0
	.size	urtw_get_macaddr, .-urtw_get_macaddr
	.comm	URTW_EPROM_MACADDR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
