	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_tdls_mgmt
_ieee80211_tdls_mgmt:                   ## @ieee80211_tdls_mgmt
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r14d
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_IEEE80211_DEV_TO_SUB_IF
	movq	%rax, %r12
	movq	_WIPHY_FLAG_SUPPORTS_TDLS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_1
## %bb.3:
	movq	8(%r12), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	cmpl	$0, 4(%r12)
	je	LBB0_5
## %bb.6:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	24(%r12), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r15, %rcx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %edx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	callq	_tdls_dbg
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rbx
	addq	24(%rbp), %rbx
	movl	$4, %edi
	movl	$4, %esi
	callq	_max
	leaq	(%rax,%rbx), %rdi
	addq	$61, %rdi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_skb_reserve
	leal	-128(%r15), %eax
	cmpl	$5, %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	jae	LBB0_9
## %bb.28:
	movq	%rbx, (%rsp)
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_ieee80211_prep_tdls_encap_data
	movl	%eax, %ebx
	movb	$1, %r14b
LBB0_12:
	movq	24(%rbp), %r15
	testl	%ebx, %ebx
	js	LBB0_26
## %bb.13:
	testq	%r15, %r15
	je	LBB0_15
## %bb.14:
	movq	16(%rbp), %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_skb_put
	movl	%eax, %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_memcpy
LBB0_15:
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$5, %ecx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	ja	LBB0_25
## %bb.16:
	movl	$29, %eax
	btl	%ecx, %eax
	jae	LBB0_18
## %bb.17:
	movq	%rsi, %rdx
	movq	16(%r12), %rsi
	jmp	LBB0_19
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	cmpl	$133, %r15d
	jne	LBB0_11
## %bb.10:
	movq	%rbx, (%rsp)
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	$133, %ecx
	movl	%r14d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_ieee80211_prep_tdls_direct
	movl	%eax, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_18:
	movq	16(%r12), %rdx
LBB0_19:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	callq	_ieee80211_tdls_add_link_ie
	testb	$1, %r14b
	je	LBB0_20
## %bb.21:
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	addl	$-129, %ecx
	xorl	%eax, %eax
	cmpl	$2, %ecx
	setae	%al
	leal	2(%rax,%rax,2), %r14d
	jae	LBB0_22
## %bb.23:
	movq	_IEEE80211_AC_BK@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_20:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ieee80211_tx_skb
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_11:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
                                        ## implicit-def: $r14b
	jmp	LBB0_12
LBB0_22:
	movq	_IEEE80211_AC_VI@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_skb_set_queue_mapping
	movl	%r14d, (%rbx)
	xorl	%eax, %eax
	callq	_local_bh_disable
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_ieee80211_subif_start_xmit
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_local_bh_enable
	jmp	LBB0_27
LBB0_25:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_26:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_WIPHY_FLAG_SUPPORTS_TDLS,4,2   ## @WIPHY_FLAG_SUPPORTS_TDLS
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TDLS mgmt action %d peer %pM\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IEEE80211_AC_BK,4,2            ## @IEEE80211_AC_BK
	.comm	_IEEE80211_AC_VI,4,2            ## @IEEE80211_AC_VI
	.no_dead_strip	_ieee80211_tdls_mgmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_tdls_mgmt
_ieee80211_tdls_mgmt:                   ; @ieee80211_tdls_mgmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x7
	mov	x23, x6
	mov	x26, x5
	mov	x27, x4
	mov	x20, x3
	mov	x22, x2
	mov	x19, x1
	mov	x28, x0
	mov	x0, x1
	bl	_IEEE80211_DEV_TO_SUB_IF
	ldr	w8, [x28]
