	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_tdls_process_enable_link
_mwifiex_tdls_process_enable_link:      ## @mwifiex_tdls_process_enable_link
	.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	%rsi, %r14
	movq	%rdi, %r15
	callq	_mwifiex_get_sta_entry
	testq	%rax, %rax
	je	LBB0_18
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_TDLS_SETUP_FAILURE@GOTPCREL(%rip), %rcx
	movl	4(%r15), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.17:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rcx
	callq	_mwifiex_dbg
	movq	%r15, %rdi
	callq	_mwifiex_11n_cleanup_reorder_tbl
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movq	%r15, %rdi
	callq	_mwifiex_11n_delete_all_tx_ba_stream_tbl
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mwifiex_del_sta_entry
	jmp	LBB0_19
LBB0_18:
	movl	4(%r15), %edi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rcx
	callq	_mwifiex_dbg
LBB0_19:
	movq	_TDLS_LINK_TEARDOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mwifiex_restore_tdls_packets
	movq	_TDLS_NOT_SETUP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mwifiex_auto_tdls_update_peer_status
	movl	$-1, %eax
	jmp	LBB0_20
LBB0_2:
	movq	_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rcx
	callq	_mwifiex_dbg
	movq	_TDLS_SETUP_COMPLETE@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	movq	32(%rbx), %rax
	cmpl	$255, (%rax)
	jne	LBB0_3
## %bb.6:
	cmpl	$0, 8(%rbx)
	jne	LBB0_4
## %bb.7:
	movq	_MAX_NUM_TID@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_14
## %bb.8:
	movq	40(%rbx), %rcx
	xorl	%edx, %edx
	movq	_BA_STREAM_NOT_ALLOWED@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	movl	%edi, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%rax), %rdi
	cmpq	%rdi, %rdx
	jl	LBB0_9
	jmp	LBB0_14
LBB0_3:
	movl	$1, 8(%rbx)
LBB0_4:
	movl	24(%rbx), %edi
	callq	_le16_to_cpu
	movq	_IEEE80211_HT_CAP_MAX_AMSDU@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_5
## %bb.10:
	movq	_MWIFIEX_TX_DATA_BUF_SIZE_4K@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_5:
	movq	_MWIFIEX_TX_DATA_BUF_SIZE_8K@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_MAX_NUM_TID@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_14
## %bb.12:
	movq	8(%r15), %rcx
	movq	40(%rbx), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rsi,4), %edi
	movl	%edi, (%rdx,%rsi,4)
	incq	%rsi
	movslq	(%rax), %rdi
	cmpq	%rdi, %rsi
	jl	LBB0_13
LBB0_14:
	movq	16(%rbx), %rax
	movq	_WLAN_EXT_CAPA4_TDLS_CHAN_SWITCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 12(%rax)
	je	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	callq	_mwifiex_config_tdls_enable
	movq	%r15, %rdi
	callq	_mwifiex_config_tdls_cs_params
LBB0_16:
	movl	12(%rbx), %edi
	movl	$255, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%r12), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mwifiex_restore_tdls_packets
	movq	(%r12), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mwifiex_auto_tdls_update_peer_status
	xorl	%eax, %eax
LBB0_20:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TDLS_SETUP_FAILURE,8,3         ## @TDLS_SETUP_FAILURE
	.comm	_MSG,4,2                        ## @MSG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tdls: enable link %pM success\n"

	.comm	_TDLS_SETUP_COMPLETE,8,3        ## @TDLS_SETUP_COMPLETE
	.comm	_IEEE80211_HT_CAP_MAX_AMSDU,4,2 ## @IEEE80211_HT_CAP_MAX_AMSDU
	.comm	_MWIFIEX_TX_DATA_BUF_SIZE_8K,4,2 ## @MWIFIEX_TX_DATA_BUF_SIZE_8K
	.comm	_MWIFIEX_TX_DATA_BUF_SIZE_4K,4,2 ## @MWIFIEX_TX_DATA_BUF_SIZE_4K
	.comm	_MAX_NUM_TID,4,2                ## @MAX_NUM_TID
	.comm	_BA_STREAM_NOT_ALLOWED,4,2      ## @BA_STREAM_NOT_ALLOWED
	.comm	_WLAN_EXT_CAPA4_TDLS_CHAN_SWITCH,4,2 ## @WLAN_EXT_CAPA4_TDLS_CHAN_SWITCH
	.comm	_ERROR,4,2                      ## @ERROR
L_.str.1:                               ## @.str.1
	.asciz	"tdls: enable link %pM failed\n"

	.comm	_TDLS_LINK_TEARDOWN,8,3         ## @TDLS_LINK_TEARDOWN
	.comm	_TDLS_NOT_SETUP,8,3             ## @TDLS_NOT_SETUP
	.no_dead_strip	_mwifiex_tdls_process_enable_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_tdls_process_enable_link
_mwifiex_tdls_process_enable_link:      ; @mwifiex_tdls_process_enable_link
	.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, x1
	mov	x20, x0
	bl	_mwifiex_get_sta_entry
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _TDLS_SETUP_FAILURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TDLS_SETUP_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w0, [x20, #4]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_mwifiex_dbg
	mov	x0, x20
	bl	_mwifiex_11n_cleanup_reorder_tbl
	mov	x0, x20
	bl	_spin_lock_bh
	mov	x0, x20
	bl	_mwifiex_11n_delete_all_tx_ba_stream_tbl
	mov	x0, x20
	bl	_spin_unlock_bh
	mov	x0, x20
	mov	x1, x19
	bl	_mwifiex_del_sta_entry
	b	LBB0_4
LBB0_3:
	ldr	w0, [x20, #4]
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_mwifiex_dbg
LBB0_4:
Lloh13:
	adrp	x8, _TDLS_LINK_TEARDOWN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TDLS_LINK_TEARDOWN@GOTPAGEOFF]
Lloh15:
	ldr	x2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_mwifiex_restore_tdls_packets
Lloh16:
	adrp	x8, _TDLS_NOT_SETUP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TDLS_NOT_SETUP@GOTPAGEOFF]
