	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_hw_post_init
_ath9k_hw_post_init:                    ## @ath9k_hw_post_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_ath9k_hw_common
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_ATH_USB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_ath9k_hw_chip_test
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_AR_SREV_9300_20_OR_LATER
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	callq	_ath9k_hw_eeprom_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	%r14, %rdi
	callq	_ath9k_hw_common
	movq	%rax, %r15
	movq	_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	8(%r14), %rax
	movq	%r14, %rdi
	callq	*16(%rax)
	movl	%eax, %ebx
	movq	8(%r14), %rax
	movq	%r14, %rdi
	callq	*8(%rax)
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_ath_dbg
	movq	%r14, %rdi
	callq	_ath9k_hw_ani_init
	movq	%r14, %rdi
	callq	_AR_SREV_9300_20_OR_LATER
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	8(%r14), %rax
	movq	_EEP_REG_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	callq	*(%rax)
	andl	$240, %eax
	movq	_CTL_FCC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.8:
	movq	_AR_PHY_CCA_MAX_GOOD_VAL_9300_FCC_2GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_AR_PHY_CCA_MAX_GOOD_VAL_9300_FCC_5GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_9
LBB0_4:
	movq	%r14, %rdi
	callq	_ar9002_hw_rf_claim
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_5
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_USB,8,3                    ## @ATH_USB
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_CONFIG,4,2                     ## @CONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Eeprom VER: %d, REV: %d\n"

	.comm	_EEP_REG_0,4,2                  ## @EEP_REG_0
	.comm	_CTL_FCC,4,2                    ## @CTL_FCC
	.comm	_AR_PHY_CCA_MAX_GOOD_VAL_9300_FCC_2GHZ,4,2 ## @AR_PHY_CCA_MAX_GOOD_VAL_9300_FCC_2GHZ
	.comm	_AR_PHY_CCA_MAX_GOOD_VAL_9300_FCC_5GHZ,4,2 ## @AR_PHY_CCA_MAX_GOOD_VAL_9300_FCC_5GHZ
	.no_dead_strip	_ath9k_hw_post_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_hw_post_init
_ath9k_hw_post_init:                    ; @ath9k_hw_post_init
	.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	x19, x0
	bl	_ath9k_hw_common
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _ATH_USB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATH_USB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ath9k_hw_chip_test
	cbz	w0, LBB0_8
LBB0_2:
	mov	x0, x19
	bl	_AR_SREV_9300_20_OR_LATER
	cbz	x0, LBB0_7
LBB0_3:
	mov	x0, x19
	bl	_ath9k_hw_eeprom_init
	cbnz	w0, LBB0_10
; %bb.4:
	mov	x0, x19
	bl	_ath9k_hw_common
	mov	x20, x0
Lloh3:
	adrp	x8, _CONFIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #16]
	mov	x0, x19
	blr	x8
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	mov	x4, x0
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	bl	_ath_dbg
	mov	x0, x19
	bl	_ath9k_hw_ani_init
	mov	x0, x19
	bl	_AR_SREV_9300_20_OR_LATER
	cbz	x0, LBB0_10
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _EEP_REG_0@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EEP_REG_0@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	and	w8, w0, #0xf0
Lloh11:
	adrp	x9, _CTL_FCC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CTL_FCC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.6:
	mov	w0, #0
Lloh14:
	adrp	x8, _AR_PHY_CCA_MAX_GOOD_VAL_9300_FCC_2GHZ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AR_PHY_CCA_MAX_GOOD_VAL_9300_FCC_2GHZ@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _AR_PHY_CCA_MAX_GOOD_VAL_9300_FCC_5GHZ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AR_PHY_CCA_MAX_GOOD_VAL_9300_FCC_5GHZ@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	b	LBB0_10
LBB0_7:
	mov	x0, x19
	bl	_ar9002_hw_rf_claim
	cbnz	w0, LBB0_10
	b	LBB0_3
LBB0_8:
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_USB,8,3                    ; @ATH_USB
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_CONFIG,4,2                     ; @CONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Eeprom VER: %d, REV: %d\n"

	.comm	_EEP_REG_0,4,2                  ; @EEP_REG_0
	.comm	_CTL_FCC,4,2                    ; @CTL_FCC
	.comm	_AR_PHY_CCA_MAX_GOOD_VAL_9300_FCC_2GHZ,4,2 ; @AR_PHY_CCA_MAX_GOOD_VAL_9300_FCC_2GHZ
	.comm	_AR_PHY_CCA_MAX_GOOD_VAL_9300_FCC_5GHZ,4,2 ; @AR_PHY_CCA_MAX_GOOD_VAL_9300_FCC_5GHZ
	.no_dead_strip	_ath9k_hw_post_init
.subsections_via_symbols
