	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1251_op_tx
_wl1251_op_tx:                          ## @wl1251_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	movq	%rdx, %rsi
	callq	_skb_queue_tail
	movl	8(%rbx), %edi
	leaq	16(%rbx), %rsi
	callq	_ieee80211_queue_work
	movq	%r14, %rdi
	callq	_skb_queue_len
	movq	_WL1251_TX_QUEUE_HIGH_WATERMARK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_DEBUG_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wl1251_debug
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	8(%rbx), %edi
	callq	_ieee80211_stop_queues
	movl	$1, (%rbx)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WL1251_TX_QUEUE_HIGH_WATERMARK,8,3 ## @WL1251_TX_QUEUE_HIGH_WATERMARK
	.comm	_DEBUG_TX,4,2                   ## @DEBUG_TX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"op_tx: tx_queue full, stop queues"

	.no_dead_strip	_wl1251_op_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1251_op_tx
_wl1251_op_tx:                          ; @wl1251_op_tx
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x1, x2
	ldr	x20, [x0]
	add	x19, x20, #12
	mov	x0, x19
	bl	_skb_queue_tail
	ldr	w0, [x20, #8]
	add	x1, x20, #16
	bl	_ieee80211_queue_work
	mov	x0, x19
	bl	_skb_queue_len
Lloh0:
	adrp	x8, _WL1251_TX_QUEUE_HIGH_WATERMARK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WL1251_TX_QUEUE_HIGH_WATERMARK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh3:
	adrp	x8, _DEBUG_TX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEBUG_TX@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1251_debug
	add	x19, x20, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w0, [x20, #8]
	bl	_ieee80211_stop_queues
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WL1251_TX_QUEUE_HIGH_WATERMARK,8,3 ; @WL1251_TX_QUEUE_HIGH_WATERMARK
	.comm	_DEBUG_TX,4,2                   ; @DEBUG_TX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"op_tx: tx_queue full, stop queues"

	.no_dead_strip	_wl1251_op_tx
.subsections_via_symbols
