	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_start
_ath9k_start:                           ## @ath9k_start
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_ath9k_hw_common
	movq	%rax, %r12
	movq	24(%r14), %r13
	movq	(%r13), %rcx
	movq	_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_ath_dbg
	movq	%r14, %rdi
	callq	_ath9k_ps_wakeup
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_ath9k_cmn_get_channel
	movq	%rax, %r13
	movl	(%r15), %eax
	movl	%eax, 16(%r14)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ath9k_hw_configpcipowersave
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_bh
	leaq	48(%rbx), %rdi
	movl	$-1, %esi
	callq	_atomic_set
	movl	44(%rbx), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	callq	_ath9k_hw_reset
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_ath_err
	movl	$0, (%rbx)
LBB0_2:
	movq	_ATH9K_INT_TX@GOTPCREL(%rip), %rcx
	movq	_ATH9K_INT_RXEOL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_ATH9K_INT_RXORN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_ATH9K_INT_FATAL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_ATH9K_INT_GLOBAL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_ATH9K_HW_CAP_EDMA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	40(%rbx), %ecx
	jne	LBB0_3
## %bb.4:
	movq	_ATH9K_INT_RX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_5
LBB0_3:
	movq	_ATH9K_INT_RXHP@GOTPCREL(%rip), %rdx
	movq	_ATH9K_INT_RXLP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
LBB0_5:
	orl	%eax, %ecx
	movl	%ecx, 4(%rbx)
	movq	_HW_BB_WATCHDOG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%rbx)
	je	LBB0_7
## %bb.6:
	movq	_ATH9K_INT_BB_WATCHDOG@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 4(%rbx)
LBB0_7:
	movq	%rbx, %rdi
	callq	_AR_SREV_9300_20_OR_LATER
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_ATH9K_INT_GTT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_9:
	movq	_ATH9K_HW_CAP_HT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 40(%rbx)
	je	LBB0_11
## %bb.10:
	movq	_ATH9K_INT_CST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_11:
	movq	%r14, %rdi
	callq	_ath_mci_enable
	movq	_ATH_OP_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_clear_bit
	movq	8(%r14), %rax
	movl	$0, 8(%rax)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ath_complete_reset
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movl	$0, (%rbx)
LBB0_13:
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	js	LBB0_15
## %bb.14:
	xorl	%edx, %edx
	cmpq	$0, 32(%rbx)
	setne	%dl
	movq	%rbx, %rdi
	callq	_ath9k_hw_set_gpio
	movq	16(%rbx), %rsi
	movq	_AR_GPIO_OUTPUT_MUX_AS_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ath9k_hw_gpio_request_out
LBB0_15:
	movq	8(%r14), %rdi
	callq	_ath9k_cmn_init_crypto
	movq	%rbx, %rdi
	callq	_ath9k_hw_reset_tsf
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movq	%r14, %rdi
	callq	_ath9k_rng_start
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_ath9k_ps_restore
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG,4,2                     ## @CONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Starting driver with initial channel: %d MHz\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to reset hardware; reset status %d (freq %u MHz)\n"

	.comm	_ATH9K_INT_TX,4,2               ## @ATH9K_INT_TX
	.comm	_ATH9K_INT_RXEOL,4,2            ## @ATH9K_INT_RXEOL
	.comm	_ATH9K_INT_RXORN,4,2            ## @ATH9K_INT_RXORN
	.comm	_ATH9K_INT_FATAL,4,2            ## @ATH9K_INT_FATAL
	.comm	_ATH9K_INT_GLOBAL,4,2           ## @ATH9K_INT_GLOBAL
	.comm	_ATH9K_HW_CAP_EDMA,4,2          ## @ATH9K_HW_CAP_EDMA
	.comm	_ATH9K_INT_RXHP,4,2             ## @ATH9K_INT_RXHP
	.comm	_ATH9K_INT_RXLP,4,2             ## @ATH9K_INT_RXLP
	.comm	_ATH9K_INT_RX,4,2               ## @ATH9K_INT_RX
	.comm	_HW_BB_WATCHDOG,4,2             ## @HW_BB_WATCHDOG
	.comm	_ATH9K_INT_BB_WATCHDOG,4,2      ## @ATH9K_INT_BB_WATCHDOG
	.comm	_ATH9K_INT_GTT,4,2              ## @ATH9K_INT_GTT
	.comm	_ATH9K_HW_CAP_HT,4,2            ## @ATH9K_HW_CAP_HT
	.comm	_ATH9K_INT_CST,4,2              ## @ATH9K_INT_CST
	.comm	_ATH_OP_INVALID,4,2             ## @ATH_OP_INVALID
	.comm	_AR_GPIO_OUTPUT_MUX_AS_OUTPUT,4,2 ## @AR_GPIO_OUTPUT_MUX_AS_OUTPUT
	.no_dead_strip	_ath9k_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_start
