	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl18xx_tx_immediate_complete   ## -- Begin function wl18xx_tx_immediate_complete
	.p2align	4, 0x90
_wl18xx_tx_immediate_complete:          ## @wl18xx_tx_immediate_complete
	.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	%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
	movq	8(%rdi), %rax
	movq	24(%rdi), %r15
	movq	16(%rax), %r12
	movq	(%r15), %rdx
	movq	(%r12), %rcx
	cmpq	%rcx, %rdx
	je	LBB0_11
## %bb.1:
	movq	%rdi, %r14
	movq	(%rax), %rsi
	movq	_WLCORE_MAX_LINKS@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jae	LBB0_3
## %bb.2:
	movl	12(%rax), %edi
	movq	16(%r14), %rbx
	movl	%edi, 4(%rbx,%rsi,8)
	movl	8(%rax), %eax
	movl	%eax, (%rbx,%rsi,8)
LBB0_3:
	movq	_DEBUG_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wl1271_debug
	movq	(%r12), %rbx
	movq	_WL18XX_FW_MAX_TX_STATUS_DESC@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rbx
	jae	LBB0_12
## %bb.4:
	movq	(%r15), %rax
	cmpq	%rbx, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, %rbx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rbx
	cmpq	(%r12), %rbx
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_wl18xx_tx_complete_packet
	incl	(%r14)
	incq	%rbx
	movq	(%r13), %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ebx
	cmpq	(%r12), %rbx
	jne	LBB0_6
LBB0_10:
	movq	%rbx, (%r15)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_wl1271_error
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN_ON                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WLCORE_MAX_LINKS,8,3           ## @WLCORE_MAX_LINKS
	.comm	_DEBUG_TX,4,2                   ## @DEBUG_TX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"last released desc = %d, current idx = %d"

	.comm	_WL18XX_FW_MAX_TX_STATUS_DESC,8,3 ## @WL18XX_FW_MAX_TX_STATUS_DESC
L_.str.1:                               ## @.str.1
	.asciz	"invalid desc release index %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl18xx_tx_immediate_complete   ; -- Begin function wl18xx_tx_immediate_complete
	.p2align	2
_wl18xx_tx_immediate_complete:          ; @wl18xx_tx_immediate_complete
	.cfi_startproc
; %bb.0:
	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
	ldr	x8, [x0, #8]
	ldr	x22, [x8, #16]
	ldr	x21, [x0, #24]
	ldr	x2, [x21]
	ldr	x3, [x22]
	cmp	x2, x3
	b.eq	LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _WLCORE_MAX_LINKS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _WLCORE_MAX_LINKS@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.hs	LBB0_3
; %bb.2:
	ldr	x10, [x19, #16]
	ldr	d0, [x8, #8]
	str	d0, [x10, x9, lsl #3]
LBB0_3:
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	_wl1271_debug
	ldr	x20, [x22]
Lloh8:
	adrp	x23, _WL18XX_FW_MAX_TX_STATUS_DESC@GOTPAGE
Lloh9:
	ldr	x23, [x23, _WL18XX_FW_MAX_TX_STATUS_DESC@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x20, x8
	b.hs	LBB0_9
; %bb.4:
	ldr	x8, [x21]
	cmp	x8, x20
	b.eq	LBB0_7
; %bb.5:
	mov	x20, x8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	w1, [x8, x20, lsl #2]
	mov	x0, x19
	bl	_wl18xx_tx_complete_packet
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	add	x8, x20, #1
	ldr	x9, [x23]
	udiv	x10, x8, x9
	msub	x20, x10, x9, x8
	ldr	x8, [x22]
	cmp	x20, x8
	b.ne	LBB0_6
LBB0_7:
	str	x20, [x21]
LBB0_8:
	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
	ret
LBB0_9:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_wl1271_error
	mov	w0, #1
	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
	b	_WARN_ON
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WLCORE_MAX_LINKS,8,3           ; @WLCORE_MAX_LINKS
	.comm	_DEBUG_TX,4,2                   ; @DEBUG_TX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"last released desc = %d, current idx = %d"

	.comm	_WL18XX_FW_MAX_TX_STATUS_DESC,8,3 ; @WL18XX_FW_MAX_TX_STATUS_DESC
l_.str.1:                               ; @.str.1
	.asciz	"invalid desc release index %d"

.subsections_via_symbols