Lloh18:
	ldr	x2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_mwifiex_auto_tdls_update_peer_status
	mov	w0, #-1
	b	LBB0_17
LBB0_5:
Lloh19:
	adrp	x8, _MSG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MSG@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str@PAGE
Lloh23:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x19
	bl	_mwifiex_dbg
Lloh24:
	adrp	x22, _TDLS_SETUP_COMPLETE@GOTPAGE
Lloh25:
	ldr	x22, [x22, _TDLS_SETUP_COMPLETE@GOTPAGEOFF]
	ldr	x8, [x22]
	str	x8, [x21]
	ldr	x8, [x21, #32]
	ldr	w8, [x8]
	cmp	w8, #255
	b.ne	LBB0_10
; %bb.6:
	ldr	w8, [x21, #8]
	cbnz	w8, LBB0_11
; %bb.7:
Lloh26:
	adrp	x8, _MAX_NUM_TID@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MAX_NUM_TID@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.8:
	mov	x9, #0
	ldr	x10, [x21, #40]
Lloh28:
	adrp	x11, _BA_STREAM_NOT_ALLOWED@GOTPAGE
Lloh29:
	ldr	x11, [x11, _BA_STREAM_NOT_ALLOWED@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	str	w12, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_9
	b	LBB0_14
LBB0_10:
	mov	w8, #1
	str	w8, [x21, #8]
LBB0_11:
	ldr	w0, [x21, #24]
	bl	_le16_to_cpu
Lloh30:
	adrp	x8, _IEEE80211_HT_CAP_MAX_AMSDU@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IEEE80211_HT_CAP_MAX_AMSDU@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _MWIFIEX_TX_DATA_BUF_SIZE_4K@GOTPAGE
Lloh34:
	ldr	x9, [x9, _MWIFIEX_TX_DATA_BUF_SIZE_4K@GOTPAGEOFF]
Lloh35:
	adrp	x10, _MWIFIEX_TX_DATA_BUF_SIZE_8K@GOTPAGE
Lloh36:
	ldr	x10, [x10, _MWIFIEX_TX_DATA_BUF_SIZE_8K@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x21, #48]
Lloh37:
	adrp	x8, _MAX_NUM_TID@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MAX_NUM_TID@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.12:
	mov	x9, #0
	ldr	x10, [x20, #8]
	ldr	x11, [x21, #40]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	lsl	x12, x9, #2
	ldr	w13, [x10, x12]
	str	w13, [x11, x12]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_13
LBB0_14:
	ldr	x8, [x21, #16]
	ldr	w8, [x8, #12]
Lloh39:
	adrp	x9, _WLAN_EXT_CAPA4_TDLS_CHAN_SWITCH@GOTPAGE
Lloh40:
	ldr	x9, [x9, _WLAN_EXT_CAPA4_TDLS_CHAN_SWITCH@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x20
	bl	_mwifiex_config_tdls_enable
	mov	x0, x20
	bl	_mwifiex_config_tdls_cs_params
LBB0_16:
	ldr	w0, [x21, #12]
	mov	w1, #255
	mov	w2, #4
	bl	_memset
	ldr	x2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_mwifiex_restore_tdls_packets
	ldr	x2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_mwifiex_auto_tdls_update_peer_status
	mov	w0, #0
LBB0_17:
	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 AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_TDLS_SETUP_FAILURE,8,3         ; @TDLS_SETUP_FAILURE
	.comm	_MSG,4,2                        ; @MSG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tdls: enable link %pM success\n"

	.comm	_TDLS_SETUP_COMPLETE,8,3        ; @TDLS_SETUP_COMPLETE
	.comm	_IEEE80211_HT_CAP_MAX_AMSDU,4,2 ; @IEEE80211_HT_CAP_MAX_AMSDU
	.comm	_MWIFIEX_TX_DATA_BUF_SIZE_8K,4,2 ; @MWIFIEX_TX_DATA_BUF_SIZE_8K
	.comm	_MWIFIEX_TX_DATA_BUF_SIZE_4K,4,2 ; @MWIFIEX_TX_DATA_BUF_SIZE_4K
	.comm	_MAX_NUM_TID,4,2                ; @MAX_NUM_TID
	.comm	_BA_STREAM_NOT_ALLOWED,4,2      ; @BA_STREAM_NOT_ALLOWED
	.comm	_WLAN_EXT_CAPA4_TDLS_CHAN_SWITCH,4,2 ; @WLAN_EXT_CAPA4_TDLS_CHAN_SWITCH
	.comm	_ERROR,4,2                      ; @ERROR
l_.str.1:                               ; @.str.1
	.asciz	"tdls: enable link %pM failed\n"

	.comm	_TDLS_LINK_TEARDOWN,8,3         ; @TDLS_LINK_TEARDOWN
	.comm	_TDLS_NOT_SETUP,8,3             ; @TDLS_NOT_SETUP
	.no_dead_strip	_mwifiex_tdls_process_enable_link
.subsections_via_symbols
