	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_enet_receive_queue
_bcm_enet_receive_queue:                ## @bcm_enet_receive_queue
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movl	(%rax), %eax
	cmpl	%r14d, %eax
	cmovll	%eax, %r14d
	movq	40(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rax
	addq	$48, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	incl	%r14d
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movslq	4(%r15), %r14
	movq	56(%r15), %r12
	xorl	%eax, %eax
	callq	_rmb
	movl	(%r12,%r14,8), %r13d
	movq	_DMADESC_OWNER_MASK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	jne	LBB0_22
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%r15), %eax
	incl	%eax
	cmpl	8(%r15), %eax
	movl	$0, %ecx
	cmovel	%ecx, %eax
	movl	%eax, 4(%r15)
	decl	(%r15)
	movq	_DMADESC_ESOP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movzbl	12(%r15), %ecx
	sarl	%cl, %eax
	movl	%r13d, %ecx
	notl	%ecx
	testl	%ecx, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 52(%r15)
	je	LBB0_5
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%r15), %rax
	movq	_DMADESC_LENGTH_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r13d
	movq	_DMADESC_LENGTH_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarl	%cl, %r13d
	movq	(%rax,%r14,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	addl	$-4, %r13d
	movq	_copybreak@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jae	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_napi_alloc_skb
	testq	%rax, %rax
	je	LBB0_3
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%r12,%r14,8), %esi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_dma_sync_single_for_cpu
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	movl	%r13d, %edx
	callq	_memcpy
	movl	4(%r12,%r14,8), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_dma_sync_single_for_device
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	8(%rbx)
	jmp	LBB0_19
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	40(%r15), %rdi
	movl	4(%r12,%r14,8), %esi
	movl	32(%r15), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	movq	24(%r15), %rax
	movq	$0, (%rax,%r14,8)
	movq	-72(%rbp), %r14                 ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_skb_put
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_eth_type_trans
	movl	%eax, (%r14)
	incl	4(%rbx)
	addl	%r13d, (%rbx)
	movq	%r14, %rdi
	callq	_netif_receive_skb
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%r14d, %eax
	decl	%r14d
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	addl	%ecx, %eax
	decl	%eax
	cmpl	$1, %eax
	jg	LBB0_1
	jmp	LBB0_21
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_DMADESC_ERR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r13d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	28(%rbx)
	movq	_DMADESC_OVSIZE_MASK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	24(%rbx)
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_DMADESC_CRC_MASK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	20(%rbx)
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_DMADESC_UNDER_MASK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	incl	16(%rbx)
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_DMADESC_OV_MASK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	incl	12(%rbx)
	jmp	LBB0_20
LBB0_22:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	testl	%r14d, %r14d
	je	LBB0_23
LBB0_21:
	negl	%r14d
LBB0_24:
	movq	%rbx, %rdi
	callq	_bcm_enet_refill_rx
	movl	16(%r15), %ecx
	movl	20(%r15), %esi
	movq	_ENETDMAC_CHANCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_enet_dmac_writel
LBB0_25:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	xorl	%r14d, %r14d
	cmpl	$0, (%r15)
	jne	LBB0_25
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_DMADESC_OWNER_MASK,4,2         ## @DMADESC_OWNER_MASK
	.comm	_DMADESC_ESOP_MASK,4,2          ## @DMADESC_ESOP_MASK
	.comm	_DMADESC_ERR_MASK,4,2           ## @DMADESC_ERR_MASK
	.comm	_DMADESC_OVSIZE_MASK,4,2        ## @DMADESC_OVSIZE_MASK
	.comm	_DMADESC_CRC_MASK,4,2           ## @DMADESC_CRC_MASK
	.comm	_DMADESC_UNDER_MASK,4,2         ## @DMADESC_UNDER_MASK
	.comm	_DMADESC_OV_MASK,4,2            ## @DMADESC_OV_MASK
	.comm	_DMADESC_LENGTH_MASK,4,2        ## @DMADESC_LENGTH_MASK
	.comm	_DMADESC_LENGTH_SHIFT,4,2       ## @DMADESC_LENGTH_SHIFT
	.comm	_copybreak,4,2                  ## @copybreak
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_ENETDMAC_CHANCFG,4,2           ## @ENETDMAC_CHANCFG
	.no_dead_strip	_bcm_enet_receive_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_enet_receive_queue
