	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar5008_hw_attach_phy_ops       ## -- Begin function ar5008_hw_attach_phy_ops
	.p2align	4, 0x90
_ar5008_hw_attach_phy_ops:              ## @ar5008_hw_attach_phy_ops
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_ath9k_hw_private_ops
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_ar5008_hw_rf_alloc_ext_banks
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	_ar5008_hw_set_channel@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	_ar5008_hw_spur_mitigate@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rbx)
	movq	_ar5008_hw_set_rf_regs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_ar5008_hw_set_channel_regs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_ar5008_hw_init_bb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_ar5008_hw_process_ini@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_ar5008_hw_set_rfmode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_ar5008_hw_mark_phy_inactive@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_ar5008_hw_set_delta_slope@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_ar5008_hw_rfbus_req@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_ar5008_hw_rfbus_done@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_ar5008_restore_chainmask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_ar5008_hw_do_getnf@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_ar5008_hw_set_radar_params@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_ar5008_hw_ani_control_new@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_ar5008_hw_ani_cache_ini_regs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%r15, %rdi
	callq	_AR_SREV_9100
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	callq	_AR_SREV_9160_10_OR_LATER
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_ar5008_hw_compute_pll_control@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_ar9160_hw_compute_pll_control@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	callq	_ar5008_hw_set_nf_limits
	movq	%r15, %rdi
	callq	_ar5008_hw_set_radar_conf
	movl	(%r15), %edi
	leaq	_ar5008_hw_attach_phy_ops.ar5416_cca_regs(%rip), %rsi
	movl	$4, %edx
	callq	_memcpy
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @ar5008_hw_attach_phy_ops.ar5416_cca_regs
_ar5008_hw_attach_phy_ops.ar5416_cca_regs:
	.long	133                             ## 0x85
	.long	132                             ## 0x84
	.long	130                             ## 0x82
	.long	128                             ## 0x80
	.long	131                             ## 0x83
	.long	129                             ## 0x81

	.comm	_ar5008_hw_set_channel,4,2      ## @ar5008_hw_set_channel
	.comm	_ar5008_hw_spur_mitigate,4,2    ## @ar5008_hw_spur_mitigate
	.comm	_ar5008_hw_set_rf_regs,4,2      ## @ar5008_hw_set_rf_regs
	.comm	_ar5008_hw_set_channel_regs,4,2 ## @ar5008_hw_set_channel_regs
	.comm	_ar5008_hw_init_bb,4,2          ## @ar5008_hw_init_bb
	.comm	_ar5008_hw_process_ini,4,2      ## @ar5008_hw_process_ini
	.comm	_ar5008_hw_set_rfmode,4,2       ## @ar5008_hw_set_rfmode
	.comm	_ar5008_hw_mark_phy_inactive,4,2 ## @ar5008_hw_mark_phy_inactive
	.comm	_ar5008_hw_set_delta_slope,4,2  ## @ar5008_hw_set_delta_slope
	.comm	_ar5008_hw_rfbus_req,4,2        ## @ar5008_hw_rfbus_req
	.comm	_ar5008_hw_rfbus_done,4,2       ## @ar5008_hw_rfbus_done
	.comm	_ar5008_restore_chainmask,4,2   ## @ar5008_restore_chainmask
	.comm	_ar5008_hw_do_getnf,4,2         ## @ar5008_hw_do_getnf
	.comm	_ar5008_hw_set_radar_params,4,2 ## @ar5008_hw_set_radar_params
	.comm	_ar5008_hw_ani_control_new,4,2  ## @ar5008_hw_ani_control_new
	.comm	_ar5008_hw_ani_cache_ini_regs,4,2 ## @ar5008_hw_ani_cache_ini_regs
	.comm	_ar9160_hw_compute_pll_control,4,2 ## @ar9160_hw_compute_pll_control
	.comm	_ar5008_hw_compute_pll_control,4,2 ## @ar5008_hw_compute_pll_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar5008_hw_attach_phy_ops       ; -- Begin function ar5008_hw_attach_phy_ops
	.p2align	2
_ar5008_hw_attach_phy_ops:              ; @ar5008_hw_attach_phy_ops
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	bl	_ath9k_hw_private_ops
	mov	x21, x0
	mov	x0, x20
	bl	_ar5008_hw_rf_alloc_ext_banks
	mov	x19, x0
	cbnz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _ar5008_hw_set_channel@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ar5008_hw_set_channel@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ar5008_hw_spur_mitigate@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ar5008_hw_spur_mitigate@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #60]
Lloh6:
	adrp	x8, _ar5008_hw_set_rf_regs@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ar5008_hw_set_rf_regs@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _ar5008_hw_set_channel_regs@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ar5008_hw_set_channel_regs@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #52]
Lloh12:
	adrp	x8, _ar5008_hw_init_bb@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ar5008_hw_init_bb@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _ar5008_hw_process_ini@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ar5008_hw_process_ini@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #44]
