	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_add_interface
_ath9k_add_interface:                   ## @ath9k_add_interface
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movq	24(%rbx), %rdi
	callq	_ath9k_hw_common
	movq	%rax, %r12
	movq	16(%r14), %r13
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_CONFIG_ATH9K_TX99@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	8(%rbx), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_12
LBB0_3:
	movq	%r14, 16(%rbx)
LBB0_4:
	movq	_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_ath_dbg
	movq	8(%rbx), %rax
	incl	(%rax)
	movq	(%r14), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	xorl	%eax, %eax
	callq	_ath9k_is_chanctx_enabled
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_IEEE80211_VIF_GET_NOA_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
LBB0_7:
	movq	(%r14), %rdi
	callq	_ath9k_uses_beacons
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ath9k_beacon_assign_slot
LBB0_9:
	leaq	24(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, 16(%r13)
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_ath9k_is_chanctx_enabled
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	8(%rbx), %rsi
	movq	%rsi, (%r13)
	leaq	8(%r13), %rdi
	addq	$4, %rsi
	callq	_list_add_tail
LBB0_11:
	movq	(%r13), %rsi
	movq	%rbx, %rdi
	callq	_ath9k_calculate_summary_state
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ath9k_assign_hw_queues
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ath9k_set_txpower
	movq	%rbx, 48(%r13)
	movq	$0, 40(%r13)
	movq	%r14, 32(%r13)
	movl	$1, 24(%r13)
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ath_tx_node_init
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_12:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_ATH9K_TX99,4,2          ## @CONFIG_ATH9K_TX99
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_CONFIG,4,2                     ## @CONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attach a VIF of type: %d\n"

	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_IEEE80211_VIF_GET_NOA_UPDATE,4,2 ## @IEEE80211_VIF_GET_NOA_UPDATE
	.no_dead_strip	_ath9k_add_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_add_interface
_ath9k_add_interface:                   ; @ath9k_add_interface
	.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	x20, x1
	mov	x21, x0
	ldr	x19, [x0]
	ldr	x0, [x19, #24]
	bl	_ath9k_hw_common
	mov	x22, x0
	ldr	x23, [x20, #16]
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _CONFIG_ATH9K_TX99@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_ATH9K_TX99@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_mutex_unlock
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_3:
	str	x20, [x19, #16]
LBB0_4:
Lloh6:
	adrp	x8, _CONFIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CONFIG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	x3, [x20]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	bl	_ath_dbg
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	x8, [x20]
Lloh11:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	bl	_ath9k_is_chanctx_enabled
	cbz	x0, LBB0_7
; %bb.6:
Lloh14:
	adrp	x8, _IEEE80211_VIF_GET_NOA_UPDATE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IEEE80211_VIF_GET_NOA_UPDATE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
	str	w8, [x20, #8]
LBB0_7:
	add	x22, x23, #24
	ldr	x0, [x20]
	bl	_ath9k_uses_beacons
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_beacon_assign_slot
LBB0_9:
	str	x20, [x23, #16]
	bl	_ath9k_is_chanctx_enabled
	cbnz	x0, LBB0_11
; %bb.10:
	ldr	x8, [x19, #8]
	mov	x0, x23
	str	x8, [x0], #8
	add	x1, x8, #4
	bl	_list_add_tail
LBB0_11:
	ldr	x1, [x23]
	mov	x0, x19
	bl	_ath9k_calculate_summary_state
	mov	x0, x21
	mov	x1, x20
	bl	_ath9k_assign_hw_queues
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_set_txpower
	stp	xzr, x19, [x23, #40]
	str	x20, [x23, #32]
	mov	w8, #1
	str	w8, [x23, #24]
	mov	x0, x19
	mov	x1, x22
	bl	_ath_tx_node_init
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_ATH9K_TX99,4,2          ; @CONFIG_ATH9K_TX99
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_CONFIG,4,2                     ; @CONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attach a VIF of type: %d\n"

	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_IEEE80211_VIF_GET_NOA_UPDATE,4,2 ; @IEEE80211_VIF_GET_NOA_UPDATE
	.no_dead_strip	_ath9k_add_interface
.subsections_via_symbols
