	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_wmi_op_gen_mgmt_tx
_ath10k_wmi_op_gen_mgmt_tx:             ## @ath10k_wmi_op_gen_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	%rsi, %r12
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_ATH10K_SKB_CB
	movq	%rax, %rbx
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r12), %r15
	movl	(%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rax
	movl	(%rax), %ebx
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movl	(%r15), %edi
	callq	_ieee80211_is_mgmt
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_6:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	(%r12), %r14d
	addl	$40, %r14d
	movl	(%r15), %edi
	callq	_ieee80211_is_action
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movl	(%r15), %edi
	callq	_ieee80211_is_deauth
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movl	(%r15), %edi
	callq	_ieee80211_is_disassoc
	testq	%rax, %rax
	je	LBB0_11
LBB0_9:
	movl	(%r15), %edi
	callq	_ieee80211_has_protected
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_IEEE80211_CCMP_MIC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %r14d
	addl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
LBB0_11:
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_round_up
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ath10k_wmi_alloc_skb
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %r14
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r13
	movl	%ebx, %edi
	callq	___cpu_to_le32
	movq	%rax, 40(%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r13)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	___cpu_to_le32
	movq	%rax, 16(%r13)
	movl	8(%r13), %ebx
	movq	%r15, %rdi
	callq	_ieee80211_get_DA
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ether_addr_copy
	movl	(%r13), %edi
	movq	8(%r12), %rsi
	movl	(%r12), %edx
	callq	_memcpy
	movq	_ATH10K_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %r8d
	movq	_IEEE80211_FCTL_FTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	andl	%ecx, %r9d
	movq	_IEEE80211_FCTL_STYPE@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	movl	%ecx, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rcx
	callq	_ath10k_dbg
	movq	8(%r14), %rsi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_trace_ath10k_tx_hdr
	movq	8(%r14), %rsi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_trace_ath10k_tx_payload
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IEEE80211_CCMP_MIC_LEN,4,2     ## @IEEE80211_CCMP_MIC_LEN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ATH10K_DBG_WMI,4,2             ## @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wmi mgmt tx skb %pK len %d ftype %02x stype %02x\n"

	.comm	_IEEE80211_FCTL_FTYPE,4,2       ## @IEEE80211_FCTL_FTYPE
	.comm	_IEEE80211_FCTL_STYPE,4,2       ## @IEEE80211_FCTL_STYPE
	.no_dead_strip	_ath10k_wmi_op_gen_mgmt_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_wmi_op_gen_mgmt_tx
_ath10k_wmi_op_gen_mgmt_tx:             ; @ath10k_wmi_op_gen_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, x1
	mov	x19, x0
	mov	x0, x1
	bl	_ATH10K_SKB_CB
	mov	x24, x0
	ldr	w23, [x20]
	ldr	x22, [x20, #8]
	ldr	w0, [x22]
	bl	_le16_to_cpu
	mov	x21, x0
	ldr	x8, [x24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8]
	ldr	w24, [x8]
	b	LBB0_3
LBB0_2:
	mov	w24, #0
LBB0_3:
	ldr	w0, [x22]
	bl	_ieee80211_is_mgmt
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	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
	b	_ERR_PTR
LBB0_6:
	ldr	w8, [x20]
	add	w25, w8, #40
	ldr	w0, [x22]
	bl	_ieee80211_is_action
	cbnz	x0, LBB0_9
; %bb.7:
	ldr	w0, [x22]
	bl	_ieee80211_is_deauth
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	w0, [x22]
	bl	_ieee80211_is_disassoc
	cbz	x0, LBB0_11
LBB0_9:
	ldr	w0, [x22]
	bl	_ieee80211_has_protected
	cbz	x0, LBB0_11
; %bb.10:
Lloh2:
	adrp	x8, _IEEE80211_CCMP_MIC_LEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IEEE80211_CCMP_MIC_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	add	w25, w8, w25
	add	w23, w8, w23
LBB0_11:
	mov	x0, x25
	mov	w1, #4
	bl	_round_up
	mov	x1, x0
	mov	x0, x19
	bl	_ath10k_wmi_alloc_skb
	cbz	x0, LBB0_13
; %bb.12:
	mov	x25, x0
	ldr	x26, [x0, #8]
	mov	x0, x24
	bl	___cpu_to_le32
	stp	xzr, x0, [x26, #32]
	str	xzr, [x26, #24]
	mov	x0, x23
	bl	___cpu_to_le32
	str	x0, [x26, #16]
	ldr	w23, [x26, #8]
	mov	x0, x22
	bl	_ieee80211_get_DA
	mov	x1, x0
	mov	x0, x23
	bl	_ether_addr_copy
	ldr	w0, [x26]
	ldr	x1, [x20, #8]
	ldr	w2, [x20]
	bl	_memcpy
Lloh5:
	adrp	x8, _ATH10K_DBG_WMI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATH10K_DBG_WMI@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w4, [x25]
Lloh8:
	adrp	x8, _IEEE80211_FCTL_FTYPE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IEEE80211_FCTL_FTYPE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w5, w8, w21
Lloh11:
	adrp	x8, _IEEE80211_FCTL_STYPE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IEEE80211_FCTL_STYPE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	and	w6, w8, w21
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_ath10k_dbg
	ldr	x1, [x25, #8]
	ldr	w2, [x25]
	mov	x0, x19
	bl	_trace_ath10k_tx_hdr
	ldr	x1, [x25, #8]
	ldr	w2, [x25]
	mov	x0, x19
	bl	_trace_ath10k_tx_payload
	mov	x0, x25
	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
LBB0_13:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IEEE80211_CCMP_MIC_LEN,4,2     ; @IEEE80211_CCMP_MIC_LEN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ATH10K_DBG_WMI,4,2             ; @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wmi mgmt tx skb %pK len %d ftype %02x stype %02x\n"

	.comm	_IEEE80211_FCTL_FTYPE,4,2       ; @IEEE80211_FCTL_FTYPE
	.comm	_IEEE80211_FCTL_STYPE,4,2       ; @IEEE80211_FCTL_STYPE
	.no_dead_strip	_ath10k_wmi_op_gen_mgmt_tx
.subsections_via_symbols
