	.file	"extr_eeprom.c_ath5k_eeprom_read_ants.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ath5k_eeprom_read_ants, @function
ath5k_eeprom_read_ants:
.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
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	mov	r15d, r14d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	sar	r15d, 8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	and	r15d, 63
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rbp, QWORD PTR [rsi]
	mov	esi, r14d
	mov	edi, ebp
	call	AR5K_EEPROM_READ@PLT
	mov	rax, QWORD PTR 8[r13]
	xor	r9d, r9d
	xor	r8d, r8d
	lea	rdi, 1[rbp]
	mov	esi, r14d
	mov	DWORD PTR [rax+rbx*4], 0
	mov	rax, QWORD PTR 16[r13]
	mov	DWORD PTR [rax+rbx*4], r9d
	mov	rax, QWORD PTR 24[r13]
	mov	rax, QWORD PTR [rax+rbx*8]
	mov	DWORD PTR [rax], r8d
	call	AR5K_EEPROM_READ@PLT
	mov	rax, QWORD PTR 24[r13]
	mov	edx, r14d
	xor	ecx, ecx
	and	edx, 63
	lea	rdi, 2[rbp]
	mov	esi, r14d
	mov	rax, QWORD PTR [rax+rbx*8]
	mov	DWORD PTR 12[rsp], edx
	mov	DWORD PTR 4[rax], ecx
	mov	DWORD PTR 8[rax], edx
	call	AR5K_EEPROM_READ@PLT
	mov	rax, QWORD PTR 24[r13]
	lea	rdi, 3[rbp]
	mov	esi, r14d
	mov	rax, QWORD PTR [rax+rbx*8]
	mov	DWORD PTR 12[rax], 0
	mov	DWORD PTR 16[rax], 0
	mov	DWORD PTR 20[rax], 0
	call	AR5K_EEPROM_READ@PLT
	mov	rax, QWORD PTR 24[r13]
	xor	r9d, r9d
	xor	r8d, r8d
	mov	esi, r14d
	lea	rdi, 4[rbp]
	mov	rax, QWORD PTR [rax+rbx*8]
	mov	DWORD PTR 24[rax], r15d
	mov	DWORD PTR 28[rax], r9d
	mov	DWORD PTR 32[rax], r8d
	call	AR5K_EEPROM_READ@PLT
	mov	rax, QWORD PTR 24[r13]
	mov	edx, DWORD PTR 12[rsp]
	xor	ecx, ecx
	mov	rsi, QWORD PTR AR5K_ANT_CTL[rip]
	mov	rax, QWORD PTR [rax+rbx*8]
	mov	DWORD PTR 40[rax], edx
	mov	rdx, QWORD PTR 0[r13]
	mov	DWORD PTR 36[rax], ecx
	mov	rcx, QWORD PTR [rdx+rbx*8]
	mov	edx, DWORD PTR [rax]
	sal	edx, 4
	mov	DWORD PTR [rcx+rsi*4], edx
	mov	edx, DWORD PTR 8[rax]
	mov	esi, DWORD PTR 12[rax]
	sal	edx, 6
	sal	esi, 12
	or	edx, esi
	mov	esi, DWORD PTR 16[rax]
	or	edx, DWORD PTR 4[rax]
	sal	esi, 18
	or	edx, esi
	mov	esi, DWORD PTR 20[rax]
	sal	esi, 24
	or	edx, esi
	mov	rsi, QWORD PTR AR5K_ANT_SWTABLE_A[rip]
	mov	DWORD PTR [rcx+rsi*4], edx
	mov	edx, DWORD PTR 28[rax]
	mov	esi, DWORD PTR 32[rax]
	sal	edx, 6
	sal	esi, 12
	or	edx, esi
	mov	esi, DWORD PTR 36[rax]
	or	edx, DWORD PTR 24[rax]
	mov	eax, DWORD PTR 40[rax]
	sal	esi, 18
	or	edx, esi
	sal	eax, 24
	or	eax, edx
	mov	rdx, QWORD PTR AR5K_ANT_SWTABLE_B[rip]
	add	rbp, 5
	mov	DWORD PTR [rcx+rdx*4], eax
	xor	eax, eax
	mov	QWORD PTR [r12], rbp
	add	rsp, 24
	.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
	.cfi_endproc
