	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcn36xx_start_tx               ## -- Begin function wcn36xx_start_tx
	.p2align	4, 0x90
_wcn36xx_start_tx:                      ## @wcn36xx_start_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movq	8(%rdx), %r14
	movq	$0, -72(%rbp)
	movq	%rdx, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %edi
	callq	_ieee80211_is_data
	movl	%eax, %ebx
	movl	8(%r14), %edi
	callq	_is_broadcast_ether_addr
	movb	$1, %r13b
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	8(%r14), %edi
	callq	_is_multicast_ether_addr
	testq	%rax, %rax
	setne	%r13b
LBB0_2:
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_WCN36XX_DBG_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	(%r12), %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movl	4(%r14), %edi
	callq	___le16_to_cpu
	movl	%eax, %r15d
	movl	(%r14), %edi
	callq	___le16_to_cpu
	movl	%eax, %edi
	callq	_IEEE80211_SEQ_TO_SN
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %r10
	cmoveq	%rcx, %r10
	leaq	L_.str.3(%rip), %rcx
	leaq	L_.str.4(%rip), %rbx
	movb	%r13b, -41(%rbp)                ## 1-byte Spill
	testb	%r13b, %r13b
	cmovneq	%rcx, %rbx
	leaq	L_.str(%rip), %rsi
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rdx
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r10
	callq	_wcn36xx_dbg
	addq	$16, %rsp
	movq	_WCN36XX_DBG_TX_DUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rdx
	movl	(%r12), %ecx
	leaq	L_.str.5(%rip), %rsi
	callq	_wcn36xx_dbg_dump
	movq	_WCN36XX_BMU_WQ_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_IEEE80211_TX_CTL_REQ_TX_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	andl	(%rdx), %eax
	setne	%cl
	movl	%ecx, -64(%rbp)
	movq	-104(%rbp), %r14                ## 8-byte Reload
	je	LBB0_6
## %bb.3:
	movq	_WCN36XX_DBG_DXE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_wcn36xx_dbg
	leaq	4(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 8(%r14)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	leaq	L_.str.7(%rip), %rdi
	callq	_wcn36xx_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_5:
	movq	%r12, 8(%r14)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%r14), %edi
	callq	_ieee80211_stop_queues
LBB0_6:
	movzbl	-41(%rbp), %r9d                 ## 1-byte Folded Reload
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.7:
	leaq	-64(%rbp), %rdi
	leaq	-72(%rbp), %rdx
	movq	%r14, %rsi
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, %r8
	callq	_wcn36xx_set_tx_data
	jmp	LBB0_9
LBB0_8:
	leaq	-64(%rbp), %rdi
	leaq	-72(%rbp), %rdx
	movq	%r14, %rsi
	movq	%r12, %rcx
	movl	%r9d, %r8d
	callq	_wcn36xx_set_tx_mgmt
LBB0_9:
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_buff_to_be
	movl	$-1111638595, -60(%rbp)         ## imm = 0xBDBDBDBD
	movq	-72(%rbp), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_wcn36xx_dxe_tx_frame
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	cmpl	$0, -64(%rbp)
	je	LBB0_12
## %bb.11:
	leaq	4(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	$0, 8(%r14)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%r14), %edi
	callq	_ieee80211_wake_queues
LBB0_12:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WCN36XX_DBG_TX,4,2             ## @WCN36XX_DBG_TX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx skb %p len %d fc %04x sn %d %s %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"low"

L_.str.2:                               ## @.str.2
	.asciz	"high"

L_.str.3:                               ## @.str.3
	.asciz	"bcast"

L_.str.4:                               ## @.str.4
	.asciz	"ucast"

	.comm	_WCN36XX_DBG_TX_DUMP,4,2        ## @WCN36XX_DBG_TX_DUMP
L_.str.5:                               ## @.str.5
	.space	1

	.comm	_WCN36XX_BMU_WQ_TX,4,2          ## @WCN36XX_BMU_WQ_TX
	.comm	_IEEE80211_TX_CTL_REQ_TX_STATUS,4,2 ## @IEEE80211_TX_CTL_REQ_TX_STATUS
	.comm	_WCN36XX_DBG_DXE,4,2            ## @WCN36XX_DBG_DXE
L_.str.6:                               ## @.str.6
	.asciz	"TX_ACK status requested\n"

L_.str.7:                               ## @.str.7
	.asciz	"tx_ack_skb already set\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcn36xx_start_tx               ; -- Begin function wcn36xx_start_tx
	.p2align	2
