	.file	"extr_ar9003_phy.c_ar9003_hw_attach_phy_ops.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ar9003_hw_attach_phy_ops
	.type	ar9003_hw_attach_phy_ops, @function
ar9003_hw_attach_phy_ops:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	ath9k_hw_private_ops@PLT
	mov	rdi, r12
	mov	rbx, rax
	call	ath9k_hw_ops@PLT
	mov	rdi, r12
	mov	rbp, rax
	mov	eax, DWORD PTR ar9003_hw_set_channel[rip]
	mov	DWORD PTR 60[rbx], eax
	mov	eax, DWORD PTR ar9003_hw_spur_mitigate[rip]
	mov	DWORD PTR 56[rbx], eax
	call	AR_SREV_9340@PLT
	test	rax, rax
	je	.L2
.L4:
	mov	eax, DWORD PTR ar9003_hw_compute_pll_control_soc[rip]
.L3:
	mov	DWORD PTR 52[rbx], eax
	mov	eax, DWORD PTR ar9003_hw_set_channel_regs[rip]
	mov	rdi, r12
	mov	DWORD PTR 48[rbx], eax
	mov	eax, DWORD PTR ar9003_hw_init_bb[rip]
	mov	DWORD PTR 44[rbx], eax
	mov	eax, DWORD PTR ar9003_hw_process_ini[rip]
	mov	DWORD PTR 40[rbx], eax
	mov	eax, DWORD PTR ar9003_hw_set_rfmode[rip]
	mov	DWORD PTR 36[rbx], eax
	mov	eax, DWORD PTR ar9003_hw_mark_phy_inactive[rip]
	mov	DWORD PTR 32[rbx], eax
	mov	eax, DWORD PTR ar9003_hw_set_delta_slope[rip]
	mov	DWORD PTR 28[rbx], eax
	mov	eax, DWORD PTR ar9003_hw_rfbus_req[rip]
	mov	DWORD PTR 24[rbx], eax
	mov	eax, DWORD PTR ar9003_hw_rfbus_done[rip]
	mov	DWORD PTR 20[rbx], eax
	mov	eax, DWORD PTR ar9003_hw_ani_control[rip]
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR ar9003_hw_do_getnf[rip]
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR ar9003_hw_ani_cache_ini_regs[rip]
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR ar9003_hw_set_radar_params[rip]
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR ar9003_hw_fast_chan_change[rip]
	mov	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR ar9003_hw_antdiv_comb_conf_get[rip]
	mov	DWORD PTR 32[rbp], eax
	mov	eax, DWORD PTR ar9003_hw_antdiv_comb_conf_set[rip]
	mov	DWORD PTR 28[rbp], eax
	mov	eax, DWORD PTR ar9003_hw_spectral_scan_config[rip]
	mov	DWORD PTR 24[rbp], eax
	mov	eax, DWORD PTR ar9003_hw_spectral_scan_trigger[rip]
	mov	DWORD PTR 20[rbp], eax
	mov	eax, DWORD PTR ar9003_hw_spectral_scan_wait[rip]
	mov	DWORD PTR 16[rbp], eax
	mov	eax, DWORD PTR ar9003_hw_tx99_start[rip]
	mov	DWORD PTR 8[rbp], eax
	mov	eax, DWORD PTR ar9003_hw_tx99_stop[rip]
	mov	DWORD PTR 4[rbp], eax
	mov	eax, DWORD PTR ar9003_hw_tx99_set_txpower[rip]
	mov	DWORD PTR 0[rbp], eax
	call	ar9003_hw_set_nf_limits@PLT
	mov	rdi, r12
	call	ar9003_hw_set_radar_conf@PLT
	mov	edi, DWORD PTR [r12]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	edx, 4
	pop	rbp
	.cfi_def_cfa_offset 16
	lea	rsi, ar9300_cca_regs.1996[rip]
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	memcpy@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, r12
	call	AR_SREV_9550@PLT
	test	rax, rax
	jne	.L4
	mov	rdi, r12
	call	AR_SREV_9531@PLT
	test	rax, rax
	jne	.L4
	mov	rdi, r12
	call	AR_SREV_9561@PLT
	test	rax, rax
	jne	.L4
	mov	eax, DWORD PTR ar9003_hw_compute_pll_control[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	ar9003_hw_attach_phy_ops, .-ar9003_hw_attach_phy_ops
	.section	.rodata
	.align 16
	.type	ar9300_cca_regs.1996, @object
	.size	ar9300_cca_regs.1996, 24
ar9300_cca_regs.1996:
	.long	133
	.long	132
	.long	131
	.long	130
	.long	129
	.long	128
	.comm	ar9003_hw_tx99_stop,4,4
	.comm	ar9003_hw_tx99_start,4,4
	.comm	ar9003_hw_tx99_set_txpower,4,4
	.comm	ar9003_hw_spur_mitigate,4,4
	.comm	ar9003_hw_spectral_scan_wait,4,4
	.comm	ar9003_hw_spectral_scan_trigger,4,4
	.comm	ar9003_hw_spectral_scan_config,4,4
	.comm	ar9003_hw_set_rfmode,4,4
	.comm	ar9003_hw_set_radar_params,4,4
	.comm	ar9003_hw_set_delta_slope,4,4
	.comm	ar9003_hw_set_channel_regs,4,4
	.comm	ar9003_hw_set_channel,4,4
	.comm	ar9003_hw_set_bt_ant_diversity,4,4
	.comm	ar9003_hw_rfbus_req,4,4
	.comm	ar9003_hw_rfbus_done,4,4
	.comm	ar9003_hw_process_ini,4,4
	.comm	ar9003_hw_mark_phy_inactive,4,4
	.comm	ar9003_hw_init_bb,4,4
	.comm	ar9003_hw_fast_chan_change,4,4
	.comm	ar9003_hw_do_getnf,4,4
	.comm	ar9003_hw_compute_pll_control_soc,4,4
	.comm	ar9003_hw_compute_pll_control,4,4
	.comm	ar9003_hw_antdiv_comb_conf_set,4,4
	.comm	ar9003_hw_antdiv_comb_conf_get,4,4
	.comm	ar9003_hw_ani_control,4,4
	.comm	ar9003_hw_ani_cache_ini_regs,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_phy.c_ar9003_hw_attach_phy_ops.c"
	.text
	.align	2
	.global	ar9003_hw_attach_phy_ops
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar9003_hw_attach_phy_ops, %function
ar9003_hw_attach_phy_ops:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	bl	ath9k_hw_private_ops
	mov	r4, r0
	mov	r0, r6
	bl	ath9k_hw_ops
	ldr	r2, .L7
	ldr	r3, .L7+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r5, r0
	str	r2, [r4, #60]
	mov	r0, r6
	str	r3, [r4, #56]
	bl	AR_SREV_9340
	cmp	r0, #0
	beq	.L2
.L4:
	ldr	r3, .L7+8
	ldr	ip, [r3]
.L3:
	ldr	r1, .L7+12
	ldr	r2, .L7+16
	ldr	r3, .L7+20
	ldr	r0, [r1]
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L7+24
	str	ip, [r4, #52]
	ldr	ip, [r3]
	ldr	r3, .L7+28
	str	r0, [r4, #48]
	ldr	r0, [r3]
	ldr	r3, .L7+32
	str	r1, [r4, #44]
	ldr	r1, [r3]
	ldr	r3, .L7+36
	str	r2, [r4, #40]
	ldr	r2, [r3]
	ldr	r3, .L7+40
	str	ip, [r4, #36]
	ldr	ip, [r3]
	ldr	r3, .L7+44
	str	r0, [r4, #32]
	ldr	r0, [r3]
	ldr	r3, .L7+48
	str	r1, [r4, #28]
	ldr	r1, [r3]
	ldr	r3, .L7+52
	str	r2, [r4, #24]
	ldr	r2, [r3]
	ldr	r3, .L7+56
	str	ip, [r4, #20]
	ldr	ip, [r3]
	ldr	r3, .L7+60
	str	r0, [r4, #16]
	ldr	r0, [r3]
	ldr	r3, .L7+64
	str	r1, [r4, #12]
	ldr	r1, [r3]
	ldr	r3, .L7+68
	str	r2, [r4, #8]
	ldr	r2, [r3]
	ldr	r3, .L7+72
	str	ip, [r4, #4]
	ldr	r3, [r3]
	ldr	ip, .L7+76
	str	r0, [r4]
	str	r1, [r5, #32]
	str	r2, [r5, #28]
	ldr	r0, .L7+80
	str	r3, [r5, #24]
	ldr	r1, .L7+84
	ldr	r2, .L7+88
	ldr	r3, .L7+92
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	ip, [ip]
	ldr	r0, [r0]
	ldr	r3, [r3]
	str	r1, [r5, #8]
	str	r2, [r5, #4]
	str	ip, [r5, #20]
	str	r0, [r5, #16]
	str	r3, [r5]
	mov	r0, r6
	bl	ar9003_hw_set_nf_limits
	mov	r0, r6
	bl	ar9003_hw_set_radar_conf
	ldr	r0, [r6]
	mov	r2, #4
	pop	{r4, r5, r6, lr}
	ldr	r1, .L7+96
	b	memcpy
.L2:
	mov	r0, r6
	bl	AR_SREV_9550
	cmp	r0, #0
	bne	.L4
	mov	r0, r6
	bl	AR_SREV_9531
	cmp	r0, #0
	bne	.L4
	mov	r0, r6
	bl	AR_SREV_9561
	cmp	r0, #0
	bne	.L4
	ldr	r3, .L7+100
	ldr	ip, [r3]
	b	.L3
.L8:
	.align	2
.L7:
	.word	ar9003_hw_set_channel
	.word	ar9003_hw_spur_mitigate
	.word	ar9003_hw_compute_pll_control_soc
	.word	ar9003_hw_set_channel_regs
	.word	ar9003_hw_init_bb
	.word	ar9003_hw_process_ini
	.word	ar9003_hw_set_rfmode
	.word	ar9003_hw_mark_phy_inactive
	.word	ar9003_hw_set_delta_slope
	.word	ar9003_hw_rfbus_req
	.word	ar9003_hw_rfbus_done
	.word	ar9003_hw_ani_control
	.word	ar9003_hw_do_getnf
	.word	ar9003_hw_ani_cache_ini_regs
	.word	ar9003_hw_set_radar_params
	.word	ar9003_hw_fast_chan_change
	.word	ar9003_hw_antdiv_comb_conf_get
	.word	ar9003_hw_antdiv_comb_conf_set
	.word	ar9003_hw_spectral_scan_config
	.word	ar9003_hw_spectral_scan_trigger
	.word	ar9003_hw_spectral_scan_wait
	.word	ar9003_hw_tx99_start
	.word	ar9003_hw_tx99_stop
	.word	ar9003_hw_tx99_set_txpower
	.word	.LANCHOR0
	.word	ar9003_hw_compute_pll_control
	.size	ar9003_hw_attach_phy_ops, .-ar9003_hw_attach_phy_ops
	.comm	ar9003_hw_tx99_stop,4,4
	.comm	ar9003_hw_tx99_start,4,4
	.comm	ar9003_hw_tx99_set_txpower,4,4
	.comm	ar9003_hw_spur_mitigate,4,4
	.comm	ar9003_hw_spectral_scan_wait,4,4
	.comm	ar9003_hw_spectral_scan_trigger,4,4
	.comm	ar9003_hw_spectral_scan_config,4,4
	.comm	ar9003_hw_set_rfmode,4,4
	.comm	ar9003_hw_set_radar_params,4,4
	.comm	ar9003_hw_set_delta_slope,4,4
	.comm	ar9003_hw_set_channel_regs,4,4
	.comm	ar9003_hw_set_channel,4,4
	.comm	ar9003_hw_set_bt_ant_diversity,4,4
	.comm	ar9003_hw_rfbus_req,4,4
	.comm	ar9003_hw_rfbus_done,4,4
	.comm	ar9003_hw_process_ini,4,4
	.comm	ar9003_hw_mark_phy_inactive,4,4
	.comm	ar9003_hw_init_bb,4,4
	.comm	ar9003_hw_fast_chan_change,4,4
	.comm	ar9003_hw_do_getnf,4,4
	.comm	ar9003_hw_compute_pll_control_soc,4,4
	.comm	ar9003_hw_compute_pll_control,4,4
	.comm	ar9003_hw_antdiv_comb_conf_set,4,4
	.comm	ar9003_hw_antdiv_comb_conf_get,4,4
	.comm	ar9003_hw_ani_control,4,4
	.comm	ar9003_hw_ani_cache_ini_regs,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	ar9300_cca_regs.4280, %object
	.size	ar9300_cca_regs.4280, 24
ar9300_cca_regs.4280:
	.word	133
	.word	132
	.word	131
	.word	130
	.word	129
	.word	128
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