Lloh18:
	adrp	x8, _ar5008_hw_set_rfmode@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ar5008_hw_set_rfmode@GOTPAGEOFF]
Lloh20:
	adrp	x9, _ar5008_hw_mark_phy_inactive@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ar5008_hw_mark_phy_inactive@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #36]
Lloh24:
	adrp	x8, _ar5008_hw_set_delta_slope@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ar5008_hw_set_delta_slope@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _ar5008_hw_rfbus_req@GOTPAGE
Lloh28:
	ldr	x9, [x9, _ar5008_hw_rfbus_req@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #28]
Lloh30:
	adrp	x8, _ar5008_hw_rfbus_done@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ar5008_hw_rfbus_done@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _ar5008_restore_chainmask@GOTPAGE
Lloh34:
	ldr	x9, [x9, _ar5008_restore_chainmask@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #20]
Lloh36:
	adrp	x8, _ar5008_hw_do_getnf@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ar5008_hw_do_getnf@GOTPAGEOFF]
Lloh38:
	adrp	x9, _ar5008_hw_set_radar_params@GOTPAGE
Lloh39:
	ldr	x9, [x9, _ar5008_hw_set_radar_params@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #12]
Lloh42:
	adrp	x8, _ar5008_hw_ani_control_new@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ar5008_hw_ani_control_new@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	adrp	x9, _ar5008_hw_ani_cache_ini_regs@GOTPAGE
Lloh46:
	ldr	x9, [x9, _ar5008_hw_ani_cache_ini_regs@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #4]
	mov	x0, x20
	bl	_AR_SREV_9100
Lloh48:
	adrp	x22, _ar9160_hw_compute_pll_control@GOTPAGE
Lloh49:
	ldr	x22, [x22, _ar9160_hw_compute_pll_control@GOTPAGEOFF]
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_AR_SREV_9160_10_OR_LATER
Lloh50:
	adrp	x8, _ar5008_hw_compute_pll_control@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ar5008_hw_compute_pll_control@GOTPAGEOFF]
	cmp	x0, #0
	csel	x22, x8, x22, eq
LBB0_3:
	ldr	w8, [x22]
	str	w8, [x21]
	mov	x0, x20
	bl	_ar5008_hw_set_nf_limits
	mov	x0, x20
	bl	_ar5008_hw_set_radar_conf
	ldr	w0, [x20]
Lloh52:
	adrp	x1, _ar5008_hw_attach_phy_ops.ar5416_cca_regs@PAGE
Lloh53:
	add	x1, x1, _ar5008_hw_attach_phy_ops.ar5416_cca_regs@PAGEOFF
	mov	w2, #4
	bl	_memcpy
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh40
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @ar5008_hw_attach_phy_ops.ar5416_cca_regs
_ar5008_hw_attach_phy_ops.ar5416_cca_regs:
	.long	133                             ; 0x85
	.long	132                             ; 0x84
	.long	130                             ; 0x82
	.long	128                             ; 0x80
	.long	131                             ; 0x83
	.long	129                             ; 0x81

	.comm	_ar5008_hw_set_channel,4,2      ; @ar5008_hw_set_channel
	.comm	_ar5008_hw_spur_mitigate,4,2    ; @ar5008_hw_spur_mitigate
	.comm	_ar5008_hw_set_rf_regs,4,2      ; @ar5008_hw_set_rf_regs
	.comm	_ar5008_hw_set_channel_regs,4,2 ; @ar5008_hw_set_channel_regs
	.comm	_ar5008_hw_init_bb,4,2          ; @ar5008_hw_init_bb
	.comm	_ar5008_hw_process_ini,4,2      ; @ar5008_hw_process_ini
	.comm	_ar5008_hw_set_rfmode,4,2       ; @ar5008_hw_set_rfmode
	.comm	_ar5008_hw_mark_phy_inactive,4,2 ; @ar5008_hw_mark_phy_inactive
	.comm	_ar5008_hw_set_delta_slope,4,2  ; @ar5008_hw_set_delta_slope
	.comm	_ar5008_hw_rfbus_req,4,2        ; @ar5008_hw_rfbus_req
	.comm	_ar5008_hw_rfbus_done,4,2       ; @ar5008_hw_rfbus_done
	.comm	_ar5008_restore_chainmask,4,2   ; @ar5008_restore_chainmask
	.comm	_ar5008_hw_do_getnf,4,2         ; @ar5008_hw_do_getnf
	.comm	_ar5008_hw_set_radar_params,4,2 ; @ar5008_hw_set_radar_params
	.comm	_ar5008_hw_ani_control_new,4,2  ; @ar5008_hw_ani_control_new
	.comm	_ar5008_hw_ani_cache_ini_regs,4,2 ; @ar5008_hw_ani_cache_ini_regs
	.comm	_ar9160_hw_compute_pll_control,4,2 ; @ar9160_hw_compute_pll_control
	.comm	_ar5008_hw_compute_pll_control,4,2 ; @ar5008_hw_compute_pll_control
.subsections_via_symbols