_wcn36xx_start_tx:                      ; @wcn36xx_start_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x27, [x2, #8]
	str	xzr, [sp, #72]
	mov	x0, x2
	bl	_IEEE80211_SKB_CB
	mov	x24, x0
	ldr	w0, [x27, #4]
	bl	_ieee80211_is_data
	mov	x21, x0
	ldr	w0, [x27, #8]
	bl	_is_broadcast_ether_addr
	cbz	x0, LBB0_2
; %bb.1:
	mov	w23, #1
	b	LBB0_3
LBB0_2:
	ldr	w0, [x27, #8]
	bl	_is_multicast_ether_addr
	cmp	x0, #0
	cset	w23, ne
LBB0_3:
	add	x0, sp, #56
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh0:
	adrp	x8, _WCN36XX_DBG_TX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WCN36XX_DBG_TX@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	ldr	w0, [x27, #4]
	ldr	w28, [x20]
	bl	___le16_to_cpu
	mov	x26, x0
	ldr	w0, [x27]
	bl	___le16_to_cpu
	bl	_IEEE80211_SEQ_TO_SN
                                        ; kill: def $w0 killed $w0 def $x0
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w21, #0
	csel	x8, x9, x8, eq
Lloh7:
	adrp	x9, l_.str.4@PAGE
Lloh8:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh9:
	adrp	x10, l_.str.3@PAGE
Lloh10:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	w23, #0
	csel	x9, x10, x9, ne
	stp	x8, x9, [sp, #32]
	stp	x26, x0, [sp, #16]
	stp	x20, x28, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x25
	bl	_wcn36xx_dbg
Lloh13:
	adrp	x8, _WCN36XX_DBG_TX_DUMP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WCN36XX_DBG_TX_DUMP@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	x2, [x20, #8]
	ldr	w3, [x20]
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wcn36xx_dbg_dump
Lloh18:
	adrp	x8, _WCN36XX_BMU_WQ_TX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WCN36XX_BMU_WQ_TX@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [sp, #64]
	ldr	w8, [x24]
Lloh21:
	adrp	x9, _IEEE80211_TX_CTL_REQ_TX_STATUS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IEEE80211_TX_CTL_REQ_TX_STATUS@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	ands	w8, w9, w8
	cset	w9, ne
	str	w9, [sp, #56]
	cbz	w8, LBB0_7
; %bb.4:
Lloh24:
	adrp	x8, _WCN36XX_DBG_DXE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _WCN36XX_DBG_DXE@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wcn36xx_dbg
	add	x24, x19, #4
	mov	x0, x24
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x24
	bl	_spin_unlock_irqrestore
Lloh29:
	adrp	x0, l_.str.7@PAGE
Lloh30:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_wcn36xx_warn
Lloh31:
	adrp	x8, _EINVAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_6:
	str	x20, [x19, #8]
	mov	x0, x24
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19]
	bl	_ieee80211_stop_queues
LBB0_7:
	add	x0, sp, #56
	add	x2, sp, #72
	mov	x1, x19
	cbz	w21, LBB0_9
; %bb.8:
	mov	x3, x22
	mov	x4, x20
	mov	x5, x23
	bl	_wcn36xx_set_tx_data
	b	LBB0_10
LBB0_9:
	mov	x3, x20
	mov	x4, x23
	bl	_wcn36xx_set_tx_mgmt
LBB0_10:
	add	x0, sp, #56
	mov	w1, #3
	bl	_buff_to_be
	mov	w8, #48573
	movk	w8, #48573, lsl #16
	str	w8, [sp, #60]
	ldr	x1, [sp, #72]
	add	x2, sp, #56
	mov	x0, x19
	mov	x3, x20
	mov	x4, x21
	bl	_wcn36xx_dxe_tx_frame
	mov	x20, x0
	cbz	w0, LBB0_13
; %bb.11:
	ldr	w8, [sp, #56]
	cbz	w8, LBB0_13
; %bb.12:
	add	x21, x19, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	str	xzr, [x19, #8]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19]
	bl	_ieee80211_wake_queues
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_WCN36XX_DBG_TX,4,2             ; @WCN36XX_DBG_TX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx skb %p len %d fc %04x sn %d %s %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"low"

l_.str.2:                               ; @.str.2
	.asciz	"high"

l_.str.3:                               ; @.str.3
	.asciz	"bcast"

l_.str.4:                               ; @.str.4
	.asciz	"ucast"

	.comm	_WCN36XX_DBG_TX_DUMP,4,2        ; @WCN36XX_DBG_TX_DUMP
l_.str.5:                               ; @.str.5
	.space	1

	.comm	_WCN36XX_BMU_WQ_TX,4,2          ; @WCN36XX_BMU_WQ_TX
	.comm	_IEEE80211_TX_CTL_REQ_TX_STATUS,4,2 ; @IEEE80211_TX_CTL_REQ_TX_STATUS
	.comm	_WCN36XX_DBG_DXE,4,2            ; @WCN36XX_DBG_DXE
l_.str.6:                               ; @.str.6
	.asciz	"TX_ACK status requested\n"

l_.str.7:                               ; @.str.7
	.asciz	"tx_ack_skb already set\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
