	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1271_op_tx
_wl1271_op_tx:                          ## @wl1271_op_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
	pushq	%rax
	.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, %r15
	movq	%rdi, %r13
	movq	(%rdi), %r14
	movq	%rdx, %rdi
	callq	_IEEE80211_SKB_CB
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	callq	_wl12xx_vif_to_data
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_skb_get_queue_mapping
	movl	%eax, %edi
	callq	_wl1271_tx_get_queue
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	movl	%eax, %ebx
	movq	%r12, %rdx
	callq	_wl12xx_tx_get_hlid
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_WL12XX_INVALID_LINK_ID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_5
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rsi
	movq	%r15, %rdi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_wlcore_is_queue_stopped_locked
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_WLCORE_QUEUE_STOP_REASON_WATERMARK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_wlcore_is_queue_stopped_by_reason_locked
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movq	_DEBUG_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %r8d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_wl1271_debug
	movq	24(%r14), %rax
	movl	%ebx, %r13d
	movslq	%ebx, %rbx
	leaq	(,%rbx,4), %rdi
	addq	(%rax,%r15,8), %rdi
	movq	%r12, %rsi
	callq	_skb_queue_tail
	movq	16(%r14), %rax
	incl	(%rax,%rbx,4)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rcx
	incq	%rcx
	movq	%rcx, (%rax,%rbx,8)
	movq	_WL1271_TX_QUEUE_HIGH_WATERMARK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jl	LBB0_9
## %bb.7:
	movq	_WLCORE_QUEUE_STOP_REASON_WATERMARK@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_wlcore_is_queue_stopped_by_reason_locked
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	_DEBUG_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_wl1271_debug
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_wlcore_stop_queue_locked
LBB0_9:
	movq	_WL1271_FLAG_FW_TX_BUSY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	12(%r14), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movq	_WL1271_FLAG_TX_PENDING@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movl	8(%r14), %edi
	leaq	4(%r14), %rsi
	callq	_ieee80211_queue_work
	jmp	LBB0_12
LBB0_5:
	movq	_DEBUG_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_wl1271_debug
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ieee80211_free_txskb
LBB0_12:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_13:
	movq	_DEBUG_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wl1271_debug
	movq	%r13, %rdi
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_free_txskb           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_TX,4,2                   ## @DEBUG_TX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DROP skb with no vif"

	.comm	_WL12XX_INVALID_LINK_ID,8,3     ## @WL12XX_INVALID_LINK_ID
	.comm	_WLCORE_QUEUE_STOP_REASON_WATERMARK,4,2 ## @WLCORE_QUEUE_STOP_REASON_WATERMARK
L_.str.1:                               ## @.str.1
	.asciz	"DROP skb hlid %d q %d"

L_.str.2:                               ## @.str.2
	.asciz	"queue skb hlid %d q %d len %d"

	.comm	_WL1271_TX_QUEUE_HIGH_WATERMARK,8,3 ## @WL1271_TX_QUEUE_HIGH_WATERMARK
L_.str.3:                               ## @.str.3
	.asciz	"op_tx: stopping queues for q %d"

	.comm	_WL1271_FLAG_FW_TX_BUSY,8,3     ## @WL1271_FLAG_FW_TX_BUSY
	.comm	_WL1271_FLAG_TX_PENDING,8,3     ## @WL1271_FLAG_TX_PENDING
	.no_dead_strip	_wl1271_op_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1271_op_tx
_wl1271_op_tx:                          ; @wl1271_op_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x2
	mov	x24, x1
	mov	x23, x0
	ldr	x19, [x0]
	mov	x0, x2
	bl	_IEEE80211_SKB_CB
	ldr	x0, [x0]
	cbz	x0, LBB0_13
; %bb.1:
	bl	_wl12xx_vif_to_data
	mov	x21, x0
	mov	x0, x20
	bl	_skb_get_queue_mapping
	bl	_wl1271_tx_get_queue
	mov	x22, x0
	ldr	w3, [x24]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_wl12xx_tx_get_hlid
	mov	x24, x0
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _WL12XX_INVALID_LINK_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WL12XX_INVALID_LINK_ID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x24, x8
	b.eq	LBB0_11
