	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism2_send_mgmt
_prism2_send_mgmt:                      ## @prism2_send_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movq	%r8, %rbx
	movl	%ecx, %r13d
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_netdev_priv
	movq	(%rax), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_netdev_priv
	movq	_IFF_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14)
	je	LBB0_1
## %bb.3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leal	16(%r13), %edi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le16
	movl	%eax, %edi
	callq	_hostap_80211_get_hdrlen
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_skb_put_zero
	movq	%rax, %rbx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_skb_put_data
LBB0_7:
	movl	12(%rbx), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movl	(%rbx), %edi
	callq	_ieee80211_is_data
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_IEEE80211_FCTL_FROMDS@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	orl	(%rax), %r13d
	movl	8(%rbx), %edi
LBB0_9:
	movq	8(%r14), %rsi
	movl	(%r15), %edx
	callq	_memcpy
	movl	4(%rbx), %edi
	movq	8(%r14), %rsi
	movl	(%r15), %edx
	callq	_memcpy
	jmp	LBB0_12
LBB0_1:
	movq	_DEBUG_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r14), %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	_DEBUG_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PDEBUG                         ## TAILCALL
LBB0_10:
	movl	(%rbx), %edi
	callq	_ieee80211_is_ctl
	movl	8(%rbx), %edi
	testq	%rax, %rax
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_9
## %bb.11:
	callq	_eth_zero_addr
	movl	4(%rbx), %edi
	callq	_eth_zero_addr
LBB0_12:
	movl	%r13d, %edi
	callq	_cpu_to_le16
	movl	%eax, (%rbx)
	movq	8(%r12), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_HOSTAP_SKB_TX_DATA_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
	movq	%r14, (%r12)
	movq	%r12, %rdi
	callq	_skb_reset_mac_header
	movq	%r12, %rdi
	callq	_skb_reset_network_header
	movq	%r12, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_queue_xmit                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_DEBUG_AP,4,2                   ## @DEBUG_AP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: prism2_send_mgmt - device is not UP - cannot send frame\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: prism2_send_mgmt failed to allocate skb\n"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_IEEE80211_FCTL_FROMDS,4,2      ## @IEEE80211_FCTL_FROMDS
	.comm	_HOSTAP_SKB_TX_DATA_MAGIC,4,2   ## @HOSTAP_SKB_TX_DATA_MAGIC
	.no_dead_strip	_prism2_send_mgmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism2_send_mgmt
_prism2_send_mgmt:                      ; @prism2_send_mgmt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x5
	mov	x25, x4
	mov	x26, x3
	mov	x27, x2
	mov	x23, x1
	bl	_netdev_priv
	ldr	x8, [x0]
	ldr	x20, [x8]
	mov	x0, x20
	bl	_netdev_priv
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.1:
	mov	x21, x0
	add	w0, w26, #16
	bl	_dev_alloc_skb
	cbz	x0, LBB0_8
; %bb.2:
	mov	x22, x0
	mov	x0, x23
	bl	_cpu_to_le16
	bl	_hostap_80211_get_hdrlen
	mov	x1, x0
	mov	x0, x22
	bl	_skb_put_zero
	mov	x24, x0
	cbz	x27, LBB0_4
; %bb.3:
	mov	x0, x22
	mov	x1, x27
	mov	x2, x26
	bl	_skb_put_data
LBB0_4:
	ldr	w0, [x24, #12]
Lloh3:
	adrp	x26, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x26, [x26, _ETH_ALEN@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x1, x25
	bl	_memcpy
	ldr	w0, [x24]
	bl	_ieee80211_is_data
	cbz	x0, LBB0_10
; %bb.5:
Lloh5:
	adrp	x8, _IEEE80211_FCTL_FROMDS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE80211_FCTL_FROMDS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w23, w8, w23
	ldr	w0, [x24, #8]
LBB0_6:
	ldr	x1, [x20, #8]
	ldr	w2, [x26]
	bl	_memcpy
	ldr	w0, [x24, #4]
	ldr	x1, [x20, #8]
	ldr	w2, [x26]
	bl	_memcpy
	b	LBB0_12
LBB0_7:
Lloh8:
	adrp	x8, _DEBUG_AP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DEBUG_AP@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w2, [x20, #16]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x8, _DEBUG_AP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DEBUG_AP@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	w2, [x20, #16]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_PDEBUG
LBB0_10:
	ldr	w0, [x24]
	bl	_ieee80211_is_ctl
	mov	x8, x0
	ldr	w0, [x24, #8]
	cbz	x8, LBB0_6
; %bb.11:
	bl	_eth_zero_addr
	ldr	w0, [x24, #4]
	bl	_eth_zero_addr
LBB0_12:
	mov	x0, x23
	bl	_cpu_to_le16
	str	w0, [x24]
	ldr	x23, [x22, #8]
	mov	x0, x23
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh18:
	adrp	x8, _HOSTAP_SKB_TX_DATA_MAGIC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HOSTAP_SKB_TX_DATA_MAGIC@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x23, #16]
	str	x21, [x23, #8]
	str	w19, [x23]
	str	x20, [x22]
	mov	x0, x22
	bl	_skb_reset_mac_header
	mov	x0, x22
	bl	_skb_reset_network_header
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_dev_queue_xmit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_DEBUG_AP,4,2                   ; @DEBUG_AP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: prism2_send_mgmt - device is not UP - cannot send frame\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: prism2_send_mgmt failed to allocate skb\n"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_IEEE80211_FCTL_FROMDS,4,2      ; @IEEE80211_FCTL_FROMDS
	.comm	_HOSTAP_SKB_TX_DATA_MAGIC,4,2   ; @HOSTAP_SKB_TX_DATA_MAGIC
	.no_dead_strip	_prism2_send_mgmt
.subsections_via_symbols
