	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_send_tdls_action_frame ## -- Begin function mwifiex_send_tdls_action_frame
	.p2align	4, 0x90
_mwifiex_send_tdls_action_frame:        ## @mwifiex_send_tdls_action_frame
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	16(%rbp), %r12
	movq	_MWIFIEX_MIN_DATA_HEADER_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movl	$4, %edi
	movl	$4, %esi
	callq	_max
                                        ## kill: def $eax killed $eax def $rax
	addl	%ebx, %eax
	movq	_MWIFIEX_MGMT_FRAME_HEADER_SIZE@GOTPCREL(%rip), %rbx
	addl	(%rbx), %eax
	movq	_MWIFIEX_SUPPORTED_RATES@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movq	_ETH_ALEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%r12d, %eax
	movq	16(%r14), %rdx
	cmpq	$0, (%rdx)
	leal	3(%rcx,%rax), %edx
	leal	15(%rcx,%rax), %edi
	cmovel	%edx, %edi
	addl	$20, %edi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_skb_reserve
	movq	_PKT_TYPE_MGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	$0, -60(%rbp)
	movl	(%rbx), %esi
	addl	$4, %esi
	movq	%r12, %rdi
	callq	_skb_put_zero
	movq	%rbx, %r13
	movq	%rax, %rbx
	leaq	-64(%rbp), %rsi
	movq	%rax, %rdi
	movl	$4, %edx
	callq	_memcpy
	addq	$16, %rbx
	leaq	-60(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movq	%r12, %r9
	callq	_mwifiex_construct_tdls_action_frame
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	16(%r14), %rdi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_mwifiex_dbg
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_5:
	movq	16(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_skb_put_data
LBB0_7:
	movl	8(%r14), %ecx
	movl	12(%r14), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mwifiex_tdls_add_link_ie
	movq	_MWIFIEX_PRIO_VI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	%r12, %rdi
	callq	_MWIFIEX_SKB_TXCB
	movq	%rax, %r15
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	4(%r14), %eax
	movl	%eax, 8(%r15)
	movl	(%r14), %eax
	movl	%eax, 4(%r15)
	movq	_MWIFIEX_BUF_FLAG_TDLS_PKT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movl	(%r12), %eax
	movslq	(%r13), %rdi
	subl	%edi, %eax
	addl	$-4, %eax
	movl	%eax, -56(%rbp)
	shlq	$2, %rdi
	addq	8(%r12), %rdi
	leaq	-56(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r12, %rdi
	callq	___net_timestamp
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mwifiex_queue_tx_pkt
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_MIN_DATA_HEADER_LEN,4,2 ## @MWIFIEX_MIN_DATA_HEADER_LEN
	.comm	_MWIFIEX_MGMT_FRAME_HEADER_SIZE,4,2 ## @MWIFIEX_MGMT_FRAME_HEADER_SIZE
	.comm	_MWIFIEX_SUPPORTED_RATES,4,2    ## @MWIFIEX_SUPPORTED_RATES
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"allocate skb failed for management frame\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PKT_TYPE_MGMT,4,2              ## @PKT_TYPE_MGMT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MWIFIEX_PRIO_VI,4,2            ## @MWIFIEX_PRIO_VI
	.comm	_MWIFIEX_BUF_FLAG_TDLS_PKT,4,2  ## @MWIFIEX_BUF_FLAG_TDLS_PKT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_send_tdls_action_frame ; -- Begin function mwifiex_send_tdls_action_frame
	.p2align	2
_mwifiex_send_tdls_action_frame:        ; @mwifiex_send_tdls_action_frame
	.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	x22, x6
	mov	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x26, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x27, _MWIFIEX_MIN_DATA_HEADER_LEN@GOTPAGE
Lloh1:
	ldr	x27, [x27, _MWIFIEX_MIN_DATA_HEADER_LEN@GOTPAGEOFF]
	ldr	w20, [x27]
	mov	w0, #4
	mov	w1, #4
	bl	_max
Lloh2:
	adrp	x28, _MWIFIEX_MGMT_FRAME_HEADER_SIZE@GOTPAGE
Lloh3:
	ldr	x28, [x28, _MWIFIEX_MGMT_FRAME_HEADER_SIZE@GOTPAGEOFF]
	ldr	w8, [x28]
	add	w9, w0, w20
	add	w8, w9, w8
Lloh4:
	adrp	x9, _MWIFIEX_SUPPORTED_RATES@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MWIFIEX_SUPPORTED_RATES@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _ETH_ALEN@GOTPAGE
Lloh8:
	ldr	x10, [x10, _ETH_ALEN@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	add	w8, w8, w9
	add	w8, w22, w8
	add	w8, w8, w10
	add	w9, w8, #23
	ldr	x10, [x19, #16]
	ldr	x10, [x10]
	add	w8, w8, #35
	cmp	x10, #0
	csel	w0, w9, w8, eq
	bl	_dev_alloc_skb
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w1, [x27]
	bl	_skb_reserve
Lloh10:
	adrp	x8, _PKT_TYPE_MGMT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PKT_TYPE_MGMT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #8]
	ldr	w8, [x28]
	add	w1, w8, #4
	mov	x0, x20
	bl	_skb_put_zero
	mov	x27, x0
	add	x1, sp, #12
	mov	w2, #4
	bl	_memcpy
	add	x0, x27, #16
	add	x1, sp, #8
	mov	w2, #4
	bl	_memcpy
	mov	x0, x19
	mov	x1, x21
	mov	x2, x26
	mov	x3, x25
	mov	x4, x24
	mov	x5, x20
	bl	_mwifiex_construct_tdls_action_frame
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_dev_kfree_skb_any
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	x0, [x19, #16]
Lloh15:
	adrp	x8, _ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_5:
	cbz	x22, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_skb_put_data
LBB0_7:
	ldp	w3, w2, [x19, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_mwifiex_tdls_add_link_ie
Lloh22:
	adrp	x8, _MWIFIEX_PRIO_VI@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MWIFIEX_PRIO_VI@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	mov	x0, x20
	bl	_MWIFIEX_SKB_TXCB
	mov	x21, x0
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	d0, [x19]
Lloh25:
	adrp	x8, _MWIFIEX_BUF_FLAG_TDLS_PKT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MWIFIEX_BUF_FLAG_TDLS_PKT@GOTPAGEOFF]
	stur	d0, [x21, #4]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	ldr	w8, [x20]
	ldrsw	x9, [x28]
	sub	w8, w8, w9
	sub	w8, w8, #4
	str	w8, [sp, #4]
	ldr	x8, [x20, #8]
	add	x0, x8, x9, lsl #2
	add	x1, sp, #4
	mov	w2, #4
	bl	_memcpy
	mov	x0, x20
	bl	___net_timestamp
	mov	x0, x19
	mov	x1, x20
	bl	_mwifiex_queue_tx_pkt
	mov	w0, #0
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_MIN_DATA_HEADER_LEN,4,2 ; @MWIFIEX_MIN_DATA_HEADER_LEN
	.comm	_MWIFIEX_MGMT_FRAME_HEADER_SIZE,4,2 ; @MWIFIEX_MGMT_FRAME_HEADER_SIZE
	.comm	_MWIFIEX_SUPPORTED_RATES,4,2    ; @MWIFIEX_SUPPORTED_RATES
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"allocate skb failed for management frame\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PKT_TYPE_MGMT,4,2              ; @PKT_TYPE_MGMT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MWIFIEX_PRIO_VI,4,2            ; @MWIFIEX_PRIO_VI
	.comm	_MWIFIEX_BUF_FLAG_TDLS_PKT,4,2  ; @MWIFIEX_BUF_FLAG_TDLS_PKT
.subsections_via_symbols