_bcm_enet_receive_queue:                ; @bcm_enet_receive_queue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	mov	w26, #0
	ldr	x8, [x0, #40]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w8, [x0]
	cmp	w8, w22
	csel	w8, w8, w22, lt
Lloh0:
	adrp	x27, _DMADESC_OWNER_MASK@GOTPAGE
Lloh1:
	ldr	x27, [x27, _DMADESC_OWNER_MASK@GOTPAGEOFF]
	add	x9, x0, #48
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
	add	w28, w8, #1
Lloh2:
	adrp	x24, _DMADESC_ESOP_MASK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DMADESC_ESOP_MASK@GOTPAGEOFF]
	str	w28, [sp, #28]                  ; 4-byte Folded Spill
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w26, w26, #1
	add	w8, w28, w26
	cmp	w8, #1
	b.le	LBB0_23
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x22, [x19, #4]
	ldr	x21, [x19, #56]
	bl	_rmb
	lsl	x25, x22, #3
	ldr	w23, [x21, x25]
	ldr	w8, [x27]
	tst	w8, w23
	b.ne	LBB0_22
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w9, w8, [x19]
	add	w10, w8, #1
	ldp	w11, w12, [x19, #8]
	cmp	w10, w11
	csinc	w8, wzr, w8, eq
	sub	w9, w9, #1
	stp	w9, w8, [x19]
	ldr	w8, [x24]
	asr	w8, w8, w12
	bics	wzr, w8, w23
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #52]
	cbz	w8, LBB0_12
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, x27
	mov	x27, x24
	ldr	x8, [x19, #24]
	ldr	x24, [x8, x22, lsl #3]
Lloh4:
	adrp	x8, _DMADESC_LENGTH_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DMADESC_LENGTH_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	and	w8, w8, w23
Lloh7:
	adrp	x9, _DMADESC_LENGTH_SHIFT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DMADESC_LENGTH_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	asr	w8, w8, w9
	sub	w23, w8, #4
Lloh10:
	adrp	x8, _copybreak@GOTPAGE
Lloh11:
	ldr	x8, [x8, _copybreak@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w23, w8
	b.hs	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x23
	bl	_napi_alloc_skb
	cbz	x0, LBB0_21
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
	add	x21, x21, x22, lsl #3
	ldr	w1, [x21, #4]
Lloh13:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x22
	mov	x2, x23
	bl	_dma_sync_single_for_cpu
	ldr	w0, [x25, #4]
	ldr	w1, [x24, #4]
	mov	x2, x23
	bl	_memcpy
	ldr	w1, [x21, #4]
Lloh16:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x2, x23
	bl	_dma_sync_single_for_device
	mov	x24, x25
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19, #40]
	add	x8, x21, x25
	ldr	w1, [x8, #4]
	ldr	w2, [x19, #32]
Lloh19:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	bl	_dma_unmap_single
	ldr	x8, [x19, #24]
	str	xzr, [x8, x25]
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	mov	x1, x23
	bl	_skb_put
	mov	x0, x24
	mov	x1, x20
	bl	_eth_type_trans
	str	w0, [x24]
	ldr	d0, [x20]
	movi.2s	v1, #1
	mov.s	v1[0], w23
	add.2s	v0, v0, v1
	str	d0, [x20]
	mov	x0, x24
	bl	_netif_receive_skb
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x27
	mov	x27, x28
	ldr	w28, [sp, #28]                  ; 4-byte Folded Reload
	b	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh22:
	adrp	x8, _DMADESC_ERR_MASK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DMADESC_ERR_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	and	w0, w8, w23
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #28]
	add	w8, w8, #1
	str	w8, [x20, #28]
Lloh25:
	adrp	x8, _DMADESC_OVSIZE_MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DMADESC_OVSIZE_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #24]
	add	w8, w8, #1
	str	w8, [x20, #24]
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh28:
	adrp	x8, _DMADESC_CRC_MASK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DMADESC_CRC_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #20]
	add	w8, w8, #1
	str	w8, [x20, #20]
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh31:
	adrp	x8, _DMADESC_UNDER_MASK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _DMADESC_UNDER_MASK@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh34:
	adrp	x8, _DMADESC_OV_MASK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _DMADESC_OV_MASK@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_2
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
	b	LBB0_2
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	b	LBB0_11
LBB0_22:
	cbz	w26, LBB0_26
LBB0_23:
	neg	w21, w26
LBB0_24:
	mov	x0, x20
	bl	_bcm_enet_refill_rx
Lloh37:
	adrp	x8, _ENETDMAC_CHANCFG@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENETDMAC_CHANCFG@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	ldp	w3, w1, [x19, #16]
	mov	x0, x19
	bl	_enet_dmac_writel
LBB0_25:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_26:
	mov	w21, #0
	ldr	w8, [x19]
	cbnz	w8, LBB0_25
	b	LBB0_24
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_DMADESC_OWNER_MASK,4,2         ; @DMADESC_OWNER_MASK
	.comm	_DMADESC_ESOP_MASK,4,2          ; @DMADESC_ESOP_MASK
	.comm	_DMADESC_ERR_MASK,4,2           ; @DMADESC_ERR_MASK
	.comm	_DMADESC_OVSIZE_MASK,4,2        ; @DMADESC_OVSIZE_MASK
	.comm	_DMADESC_CRC_MASK,4,2           ; @DMADESC_CRC_MASK
	.comm	_DMADESC_UNDER_MASK,4,2         ; @DMADESC_UNDER_MASK
	.comm	_DMADESC_OV_MASK,4,2            ; @DMADESC_OV_MASK
	.comm	_DMADESC_LENGTH_MASK,4,2        ; @DMADESC_LENGTH_MASK
	.comm	_DMADESC_LENGTH_SHIFT,4,2       ; @DMADESC_LENGTH_SHIFT
	.comm	_copybreak,4,2                  ; @copybreak
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_ENETDMAC_CHANCFG,4,2           ; @ENETDMAC_CHANCFG
	.no_dead_strip	_bcm_enet_receive_queue
.subsections_via_symbols
