	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_queue_tx_pkt           ## -- Begin function mwifiex_queue_tx_pkt
	.p2align	4, 0x90
_mwifiex_queue_tx_pkt:                  ## @mwifiex_queue_tx_pkt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_mwifiex_1d_to_wmm_queue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rsi), %rcx
	movslq	(%rax,%rcx,4), %r15
	leaq	(,%r15,4), %rdi
	addq	16(%rbx), %rdi
	callq	_atomic_inc_return
	movq	_MAX_TX_PENDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_3
## %bb.1:
	movl	8(%rbx), %edi
	movl	%r15d, %esi
	callq	_netdev_get_tx_queue
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_netif_tx_queue_stopped
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_netif_tx_stop_queue
	movq	(%rbx), %rdi
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %ecx
	callq	_mwifiex_dbg
LBB0_3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mwifiex_bypass_tx_queue
	movq	%rax, %r15
	movq	(%rbx), %rdi
	callq	_atomic_inc
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rdi
	addq	$4, %rdi
	callq	_atomic_inc
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mwifiex_wmm_add_buf_bypass_txqueue
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mwifiex_wmm_add_buf_txqueue
LBB0_6:
	movq	(%rbx), %rdi
	callq	_mwifiex_queue_main_work
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mwifiex_1d_to_wmm_queue,8,3    ## @mwifiex_1d_to_wmm_queue
	.comm	_MAX_TX_PENDING,8,3             ## @MAX_TX_PENDING
	.comm	_DATA,4,2                       ## @DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stop queue: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_queue_tx_pkt           ; -- Begin function mwifiex_queue_tx_pkt
	.p2align	2
_mwifiex_queue_tx_pkt:                  ; @mwifiex_queue_tx_pkt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _mwifiex_1d_to_wmm_queue@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mwifiex_1d_to_wmm_queue@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x1]
	ldrsw	x21, [x8, x9, lsl #2]
	ldr	x8, [x0, #16]
	add	x0, x8, x21, lsl #2
	bl	_atomic_inc_return
Lloh3:
	adrp	x8, _MAX_TX_PENDING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_TX_PENDING@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_3
; %bb.1:
	ldr	w0, [x19, #8]
	mov	x1, x21
	bl	_netdev_get_tx_queue
	mov	x22, x0
	bl	_netif_tx_queue_stopped
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x22
	bl	_netif_tx_stop_queue
	ldr	x0, [x19]
Lloh6:
	adrp	x8, _DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x21
	bl	_mwifiex_dbg
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_mwifiex_bypass_tx_queue
	mov	x21, x0
	ldr	x0, [x19]
	bl	_atomic_inc
	cbz	x21, LBB0_5
; %bb.4:
	ldr	x8, [x19]
	add	x0, x8, #4
	bl	_atomic_inc
	mov	x0, x19
	mov	x1, x20
	bl	_mwifiex_wmm_add_buf_bypass_txqueue
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_mwifiex_wmm_add_buf_txqueue
LBB0_6:
	ldr	x0, [x19]
	bl	_mwifiex_queue_main_work
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_mwifiex_1d_to_wmm_queue,8,3    ; @mwifiex_1d_to_wmm_queue
	.comm	_MAX_TX_PENDING,8,3             ; @MAX_TX_PENDING
	.comm	_DATA,4,2                       ; @DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stop queue: %d\n"

.subsections_via_symbols
