	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_dequeue_tx_queue
_mwifiex_dequeue_tx_queue:              ## @mwifiex_dequeue_tx_queue
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_skb_dequeue
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_MWIFIEX_SKB_TXCB
	movq	_MWIFIEX_BUF_FLAG_AGGR_PKT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.3:
	movl	4(%rax), %edi
	leaq	4(%rbx), %rsi
	callq	_atomic_sub
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_12
LBB0_4:
	leaq	4(%rbx), %rdi
	callq	_atomic_dec
LBB0_5:
	movq	%rbx, %rdi
	callq	_skb_queue_empty
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	movl	$0, -24(%rbp)
LBB0_9:
	movq	%rbx, %rdi
	callq	_mwifiex_wmm_lists_empty
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movl	$1, -24(%rbp)
	jmp	LBB0_11
LBB0_6:
	movq	%rbx, %rdi
	callq	_skb_peek
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	testl	%eax, %eax
	je	LBB0_9
LBB0_11:
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mwifiex_host_to_card
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_BUF_FLAG_AGGR_PKT,4,2  ## @MWIFIEX_BUF_FLAG_AGGR_PKT
	.no_dead_strip	_mwifiex_dequeue_tx_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_dequeue_tx_queue
_mwifiex_dequeue_tx_queue:              ; @mwifiex_dequeue_tx_queue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_skb_dequeue
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_MWIFIEX_SKB_TXCB
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MWIFIEX_BUF_FLAG_AGGR_PKT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MWIFIEX_BUF_FLAG_AGGR_PKT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [x0, #4]
	add	x1, x19, #4
	bl	_atomic_sub
	b	LBB0_5
LBB0_3:
	mov	w0, #-1
	b	LBB0_12
LBB0_4:
	add	x0, x19, #4
	bl	_atomic_dec
LBB0_5:
	mov	x0, x19
	bl	_skb_queue_empty
	cbz	w0, LBB0_9
LBB0_6:
	str	wzr, [sp, #8]
LBB0_7:
	mov	x0, x19
	bl	_mwifiex_wmm_lists_empty
	cbnz	w0, LBB0_11
; %bb.8:
	mov	w8, #1
	str	w8, [sp, #8]
	b	LBB0_11
LBB0_9:
	mov	x0, x19
	bl	_skb_peek
	cbz	x0, LBB0_6
; %bb.10:
	ldr	w8, [x0]
	str	w8, [sp, #8]
	cbz	w8, LBB0_7
LBB0_11:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_mwifiex_host_to_card
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_BUF_FLAG_AGGR_PKT,4,2  ; @MWIFIEX_BUF_FLAG_AGGR_PKT
	.no_dead_strip	_mwifiex_dequeue_tx_queue
.subsections_via_symbols