_ath9k_start:                           ; @ath9k_start
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
	ldr	x19, [x0, #8]
	ldr	x20, [x19, #8]
	mov	x0, x20
	bl	_ath9k_hw_common
	mov	x22, x0
	ldr	x23, [x19, #24]
	ldr	x24, [x23]
Lloh0:
	adrp	x8, _CONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w3, [x24]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_ath_dbg
	mov	x0, x19
	bl	_ath9k_ps_wakeup
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_ath9k_cmn_get_channel
	mov	x23, x0
	ldr	w8, [x21]
	str	w8, [x19, #16]
	mov	x0, x20
	mov	w1, #0
	bl	_ath9k_hw_configpcipowersave
	add	x21, x19, #4
	mov	x0, x21
	bl	_spin_lock_bh
	add	x0, x20, #48
	mov	w1, #-1
	bl	_atomic_set
	ldr	w2, [x20, #44]
	mov	x0, x20
	mov	x1, x23
	mov	w3, #0
	bl	_ath9k_hw_reset
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	w3, [x24]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_ath_err
	str	wzr, [x20]
LBB0_2:
Lloh7:
	adrp	x8, _ATH9K_INT_TX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ATH9K_INT_TX@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _ATH9K_INT_RXEOL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ATH9K_INT_RXEOL@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _ATH9K_INT_RXORN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ATH9K_INT_RXORN@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _ATH9K_INT_FATAL@GOTPAGE
Lloh17:
	ldr	x10, [x10, _ATH9K_INT_FATAL@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh18:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh19:
	adrp	x9, _ATH9K_INT_GLOBAL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ATH9K_INT_GLOBAL@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x20, #40]
Lloh22:
	adrp	x10, _ATH9K_HW_CAP_EDMA@GOTPAGE
Lloh23:
	ldr	x10, [x10, _ATH9K_HW_CAP_EDMA@GOTPAGEOFF]
Lloh24:
	adrp	x11, _ATH9K_INT_RX@GOTPAGE
Lloh25:
	ldr	x11, [x11, _ATH9K_INT_RX@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
Lloh27:
	ldr	w11, [x11]
Lloh28:
	adrp	x12, _ATH9K_INT_RXHP@GOTPAGE
Lloh29:
	ldr	x12, [x12, _ATH9K_INT_RXHP@GOTPAGEOFF]
Lloh30:
	adrp	x13, _ATH9K_INT_RXLP@GOTPAGE
Lloh31:
	ldr	x13, [x13, _ATH9K_INT_RXLP@GOTPAGEOFF]
Lloh32:
	ldr	w12, [x12]
Lloh33:
	ldr	w13, [x13]
	orr	w12, w13, w12
	tst	w10, w9
	csel	w9, w11, w12, eq
	orr	w8, w9, w8
	str	w8, [x20, #4]
	ldr	w9, [x20, #24]
Lloh34:
	adrp	x10, _HW_BB_WATCHDOG@GOTPAGE
Lloh35:
	ldr	x10, [x10, _HW_BB_WATCHDOG@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
Lloh37:
	adrp	x9, _ATH9K_INT_BB_WATCHDOG@GOTPAGE
Lloh38:
	ldr	x9, [x9, _ATH9K_INT_BB_WATCHDOG@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #4]
LBB0_4:
	mov	x0, x20
	bl	_AR_SREV_9300_20_OR_LATER
	cbz	x0, LBB0_6
; %bb.5:
Lloh40:
	adrp	x8, _ATH9K_INT_GTT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ATH9K_INT_GTT@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
LBB0_6:
	ldr	w8, [x20, #40]
Lloh43:
	adrp	x9, _ATH9K_HW_CAP_HT@GOTPAGE
Lloh44:
	ldr	x9, [x9, _ATH9K_HW_CAP_HT@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
Lloh46:
	adrp	x8, _ATH9K_INT_CST@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ATH9K_INT_CST@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
LBB0_8:
	mov	x0, x19
	bl	_ath_mci_enable
Lloh49:
	adrp	x8, _ATH_OP_INVALID@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ATH_OP_INVALID@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_clear_bit
	ldr	x8, [x19, #8]
	str	wzr, [x8, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_ath_complete_reset
	cbz	w0, LBB0_12
; %bb.9:
	ldr	x1, [x20, #16]
	tbnz	x1, #63, LBB0_11
LBB0_10:
	ldr	x8, [x20, #32]
	cmp	x8, #0
	cset	w2, ne
	mov	x0, x20
	bl	_ath9k_hw_set_gpio
	ldr	x1, [x20, #16]
Lloh52:
	adrp	x8, _AR_GPIO_OUTPUT_MUX_AS_OUTPUT@GOTPAGE
Lloh53:
	ldr	x8, [x8, _AR_GPIO_OUTPUT_MUX_AS_OUTPUT@GOTPAGEOFF]
Lloh54:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_ath9k_hw_gpio_request_out
LBB0_11:
	ldr	x0, [x19, #8]
	bl	_ath9k_cmn_init_crypto
	mov	x0, x20
	bl	_ath9k_hw_reset_tsf
	mov	x0, x21
	bl	_spin_unlock_bh
	mov	x0, x19
	bl	_ath9k_rng_start
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x19
	bl	_ath9k_ps_restore
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	str	wzr, [x20]
	ldr	x1, [x20, #16]
	tbz	x1, #63, LBB0_10
	b	LBB0_11
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh32
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG,4,2                     ; @CONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Starting driver with initial channel: %d MHz\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to reset hardware; reset status %d (freq %u MHz)\n"

	.comm	_ATH9K_INT_TX,4,2               ; @ATH9K_INT_TX
	.comm	_ATH9K_INT_RXEOL,4,2            ; @ATH9K_INT_RXEOL
	.comm	_ATH9K_INT_RXORN,4,2            ; @ATH9K_INT_RXORN
	.comm	_ATH9K_INT_FATAL,4,2            ; @ATH9K_INT_FATAL
	.comm	_ATH9K_INT_GLOBAL,4,2           ; @ATH9K_INT_GLOBAL
	.comm	_ATH9K_HW_CAP_EDMA,4,2          ; @ATH9K_HW_CAP_EDMA
	.comm	_ATH9K_INT_RXHP,4,2             ; @ATH9K_INT_RXHP
	.comm	_ATH9K_INT_RXLP,4,2             ; @ATH9K_INT_RXLP
	.comm	_ATH9K_INT_RX,4,2               ; @ATH9K_INT_RX
	.comm	_HW_BB_WATCHDOG,4,2             ; @HW_BB_WATCHDOG
	.comm	_ATH9K_INT_BB_WATCHDOG,4,2      ; @ATH9K_INT_BB_WATCHDOG
	.comm	_ATH9K_INT_GTT,4,2              ; @ATH9K_INT_GTT
	.comm	_ATH9K_HW_CAP_HT,4,2            ; @ATH9K_HW_CAP_HT
	.comm	_ATH9K_INT_CST,4,2              ; @ATH9K_INT_CST
	.comm	_ATH_OP_INVALID,4,2             ; @ATH_OP_INVALID
	.comm	_AR_GPIO_OUTPUT_MUX_AS_OUTPUT,4,2 ; @AR_GPIO_OUTPUT_MUX_AS_OUTPUT
	.no_dead_strip	_ath9k_start
.subsections_via_symbols
