	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_ampdu_dotxstatus       ## -- Begin function brcms_c_ampdu_dotxstatus
	.p2align	4, 0x90
_brcms_c_ampdu_dotxstatus:              ## @brcms_c_ampdu_dotxstatus
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r14
	movq	%rdx, %rdi
	callq	_IEEE80211_SKB_CB
	movq	_TX_STATUS_ACK_RCV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_1
## %bb.2:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movq	8(%rax), %rbx
	movq	_frmtxstatus@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	movl	%eax, %ebx
	movq	_TXS_V@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	jne	LBB0_7
## %bb.3:
	movl	$11, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_udelay
	decl	%r15d
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rax
	movq	8(%rax), %rbx
	movq	_frmtxstatus@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	testl	%eax, (%r12)
	je	LBB0_4
## %bb.6:
	movl	%eax, %ebx
LBB0_7:
	movq	(%r14), %rax
	movq	8(%rax), %r15
	movq	_frmtxstatus2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	movl	%eax, %r9d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	testq	%r12, %r12
	je	LBB0_9
LBB0_14:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	movl	%ebx, %r8d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcms_c_ampdu_dotxstatus_complete ## TAILCALL
LBB0_1:
	xorl	%r9d, %r9d
	xorl	%ebx, %ebx
	testq	%r12, %r12
	jne	LBB0_14
LBB0_9:
	testq	%r13, %r13
	je	LBB0_13
## %bb.10:
	movq	_TXFID_QUEUE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%r15), %eax
	movslq	%eax, %r15
	movq	_TXC_AMPDU_LAST@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_IEEE80211_SKB_CB
	movq	8(%r13), %rbx
	movq	(%r14), %rax
	movq	8(%rax), %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_trace_brcms_txdesc
	movl	(%rbx), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_brcmu_pkt_buf_free_skb
	movq	_TXC_AMPDU_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_TXC_AMPDU_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	sarl	%cl, %ebx
	cmpl	(%r12), %ebx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %edi
	movq	_DMA_RANGE_TRANSMITTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dma_getnexttxp
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_11
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_STATUS_ACK_RCV,4,2          ## @TX_STATUS_ACK_RCV
	.comm	_frmtxstatus,4,2                ## @frmtxstatus
	.comm	_TXS_V,4,2                      ## @TXS_V
	.comm	_frmtxstatus2,4,2               ## @frmtxstatus2
	.comm	_TXFID_QUEUE_MASK,4,2           ## @TXFID_QUEUE_MASK
	.comm	_TXC_AMPDU_MASK,4,2             ## @TXC_AMPDU_MASK
	.comm	_TXC_AMPDU_SHIFT,4,2            ## @TXC_AMPDU_SHIFT
	.comm	_TXC_AMPDU_LAST,4,2             ## @TXC_AMPDU_LAST
	.comm	_DMA_RANGE_TRANSMITTED,4,2      ## @DMA_RANGE_TRANSMITTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_ampdu_dotxstatus       ; -- Begin function brcms_c_ampdu_dotxstatus
	.p2align	2
_brcms_c_ampdu_dotxstatus:              ; @brcms_c_ampdu_dotxstatus
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x25, [x0]
	mov	x0, x2
	bl	_IEEE80211_SKB_CB
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _TX_STATUS_ACK_RCV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TX_STATUS_ACK_RCV@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.1:
	ldr	x8, [x25]
	ldr	x23, [x8, #8]
Lloh3:
	adrp	x24, _frmtxstatus@GOTPAGE
Lloh4:
	ldr	x24, [x24, _frmtxstatus@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x23
	bl	_bcma_read32
	mov	x23, x0
Lloh5:
	adrp	x26, _TXS_V@GOTPAGE
Lloh6:
	ldr	x26, [x26, _TXS_V@GOTPAGEOFF]
	ldr	w8, [x26]
	tst	w8, w0
	b.ne	LBB0_6
; %bb.2:
	mov	w27, #11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_udelay
	subs	w27, w27, #1
	b.eq	LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25]
	ldr	x23, [x8, #8]
	ldr	w0, [x24]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x23
	bl	_bcma_read32
	ldr	w8, [x26]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.5:
	mov	x23, x0
LBB0_6:
	ldr	x8, [x25]
	ldr	x24, [x8, #8]
Lloh7:
	adrp	x8, _frmtxstatus2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _frmtxstatus2@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x24
	bl	_bcma_read32
	mov	x5, x0
	cbz	x21, LBB0_9
LBB0_7:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	mov	x4, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_brcms_c_ampdu_dotxstatus_complete
LBB0_8:
	mov	w5, #0
	mov	w23, #0
	cbnz	x21, LBB0_7
LBB0_9:
	cbz	x19, LBB0_13
; %bb.10:
Lloh10:
	adrp	x8, _TXFID_QUEUE_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TXFID_QUEUE_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	and	w8, w8, w9
	sxtw	x21, w8
Lloh13:
	adrp	x22, _TXC_AMPDU_MASK@GOTPAGE
Lloh14:
	ldr	x22, [x22, _TXC_AMPDU_MASK@GOTPAGEOFF]
Lloh15:
	adrp	x23, _TXC_AMPDU_SHIFT@GOTPAGE
Lloh16:
	ldr	x23, [x23, _TXC_AMPDU_SHIFT@GOTPAGEOFF]
Lloh17:
	adrp	x24, _TXC_AMPDU_LAST@GOTPAGE
Lloh18:
	ldr	x24, [x24, _TXC_AMPDU_LAST@GOTPAGEOFF]
Lloh19:
	adrp	x26, _DMA_RANGE_TRANSMITTED@GOTPAGE
Lloh20:
	ldr	x26, [x26, _DMA_RANGE_TRANSMITTED@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_IEEE80211_SKB_CB
	ldr	x20, [x19, #8]
	ldr	x8, [x25]
	ldr	x0, [x8, #8]
	mov	x1, x20
	mov	w2, #4
	bl	_trace_brcms_txdesc
	ldr	w0, [x20]
	bl	_le16_to_cpu
	mov	x20, x0
	mov	x0, x19
	bl	_brcmu_pkt_buf_free_skb
	ldr	w8, [x22]
	and	w8, w8, w20
	ldr	w9, [x23]
	asr	w8, w8, w9
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x25]
	ldr	x8, [x8]
	ldr	w0, [x8, x21, lsl #2]
	ldr	w1, [x26]
	bl	_dma_getnexttxp
	mov	x19, x0
	cbnz	x0, LBB0_11
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_STATUS_ACK_RCV,4,2          ; @TX_STATUS_ACK_RCV
	.comm	_frmtxstatus,4,2                ; @frmtxstatus
	.comm	_TXS_V,4,2                      ; @TXS_V
	.comm	_frmtxstatus2,4,2               ; @frmtxstatus2
	.comm	_TXFID_QUEUE_MASK,4,2           ; @TXFID_QUEUE_MASK
	.comm	_TXC_AMPDU_MASK,4,2             ; @TXC_AMPDU_MASK
	.comm	_TXC_AMPDU_SHIFT,4,2            ; @TXC_AMPDU_SHIFT
	.comm	_TXC_AMPDU_LAST,4,2             ; @TXC_AMPDU_LAST
	.comm	_DMA_RANGE_TRANSMITTED,4,2      ; @DMA_RANGE_TRANSMITTED
.subsections_via_symbols
