	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_htc_start
_ath9k_htc_start:                       ## @ath9k_htc_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	movq	32(%r13), %r12
	movq	%r12, %rdi
	callq	_ath9k_hw_common
	movq	%rax, %r15
	movq	(%r14), %rbx
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ath_dbg
	movq	_ATH9K_PM_AWAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_ath9k_htc_setpower
	movq	_WMI_FLUSH_RECV_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WMI_CMD
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_ath9k_cmn_get_channel
	movq	%rax, %r15
	movl	(%r12), %edx
	movq	%r12, %rdi
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	callq	_ath9k_hw_reset
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_ath_err
	movq	%r13, %rdi
	callq	_mutex_unlock
	jmp	LBB0_5
LBB0_2:
	leaq	20(%r13), %rcx
	movl	20(%r13), %esi
	movl	24(%r13), %edx
	movq	%r12, %rdi
	callq	_ath9k_cmn_update_txpow
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_ath9k_htc_get_curmode
	movl	%eax, %edi
	callq	_cpu_to_be16
	movl	%eax, -44(%rbp)
	movq	_WMI_SET_MODE_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rsi
	callq	_WMI_CMD_BUF
	movq	_WMI_ATH_INIT_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WMI_CMD
	movq	_WMI_START_RECV_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WMI_CMD
	movq	%r13, %rdi
	callq	_ath9k_host_rx_init
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_ath9k_htc_update_cap_target
	movl	%eax, %r12d
	testl	%eax, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_4
## %bb.3:
	movq	_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_ath_dbg
LBB0_4:
	movq	_ATH_OP_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movl	16(%r13), %edi
	callq	_htc_start
	leaq	4(%r13), %r15
	leaq	8(%r13), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	_ATH9K_HTC_OP_TX_QUEUES_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 12(%r13)
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	%r14, %rdi
	callq	_ieee80211_wake_queues
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_ATH9K_HTC_TX_CLEANUP_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mod_timer
	movq	%r13, %rdi
	callq	_ath9k_htc_start_btcoex
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	%r12d, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %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"

	.comm	_ATH9K_PM_AWAKE,4,2             ## @ATH9K_PM_AWAKE
	.comm	_WMI_FLUSH_RECV_CMDID,4,2       ## @WMI_FLUSH_RECV_CMDID
L_.str.1:                               ## @.str.1
	.asciz	"Unable to reset hardware; reset status %d (freq %u MHz)\n"

	.comm	_WMI_SET_MODE_CMDID,4,2         ## @WMI_SET_MODE_CMDID
	.comm	_WMI_ATH_INIT_CMDID,4,2         ## @WMI_ATH_INIT_CMDID
	.comm	_WMI_START_RECV_CMDID,4,2       ## @WMI_START_RECV_CMDID
L_.str.2:                               ## @.str.2
	.asciz	"Failed to update capability in target\n"

	.comm	_ATH_OP_INVALID,4,2             ## @ATH_OP_INVALID
	.comm	_ATH9K_HTC_OP_TX_QUEUES_STOP,4,2 ## @ATH9K_HTC_OP_TX_QUEUES_STOP
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_ATH9K_HTC_TX_CLEANUP_INTERVAL,4,2 ## @ATH9K_HTC_TX_CLEANUP_INTERVAL
	.no_dead_strip	_ath9k_htc_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_htc_start