; %bb.2:
	ldr	x1, [x21, #8]
	mov	x0, x24
	bl	_test_bit
	cbz	w0, LBB0_11
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_wlcore_is_queue_stopped_locked
Lloh3:
	adrp	x25, _WLCORE_QUEUE_STOP_REASON_WATERMARK@GOTPAGE
Lloh4:
	ldr	x25, [x25, _WLCORE_QUEUE_STOP_REASON_WATERMARK@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w3, [x25]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_wlcore_is_queue_stopped_by_reason_locked
	cbz	w0, LBB0_11
LBB0_5:
Lloh5:
	adrp	x23, _DEBUG_TX@GOTPAGE
Lloh6:
	ldr	x23, [x23, _DEBUG_TX@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w8, [x20]
	mov	x26, x22
	stp	x26, x8, [sp, #8]
	str	x24, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wl1271_debug
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x24, lsl #3]
	sbfiz	x24, x26, #2, #32
	add	x0, x8, x24
	mov	x1, x20
	bl	_skb_queue_tail
	ldr	x8, [x19, #16]
	ldr	w9, [x8, x24]
	add	w9, w9, #1
	str	w9, [x8, x24]
	ldr	x8, [x21]
	sbfiz	x9, x26, #3, #32
	ldr	x10, [x8, x9]
	add	x10, x10, #1
	str	x10, [x8, x9]
Lloh9:
	adrp	x8, _WL1271_TX_QUEUE_HIGH_WATERMARK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WL1271_TX_QUEUE_HIGH_WATERMARK@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x10, x8
	b.lt	LBB0_8
; %bb.6:
	ldr	w3, [x25]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_wlcore_is_queue_stopped_by_reason_locked
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	w0, [x23]
	mov	x8, x22
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wl1271_debug
	ldr	w3, [x25]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_wlcore_stop_queue_locked
LBB0_8:
Lloh14:
	adrp	x8, _WL1271_FLAG_FW_TX_BUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WL1271_FLAG_FW_TX_BUSY@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
	add	x20, x19, #12
	mov	x1, x20
	bl	_test_bit
	cbnz	w0, LBB0_12
; %bb.9:
Lloh17:
	adrp	x8, _WL1271_FLAG_TX_PENDING@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WL1271_FLAG_TX_PENDING@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbnz	w0, LBB0_12
; %bb.10:
	ldr	w0, [x19, #8]
	add	x1, x19, #4
	bl	_ieee80211_queue_work
	b	LBB0_12
LBB0_11:
Lloh20:
	adrp	x8, _DEBUG_TX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DEBUG_TX@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	stp	x24, x22, [sp]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wl1271_debug
	mov	x0, x23
	mov	x1, x20
	bl	_ieee80211_free_txskb
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_spin_unlock_irqrestore
LBB0_13:
Lloh25:
	adrp	x8, _DEBUG_TX@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DEBUG_TX@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1271_debug
	mov	x0, x23
	mov	x1, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ieee80211_free_txskb
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_TX,4,2                   ; @DEBUG_TX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DROP skb with no vif"

	.comm	_WL12XX_INVALID_LINK_ID,8,3     ; @WL12XX_INVALID_LINK_ID
	.comm	_WLCORE_QUEUE_STOP_REASON_WATERMARK,4,2 ; @WLCORE_QUEUE_STOP_REASON_WATERMARK
l_.str.1:                               ; @.str.1
	.asciz	"DROP skb hlid %d q %d"

l_.str.2:                               ; @.str.2
	.asciz	"queue skb hlid %d q %d len %d"

	.comm	_WL1271_TX_QUEUE_HIGH_WATERMARK,8,3 ; @WL1271_TX_QUEUE_HIGH_WATERMARK
l_.str.3:                               ; @.str.3
	.asciz	"op_tx: stopping queues for q %d"

	.comm	_WL1271_FLAG_FW_TX_BUSY,8,3     ; @WL1271_FLAG_FW_TX_BUSY
	.comm	_WL1271_FLAG_TX_PENDING,8,3     ; @WL1271_FLAG_TX_PENDING
	.no_dead_strip	_wl1271_op_tx
.subsections_via_symbols
