	.file	"extr_ar9003_eeprom.c_ar9003_hw_get_target_power_eeprom.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"TPC[%02d] 0x%08x\n"
	.text
	.p2align 4
	.type	ar9003_hw_get_target_power_eeprom, @function
ar9003_hw_get_target_power_eeprom:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	IS_CHAN_2GHZ@PLT
	mov	rdi, r13
	mov	r14d, eax
	call	ath9k_hw_common@PLT
	mov	ebx, DWORD PTR [r15]
	mov	r12, rax
	test	r14d, r14d
	jne	.L15
.L2:
	mov	ecx, r14d
	mov	rdx, rbp
	mov	esi, ebx
	mov	rdi, r13
	call	ar9003_hw_get_legacy_target_powers@PLT
	mov	rdi, r13
	mov	ecx, r14d
	mov	rdx, rbp
	mov	esi, ebx
	call	ar9003_hw_get_ht20_target_powers@PLT
	mov	rdi, r15
	call	IS_CHAN_HT40@PLT
	test	rax, rax
	jne	.L16
.L3:
	mov	eax, DWORD PTR ar9300RateSize[rip]
	test	eax, eax
	je	.L1
	xor	ebx, ebx
	lea	r13, .LC0[rip]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, ebx
	mov	esi, DWORD PTR EEPROM[rip]
	mov	ecx, ebx
	mov	rdx, r13
	mov	r8d, DWORD PTR 0[rbp+rax*4]
	mov	rdi, r12
	add	ebx, 1
	call	ath_dbg@PLT
	cmp	DWORD PTR ar9300RateSize[rip], ebx
	ja	.L5
.L1:
	add	rsp, 8
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdx, rbp
	mov	esi, ebx
	mov	rdi, r13
	call	ar9003_hw_get_cck_target_powers@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L16:
	mov	ecx, r14d
	mov	rdx, rbp
	mov	esi, ebx
	mov	rdi, r13
	call	ar9003_hw_get_ht40_target_powers@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	ar9003_hw_get_target_power_eeprom, .-ar9003_hw_get_target_power_eeprom
	.comm	ar9300RateSize,4,4
	.comm	EEPROM,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_ar9003_eeprom.c_ar9003_hw_get_target_power_eeprom.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TPC[%02d] 0x%08x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar9003_hw_get_target_power_eeprom, %function
ar9003_hw_get_target_power_eeprom:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r0
	sub	sp, sp, #12
	mov	r0, r1
	mov	r8, r1
	mov	r5, r2
	bl	IS_CHAN_2GHZ
	mov	r7, r0
	mov	r0, r4
	bl	ath9k_hw_common
	cmp	r7, #0
	mov	r6, r0
	ldr	r9, [r8]
	bne	.L18
.L2:
	mov	r3, r7
	mov	r2, r5
	mov	r1, r9
	mov	r0, r4
	bl	ar9003_hw_get_legacy_target_powers
	mov	r3, r7
	mov	r2, r5
	mov	r1, r9
	mov	r0, r4
	bl	ar9003_hw_get_ht20_target_powers
	mov	r0, r8
	bl	IS_CHAN_HT40
	cmp	r0, #0
	bne	.L19
.L3:
	ldr	r7, .L20
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L1
	mov	r4, #0
	ldr	r8, .L20+4
	ldr	r9, .L20+8
	sub	r5, r5, #4
.L5:
	ldr	r1, [r5, #4]!
	mov	r3, r4
	str	r1, [sp]
	mov	r2, r9
	mov	r0, r6
	ldr	r1, [r8]
	bl	ath_dbg
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	bhi	.L5
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L18:
	mov	r2, r5
	mov	r1, r9
	mov	r0, r4
	bl	ar9003_hw_get_cck_target_powers
	b	.L2
.L19:
	mov	r3, r7
	mov	r1, r9
	mov	r0, r4
	mov	r2, r5
	bl	ar9003_hw_get_ht40_target_powers
	b	.L3
.L21:
	.align	2
.L20:
	.word	ar9300RateSize
	.word	EEPROM
	.word	.LC0
	.size	ar9003_hw_get_target_power_eeprom, .-ar9003_hw_get_target_power_eeprom
	.comm	ar9300RateSize,4,4
	.comm	EEPROM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