_ath9k_htc_start:                       ; @ath9k_htc_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	x23, [x19, #32]
	mov	x0, x23
	bl	_ath9k_hw_common
	mov	x21, x0
	ldr	x26, [x20]
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x25, _CONFIG@GOTPAGE
Lloh1:
	ldr	x25, [x25, _CONFIG@GOTPAGEOFF]
	ldr	w1, [x25]
	ldr	w8, [x26]
	str	x8, [sp]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_ath_dbg
Lloh4:
	adrp	x8, _ATH9K_PM_AWAKE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ATH9K_PM_AWAKE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ath9k_htc_setpower
Lloh7:
	adrp	x8, _WMI_FLUSH_RECV_CMDID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WMI_FLUSH_RECV_CMDID@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_WMI_CMD
	mov	x0, x20
	mov	x1, x23
	mov	x2, x20
	bl	_ath9k_cmn_get_channel
	mov	x24, x0
	ldr	w2, [x23]
	mov	x0, x23
	mov	x1, x24
	mov	w3, #0
	bl	_ath9k_hw_reset
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	ldr	w3, [x26]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_ath_err
	b	LBB0_5
LBB0_2:
	mov	x3, x19
	ldr	w1, [x3, #20]!
	ldr	w2, [x19, #24]
	mov	x0, x23
	bl	_ath9k_cmn_update_txpow
	mov	x0, x19
	mov	x1, x24
	bl	_ath9k_htc_get_curmode
	bl	_cpu_to_be16
	str	w0, [sp, #12]
Lloh12:
	adrp	x8, _WMI_SET_MODE_CMDID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WMI_SET_MODE_CMDID@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_WMI_CMD_BUF
Lloh15:
	adrp	x8, _WMI_ATH_INIT_CMDID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WMI_ATH_INIT_CMDID@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_WMI_CMD
Lloh18:
	adrp	x8, _WMI_START_RECV_CMDID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WMI_START_RECV_CMDID@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_WMI_CMD
	mov	x0, x19
	bl	_ath9k_host_rx_init
	mov	x0, x19
	mov	w1, #0
	bl	_ath9k_htc_update_cap_target
	mov	x22, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w1, [x25]
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_ath_dbg
LBB0_4:
Lloh23:
	adrp	x8, _ATH_OP_INVALID@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ATH_OP_INVALID@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
	ldr	w0, [x19, #16]
	bl	_htc_start
	add	x21, x19, #4
	add	x23, x19, #8
	mov	x0, x23
	bl	_spin_lock_bh
Lloh26:
	adrp	x8, _ATH9K_HTC_OP_TX_QUEUES_STOP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ATH9K_HTC_OP_TX_QUEUES_STOP@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	bic	w8, w9, w8
	str	w8, [x19, #12]
	mov	x0, x23
	bl	_spin_unlock_bh
	mov	x0, x20
	bl	_ieee80211_wake_queues
Lloh29:
	adrp	x8, _jiffies@GOTPAGE
Lloh30:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh31:
	ldr	x20, [x8]
Lloh32:
	adrp	x8, _ATH9K_HTC_TX_CLEANUP_INTERVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ATH9K_HTC_TX_CLEANUP_INTERVAL@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x1, x0, x20
	mov	x0, x21
	bl	_mod_timer
	mov	x0, x19
	bl	_ath9k_htc_start_btcoex
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.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"

	.comm	_ATH9K_PM_AWAKE,4,2             ; @ATH9K_PM_AWAKE
	.comm	_WMI_FLUSH_RECV_CMDID,4,2       ; @WMI_FLUSH_RECV_CMDID
l_.str.1:                               ; @.str.1
	.asciz	"Unable to reset hardware; reset status %d (freq %u MHz)\n"

	.comm	_WMI_SET_MODE_CMDID,4,2         ; @WMI_SET_MODE_CMDID
	.comm	_WMI_ATH_INIT_CMDID,4,2         ; @WMI_ATH_INIT_CMDID
	.comm	_WMI_START_RECV_CMDID,4,2       ; @WMI_START_RECV_CMDID
l_.str.2:                               ; @.str.2
	.asciz	"Failed to update capability in target\n"

	.comm	_ATH_OP_INVALID,4,2             ; @ATH_OP_INVALID
	.comm	_ATH9K_HTC_OP_TX_QUEUES_STOP,4,2 ; @ATH9K_HTC_OP_TX_QUEUES_STOP
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_ATH9K_HTC_TX_CLEANUP_INTERVAL,4,2 ; @ATH9K_HTC_TX_CLEANUP_INTERVAL
	.no_dead_strip	_ath9k_htc_start
.subsections_via_symbols