Lloh0:
	adrp	x9, _WIPHY_FLAG_SUPPORTS_TDLS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WIPHY_FLAG_SUPPORTS_TDLS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.2:
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_12
; %bb.3:
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x23, [x21, #24]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x3, x22
	bl	_tdls_dbg
	ldr	x25, [x23]
	mov	w0, #4
	mov	w1, #4
	bl	_max
	add	x8, x24, x25
	add	x8, x8, x0
	add	x0, x8, #61
	bl	_dev_alloc_skb
	cbz	x0, LBB0_17
; %bb.4:
	mov	x25, x0
	ldr	x1, [x23]
	bl	_skb_reserve
	sub	w23, w20, #128
	cmp	w23, #5
	b.hs	LBB0_18
; %bb.5:
	mov	x0, x28
	mov	x1, x19
	mov	x2, x22
	mov	x3, x20
	mov	x4, x27
	mov	x5, x26
	mov	x6, x25
	bl	_ieee80211_prep_tdls_encap_data
	mov	x26, x0
	mov	w27, #1
LBB0_6:
	tbnz	w26, #31, LBB0_26
; %bb.7:
	cbz	x24, LBB0_9
; %bb.8:
	mov	x0, x25
	mov	x1, x24
	bl	_skb_put
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x24
	bl	_memcpy
LBB0_9:
	cmp	w23, #5
	b.hi	LBB0_25
; %bb.10:
	mov	w8, #1
	lsl	w8, w8, w23
	mov	w9, #29
	tst	w8, w9
	b.eq	LBB0_20
; %bb.11:
	mov	x2, x22
	ldr	x22, [x21, #16]
	b	LBB0_21
LBB0_12:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh10:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_15:
	mov	x0, x26
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_14
LBB0_18:
	cmp	w20, #133
	b.ne	LBB0_24
; %bb.19:
	mov	x0, x28
	mov	x1, x19
	mov	x2, x22
	mov	w3, #133
	mov	x4, x27
	mov	x5, x26
	mov	x6, x25
	bl	_ieee80211_prep_tdls_direct
	mov	x26, x0
	mov	w27, #0
	b	LBB0_6
LBB0_20:
	ldr	x2, [x21, #16]
LBB0_21:
	ldr	w3, [x21]
	mov	x0, x25
	mov	x1, x22
	bl	_ieee80211_tdls_add_link_ie
	tbz	w27, #0, LBB0_23
; %bb.22:
	sub	w8, w20, #129
	mov	w9, #5
	mov	w10, #2
	cmp	w8, #2
	csel	w20, w10, w9, lo
Lloh14:
	adrp	x8, _IEEE80211_AC_BK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IEEE80211_AC_BK@GOTPAGEOFF]
Lloh16:
	adrp	x9, _IEEE80211_AC_VI@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IEEE80211_AC_VI@GOTPAGEOFF]
	csel	x8, x8, x9, lo
	ldr	w1, [x8]
	mov	x0, x25
	bl	_skb_set_queue_mapping
	str	w20, [x25]
	bl	_local_bh_disable
	mov	x0, x25
	mov	x1, x19
	bl	_ieee80211_subif_start_xmit
	mov	x19, x0
	bl	_local_bh_enable
	mov	x0, x19
	b	LBB0_16
LBB0_23:
	mov	x0, x21
	mov	x1, x25
	bl	_ieee80211_tx_skb
	mov	w26, #0
	b	LBB0_15
LBB0_24:
Lloh18:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w26, w8
                                        ; implicit-def: $w27
	b	LBB0_6
LBB0_25:
Lloh21:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_26:
	mov	x0, x25
	bl	_dev_kfree_skb
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_WIPHY_FLAG_SUPPORTS_TDLS,4,2   ; @WIPHY_FLAG_SUPPORTS_TDLS
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TDLS mgmt action %d peer %pM\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IEEE80211_AC_BK,4,2            ; @IEEE80211_AC_BK
	.comm	_IEEE80211_AC_VI,4,2            ; @IEEE80211_AC_VI
	.no_dead_strip	_ieee80211_tdls_mgmt
.subsections_via_symbols
