	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_cfg80211_mgmt_tx
_mwifiex_cfg80211_mgmt_tx:              ## @mwifiex_cfg80211_mgmt_tx
	.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	%rcx, %r14
	movq	%rsi, %rbx
	movq	(%rdx), %r13
	movq	8(%rdx), %r15
	movl	(%rsi), %edi
	callq	_mwifiex_netdev_get_priv
	movq	%rax, %r12
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	testq	%r13, %r13
	je	LBB0_2
## %bb.4:
	movq	%r12, %rdi
	callq	_GET_BSS_ROLE
	movq	_MWIFIEX_BSS_ROLE_STA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.5:
	movl	(%r15), %edi
	callq	_ieee80211_is_probe_resp
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%r12), %edi
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_13
LBB0_2:
	movl	(%r12), %edi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_mwifiex_dbg
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_7:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movq	%r13, %rbx
	movq	(%rax), %r13
	addq	%rbx, %r13
	movq	_MWIFIEX_MIN_DATA_HEADER_LEN@GOTPCREL(%rip), %rax
	movq	_MWIFIEX_MGMT_FRAME_HEADER_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax), %rax
	addq	%r13, %rax
	leaq	(%rcx,%rax), %rdi
	addq	$8, %rdi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_MWIFIEX_SKB_TXCB
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	8(%r12), %eax
	movl	%eax, 12(%r14)
	movl	4(%r12), %eax
	movl	%eax, 8(%r14)
	movq	%r13, (%r14)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_mwifiex_form_mgmt_frame
	xorl	%eax, %eax
	callq	_prandom_u32
	orl	$1, %eax
	movl	%eax, (%r14)
	movl	(%r15), %edi
	callq	_ieee80211_is_action
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_MWIFIEX_BUF_FLAG_ACTION_TX_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rcx
	callq	_mwifiex_clone_skb_for_tx_status
	movq	%rax, %rsi
	jmp	LBB0_12
LBB0_8:
	movl	(%r12), %edi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	callq	_mwifiex_dbg
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_11:
	movl	(%r14), %esi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_cfg80211_mgmt_tx_status
	movq	%r13, %rsi
LBB0_12:
	movq	%r12, %rdi
	callq	_mwifiex_queue_tx_pkt
	movl	(%r12), %edi
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_13:
	callq	_mwifiex_dbg
	xorl	%eax, %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid buffer and length\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_MWIFIEX_BSS_ROLE_STA,8,3       ## @MWIFIEX_BSS_ROLE_STA
	.comm	_INFO,4,2                       ## @INFO
L_.str.1:                               ## @.str.1
	.asciz	"info: skip to send probe resp in AP or GO mode\n"

	.comm	_ETH_ALEN,8,3                   ## @ETH_ALEN
	.comm	_MWIFIEX_MIN_DATA_HEADER_LEN,8,3 ## @MWIFIEX_MIN_DATA_HEADER_LEN
	.comm	_MWIFIEX_MGMT_FRAME_HEADER_SIZE,8,3 ## @MWIFIEX_MGMT_FRAME_HEADER_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"allocate skb failed for management frame\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MWIFIEX_BUF_FLAG_ACTION_TX_STATUS,4,2 ## @MWIFIEX_BUF_FLAG_ACTION_TX_STATUS
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.3:                               ## @.str.3
	.asciz	"info: management frame transmitted\n"

	.no_dead_strip	_mwifiex_cfg80211_mgmt_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_cfg80211_mgmt_tx
_mwifiex_cfg80211_mgmt_tx:              ; @mwifiex_cfg80211_mgmt_tx
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x23, x1
	ldp	x22, x21, [x2]
	ldr	w0, [x1]
	bl	_mwifiex_netdev_get_priv
	mov	x19, x0
	cmp	x21, #0
	ccmp	x22, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
Lloh5:
	adrp	x8, _EFAULT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	mov	x0, x19
	bl	_GET_BSS_ROLE
Lloh7:
	adrp	x8, _MWIFIEX_BSS_ROLE_STA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MWIFIEX_BSS_ROLE_STA@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.3:
	ldr	w0, [x21]
	bl	_ieee80211_is_probe_resp
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19]
Lloh10:
	adrp	x8, _INFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_5:
Lloh15:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _MWIFIEX_MIN_DATA_HEADER_LEN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MWIFIEX_MIN_DATA_HEADER_LEN@GOTPAGEOFF]
Lloh20:
	adrp	x10, _MWIFIEX_MGMT_FRAME_HEADER_SIZE@GOTPAGE
Lloh21:
	ldr	x10, [x10, _MWIFIEX_MGMT_FRAME_HEADER_SIZE@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
Lloh23:
	ldr	x10, [x10]
	add	x26, x8, x22
	add	x8, x9, x26
	add	x8, x8, x10
	add	x0, x8, #8
	bl	_dev_alloc_skb
	cbz	x0, LBB0_8
; %bb.6:
	mov	x24, x0
	bl	_MWIFIEX_SKB_TXCB
	mov	x25, x0
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldur	d0, [x19, #4]
	str	d0, [x25, #8]
	str	x26, [x25]
	mov	x0, x24
	mov	x1, x21
	mov	x2, x22
	bl	_mwifiex_form_mgmt_frame
	bl	_prandom_u32
	orr	w8, w0, #0x1
	str	w8, [x20]
	ldr	w0, [x21]
	bl	_ieee80211_is_action
	cbz	x0, LBB0_10
; %bb.7:
Lloh24:
	adrp	x8, _MWIFIEX_BUF_FLAG_ACTION_TX_STATUS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MWIFIEX_BUF_FLAG_ACTION_TX_STATUS@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x24
	mov	x3, x20
	bl	_mwifiex_clone_skb_for_tx_status
	mov	x24, x0
	b	LBB0_11
LBB0_8:
	ldr	w0, [x19]
Lloh27:
	adrp	x8, _ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.2@PAGE
Lloh31:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_mwifiex_dbg
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_10:
	ldr	w1, [x20]
Lloh34:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh35:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh36:
	ldr	w5, [x8]
	mov	x0, x23
	mov	x2, x21
	mov	x3, x22
	mov	w4, #1
	bl	_cfg80211_mgmt_tx_status
LBB0_11:
	mov	x0, x19
	mov	x1, x24
	bl	_mwifiex_queue_tx_pkt
	ldr	w0, [x19]
Lloh37:
	adrp	x8, _INFO@GOTPAGE
Lloh38:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x2, l_.str.3@PAGE
Lloh41:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_12:
	bl	_mwifiex_dbg
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid buffer and length\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_MWIFIEX_BSS_ROLE_STA,8,3       ; @MWIFIEX_BSS_ROLE_STA
	.comm	_INFO,4,2                       ; @INFO
l_.str.1:                               ; @.str.1
	.asciz	"info: skip to send probe resp in AP or GO mode\n"

	.comm	_ETH_ALEN,8,3                   ; @ETH_ALEN
	.comm	_MWIFIEX_MIN_DATA_HEADER_LEN,8,3 ; @MWIFIEX_MIN_DATA_HEADER_LEN
	.comm	_MWIFIEX_MGMT_FRAME_HEADER_SIZE,8,3 ; @MWIFIEX_MGMT_FRAME_HEADER_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"allocate skb failed for management frame\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MWIFIEX_BUF_FLAG_ACTION_TX_STATUS,4,2 ; @MWIFIEX_BUF_FLAG_ACTION_TX_STATUS
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.3:                               ; @.str.3
	.asciz	"info: management frame transmitted\n"

	.no_dead_strip	_mwifiex_cfg80211_mgmt_tx
.subsections_via_symbols
