	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_usb_tx_aggr_tmo
_mwifiex_usb_tx_aggr_tmo:               ## @mwifiex_usb_tx_aggr_tmo
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -32(%rbp)
	movq	_hold_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	movq	(%rax), %rbx
	movq	8(%rax), %r15
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mwifiex_usb_prepare_tx_aggr_skb
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%eax, %ecx
	callq	_mwifiex_dbg
	jmp	LBB0_6
LBB0_2:
	leaq	32(%rbx), %rdi
	callq	_atomic_read
	movq	_MWIFIEX_TX_DATA_URB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	jge	LBB0_3
## %bb.4:
	movq	8(%rbx), %rax
	xorl	%ecx, %ecx
	cmpq	%rdx, %rax
	cmovlq	%rax, %rcx
	leaq	1(%rcx), %rax
	movq	%rax, 8(%rbx)
	shlq	$2, %rcx
	addq	24(%rbx), %rcx
	movl	20(%rbx), %edx
	movq	-32(%rbp), %r8
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mwifiex_usb_construct_send_urb
	cmpl	$-1, %eax
	jne	LBB0_6
	jmp	LBB0_5
LBB0_3:
	movl	$1, (%rbx)
	movq	%r15, %rdi
	callq	_mwifiex_usb_data_sent
	movl	%eax, (%r15)
LBB0_5:
	movq	-32(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$-1, %ecx
	callq	_mwifiex_write_data_complete
LBB0_6:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hold_timer,4,2                 ## @hold_timer
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"prepare tx aggr skb failed, err=%d\n"

	.comm	_MWIFIEX_TX_DATA_URB,8,3        ## @MWIFIEX_TX_DATA_URB
	.comm	_timer_context,8,3              ## @timer_context
	.no_dead_strip	_mwifiex_usb_tx_aggr_tmo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_usb_tx_aggr_tmo
_mwifiex_usb_tx_aggr_tmo:               ; @mwifiex_usb_tx_aggr_tmo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _hold_timer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hold_timer@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	ldp	x21, x20, [x0]
	add	x19, x21, #16
	mov	x0, x19
	bl	_spin_lock_bh
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_mwifiex_usb_prepare_tx_aggr_skb
	cbz	w0, LBB0_2
; %bb.1:
	mov	x3, x0
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_mwifiex_dbg
	b	LBB0_6
LBB0_2:
	add	x0, x21, #32
	bl	_atomic_read
Lloh8:
	adrp	x8, _MWIFIEX_TX_DATA_URB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MWIFIEX_TX_DATA_URB@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_4
; %bb.3:
	ldr	x9, [x21, #8]
	cmp	x9, x8
	csel	x8, x9, xzr, lt
	ldr	x9, [x21, #24]
	add	x10, x8, #1
	str	x10, [x21, #8]
	add	x3, x9, x8, lsl #2
	ldr	w2, [x21, #20]
	ldr	x4, [sp, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_mwifiex_usb_construct_send_urb
	cmn	w0, #1
	b.ne	LBB0_6
	b	LBB0_5
LBB0_4:
	mov	w8, #1
	str	w8, [x21]
	mov	x0, x20
	bl	_mwifiex_usb_data_sent
	str	w0, [x20]
LBB0_5:
	ldr	x1, [sp, #8]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #-1
	bl	_mwifiex_write_data_complete
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock_bh
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_hold_timer,4,2                 ; @hold_timer
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"prepare tx aggr skb failed, err=%d\n"

	.comm	_MWIFIEX_TX_DATA_URB,8,3        ; @MWIFIEX_TX_DATA_URB
	.comm	_timer_context,8,3              ; @timer_context
	.no_dead_strip	_mwifiex_usb_tx_aggr_tmo
.subsections_via_symbols