.LFE0:
	.size	ath5k_eeprom_read_ants, .-ath5k_eeprom_read_ants
	.comm	AR5K_ANT_SWTABLE_B,8,8
	.comm	AR5K_ANT_SWTABLE_A,8,8
	.comm	AR5K_ANT_CTL,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_eeprom.c_ath5k_eeprom_read_ants.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath5k_eeprom_read_ants, %function
ath5k_eeprom_read_ants:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, #0
	mov	r7, r0
	mov	r6, r2
	mov	r9, r8
	ldr	r4, [r1]
	mov	r5, r1
	mov	r0, r4
	mov	r1, r8
	bl	AR5K_EEPROM_READ
	ldr	r3, [r7, #12]
	ldr	r0, [r7, #4]
	ldr	r3, [r3, r6, lsl #2]
	ldr	r1, [r7, #8]
	str	r8, [r0, r6, lsl #2]
	str	r8, [r1, r6, lsl #2]
	add	r0, r4, #1
	mov	r1, r8
	str	r8, [r3]
	bl	AR5K_EEPROM_READ
	ldr	r3, [r7, #12]
	and	r10, r8, #63
	ldr	r3, [r3, r6, lsl #2]
	mov	r1, r8
	stmib	r3, {r9, r10}
	add	r0, r4, #2
	bl	AR5K_EEPROM_READ
	ldr	r3, [r7, #12]
	mov	r1, r8
	ldr	r3, [r3, r6, lsl #2]
	add	r0, r4, #3
	str	r8, [r3, #12]
	str	r8, [r3, #16]
	str	r8, [r3, #20]
	bl	AR5K_EEPROM_READ
	ldr	r3, [r7, #12]
	asr	r1, r8, #8
	ldr	r3, [r3, r6, lsl #2]
	and	r1, r1, #63
	str	r8, [r3, #28]
	str	r8, [r3, #32]
	str	r1, [r3, #24]
	add	r0, r4, #4
	mov	r1, r8
	bl	AR5K_EEPROM_READ
	ldr	r3, [r7, #12]
	ldr	r1, [r7]
	ldr	r3, [r3, r6, lsl #2]
	ldr	r0, .L4
	ldr	r2, [r3]
	ldr	r1, [r1, r6, lsl #2]
	ldr	r0, [r0]
	lsl	r2, r2, #4
	str	r10, [r3, #40]
	str	r8, [r3, #36]
	str	r2, [r1, r0, lsl #2]
	ldr	r2, [r3, #12]
	ldr	r0, [r3, #8]
	ldr	ip, [r3, #4]
	lsl	r2, r2, #12
	ldr	lr, [r3, #16]
	orr	r2, r2, r0, lsl #6
	ldr	r0, .L4+4
	orr	r2, r2, ip
	ldr	ip, [r3, #20]
	ldr	r0, [r0]
	orr	r2, r2, lr, lsl #18
	orr	r2, r2, ip, lsl #24
	str	r2, [r1, r0, lsl #2]
	ldr	r2, [r3, #32]
	ldr	ip, [r3, #28]
	ldr	r0, [r3, #24]
	lsl	r2, r2, #12
	ldr	lr, [r3, #36]
	orr	r2, r2, ip, lsl #6
	ldr	ip, .L4+8
	orr	r2, r2, r0
	ldr	r0, [r3, #40]
	orr	r3, r2, lr, lsl #18
	ldr	r2, [ip]
	orr	r3, r3, r0, lsl #24
	add	r4, r4, #5
	str	r3, [r1, r2, lsl #2]
	mov	fp, r8
	mov	r0, r8
	str	r4, [r5]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	.align	2
.L4:
	.word	AR5K_ANT_CTL
	.word	AR5K_ANT_SWTABLE_A
	.word	AR5K_ANT_SWTABLE_B
	.size	ath5k_eeprom_read_ants, .-ath5k_eeprom_read_ants
	.comm	AR5K_ANT_SWTABLE_B,4,4
	.comm	AR5K_ANT_SWTABLE_A,4,4
	.comm	AR5K_ANT_CTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
