	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xrx200_flush_dma
_xrx200_flush_dma:                      ## @xrx200_flush_dma
	.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	_LTQ_DESC_NUM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	movq	(%rdi), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r12d
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, (%r14)
	incl	%ebx
	cmpl	%ecx, %ebx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r15
	movq	_LTQ_DMA_OWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_LTQ_DMA_C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	orl	%r13d, %ecx
	andl	(%r15,%r12,4), %ecx
	cmpl	%eax, %ecx
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LTQ_DMA_RX_OFFSET
	orl	%r13d, %eax
	movq	_XRX200_DMA_DATA_LEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r15,%r12,4)
	movq	(%r14), %rax
	incq	%rax
	movq	_LTQ_DESC_NUM@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %r12
	jmp	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LTQ_DESC_NUM,4,2               ## @LTQ_DESC_NUM
	.comm	_LTQ_DMA_OWN,4,2                ## @LTQ_DMA_OWN
	.comm	_LTQ_DMA_C,4,2                  ## @LTQ_DMA_C
	.comm	_NET_IP_ALIGN,4,2               ## @NET_IP_ALIGN
	.comm	_XRX200_DMA_DATA_LEN,4,2        ## @XRX200_DMA_DATA_LEN
	.no_dead_strip	_xrx200_flush_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xrx200_flush_dma
_xrx200_flush_dma:                      ; @xrx200_flush_dma
	.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
Lloh0:
	adrp	x20, _LTQ_DESC_NUM@GOTPAGE
Lloh1:
	ldr	x20, [x20, _LTQ_DESC_NUM@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x0
	mov	w21, #0
	ldr	x25, [x0]
Lloh2:
	adrp	x22, _LTQ_DMA_OWN@GOTPAGE
Lloh3:
	ldr	x22, [x22, _LTQ_DMA_OWN@GOTPAGEOFF]
Lloh4:
	adrp	x23, _LTQ_DMA_C@GOTPAGE
Lloh5:
	ldr	x23, [x23, _LTQ_DMA_C@GOTPAGEOFF]
Lloh6:
	adrp	x24, _NET_IP_ALIGN@GOTPAGE
Lloh7:
	ldr	x24, [x24, _NET_IP_ALIGN@GOTPAGEOFF]
Lloh8:
	adrp	x26, _XRX200_DMA_DATA_LEN@GOTPAGE
Lloh9:
	ldr	x26, [x26, _XRX200_DMA_DATA_LEN@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x19, #8]
	ldr	w8, [x27, x25, lsl #2]
	ldr	w28, [x22]
	ldr	w9, [x23]
	orr	w10, w9, w28
	and	w8, w10, w8
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24]
	bl	_LTQ_DMA_RX_OFFSET
	orr	w8, w0, w28
	ldr	w9, [x26]
	orr	w8, w8, w9
	str	w8, [x27, x25, lsl #2]
	ldr	x8, [x19]
	add	x8, x8, #1
	ldrsw	x9, [x20]
	udiv	x10, x8, x9
	msub	x25, x10, x9, x8
	str	x25, [x19]
	add	w21, w21, #1
	cmp	w21, w9
	b.lt	LBB0_2
LBB0_4:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_LTQ_DESC_NUM,4,2               ; @LTQ_DESC_NUM
	.comm	_LTQ_DMA_OWN,4,2                ; @LTQ_DMA_OWN
	.comm	_LTQ_DMA_C,4,2                  ; @LTQ_DMA_C
	.comm	_NET_IP_ALIGN,4,2               ; @NET_IP_ALIGN
	.comm	_XRX200_DMA_DATA_LEN,4,2        ; @XRX200_DMA_DATA_LEN
	.no_dead_strip	_xrx200_flush_dma
.subsections_via_symbols
