	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wcn36xx_set_tx_mgmt
_wcn36xx_set_tx_mgmt:                   ## @wcn36xx_set_tx_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %r13
	movl	4(%r13), %esi
	movq	%r15, %rdi
	callq	_get_vif_by_addr
	movq	%rax, %r12
	movl	12(%rax), %eax
	movl	%eax, 28(%rbx)
	movl	8(%r12), %eax
	movl	%eax, 24(%rbx)
	movl	$1, (%rbx)
	movl	(%r13), %edi
	callq	_ieee80211_is_mgmt
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%r15, %rdi
	callq	_WCN36XX_BAND
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	_WCN36XX_BD_RATE_CTRL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movl	(%r13), %edi
	callq	_ieee80211_is_ctl
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_WCN36XX_BD_RATE_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	jmp	LBB0_8
LBB0_2:
	movq	_WCN36XX_BD_RATE_MGMT@GOTPCREL(%rip), %rax
LBB0_4:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	cmpq	$0, (%r12)
	je	LBB0_13
LBB0_10:
	movl	(%r13), %edi
	callq	_ieee80211_is_probe_req
	movq	_WCN36XX_TX_U_WQ_ID@GOTPCREL(%rip), %rcx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
## %bb.11:
	testq	%rax, %rax
	je	LBB0_12
	jmp	LBB0_15
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_wcn36xx_warn
LBB0_8:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	cmpq	$0, (%r12)
	jne	LBB0_10
LBB0_13:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
LBB0_12:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 4(%rbx)
	movq	_WCN36XX_TX_B_WQ_ID@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_14:
	movq	_WCN36XX_TX_U_WQ_ID@GOTPCREL(%rip), %rcx
LBB0_15:
	movl	(%rcx), %eax
	movl	%eax, 12(%rbx)
	movq	%r12, (%r14)
	movl	(%r13), %edi
	callq	_ieee80211_is_data_qos
	movl	(%r15), %edx
	movq	_WCN36XX_TID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$4, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wcn36xx_set_tx_pdu             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_WCN36XX_BD_RATE_CTRL,8,3       ## @WCN36XX_BD_RATE_CTRL
	.comm	_WCN36XX_BD_RATE_MGMT,8,3       ## @WCN36XX_BD_RATE_MGMT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"frame control type unknown\n"

	.comm	_WCN36XX_TX_B_WQ_ID,4,2         ## @WCN36XX_TX_B_WQ_ID
	.comm	_WCN36XX_TX_U_WQ_ID,4,2         ## @WCN36XX_TX_U_WQ_ID
	.comm	_WCN36XX_TID,4,2                ## @WCN36XX_TID
	.no_dead_strip	_wcn36xx_set_tx_mgmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wcn36xx_set_tx_mgmt
_wcn36xx_set_tx_mgmt:                   ; @wcn36xx_set_tx_mgmt
	.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	x23, x4
	mov	x19, x3
	mov	x21, x2
	mov	x24, x1
	mov	x20, x0
	ldr	x25, [x3, #8]
	ldr	w1, [x25, #4]
	mov	x0, x24
	bl	_get_vif_by_addr
	mov	x22, x0
	ldr	d0, [x0, #8]
	str	d0, [x20, #24]
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x25]
	bl	_ieee80211_is_mgmt
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x24
	bl	_WCN36XX_BAND
Lloh0:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _WCN36XX_BD_RATE_CTRL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WCN36XX_BD_RATE_CTRL@GOTPAGEOFF]
Lloh5:
	adrp	x10, _WCN36XX_BD_RATE_MGMT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _WCN36XX_BD_RATE_MGMT@GOTPAGEOFF]
	cmp	x0, x8
	csel	x8, x9, x10, eq
	b	LBB0_4
LBB0_2:
	ldr	w0, [x25]
	bl	_ieee80211_is_ctl
	cbz	x0, LBB0_7
; %bb.3:
Lloh7:
	adrp	x8, _WCN36XX_BD_RATE_CTRL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WCN36XX_BD_RATE_CTRL@GOTPAGEOFF]
LBB0_4:
	ldr	x8, [x8]
	str	x8, [x20, #16]
	ldr	x8, [x22]
	cbz	x8, LBB0_8
LBB0_5:
	ldr	w0, [x25]
	bl	_ieee80211_is_probe_req
Lloh9:
	adrp	x8, _WCN36XX_TX_U_WQ_ID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WCN36XX_TX_U_WQ_ID@GOTPAGEOFF]
	cbz	w23, LBB0_11
; %bb.6:
	cbz	x0, LBB0_9
	b	LBB0_11
LBB0_7:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wcn36xx_warn
	ldr	x8, [x22]
	cbnz	x8, LBB0_5
LBB0_8:
	cbz	w23, LBB0_10
LBB0_9:
	movi.2s	v0, #1
	stur	d0, [x20, #4]
Lloh13:
	adrp	x8, _WCN36XX_TX_B_WQ_ID@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WCN36XX_TX_B_WQ_ID@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh15:
	adrp	x8, _WCN36XX_TX_U_WQ_ID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WCN36XX_TX_U_WQ_ID@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	str	w8, [x20, #12]
	str	x22, [x21]
	ldr	w0, [x25]
	bl	_ieee80211_is_data_qos
Lloh17:
	adrp	x8, _WCN36XX_TID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WCN36XX_TID@GOTPAGEOFF]
	ldr	w2, [x19]
Lloh19:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #4
	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	_wcn36xx_set_tx_pdu
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_WCN36XX_BD_RATE_CTRL,8,3       ; @WCN36XX_BD_RATE_CTRL
	.comm	_WCN36XX_BD_RATE_MGMT,8,3       ; @WCN36XX_BD_RATE_MGMT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"frame control type unknown\n"

	.comm	_WCN36XX_TX_B_WQ_ID,4,2         ; @WCN36XX_TX_B_WQ_ID
	.comm	_WCN36XX_TX_U_WQ_ID,4,2         ; @WCN36XX_TX_U_WQ_ID
	.comm	_WCN36XX_TID,4,2                ; @WCN36XX_TID
	.no_dead_strip	_wcn36xx_set_tx_mgmt
.subsections_via_symbols
