	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_write_data_complete    ## -- Begin function mwifiex_write_data_complete
	.p2align	4, 0x90
_mwifiex_write_data_complete:           ## @mwifiex_write_data_complete
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.1:
	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
	movl	%ecx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rdi
	callq	_MWIFIEX_SKB_TXCB
	movq	%rax, %r12
	movl	16(%rax), %edx
	movl	20(%rax), %esi
	movq	%r14, %rdi
	callq	_mwifiex_get_priv_by_id
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	%rax, %r15
	movl	(%rax), %edi
	callq	_mwifiex_set_trans_start
	movl	(%r12), %eax
	movq	_MWIFIEX_BUF_FLAG_BRIDGED_PKT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	leaq	4(%r14), %rdi
	callq	_atomic_dec_return
	movl	(%r12), %eax
LBB0_4:
	movq	_MWIFIEX_BUF_FLAG_AGGR_PKT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_13
## %bb.5:
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.8:
	incl	16(%r15)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_9
LBB0_6:
	incl	24(%r15)
	movl	8(%r12), %eax
	addl	%eax, 20(%r15)
	cmpq	$0, 32(%r15)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	je	LBB0_9
## %bb.7:
	movq	$0, 32(%r15)
LBB0_9:
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	%r14, %rdi
	callq	_atomic_dec
	movq	_mwifiex_1d_to_wmm_queue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movslq	(%rax,%rcx,4), %r12
	leaq	(,%r12,4), %rdi
	addq	8(%r15), %rdi
	callq	_atomic_dec_return
	movq	_LOW_TX_PENDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_13
## %bb.11:
	movl	(%r15), %edi
	movl	%r12d, %esi
	callq	_netdev_get_tx_queue
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_netif_tx_queue_stopped
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_netif_tx_wake_queue
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r12d, %ecx
	callq	_mwifiex_dbg
LBB0_13:
	movq	%rbx, %rdi
	callq	_dev_kfree_skb_any
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_14:
	xorl	%eax, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_BUF_FLAG_BRIDGED_PKT,4,2 ## @MWIFIEX_BUF_FLAG_BRIDGED_PKT
	.comm	_MWIFIEX_BUF_FLAG_AGGR_PKT,4,2  ## @MWIFIEX_BUF_FLAG_AGGR_PKT
	.comm	_mwifiex_1d_to_wmm_queue,8,3    ## @mwifiex_1d_to_wmm_queue
	.comm	_LOW_TX_PENDING,8,3             ## @LOW_TX_PENDING
	.comm	_DATA,4,2                       ## @DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wake queue: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_write_data_complete    ; -- Begin function mwifiex_write_data_complete
	.p2align	2
_mwifiex_write_data_complete:           ; @mwifiex_write_data_complete
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_14
; %bb.1:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_MWIFIEX_SKB_TXCB
	mov	x24, x0
	ldp	w2, w1, [x0, #16]
	mov	x0, x20
	bl	_mwifiex_get_priv_by_id
	cbz	x0, LBB0_13
; %bb.2:
	mov	x21, x0
	ldr	w0, [x0]
	bl	_mwifiex_set_trans_start
	ldr	w8, [x24]
Lloh0:
	adrp	x9, _MWIFIEX_BUF_FLAG_BRIDGED_PKT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MWIFIEX_BUF_FLAG_BRIDGED_PKT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	add	x0, x20, #4
	bl	_atomic_dec_return
	ldr	w8, [x24]
LBB0_4:
Lloh3:
	adrp	x9, _MWIFIEX_BUF_FLAG_AGGR_PKT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MWIFIEX_BUF_FLAG_AGGR_PKT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_13
; %bb.5:
	cbz	w23, LBB0_7
; %bb.6:
	ldr	w8, [x21, #16]
	add	w8, w8, #1
	str	w8, [x21, #16]
	b	LBB0_9
LBB0_7:
	add	x8, x24, #8
	ldur	d0, [x21, #20]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	stur	d0, [x21, #20]
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_9
; %bb.8:
	str	xzr, [x21, #32]
LBB0_9:
	cbnz	w22, LBB0_13
; %bb.10:
	mov	x0, x20
	bl	_atomic_dec
Lloh6:
	adrp	x8, _mwifiex_1d_to_wmm_queue@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mwifiex_1d_to_wmm_queue@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldrsw	x22, [x8, x9, lsl #2]
	ldr	x8, [x21, #8]
	add	x0, x8, x22, lsl #2
	bl	_atomic_dec_return
Lloh9:
	adrp	x8, _LOW_TX_PENDING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LOW_TX_PENDING@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_13
; %bb.11:
	ldr	w0, [x21]
	mov	x1, x22
	bl	_netdev_get_tx_queue
	mov	x21, x0
	bl	_netif_tx_queue_stopped
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x21
	bl	_netif_tx_wake_queue
Lloh12:
	adrp	x8, _DATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x22
	bl	_mwifiex_dbg
LBB0_13:
	mov	x0, x19
	bl	_dev_kfree_skb_any
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
LBB0_14:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_BUF_FLAG_BRIDGED_PKT,4,2 ; @MWIFIEX_BUF_FLAG_BRIDGED_PKT
	.comm	_MWIFIEX_BUF_FLAG_AGGR_PKT,4,2  ; @MWIFIEX_BUF_FLAG_AGGR_PKT
	.comm	_mwifiex_1d_to_wmm_queue,8,3    ; @mwifiex_1d_to_wmm_queue
	.comm	_LOW_TX_PENDING,8,3             ; @LOW_TX_PENDING
	.comm	_DATA,4,2                       ; @DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wake queue: %d\n"

.subsections_via_symbols
